Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1668364
| From | Pali Rohár <pali.rohar@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number |
| Date | 2017-06-17 18:40 +0200 |
| Message-ID | <tToVs-1hr-9@gated-at.bofh.it> (permalink) |
| References | <tLIxX-34o-3@gated-at.bofh.it> <tSDtw-39X-19@gated-at.bofh.it> <tT2rU-2yi-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Friday 16 June 2017 18:33:54 Mario.Limonciello@dell.com wrote: > > -----Original Message----- > > From: Limonciello, Mario > > Sent: Thursday, June 15, 2017 10:16 AM > > To: 'Pali Rohár' <pali.rohar@gmail.com>; Darren Hart > > <dvhart@infradead.org> Cc: Andy Shevchenko <andy@infradead.org>; > > Andy Lutomirski <luto@kernel.org>; > > platform-driver-x86@vger.kernel.org; linux-kernel@vger.kernel.org > > Subject: RE: [PATCH] RFC: platform/x86: wmi: Fix check for method > > instance number > > > > > -----Original Message----- > > > From: Pali Rohár [mailto:pali.rohar@gmail.com] > > > Sent: Thursday, June 15, 2017 8:59 AM > > > To: Limonciello, Mario <Mario_Limonciello@Dell.com>; Darren Hart > > > <dvhart@infradead.org> > > > Cc: Andy Shevchenko <andy@infradead.org>; Andy Lutomirski > > > > <luto@kernel.org>; > > > > > platform-driver-x86@vger.kernel.org; linux-kernel@vger.kernel.org > > > Subject: Re: [PATCH] RFC: platform/x86: wmi: Fix check for method > > > instance number > > > > > > Mario, are you able to check if instance number passed to > > > wmi_evaluate_method in following dell WMI drivers is correct and > > > should be really 1? > > > > > > I suspect that it should be zero, as instance number is indexed > > > from zero. > > > > > > There is no comment in those dell WMI drivers why it is 1, nor > > > what 1 means. > > > > > > Ideally it needs to be checked in ACPI byte code, MOF file and > > > WDG dump. > > > > I think you're likely correct. I don't have a box that supports > > alienware-wmi or dell-wmi-led.c handy at the current moment to > > confirm this hypothesis though. I'll confirm this later. > > > > I didn't realize it was zero indexed when I wrote alienware-wmi, > > and I'm guessing the author of dell-wmi-led didn't either. > > > > The reason it's probably working is the ACPI byte code isn't > > actually checking the instance since most times _WDG will only > > call out one instance. > > I confirmed you're correct. Switching instance over to 0 works > properly on an ASM200 (supported by alienware-wmi). Can you check what is the value in the instance_count in _WDG? -- Pali Rohár pali.rohar@gmail.com
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number Pali Rohár <pali.rohar@gmail.com> - 2017-06-10 21:20 +0200
Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number Darren Hart <dvhart@infradead.org> - 2017-06-13 19:00 +0200
Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number Pali Rohár <pali.rohar@gmail.com> - 2017-06-13 20:10 +0200
Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number Darren Hart <dvhart@infradead.org> - 2017-06-13 20:50 +0200
Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number Pali Rohár <pali.rohar@gmail.com> - 2017-06-14 17:50 +0200
Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number Darren Hart <dvhart@infradead.org> - 2017-06-14 22:40 +0200
Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number Pali Rohár <pali.rohar@gmail.com> - 2017-06-15 16:00 +0200
RE: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number <Mario.Limonciello@dell.com> - 2017-06-15 17:20 +0200
RE: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number <Mario.Limonciello@dell.com> - 2017-06-16 18:40 +0200
Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number Pali Rohár <pali.rohar@gmail.com> - 2017-06-17 18:40 +0200
Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number Pali Rohár <pali.rohar@gmail.com> - 2017-06-17 18:50 +0200
Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number joeyli <jlee@suse.com> - 2017-06-19 17:10 +0200
csiph-web