Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1681416 > unrolled thread

Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

Started byPali Rohár <pali.rohar@gmail.com>
First post2017-07-05 12:00 +0200
Last post2017-07-05 22:30 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance  number Pali Rohár <pali.rohar@gmail.com> - 2017-07-05 12:00 +0200
    Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance  number David Airlie <airlied@redhat.com> - 2017-07-05 21:40 +0200
      Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number Pali Rohár <pali.rohar@gmail.com> - 2017-07-05 22:30 +0200

#1681416 — Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

FromPali Rohár <pali.rohar@gmail.com>
Date2017-07-05 12:00 +0200
SubjectRe: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number
Message-ID<tZPgd-4Af-9@gated-at.bofh.it>
On Saturday 17 June 2017 18:47:54 Pali Rohár wrote:
> > So problematic drivers which use instance=1 without any comments are:
> > 
> >   acer-wmi
> >   asus-wmi
> >   mxm-wmi
> 
> Adding authors & maintainers of those drivers in loop.

Hi!

Dell drivers and acer-wmi are fixed now. So only asus-wmi and mxm-wmi
needs to be investigated.

Adding more people who developed those drivers recently in loop. Can you
check if instance number is used correctly or not?

> WMI instance number is indexed from zero and therefore first instance
> number is 0, not 1. Can you check if for drivers and wmi functions
> (specified below) is really correct to use WMI instance number one?
> 
> In case in _WDG is specified for particular GUID that instance_count is
> 1, it means the only allowed instance number is 0 (first and the only
> one).
> 
> In some cases, when there is only one instance for WMI method, ACPI WMI
> bytecode does not check instance number, so any passed value is
> accepted by ACPI. But in current patch I'm trying to fix check for
> valid instance number based on instance_count information from _WDG.
> 
> So I need to know if nothing would be broken. And in case those driver
> issue invalid/incorrect instance number, they needs to be fixed.
> 
> Can you look at it? Simple look into _WDG dump should be enough... just
> check if instance number called from wmi driver is less then
> instance_count from _WDG.
> 
> On Wednesday 14 June 2017 17:46:54 Pali Rohár wrote:
> > Function wmi_query_block:
> > 
> >   acer-wmi.c:
> >   instance=1 /* no comment why, guid=95764E09-FB56-4E83-B31A-37761F60994A */
> > 
>  
> > Function wmi_evaluate_method:
> > 
> >   acer-wmi.c:
> >   instance=1 /* no comment why, guid=67C3371D-95A3-4C37-BB61-DD47B491DAAB */
> >   instance=1 /* no comment why, guid=6AF4F258-B401-42FD-BE91-3D4AC2D7C0D3 */
> > 
> >   asus-wmi.c:
> >   instance=1 /* no comment why, guid=97845ED0-4E6D-11DE-8A39-0800200C9A66 */
> > 
> >   mxm-wmi.c:
> >   instance=1 /* no comment why, guid=F6CB5C3C-9CAE-4EBD-B577-931EA32A2CC0 */
> 

-- 
Pali Rohár
pali.rohar@gmail.com

[toc] | [next] | [standalone]


#1681733

FromDavid Airlie <airlied@redhat.com>
Date2017-07-05 21:40 +0200
Message-ID<tZYjv-2dl-3@gated-at.bofh.it>
In reply to#1681416

----- Original Message -----
> From: "Pali Rohár" <pali.rohar@gmail.com>
> To: "Chun-Yi Lee" <jlee@suse.com>, "Corentin Chary" <corentin.chary@gmail.com>, acpi4asus-user@lists.sourceforge.net,
> "Dave Airlie" <airlied@redhat.com>, "Oleksij Rempel" <linux@rempel-privat.de>, "João Paulo Rechi Vita"
> <jprvita@gmail.com>
> Cc: "Darren Hart" <dvhart@infradead.org>, "Andy Shevchenko" <andy@infradead.org>, "Andy Lutomirski"
> <luto@kernel.org>, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org
> Sent: Wednesday, 5 July, 2017 7:51:13 PM
> Subject: Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number
> 
> On Saturday 17 June 2017 18:47:54 Pali Rohár wrote:
> > > So problematic drivers which use instance=1 without any comments are:
> > > 
> > >   acer-wmi
> > >   asus-wmi
> > >   mxm-wmi
> > 
> > Adding authors & maintainers of those drivers in loop.
> 
> Hi!
> 
> Dell drivers and acer-wmi are fixed now. So only asus-wmi and mxm-wmi
> needs to be investigated.
> 
> Adding more people who developed those drivers recently in loop. Can you
> check if instance number is used correctly or not?
> 

I've no memory of why I picked 1 or 0, I probably cut-n-paste it from
somewhere else.

Dave.

[toc] | [prev] | [next] | [standalone]


#1681779 — Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

FromPali Rohár <pali.rohar@gmail.com>
Date2017-07-05 22:30 +0200
SubjectRe: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number
Message-ID<tZZ5U-2Lm-9@gated-at.bofh.it>
In reply to#1681733

[Multipart message — attachments visible in raw view] — view raw

On Wednesday 05 July 2017 21:30:35 David Airlie wrote:
> ----- Original Message -----
> 
> > From: "Pali Rohár" <pali.rohar@gmail.com>
> > To: "Chun-Yi Lee" <jlee@suse.com>, "Corentin Chary"
> > <corentin.chary@gmail.com>, acpi4asus-user@lists.sourceforge.net,
> > "Dave Airlie" <airlied@redhat.com>, "Oleksij Rempel"
> > <linux@rempel-privat.de>, "João Paulo Rechi Vita"
> > <jprvita@gmail.com>
> > Cc: "Darren Hart" <dvhart@infradead.org>, "Andy Shevchenko"
> > <andy@infradead.org>, "Andy Lutomirski" <luto@kernel.org>,
> > platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org
> > Sent: Wednesday, 5 July, 2017 7:51:13 PM
> > Subject: Re: [PATCH] RFC: platform/x86: wmi: Fix check for method
> > instance number
> > 
> > On Saturday 17 June 2017 18:47:54 Pali Rohár wrote:
> > > > So problematic drivers which use instance=1 without any comments
> > > > are:
> > > >   acer-wmi
> > > >   asus-wmi
> > > >   mxm-wmi
> > > 
> > > Adding authors & maintainers of those drivers in loop.
> > 
> > Hi!
> > 
> > Dell drivers and acer-wmi are fixed now. So only asus-wmi and
> > mxm-wmi needs to be investigated.
> > 
> > Adding more people who developed those drivers recently in loop.
> > Can you check if instance number is used correctly or not?
> 
> I've no memory of why I picked 1 or 0, I probably cut-n-paste it from
> somewhere else.
> 
> Dave.

And do you have at least ACPI DSDT dumps from that machine? Or are you 
able to find some?

-- 
Pali Rohár
pali.rohar@gmail.com

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web