Skip to content

Commit

Permalink
Skipping Ethernet device for FLR test
Browse files Browse the repository at this point in the history
- Skipped the FLR check for ethernet devices as FLR
  might cause data corruption and disrupt the init
  of the device

Signed-off-by: Sujana M <[email protected]>
  • Loading branch information
Sujana-M committed May 6, 2024
1 parent 12e2d83 commit 08876d7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test_pool/pcie/operating_system/test_p035.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,17 @@ payload(void)
dp_type = val_pcie_device_port_type(bdf);

/* Skip check for Storage devices as the
* logs will not be stored if FLR is done*/
* logs will not be stored if FLR is done
* Skip for ethernet controller as device
* init can get corrupted when FLR is done */
val_pcie_read_cfg(bdf, TYPE01_RIDR, &reg_value);
base_cc = reg_value >> TYPE01_BCC_SHIFT;
if (base_cc == MAS_CC)
if ((base_cc == MAS_CC) || (base_cc == CNTRL_CC))
{
val_print(ACS_PRINT_DEBUG, "\n Skipping for BDF - 0x%x ", bdf);
val_print(ACS_PRINT_DEBUG, " Classcode is : 0x%x ", base_cc);
continue;
}

/* Check entry is RCiEP or iEP endpoint or normal EP */
if ((dp_type == RCiEP) || (dp_type == iEP_EP))
Expand Down

0 comments on commit 08876d7

Please sign in to comment.