Skip to content

Commit

Permalink
Implementation for IE_REG_6 to IE_REG_9 (ARM-software#384)
Browse files Browse the repository at this point in the history
- For both iEP RP and iEP EP, checks the capability registers
  required for Supported speed Link Declaration

Signed-off-by: Gowtham Siddarth <gowtham.siddarth@arm.com>
Co-authored-by: Gowtham Siddarth <gowtham.siddarth@arm.com>
  • Loading branch information
Sujana-M and Gowtham Siddarth authored Nov 6, 2024
1 parent 48c13d2 commit c0a79ee
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions val/common/include/acs_pcie_spec.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,13 @@
#define ECID_ARICS 0x000E
#define ECID_ATS 0x000F
#define ECID_PRI 0x0013
#define ECID_SPCIECS 0x0019
#define ECID_PASID 0x001B
#define ECID_DPC 0x001D
#define ECID_DVSEC 0x0023
#define ECID_DLFECS 0x0025
#define ECID_PL16ECS 0x0026
#define ECID_LMREC 0x0027

/* PCI Express capability struct offsets */
#define CIDR_OFFSET 0x0
Expand Down Expand Up @@ -351,6 +355,9 @@
#define DCTL2R_AFE_MASK 0x1
#define DCTL2R_AFE_NORMAL 0xFFDF

#define LCAP2R_SLSV_MASK 0xFF
#define LCAP2R_SLSV_SHIFT 1

/* Device bitmask definitions */
#define RCiEP (1 << 0b1001)
#define RCEC (1 << 0b1010)
Expand Down Expand Up @@ -388,4 +395,7 @@
#define ATS_CACHING_EN (1 << 31)
#define ATS_CACHING_DIS 0x7FFFFFFF

#define MPCAPR_DS_MASK 0x1
#define MPCAPR_DS_SHIFT 0x0

#endif
3 changes: 3 additions & 0 deletions val/sbsa/include/sbsa_acs_pcie.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,7 @@ p065_entry(uint32_t num_pe);
uint32_t
p066_entry(uint32_t num_pe);

uint32_t
p067_entry(uint32_t num_pe);

#endif
4 changes: 4 additions & 0 deletions val/sbsa/src/sbsa_execute_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ val_sbsa_pcie_execute_tests(uint32_t level, uint32_t num_pe)
status |= p066_entry(num_pe);
#endif

#ifndef TARGET_LINUX
status |= p067_entry(num_pe); /* iEP/RP only */
#endif

val_print_test_end(status, "PCIe");

return status;
Expand Down

0 comments on commit c0a79ee

Please sign in to comment.