Re: [PATCH v4 01/25] PCI: Add SNIA SDXI accelerator sub-class
From: Bjorn Helgaas
Date: Thu Nov 12 2026 - 18:24:56 EST
On Tue, Nov 03, 2026 at 08:49:42PM -0600, Nathan Lynch wrote:
> Make the class code for SNIA Smart Data Accelerator Interface (SDXI)
> functions available to both C and Rust code.
>
> See PCI Code and ID Assignment spec r1.14, sec 1.19.
>
> Co-developed-by: Wei Huang <wei.huang2@xxxxxxx>
> Signed-off-by: Wei Huang <wei.huang2@xxxxxxx>
> Signed-off-by: Nathan Lynch <nathan.lynch@xxxxxxx>
Acked-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> # pci_ids.h
> ---
> include/linux/pci_ids.h | 1 +
> rust/kernel/pci/id.rs | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> index 030c86dd6d67..dcb26f52b5a1 100644
> --- a/include/linux/pci_ids.h
> +++ b/include/linux/pci_ids.h
> @@ -154,6 +154,7 @@
>
> #define PCI_BASE_CLASS_ACCELERATOR 0x12
> #define PCI_CLASS_ACCELERATOR_PROCESSING 0x1200
> +#define PCI_CLASS_ACCELERATOR_SDXI 0x120100
>
> #define PCI_CLASS_OTHERS 0xff
>
> diff --git a/rust/kernel/pci/id.rs b/rust/kernel/pci/id.rs
> index dbaf301666e7..d714e4b83852 100644
> --- a/rust/kernel/pci/id.rs
> +++ b/rust/kernel/pci/id.rs
> @@ -292,6 +292,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
> SP_OTHER = bindings::PCI_CLASS_SP_OTHER, // 0x118000
>
> ACCELERATOR_PROCESSING = bindings::PCI_CLASS_ACCELERATOR_PROCESSING, // 0x120000
> + ACCELERATOR_SDXI = bindings::PCI_CLASS_ACCELERATOR_SDXI, // 0x120100
>
> OTHERS = bindings::PCI_CLASS_OTHERS, // 0xff0000
> }
>
> --
> 2.56.0
>