lkml.org 
[lkml]   [2017]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number
On Wed, Jun 14, 2017 at 05:46:54PM +0200, Pali Rohár wrote:
> On Tuesday 13 June 2017 11:42:28 Darren Hart wrote:
> > On Tue, Jun 13, 2017 at 08:04:57PM +0200, Pali Rohár wrote:
> > > On Tuesday 13 June 2017 18:49:51 Darren Hart wrote:
> > > > I'd suggest reaching out to the maintainers and contributors to the
> > > > drivers you mention to request some help in testing.
> > >
> > > Seems sane. Grep for all methods with instance number different as zero
> > > (or just number one -- which can be suspicious as somebody could thought
> > > that indexing is from one, not zer) and try to receive ACPI/BMOF data
> > > and verify it.
> >
> > This would still be the ideal solution, verify we can do the right thing
> > without breaking existing drivers. Agreed.
>
> Here is all usage:
>

Thanks for pulling this together Pali.

...

> So problematic drivers which use instance=1 without any comments are:
>
> acer-wmi
> alienware-wmi
> asus-wmi
> dell-wmi-led
> mxm-wmi
>

I'd suggest adding a WARN_ONCE() when instance >= instance_count (I guess only
== concerns us) as a way to draw out any problematic usage. We can let that go
while we try to collect data from the other driver maintainers and see if it
generates any more hits.

--
Darren Hart
VMware Open Source Technology Center

\
 
 \ /
  Last update: 2017-06-14 22:40    [W:0.260 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site