> -----Original Message-----
> From: Guo, Junfeng <junfeng....@intel.com>
> Sent: Thursday, June 30, 2022 4:56 PM
> To: Wu, Jingjing <jingjing...@intel.com>
> Cc: dev@dpdk.org; Guo, Junfeng <junfeng....@intel.com>
> Subject: [PATCH v2] raw/ntb: add PPD status check for SPR
> 
> Add PPD (PCIe Port Definition) status check for SPR (Sapphire Rapids).
> 
> Note that NTB on SPR has the same device id with that on ICX, while
> the field offsets of PPD Control Register are different. Here, we use
> the PCI device revision id to distinguish the HW platform (ICX/SPR)
> and check the Port Config Status and Port Definition accordingly.
> 
> +---------------------------+--------------------+--------------------+
> |          Fields           | Bit Range (on ICX) | Bit Range (on SPR) |
> +---------------------------+--------------------+--------------------+
> | Port Configuration Status | 12                 | 14                 |
> | Port Definition           | 9:8                | 10:8               |
> +---------------------------+--------------------+--------------------+
> 
> v2:
> fix revision id value check logic.
> 
> Signed-off-by: Junfeng Guo <junfeng....@intel.com>
Acked-by: Jingjing Wu <jingjing...@intel.com>

Reply via email to