Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1298976
| From | Michał Kępień <kernel@kempniu.pl> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] dell-wmi: Check if Dell WMI descriptor structure is valid |
| Date | 2015-12-29 13:50 +0100 |
| Message-ID | <qL1SX-AW-23@gated-at.bofh.it> (permalink) |
| References | <qJlsJ-3li-7@gated-at.bofh.it> <qJlCq-3oo-3@gated-at.bofh.it> <qKGbM-2E4-13@gated-at.bofh.it> <qKGEN-38h-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> > > According to Dell WMI document mentioned in ML dicussion archived > > > at http://www.spinics.net/lists/platform-driver-x86/msg07220.html > > > OS should check Dell WMI descriptor structure. > > > > "Should" or "can"? I skimmed through the ACPI-WMI PDF and Mario's > > message again and I couldn't find any explicit statement urging the > > reader to check the structure in question before doing anything else. > > That's questionable... In "Design flow" is first point that WMI > descriptor check. Which "Design flow" are you referring to? Because I found at least two: chapter 2.3 and a subsection of chapter 2.3.3. Funnily enough, in both of these locations the WMI Descriptor Method is discussed first. Personally, I wouldn't use the structure of that document to draw cause-effect conclusions. Just look at the last chapter (2.3.4), which shows how to tell whether the BIOS supports the ACPI-WMI interface. Shouldn't that be the first thing to check, before doing anything else mentioned in that document? Yet, it's the last thing discussed. Anyway, while the document mentions in several places that the BIOS WMI Descriptor object can be queried, it fails to convince me as to why this is necessary at all as all values in the returned buffer are constant. Perhaps parsing the buffer is useful as a sanity check of some kind, but it certainly isn't a prerequisite for performing further actions. Given the nature of your patchset, I'd personally rephrase the commit message(s) to state that according to your observations, there are behavioral differences between models with different versions of the WMI Interface, so we parse the WMI Descriptor object to determine which WMI Interface version is used on the machine we're running on. Perhaps with an additional word or two that it won't hurt to also check the WMI Descriptor object's correctness while we're at it. If you feel like I'm nit-picking and none of the above matters, please feel free to disregard my input and just follow your gut. -- Best regards, Michał Kępień -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] Fixes for dell-wmi Pali Rohár <pali.rohar@gmail.com> - 2015-12-24 22:20 +0100
[PATCH 1/2] dell-wmi: Check if Dell WMI descriptor structure is valid Pali Rohár <pali.rohar@gmail.com> - 2015-12-24 22:30 +0100
Re: [PATCH 1/2] dell-wmi: Check if Dell WMI descriptor structure is valid Andy Lutomirski <luto@amacapital.net> - 2015-12-25 02:30 +0100
Re: [PATCH 1/2] dell-wmi: Check if Dell WMI descriptor structure is valid Pali Rohár <pali.rohar@gmail.com> - 2015-12-25 14:10 +0100
Re: [PATCH 1/2] dell-wmi: Check if Dell WMI descriptor structure is valid Michał Kępień <kernel@kempniu.pl> - 2015-12-28 14:40 +0100
Re: [PATCH 1/2] dell-wmi: Check if Dell WMI descriptor structure is valid Pali Rohár <pali.rohar@gmail.com> - 2015-12-28 15:10 +0100
Re: [PATCH 1/2] dell-wmi: Check if Dell WMI descriptor structure is valid Michał Kępień <kernel@kempniu.pl> - 2015-12-29 13:50 +0100
Re: [PATCH 1/2] dell-wmi: Check if Dell WMI descriptor structure is valid Pali Rohár <pali.rohar@gmail.com> - 2015-12-29 17:10 +0100
Re: [PATCH 1/2] dell-wmi: Check if Dell WMI descriptor structure is valid Michał Kępień <kernel@kempniu.pl> - 2015-12-30 12:30 +0100
[PATCH 2/2] dell-wmi: Process only one event on devices with interface version 0 Pali Rohár <pali.rohar@gmail.com> - 2015-12-24 22:30 +0100
Re: [PATCH 2/2] dell-wmi: Process only one event on devices with interface version 0 Michał Kępień <kernel@kempniu.pl> - 2015-12-28 14:50 +0100
Re: [PATCH 2/2] dell-wmi: Process only one event on devices with interface version 0 Pali Rohár <pali.rohar@gmail.com> - 2015-12-28 14:50 +0100
Re: [PATCH 0/2] Fixes for dell-wmi Pali Rohár <pali.rohar@gmail.com> - 2015-12-27 14:10 +0100
Re: [PATCH 0/2] Fixes for dell-wmi Pali Rohár <pali.rohar@gmail.com> - 2015-12-27 14:20 +0100
Re: [PATCH 0/2] Fixes for dell-wmi Gabriele Mazzotta <gabriele.mzt@gmail.com> - 2015-12-27 14:20 +0100
Re: [PATCH 0/2] Fixes for dell-wmi Gabriele Mazzotta <gabriele.mzt@gmail.com> - 2015-12-27 14:10 +0100
Re: [PATCH 0/2] Fixes for dell-wmi Michał Kępień <kernel@kempniu.pl> - 2015-12-28 14:40 +0100
Re: [PATCH 0/2] Fixes for dell-wmi Pali Rohár <pali.rohar@gmail.com> - 2015-12-28 14:50 +0100
Re: [PATCH 0/2] Fixes for dell-wmi Michał Kępień <kernel@kempniu.pl> - 2015-12-29 13:20 +0100
csiph-web