* [PATCH] firmware/dmi: Include product_family info to modalias
@ 2026-01-16 13:03 Antoine Lassagne
2026-01-30 10:55 ` Jean Delvare
0 siblings, 1 reply; 3+ messages in thread
From: Antoine Lassagne @ 2026-01-16 13:03 UTC (permalink / raw)
To: jdelvare; +Cc: linux-kernel, Antoine Lassagne
Some platforms rely on modalias to customize configuration,
the product family helps to identify the hardware.
Add product_family to modalias for better utilization.
This patch mimics commit e26f023e01ef ("firmware/dmi:
Include product_sku info to modalias") that did the same
for product_sku, and commit f97a2103f1a7 ("firmware: dmi:
Move product_sku info to the end of the modalias") that
fixed regressions caused by the added field notbeing in
the end of the list.
Signed-off-by: Antoine Lassagne <antoine.lassagne@canonical.com>
---
drivers/firmware/dmi-id.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/firmware/dmi-id.c b/drivers/firmware/dmi-id.c
index d19c78a78ae3..6b5c7bf35387 100644
--- a/drivers/firmware/dmi-id.c
+++ b/drivers/firmware/dmi-id.c
@@ -96,6 +96,7 @@ static ssize_t get_modalias(char *buffer, size_t buffer_size)
{ "ct", DMI_CHASSIS_TYPE },
{ "cvr", DMI_CHASSIS_VERSION },
{ "sku", DMI_PRODUCT_SKU },
+ { "pfa", DMI_PRODUCT_FAMILY },
{ NULL, DMI_NONE }
};
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] firmware/dmi: Include product_family info to modalias
2026-01-16 13:03 [PATCH] firmware/dmi: Include product_family info to modalias Antoine Lassagne
@ 2026-01-30 10:55 ` Jean Delvare
2026-01-30 12:19 ` Antoine Lassagne
0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2026-01-30 10:55 UTC (permalink / raw)
To: Antoine Lassagne; +Cc: linux-kernel
Hi Antoine,
On Fri, 16 Jan 2026 14:03:15 +0100, Antoine Lassagne wrote:
> Some platforms rely on modalias to customize configuration,
> the product family helps to identify the hardware.
>
> Add product_family to modalias for better utilization.
> This patch mimics commit e26f023e01ef ("firmware/dmi:
> Include product_sku info to modalias") that did the same
> for product_sku, and commit f97a2103f1a7 ("firmware: dmi:
> Move product_sku info to the end of the modalias") that
> fixed regressions caused by the added field notbeing in
Missing space (no worry, I'll fix it as I commit the patch).
> the end of the list.
>
> Signed-off-by: Antoine Lassagne <antoine.lassagne@canonical.com>
> ---
> drivers/firmware/dmi-id.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/firmware/dmi-id.c b/drivers/firmware/dmi-id.c
> index d19c78a78ae3..6b5c7bf35387 100644
> --- a/drivers/firmware/dmi-id.c
> +++ b/drivers/firmware/dmi-id.c
> @@ -96,6 +96,7 @@ static ssize_t get_modalias(char *buffer, size_t buffer_size)
> { "ct", DMI_CHASSIS_TYPE },
> { "cvr", DMI_CHASSIS_VERSION },
> { "sku", DMI_PRODUCT_SKU },
> + { "pfa", DMI_PRODUCT_FAMILY },
> { NULL, DMI_NONE }
> };
>
Looks reasonable. Out of curiosity, what is your practical use case?
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] firmware/dmi: Include product_family info to modalias
2026-01-30 10:55 ` Jean Delvare
@ 2026-01-30 12:19 ` Antoine Lassagne
0 siblings, 0 replies; 3+ messages in thread
From: Antoine Lassagne @ 2026-01-30 12:19 UTC (permalink / raw)
To: Jean Delvare; +Cc: linux-kernel
Thank you very much!
Some context: Ubuntu has a mechanism to install packages automatically
on machines depending on their modalias signature [1].
I'm building some packages that deliver an optimized performance for
DGX Spark [2]. I'd like these to install automatically not only on DGX
Spark, but also on the OEM versions delivered by HP, Lenovo, Dell,
etc. I was assured that the Family was something reliable to identify
all these machines, who have the same value in it ("DGXSpark"). The
rest of the modalias can change significantly, hence I cant' use it to
identify the devices.
[1] github.com/canonical/ubuntu-drivers-common
[2] https://www.nvidia.com/en-us/products/workstations/dgx-spark/
On Fri, 30 Jan 2026 at 11:55, Jean Delvare <jdelvare@suse.de> wrote:
>
> Hi Antoine,
>
> On Fri, 16 Jan 2026 14:03:15 +0100, Antoine Lassagne wrote:
> > Some platforms rely on modalias to customize configuration,
> > the product family helps to identify the hardware.
> >
> > Add product_family to modalias for better utilization.
> > This patch mimics commit e26f023e01ef ("firmware/dmi:
> > Include product_sku info to modalias") that did the same
> > for product_sku, and commit f97a2103f1a7 ("firmware: dmi:
> > Move product_sku info to the end of the modalias") that
> > fixed regressions caused by the added field notbeing in
>
> Missing space (no worry, I'll fix it as I commit the patch).
>
> > the end of the list.
> >
> > Signed-off-by: Antoine Lassagne <antoine.lassagne@canonical.com>
> > ---
> > drivers/firmware/dmi-id.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/firmware/dmi-id.c b/drivers/firmware/dmi-id.c
> > index d19c78a78ae3..6b5c7bf35387 100644
> > --- a/drivers/firmware/dmi-id.c
> > +++ b/drivers/firmware/dmi-id.c
> > @@ -96,6 +96,7 @@ static ssize_t get_modalias(char *buffer, size_t buffer_size)
> > { "ct", DMI_CHASSIS_TYPE },
> > { "cvr", DMI_CHASSIS_VERSION },
> > { "sku", DMI_PRODUCT_SKU },
> > + { "pfa", DMI_PRODUCT_FAMILY },
> > { NULL, DMI_NONE }
> > };
> >
>
> Looks reasonable. Out of curiosity, what is your practical use case?
>
> --
> Jean Delvare
> SUSE L3 Support
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-30 12:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16 13:03 [PATCH] firmware/dmi: Include product_family info to modalias Antoine Lassagne
2026-01-30 10:55 ` Jean Delvare
2026-01-30 12:19 ` Antoine Lassagne
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.