Re: fake ACPI IDs in the drivers

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

 



On Wed, 25 Nov 2020 14:00:54 +0200
Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote:

> On Wed, Nov 25, 2020 at 1:47 PM Lars-Peter Clausen <lars@xxxxxxxxxx> wrote:
> > On 11/25/20 12:14 PM, Andy Shevchenko wrote:  
> 
> > > Recent discussion [1] [2] around faking ACPI ID in RTC subsystem and a
> > > sudden check [3] (due to last Hans' patches related to ACPI based
> > > systems) of IIO makes me wonder if we may start cleaning drivers from
> > > faked ACPI IDs and establish a stricter rules for the ID table
> > > entries.
> > >
> > > Thoughts?  
> >
> > The cat is probably out of the bag.
> >
> > If there are systems shipping with those unregistered ACPI IDs we still
> > have to support them.  
> 
> Yes, but we can do our best to google for them and try other sources
> (like contacts with vendor companies who can acknowledge if there were
> an ID issued or not).
> 
> > I'd assume that most drivers that have a acpi_device_id table do have
> > hardware that uses that ID and were not just cargo culted.

I fear that is overly optimistic :(

Every time the ID is non obvious we are pretty safe it has come from real
hardware (whether registered or not) but we have a bunch were introduced
by various fairly new contributors that I let in before I knew better :(
Those tend to just be part numbers squished into ACPI ID format.

> >
> > For new drivers we should push back on unregistered IDs, but if there is
> > hardware that uses them we have to take the patches.  
> 
> Right. But at the same time we have to push the idea of proper IDs to
> the vendor companies, so they won't abuse ACPI specification anymore.
> 

Absolutely.  Sometimes it is just a case of moaning and asking whether
hardware is already shipping with the ID - if not push back hard so they
ideally go persuade their management to put a proper process in place.

So upshot, in my view, is to be very careful removing existing IDs
but definitely be very resistive to introducing any new ones without
confirmation they are on some companies official registers.

Jonathan






[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux