mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mario Limonciello <mario.limonciello@amd.com>
To: Lin Wang <wanglin@open-hieco.net>,
	yazen.ghannam@amd.com, Borislav Petkov <bp@alien8.de>
Cc: tglx@kernel.org, mingo@redhat.com, x86@kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH 1/5] pci_ids: Add Hygon Family 0x18 DF device IDs
Date: Thu, 2 Apr 2026 12:56:08 -0500	[thread overview]
Message-ID: <ab6a8335-48ab-4800-be27-761a91264ad7@amd.com> (raw)
In-Reply-To: <20260402111515.1155505-2-wanglin@open-hieco.net>

On 4/2/26 6:15 AM, Lin Wang wrote:
> [Some people who received this message don't often get email from wanglin@open-hieco.net. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> 
> Add the PCI device IDs required to discover Hygon Family 0x18 Data Fabric
> functions.
> 
> Hygon systems expose DF-related PCI functions using PCI_VENDOR_ID_HYGON.
> Some numeric device IDs are shared with AMD families but are qualified by
> PCI_VENDOR_ID_HYGON when used on Hygon systems.

I don't think this is a good idea to start precedent of using exact same 
define for Hygon and AMD because it might not always be true.

Could we instead have something like

#define PCI_DEVICE_ID_HYGON_17H_M30H_DF_F3 PCI_DEVICE_ID_AMD_17H_M30H_DF_F3

And then anywhere you're using it like you describe (such as how I see 
in patch 3) then you can use PCI_DEVICE_ID_HYGON_17H_M30H_DF_F3 instead.

> 
> Signed-off-by: Lin Wang <wanglin@open-hieco.net>
> ---
>   include/linux/pci_ids.h | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> index 406abf629be2..0b51773412be 100644
> --- a/include/linux/pci_ids.h
> +++ b/include/linux/pci_ids.h
> @@ -568,8 +568,10 @@
>   #define PCI_DEVICE_ID_AMD_16H_M30H_NB_F3 0x1583
>   #define PCI_DEVICE_ID_AMD_16H_M30H_NB_F4 0x1584
>   #define PCI_DEVICE_ID_AMD_17H_DF_F3    0x1463
> +#define PCI_DEVICE_ID_AMD_17H_DF_F4    0x1464
>   #define PCI_DEVICE_ID_AMD_17H_M10H_DF_F3 0x15eb
>   #define PCI_DEVICE_ID_AMD_17H_M30H_DF_F3 0x1493
> +#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F4 0x1494
>   #define PCI_DEVICE_ID_AMD_17H_M40H_DF_F3 0x13f3
>   #define PCI_DEVICE_ID_AMD_17H_M60H_DF_F3 0x144b
>   #define PCI_DEVICE_ID_AMD_17H_M70H_DF_F3 0x1443
> @@ -2613,6 +2615,8 @@
>   #define PCI_VENDOR_ID_ROCKCHIP         0x1d87
> 
>   #define PCI_VENDOR_ID_HYGON            0x1d94
> +#define PCI_DEVICE_ID_HYGON_18H_M05H_DF_F3     0x14b3
> +#define PCI_DEVICE_ID_HYGON_18H_M10H_DF_F3     0x14d3
> 
>   #define PCI_VENDOR_ID_META             0x1d9b
> 
> --
> 2.43.0
> 


  reply	other threads:[~2026-04-02 17:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-02 11:15 [RFC PATCH 00/05] x86/hygon: Add Family 0x18 node enumeration and SMN access Lin Wang
2026-04-02 11:15 ` [RFC PATCH 1/5] pci_ids: Add Hygon Family 0x18 DF device IDs Lin Wang
2026-04-02 17:56   ` Mario Limonciello [this message]
2026-04-03  3:39     ` Lin Wang
2026-04-02 11:15 ` [RFC PATCH 2/5] x86/hygon: Add Family 0x18 node enumeration API header Lin Wang
2026-04-02 11:15 ` [RFC PATCH 3/5] x86/hygon: Add DF misc-based node enumeration helpers Lin Wang
2026-04-02 18:50   ` Mario Limonciello
2026-04-03  5:15     ` Lin Wang
2026-04-02 11:15 ` [RFC PATCH 4/5] x86/amd_nb: Use Hygon DF misc enumeration for Family 0x18 Lin Wang
2026-04-02 11:15 ` [RFC PATCH 5/5] x86/amd_node: Support Hygon SMN roots by socket Lin Wang
2026-04-02 23:50   ` Borislav Petkov
2026-04-03  5:29     ` Lin Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ab6a8335-48ab-4800-be27-761a91264ad7@amd.com \
    --to=mario.limonciello@amd.com \
    --cc=bp@alien8.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@kernel.org \
    --cc=wanglin@open-hieco.net \
    --cc=x86@kernel.org \
    --cc=yazen.ghannam@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®