RE: WMI driver duplicate UUID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[Public]

> -----Original Message-----
> From: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
> Sent: Saturday, July 9, 2022 06:49
> To: Hans de Goede <hdegoede@xxxxxxxxxx>
> Cc: Armin Wolf <W_Armin@xxxxxx>; Limonciello, Mario
> <Mario.Limonciello@xxxxxxx>; Mark Gross <markgross@xxxxxxxxxx>;
> Platform Driver <platform-driver-x86@xxxxxxxxxxxxxxx>
> Subject: Re: WMI driver duplicate UUID
> 
> On Sat, Jul 9, 2022 at 1:39 PM Hans de Goede <hdegoede@xxxxxxxxxx>
> wrote:
> > On 7/9/22 03:33, Armin Wolf wrote:
> 
> > > while trying to write my own WMI driver, i noticed that the WMI bus
> driver complained
> > > about duplicated WMI UUIDs. After doing some research, i think i found
> the reason for
> > > these messages:
> > >
> > > Apparently, the ACPI WMI specification by Microsoft treats the _UID of
> the WMI PnP-device
> > > like a namespace, which means that duplicate UUIDs are llegal if they do
> not share the same
> > > namespace (= PnP-device).
> > >
> > > In my case, only one wmi-bmof device is used, the rest is filtered out
> despite laying in
> > > a different namespace since they have the same UUID.
> > >
> > > Could it be theoretically possible to fix this issue with the WMI bus?
> >
> > Yes this has been a known issue for quite a while now, there
> > is a bugzilla for this here:
> >
> >
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugz
> illa.kernel.org%2Fshow_bug.cgi%3Fid%3D201885&amp;data=05%7C01%7CM
> ario.Limonciello%40amd.com%7C68ec85e0fe614746fd3208da61a11fc3%7C3d
> d8961fe4884e608e11a82d994e183d%7C0%7C0%7C637929641896425658%7CU
> nknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
> 6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=6uVZ3KvXGg
> R4AoW9r%2B%2FGN%2BJtdzlQnVtsxp0v5DGsVEY%3D&amp;reserved=0
> >
> > As pointed out there, patches fixing this have been posted
> > a few years ago already, but they did not get merged.
> >
> > The patches are here:
> >
> >
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flkml.
> org%2Flkml%2F2017%2F12%2F8%2F912&amp;data=05%7C01%7CMario.Limo
> nciello%40amd.com%7C68ec85e0fe614746fd3208da61a11fc3%7C3dd8961fe4
> 884e608e11a82d994e183d%7C0%7C0%7C637929641896425658%7CUnknown
> %7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1ha
> WwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=GlS4xGplKlj6IBbrySl
> 3Pm55CNKsMr4meOyAG3%2B1%2Brw%3D&amp;reserved=0
> >
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flkml.
> org%2Flkml%2F2017%2F12%2F8%2F914&amp;data=05%7C01%7CMario.Limo
> nciello%40amd.com%7C68ec85e0fe614746fd3208da61a11fc3%7C3dd8961fe4
> 884e608e11a82d994e183d%7C0%7C0%7C637929641896425658%7CUnknown
> %7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1ha
> WwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=16UieLiYmcRdsB0E
> P%2B2ftVQ5MrrnzkpF6rCAw%2BZkBX8%3D&amp;reserved=0
> >
> > There is one review comment which needs to be addressed:
> >
> >
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flkml.
> org%2Flkml%2F2017%2F12%2F9%2F165&amp;data=05%7C01%7CMario.Limo
> nciello%40amd.com%7C68ec85e0fe614746fd3208da61a11fc3%7C3dd8961fe4
> 884e608e11a82d994e183d%7C0%7C0%7C637929641896425658%7CUnknown
> %7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1ha
> WwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=K0L8i9lsTyl%2FT3c5
> RNBWFc4kjbtWgzPNUuB5ew7EYGs%3D&amp;reserved=0
> >
> > If you can pick these patches up, address the review
> > comment, test them and then submit a version 2 upstream
> > I would be happy to merge this into the platform-drivers-x86
> > tree.
> 
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.
> kernel.org%2Fall%2F1512786861-1014-1-git-send-email-
> mario.limonciello%40dell.com%2F&amp;data=05%7C01%7CMario.Limonciello
> %40amd.com%7C68ec85e0fe614746fd3208da61a11fc3%7C3dd8961fe4884e60
> 8e11a82d994e183d%7C0%7C0%7C637929641896425658%7CUnknown%7CTW
> FpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX
> VCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=TjNdUrnI3nndRIkRpDkReuE
> VGQeVBeMuLtO%2FrK3yGdM%3D&amp;reserved=0
> 
> This way it's easier to handle with `b4`
> 
>   b4 am -s
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.
> kernel.org%2Fall%2F1512786861-1014-1-git-send-email-
> mario.limonciello%40dell.com%2F&amp;data=05%7C01%7CMario.Limonciello
> %40amd.com%7C68ec85e0fe614746fd3208da61a11fc3%7C3dd8961fe4884e60
> 8e11a82d994e183d%7C0%7C0%7C637929641896425658%7CUnknown%7CTW
> FpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX
> VCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=TjNdUrnI3nndRIkRpDkReuE
> VGQeVBeMuLtO%2FrK3yGdM%3D&amp;reserved=0
> 
> --
> With Best Regards,
> Andy Shevchenko

I forgot all about those patches, blast from the past.  Yes, please pick them up
and carry the torch to fix this issue.




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux