> -----Original Message-----
> From: Guo, Junfeng <[email protected]>
> Sent: Thursday, June 30, 2022 4:56 PM
> To: Wu, Jingjing <[email protected]>
> Cc: [email protected]; Guo, Junfeng <[email protected]>
> 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 <[email protected]>
Acked-by: Jingjing Wu <[email protected]>