[PATCH v2] r8152: Add support for setting MAC to system's Auxiliary MAC address

2016-06-02 Thread Mario Limonciello
information for the system's persistent MAC address is burned in when the HW is built and available under _SB\AMAC in the DSDT at runtime. More information about the technology is available here: http://www.dell.com/support/article/us/en/04/SLN301147 Signed-off-by: Mario Limonciello --- dr

[PATCH v2] r8152: Add support for setting MAC to system's Auxiliary MAC address

2016-06-02 Thread Mario Limonciello
ac_address() implementation. - I haven't yet done this. If this is the right approach. I would like to know the proper place in arch/x86 to put this code. My initial thought was a new file in arch/x86/platform/intel Mario Limonciello (1): r8152: Add support for setting MAC to system&

[PATCH v4] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-06 Thread Mario Limonciello
t and available under _SB\AMAC in the DSDT at runtime. This technology is currently implemented in the Dell TB15 and WD15 Type-C docks. More information is available here: http://www.dell.com/support/article/us/en/04/SLN301147 Signed-off-by: Mario Limonciello --- Changes from v3: * Add addit

[PATCH v5] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-07 Thread Mario Limonciello
t and available under \_SB.AMAC in the DSDT at runtime. This technology is currently implemented in the Dell TB15 and WD15 Type-C docks. More information is available here: http://www.dell.com/support/article/us/en/04/SLN301147 Signed-off-by: Mario Limonciello --- Changes from v4: * Correct

[PATCH v6] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-07 Thread Mario Limonciello
t and available under \_SB.AMAC in the DSDT at runtime. This technology is currently implemented in the Dell TB15 and WD15 Type-C docks. More information is available here: http://www.dell.com/support/article/us/en/04/SLN301147 Signed-off-by: Mario Limonciello --- Changes from v5: * Correct r

[PATCH v6 RESEND] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-07-11 Thread Mario Limonciello
t and available under \_SB.AMAC in the DSDT at runtime. This technology is currently implemented in the Dell TB15 and WD15 Type-C docks. More information is available here: http://www.dell.com/support/article/us/en/04/SLN301147 Signed-off-by: Mario Limonciello --- drivers/net/usb/r8152.c

[PATCH v3] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-06 Thread Mario Limonciello
activated. - Expected experience is that if two docks (RTL8153-AD's w/ mac pass thru bit set) were plugged in both should have MAC pass through activated. Mario Limonciello (1): r8152: Add support for setting pass through MAC address on RTL8153-AD drivers/net/u

[PATCH v3] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-06-06 Thread Mario Limonciello
t and available under _SB\AMAC in the DSDT at runtime. This technology is currently implemented in the Dell TB15 and WD15 Type-C docks. More information is available here: http://www.dell.com/support/article/us/en/04/SLN301147 Signed-off-by: Mario Limonciello --- drivers/net/usb/r8152.c

Re: [1/2] Revert "HID: multitouch: enable palm rejection if device implements confidence usage"

2016-06-27 Thread Mario Limonciello
Andy, > (And I'm curious why 1.4.3 seems to have been pulled. Might it have > been this issue? For better or for worse, I upgraded in the narrow > window in which it was available on Dell's website.) It wasn't pulled in relation to this issue. It was something else. Nothing I'm aware of in th

Re: [1/2] Revert "HID: multitouch: enable palm rejection if device implements confidence usage"

2016-06-29 Thread Mario Limonciello
> I've applied the series to hid.git#for-4.7/upstream-fixes Hi Jiri, Would you also submit this to -stable? I think it should be generally applicable at least a few releases back since Allen's original submit. Thanks,

[PATCH] Add fwupdate and Mok GUID's to the EFI variable immutable whitelist

2016-03-22 Thread Mario Limonciello
ed8b0de5a33d2a2557dce7f9429dca8cb5bc5879 caused all variables to be immutable by default. This causes problems with userspace applications mokutil and fwupdate. --- drivers/firmware/efi/vars.c | 2 ++ include/linux/efi.h | 8 2 files changed, 10 insertions(+) diff --git a/driver

Re: [PATCH] Add fwupdate and Mok GUID's to the EFI variable immutable whitelist

2016-03-22 Thread Mario Limonciello
On 03/22/2016 04:37 PM, Limonciello, Mario wrote: > ed8b0de5a33d2a2557dce7f9429dca8cb5bc5879 caused all variables to be > immutable by default. This causes problems with userspace applications > mokutil and fwupdate. > --- > drivers/firmware/efi/vars.c | 2 ++ > include/linux/efi.h | 8

Re: Re: [PATCH] uapi: update install list after nvme.h rename

2016-02-19 Thread Mario Limonciello
On 01/14/2016 02:26 AM, Jiri Slaby wrote: > On 01/14/2016, 02:17 AM, Mike Frysinger wrote: > > On 12 Jan 2016 09:45, Jiri Slaby wrote: > >> On 01/11/2016, 02:14 AM, Mike Frysinger wrote: > >>> Commit 9d99a8dda154 ("nvme: move hardware structures out of the > >>> uapi version of nvme.h") renamed n

[PATCH v2 0/5] alienware-wmi new platform and feature support

2016-02-01 Thread Mario Limonciello
er 80 characters in deep sleep control patch Other patches may have some areas that avoid going over 80 characters still, but this matches the style of the existing driver. If you would like these to go over 80 characters as well, please comment which areas this is OK. Mario Limonciel

[PATCH v2 1/5] Clean up whitespace for ASM100 platform

2016-02-01 Thread Mario Limonciello
This brings them more in line with the usage of whitespace in other platforms. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform

[PATCH v2 5/5] Add support for two new systems: ASM200 and ASM201.

2016-02-01 Thread Mario Limonciello
Both of these systems support: * 2 lighting control zones * HDMI mux control * deep sleep control (to enable wakup from controller) The ASM201 also supports the external graphics amplifier. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 32

[PATCH v2 2/5] Add support for new platform: X51-R3

2016-02-01 Thread Mario Limonciello
The X51-R3 is in the X51 family. It includes 3 internal lighting zones as well as is the first AW desktop that includes support for a graphics amplifier. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 24 +++- 1 file changed, 19 insertions(+), 5

[PATCH v2 4/5] Add support for deep sleep control.

2016-02-01 Thread Mario Limonciello
This allows configuration the system for wakeup with a controller. The feature requires hardware architectural modifications and can not be supported on on existing systems. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 100 +++ 1

[PATCH v2 3/5] Add initial support for alienware graphics amplifier.

2016-02-01 Thread Mario Limonciello
The alienware graphics amplifier is a device that provides external access to a full PCIe slot, USB hub, and additional control zone. This patch enables support for reading status whether the cable is plugged in as well as for setting the colors in the new zone. Signed-off-by: Mario Limonciello

Re: [PATCH v2 3/5] Add initial support for alienware graphics amplifier.

2016-02-02 Thread Mario Limonciello
On 02/02/2016 11:24 AM, Darren Hart wrote: > On Mon, Feb 01, 2016 at 08:28:49PM -0600, Mario Limonciello wrote: >> The alienware graphics amplifier is a device that provides external >> access to a full PCIe slot, USB hub, and additional control zone. >> >> This patch

Re: [PATCH v2 4/5] Add support for deep sleep control.

2016-02-02 Thread Mario Limonciello
On 02/02/2016 11:32 AM, Darren Hart wrote: > On Mon, Feb 01, 2016 at 08:28:50PM -0600, Mario Limonciello wrote: >> This allows configuration the system for wakeup with a controller. > Hrm, I'm happy to clean up English grammar in commit messages... but I'm > struggli

[PATCH v3 0/6] alienware-wmi: new platform and feature support

2016-02-02 Thread Mario Limonciello
cters as well, please comment which areas this is OK. Mario Limonciello (6): alienware-wmi: Clean up whitespace for ASM100 platform alienware-wmi: Add support for new platform: X51-R3 alienware-wmi: Add initial support for alienware graphics amplifier. alienware-wmi: Add support for deep

[PATCH v3 4/6] alienware-wmi: Add support for deep sleep control.

2016-02-02 Thread Mario Limonciello
Allow for user configuration of BIOS settings that allow the system to be turned on via HID devices. The feature requires hardware architectural modifications and can not be supported on existing systems. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 95

[PATCH v3 3/6] alienware-wmi: Add initial support for alienware graphics amplifier.

2016-02-02 Thread Mario Limonciello
: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 106 --- 1 file changed, 87 insertions(+), 19 deletions(-) diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c index 8e8ea4f..7ada7ce 100644 --- a/drivers/platform/x86

[PATCH v3 5/6] alienware-wmi: Add support for two new systems: ASM200 and ASM201.

2016-02-02 Thread Mario Limonciello
Both of these systems support: * 2 lighting control zones * HDMI mux control * deep sleep control (to enable wakup from controller) The ASM201 also supports the external graphics amplifier. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 32

[PATCH v3 6/6] alienware-wmi: whitespace improvements

2016-02-02 Thread Mario Limonciello
These were some items that were pointed out in previous patches that weren't caught be previous reviewers, but should be applied to other parts of the driver as well. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 20 +++- 1 file chang

[PATCH v3 1/6] alienware-wmi: Clean up whitespace for ASM100 platform

2016-02-02 Thread Mario Limonciello
This brings them more in line with the usage of whitespace in other platforms. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform

[PATCH v3 2/6] alienware-wmi: Add support for new platform: X51-R3

2016-02-02 Thread Mario Limonciello
The X51-R3 is in the X51 family. It includes 3 internal lighting zones as well as is the first AW desktop that includes support for a graphics amplifier. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 24 +++- 1 file changed, 19 insertions(+), 5

[PATCH 0/2] Allow breaking up Thunderbolt/USB4 updates

2020-06-22 Thread Mario Limonciello
complete the update when unplugged. Export that functionality to userspace as well. This patch series is done relative thunderbolt.git/next. Mario Limonciello (2): thunderbolt: Add support for separating the flush to SPI and authenticate thunderbolt: Add support for authenticate on

[PATCH 1/2] thunderbolt: Add support for separating the flush to SPI and authenticate

2020-06-22 Thread Mario Limonciello
This allows userspace to have a shorter period of time that the device is unusable and to call it at a more convenient time. For example flushing the image may happen while the user is using the machine and authenticating/rebooting may happen while logging out. Signed-off-by: Mario Limonciello

[PATCH 2/2] thunderbolt: Add support for authenticate on disconnect

2020-06-22 Thread Mario Limonciello
Some external devices can support completing thunderbolt authentication when they are unplugged. For this to work though, the link controller must remain operational. The only device known to support this right now is the Dell WD19TB, so add a quirk for this. Signed-off-by: Mario Limonciello

[PATCH v2 2/2] thunderbolt: Add support for authenticate on disconnect

2020-06-22 Thread Mario Limonciello
Some external devices can support completing thunderbolt authentication when they are unplugged. For this to work though, the link controller must remain operational. The only device known to support this right now is the Dell WD19TB, so add a quirk for this. Signed-off-by: Mario Limonciello

[PATCH v2 1/2] thunderbolt: Add support for separating the flush to SPI and authenticate

2020-06-22 Thread Mario Limonciello
This allows userspace to have a shorter period of time that the device is unusable and to call it at a more convenient time. For example flushing the image may happen while the user is using the machine and authenticating/rebooting may happen while logging out. Signed-off-by: Mario Limonciello

[PATCH v2 0/2] Allow breaking up Thunderbolt/USB4 updates

2020-06-22 Thread Mario Limonciello
complete the update when unplugged. Export that functionality to userspace as well. Changes from v1 to v2: - Improve documentation - Drop tb-quirks.h - Adjust function and parameter names to Mika's preferences - Rebase onto thunderbolt.git/bleeding-edge to move on top of retimer work

[PATCH v3 2/2] thunderbolt: Add support for authenticate on disconnect

2020-06-23 Thread Mario Limonciello
Some external devices can support completing thunderbolt authentication when they are unplugged. For this to work though, the link controller must remain operational. The only device known to support this right now is the Dell WD19TB, so add a quirk for this. Signed-off-by: Mario Limonciello

[PATCH v3 1/2] thunderbolt: Add support for separating the flush to SPI and authenticate

2020-06-23 Thread Mario Limonciello
This allows userspace to have a shorter period of time that the device is unusable and to call it at a more convenient time. For example flushing the image may happen while the user is using the machine and authenticating/rebooting may happen while logging out. Signed-off-by: Mario Limonciello

[PATCH v3 0/2] Allow breaking up Thunderbolt/USB4 updates

2020-06-23 Thread Mario Limonciello
-quirks.h - Adjust function and parameter names to Mika's preferences - Rebase onto thunderbolt.git/bleeding-edge to move on top of retimer work Mario Limonciello (2): thunderbolt: Add support for separating the flush to SPI and authenticate thunderbolt: Add support for authenticate

[PATCH 2/3] e1000e: Add Dell's Comet Lake systems into s0ix heuristics

2020-09-27 Thread Mario Limonciello
Dell's Comet Lake Latitude and Precision systems containing i219LM are properly configured and should use the s0ix flows. Signed-off-by: Mario Limonciello --- drivers/net/ethernet/intel/Kconfig| 1 + drivers/net/ethernet/intel/e1000e/param.c | 80 ++- 2

[PATCH 1/3] e1000e: allow turning s0ix flows on for systems with ME

2020-09-27 Thread Mario Limonciello
: e086ba2fccda ("e1000e: disable s0ix entry and exit flows for ME systems") Signed-off-by: Mario Limonciello --- .../device_drivers/ethernet/intel/e1000e.rst | 23 drivers/net/ethernet/intel/e1000e/e1000.h | 7 ++ drivers/net/ethernet/intel/e1000e/netdev.c| 64 +- d

[PATCH 0/3] Improve s0ix flows for systems i219LM

2020-09-27 Thread Mario Limonciello
he behavior on by default for Dell's CML systems. These patches should only be carried if that patch linked above is also applied. Mario Limonciello (3): e1000e: allow turning s0ix flows on for systems with ME e1000e: Add Dell's Comet Lake systems into s0ix heuristics e1000e:

[PATCH 3/3] e1000e: Add more Dell CML systems into s0ix heuristics

2020-09-27 Thread Mario Limonciello
These comet lake systems are not yet released, but have been validated on pre-release hardware. This is being submitted separately from released hardware in case of a regression between pre-release and release hardware so this commit can be reverted alone. Signed-off-by: Mario Limonciello

[PATCH] tpm: Revert "tpm: fix invalid locking in NONBLOCKING mode"

2020-05-26 Thread Mario Limonciello
mode") Reported-by: Alex Guzman Signed-off-by: Mario Limonciello --- drivers/char/tpm/tpm-dev-common.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/char/tpm/tpm-dev-common.c b/drivers/char/tpm/tpm-dev-common.c index 87f449340202..bc9d7c7ddc01 100644 --- a/drivers/char/t

[PATCH] platform/x86: Only activate tablet mode switch on 2-in-1's

2018-02-22 Thread Mario Limonciello
switch") Reported-by: Jeremy Cline Signed-off-by: Mario Limonciello --- Note: I also moved the code for detecting tablet into it's own function. To keep things under 80 lines with if statements was making the code very unreadable otherwise. drivers/

[PATCH 2/3] platform/x86: dell-smbios: Rename dell-smbios source to dell-smbios-base

2018-02-27 Thread Mario Limonciello
This is being done to faciliate a later change to link all the dell-smbios drivers together. Signed-off-by: Mario Limonciello --- drivers/platform/x86/Makefile | 1 + drivers/platform/x86/{dell-smbios.c => dell-smbios-base.c} | 0 2 files changed, 1 insert

[PATCH 3/3] platform/x86: dell-smbios: Link all dell-smbios-* modules together

2018-02-27 Thread Mario Limonciello
this change the Kconfig needs to be adjusted so that CONFIG_DELL_SMBIOS_SMM and CONFIG_DELL_SMBIOS_WMI are boolean rather than modules. CONFIG_DELL_SMBIOS is a visually selectable option again and both CONFIG_DELL_SMBIOS_WMI and CONFIG_DELL_SMBIOS_SMM are optional. Signed-off-by: Mario Limonciello

[PATCH 1/3] platform/x86: dell-smbios: Correct some style warnings

2018-02-27 Thread Mario Limonciello
plus at least + 6 bytes of entry */ WARNING: Block comments use a trailing */ on a separate line + 6 bytes of entry */ Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH v2 1/3] platform/x86: dell-smbios: Correct some style warnings

2018-02-27 Thread Mario Limonciello
plus at least + 6 bytes of entry */ WARNING: Block comments use a trailing */ on a separate line + 6 bytes of entry */ Signed-off-by: Mario Limonciello --- changes from v1: * Adjust comment style drivers/platform/x86/dell-smbios.c | 8 +--- 1 file changed, 5 insert

[PATCH v2 3/3] platform/x86: dell-smbios: Link all dell-smbios-* modules together

2018-02-27 Thread Mario Limonciello
this change the Kconfig needs to be adjusted so that CONFIG_DELL_SMBIOS_SMM and CONFIG_DELL_SMBIOS_WMI are boolean rather than modules. CONFIG_DELL_SMBIOS is a visually selectable option again and both CONFIG_DELL_SMBIOS_WMI and CONFIG_DELL_SMBIOS_SMM are optional. Signed-off-by: Mario Limonciello

[PATCH v2 2/3] platform/x86: dell-smbios: Rename dell-smbios source to dell-smbios-base

2018-02-27 Thread Mario Limonciello
This is being done to faciliate a later change to link all the dell-smbios drivers together. Signed-off-by: Mario Limonciello --- drivers/platform/x86/Makefile | 1 + drivers/platform/x86/{dell-smbios.c => dell-smbios-base.c} | 0 2 files changed, 1 insert

[PATCH v3 2/3] platform/x86: dell-smbios: Rename dell-smbios source to dell-smbios-base

2018-02-27 Thread Mario Limonciello
This is being done to faciliate a later change to link all the dell-smbios drivers together. Signed-off-by: Mario Limonciello --- drivers/platform/x86/Makefile | 1 + drivers/platform/x86/{dell-smbios.c => dell-smbios-base.c} | 0 2 files changed, 1 insert

[PATCH v3 1/3] platform/x86: dell-smbios: Correct some style warnings

2018-02-27 Thread Mario Limonciello
plus at least + 6 bytes of entry */ WARNING: Block comments use a trailing */ on a separate line + 6 bytes of entry */ Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH v3 3/3] platform/x86: dell-smbios: Link all dell-smbios-* modules together

2018-02-27 Thread Mario Limonciello
this change the Kconfig needs to be adjusted so that CONFIG_DELL_SMBIOS_SMM and CONFIG_DELL_SMBIOS_WMI are boolean rather than modules. CONFIG_DELL_SMBIOS is a visually selectable option again and both CONFIG_DELL_SMBIOS_WMI and CONFIG_DELL_SMBIOS_SMM are optional. Signed-off-by: Mario Limonciello

[PATCH] platform/x86: dell-laptop: Allocate buffer before rfkill use

2017-11-15 Thread Mario Limonciello
On machines using rfkill interface the buffer needs to have been allocated before the initial use (memset) of it. Reported-by: Valdis Kletnieks Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-laptop.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a

[PATCH] platform/x86: dell-smbios-wmi: Disable userspace interface if missing hotfix

2017-11-16 Thread Mario Limonciello
dispatcher. Suggested-by: Girish Prakash Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios-wmi.c | 14 ++ drivers/platform/x86/dell-wmi-descriptor.c | 26 -- drivers/platform/x86/dell-wmi-descriptor.h | 1 + 3 files changed, 39 insert

[PATCH v2] platform/x86: dell-smbios-wmi: Disable userspace interface if missing hotfix

2017-11-16 Thread Mario Limonciello
dispatcher. Suggested-by: Girish Prakash Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios-wmi.c | 13 + drivers/platform/x86/dell-wmi-descriptor.c | 26 -- drivers/platform/x86/dell-wmi-descriptor.h | 1 + 3 files changed, 38 insert

[PATCH] intel-wmi-thunderbolt: fix some error cases

2017-09-13 Thread Mario Limonciello
These were raised by Lukas Wunner as potential DOS attacks against the system log by passing bad data to sysfs. Signed-off-by: Mario Limonciello --- drivers/platform/x86/intel-wmi-thunderbolt.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/platform/x86/intel

[PATCH v3] Add driver to force WMI Thunderbolt controller power status

2017-09-08 Thread Mario Limonciello
. Signed-off-by: Mario Limonciello --- changes from v2 to v3: * Fix typographical error * Send KOBJ_CHANGE event changes from v1 to v2: * Add ABI documentation * Update thunderbolt.rst * Remove unnecessary cast * Remove unneeded whitespace * Adjust references of "Intel Wmi thunde

[PATCH] Add driver to force WMI Thunderbolt controller power status

2017-09-06 Thread Mario Limonciello
. Signed-off-by: Mario Limonciello --- MAINTAINERS | 5 ++ drivers/platform/x86/Kconfig | 13 drivers/platform/x86/Makefile| 1 + drivers/platform/x86/intel-wmi-thunderbolt.c | 97 4 files changed, 116

[PATCH v2] Add driver to force WMI Thunderbolt controller power status

2017-09-07 Thread Mario Limonciello
. Signed-off-by: Mario Limonciello --- changes from v1 to v2: * Add ABI documentation * Update thunderbolt.rst * Remove unnecessary cast * Remove unneeded whitespace * Adjust references of "Intel Wmi thunderbolt" -> "Intel WMI thunderbolt force power" .../testing/s

[PATCH] dell-wmi-led: Adjust instance of all wmi_evaluate_method calls to 0

2017-06-23 Thread Mario Limonciello
Pali recently noticed that WMI instances are zero indexed. The only reason that these calls all worked properly is because the ASL didn't verify the instance number. Signed-off-by: Louis Davis Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-wmi-led.c | 2 +- 1 file chang

[PATCH v4 07/14] platform/x86: dell-smbios: only run if proper oem string is detected

2017-10-04 Thread Mario Limonciello
The proper way to indicate that a system is a 'supported' Dell System is by the presence of this string in OEM strings. Allowing the driver to load on non-Dell systems will have undefined results. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 7 +

[PATCH v4 01/14] platform/x86: wmi: Add new method wmidev_evaluate_method

2017-10-04 Thread Mario Limonciello
Drivers properly using the wmibus can pass their wmi_device pointer rather than the GUID back to the WMI bus to evaluate the proper methods. Any "new" drivers added that use the WMI bus should use this rather than the old wmi_evaluate_method that would take the GUID. Signed-off

[PATCH v4 02/14] platform/x86: dell-wmi: clean up wmi descriptor check

2017-10-04 Thread Mario Limonciello
Some cases the wrong type was used for errors and checks can be done more cleanly. Signed-off-by: Mario Limonciello Reviewed-by: Edward O'Callaghan Suggested-by: Andy Shevchenko --- drivers/platform/x86/dell-wmi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --

[PATCH v4 00/14] Introduce support for Dell SMBIOS over WMI

2017-10-04 Thread Mario Limonciello
and SMI. If WMI is available, free the SMI buffer. * Reorder patches so all fixups come first in the series. Mario Limonciello (14): platform/x86: wmi: Add new method wmidev_evaluate_method platform/x86: dell-wmi: clean up wmi descriptor check platform/x86: dell-wmi: allow 32k return

[PATCH v4 14/14] platform/x86: Kconfig: Set default for dell-smbios to ACPI_WMI

2017-10-04 Thread Mario Limonciello
The dell-smbios driver no longer depends on dcdbas, and it should now be offered with the preferred WMI backend when the WMI bus is enabled. Signed-off-by: Mario Limonciello --- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/Kconfig b

[PATCH v4 13/14] platform/x86: dell-smbios-wmi: introduce userspace interface

2017-10-04 Thread Mario Limonciello
ovides the format of the structures. Signed-off-by: Mario Limonciello --- Documentation/ABI/testing/dell-smbios-wmi | 43 ++ .../ABI/testing/sysfs-platform-dell-smbios-wmi | 10 +++ MAINTAINERS| 1 + drivers/platform/x86/dell-sm

[PATCH v4 10/14] platform/x86: dell-smbios-smm: test for WSMT

2017-10-04 Thread Mario Limonciello
igned-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios-smm.c | 36 ++ 1 file changed, 36 insertions(+) diff --git a/drivers/platform/x86/dell-smbios-smm.c b/drivers/platform/x86/dell-smbios-smm.c index 2e1c5d2dfd61..3271e9a876e9 100644 --- a/dr

[PATCH v4 12/14] platform/x86: wmi: create character devices when requested by drivers

2017-10-04 Thread Mario Limonciello
is unloaded the WMI bus driver will clean up the character device. Signed-off-by: Mario Limonciello --- MAINTAINERS| 1 + drivers/platform/x86/wmi.c | 67 +- include/linux/wmi.h| 2 ++ include/uapi/linux/wmi.h | 10 +++ 4 fi

[PATCH v4 11/14] platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver

2017-10-04 Thread Mario Limonciello
operate over WMI-ACPI will use an ACPI OperationRegion for a buffer of data storage when SMM calls are performed. This is a safer approach to use in kernel drivers as the SMM will only have access to that OperationRegion. Signed-off-by: Mario Limonciello --- MAINTAINERS

[PATCH v4 05/14] platform/x86: dell-wmi-descriptor: split WMI descriptor into it's own driver

2017-10-04 Thread Mario Limonciello
. Signed-off-by: Mario Limonciello --- MAINTAINERS| 5 + drivers/platform/x86/Kconfig | 12 +++ drivers/platform/x86/Makefile | 1 + drivers/platform/x86/dell-wmi-descriptor.c | 162 + drivers/platform/x86/dell

[PATCH v4 03/14] platform/x86: dell-wmi: allow 32k return size in the descriptor

2017-10-04 Thread Mario Limonciello
Some platforms this year will be adopting 32k WMI buffer, so don't complain when encountering those. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/pla

[PATCH v4 09/14] platform/x86: dell-smbios: Introduce dispatcher for SMM calls

2017-10-04 Thread Mario Limonciello
Maintained F: drivers/platform/x86/dell-smbios.* +DELL SMBIOS SMM DRIVER +M: Mario Limonciello +L: platform-driver-...@vger.kernel.org +S: Maintained +F: drivers/platform/x86/dell-smbios-smm.* + DELL LAPTOP DRIVER M: Matthew Garrett M: Pali Rohár diff --git

[PATCH v4 06/14] platform/x86: wmi: Don't allow drivers to get each other's GUIDs

2017-10-04 Thread Mario Limonciello
-off-by: Mario Limonciello --- drivers/platform/x86/wmi.c | 17 - include/linux/wmi.h| 4 2 files changed, 21 deletions(-) diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 4d73a87c2ddf..bcb41c1c7f52 100644 --- a/drivers/platform/x86/wmi.c +++ b

[PATCH v4 08/14] platform/x86: dell-smbios: Add a sysfs interface for SMBIOS tokens

2017-10-04 Thread Mario Limonciello
intentionally marked to only be readable as root as it can contain sensitive information about the platform's configuration. MAINTAINERS was missing for this driver. Add myself and Pali to maintainers list for it. Signed-off-by: Mario Limonciello Suggested-by: Andy Shevchenko --- ..

[PATCH v4 04/14] platform/x86: dell-wmi: increase severity of some failures

2017-10-04 Thread Mario Limonciello
f the data should not be relied upon. For the remaining data set vectors, continue to notate a warning in undefined results, but as those are fields that the descriptor intended to refer to other applications, don't fail if they're new values. Signed-off-by: Mario Limonciello --- drive

[PATCH v6 02/14] platform/x86: dell-wmi: increase severity of some failures

2017-10-09 Thread Mario Limonciello
f the data should not be relied upon. For the remaining data set vectors, continue to notate a warning in undefined results, but as those are fields that the descriptor intended to refer to other applications, don't fail if they're new values. Signed-off-by: Mario Limonciello --- drive

[PATCH v6 00/14] Introduce support for Dell SMBIOS over WMI

2017-10-09 Thread Mario Limonciello
erface from character device. It doesn't make sense with multiple different ioctl methods. * Default WMI interface to 32k (This would normally be queried via MOF, but that's not possible yet) * Create separate buffers for WMI and SMI. If WMI is available, free the SMI buffer. *

[PATCH v6 01/14] platform/x86: wmi: Add new method wmidev_evaluate_method

2017-10-09 Thread Mario Limonciello
Drivers properly using the wmibus can pass their wmi_device pointer rather than the GUID back to the WMI bus to evaluate the proper methods. Any "new" drivers added that use the WMI bus should use this rather than the old wmi_evaluate_method that would take the GUID. Signed-off

[PATCH v6 14/14] platform/x86: dell-smbios-wmi: introduce userspace interface

2017-10-09 Thread Mario Limonciello
orted to a sysfs attribute. The API for interacting with this interface is defined in documentation as well as a uapi header provides the format of the structures. Signed-off-by: Mario Limonciello --- Documentation/ABI/testing/dell-smbios-wmi | 41 .../ABI/testing/sysfs-pla

[PATCH v6 13/14] platform/x86: wmi: create character devices when requested by drivers

2017-10-09 Thread Mario Limonciello
ded the WMI bus driver will clean up the character device. Signed-off-by: Mario Limonciello --- MAINTAINERS| 1 + drivers/platform/x86/wmi.c | 69 ++ include/linux/wmi.h| 3 ++ include/uapi/linux/wmi.h | 19 + 4 fi

[PATCH v6 09/14] platform/x86: dell-smbios: Introduce dispatcher for SMM calls

2017-10-09 Thread Mario Limonciello
NTAINERS b/MAINTAINERS index 2e3f2aea0370..8faf08ebcfee 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3974,6 +3974,12 @@ L: platform-driver-...@vger.kernel.org S: Maintained F: drivers/platform/x86/dell-smbios.* +DELL SMBIOS SMM DRIVER +M: Mario Limonciello +L: platf

[PATCH v6 11/14] platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver

2017-10-09 Thread Mario Limonciello
operate over WMI-ACPI will use an ACPI OperationRegion for a buffer of data storage when SMM calls are performed. This is a safer approach to use in kernel drivers as the SMM will only have access to that OperationRegion. Signed-off-by: Mario Limonciello --- MAINTAINERS

[PATCH v6 08/14] platform/x86: dell-smbios: Add a sysfs interface for SMBIOS tokens

2017-10-09 Thread Mario Limonciello
river. Add myself and Pali to maintainers list for it. Signed-off-by: Mario Limonciello --- .../ABI/testing/sysfs-platform-dell-smbios | 20 ++ MAINTAINERS| 7 + drivers/platform/x86/dell-smbios.c | 205 - 3

[PATCH v6 12/14] platform/x86: dell-smbios-smm: test for WSMT

2017-10-09 Thread Mario Limonciello
igned-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios-smm.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/platform/x86/dell-smbios-smm.c b/drivers/platform/x86/dell-smbios-smm.c index 223531e43fea..ba315753e847 100644 --- a/dr

[PATCH v6 07/14] platform/x86: dell-smbios: only run if proper oem string is detected

2017-10-09 Thread Mario Limonciello
The proper way to indicate that a system is a 'supported' Dell System is by the presence of this string in OEM strings. Allowing the driver to load on non-Dell systems will have undefined results. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 7 +

[PATCH v6 10/14] platform/x86: dell-smbios: add filtering capability for requests

2017-10-09 Thread Mario Limonciello
extended to also intercept calls that may cause kernel functionality to get out of sync if the same functions are used by other drivers. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 123 + drivers/platform/x86/dell-smbios.h | 2

[PATCH v6 06/14] platform/x86: wmi: Don't allow drivers to get each other's GUIDs

2017-10-09 Thread Mario Limonciello
-off-by: Mario Limonciello --- drivers/platform/x86/wmi.c | 17 - include/linux/wmi.h| 4 2 files changed, 21 deletions(-) diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 4d73a87c2ddf..bcb41c1c7f52 100644 --- a/drivers/platform/x86/wmi.c +++ b

[PATCH v6 05/14] platform/x86: dell-wmi-descriptor: split WMI descriptor into it's own driver

2017-10-09 Thread Mario Limonciello
. Signed-off-by: Mario Limonciello --- MAINTAINERS| 5 + drivers/platform/x86/Kconfig | 5 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/dell-wmi-descriptor.c | 162 + drivers/platform/x86/dell

[PATCH v6 03/14] platform/x86: dell-wmi: clean up wmi descriptor check

2017-10-09 Thread Mario Limonciello
Some cases the wrong type was used for errors and checks can be done more cleanly. Signed-off-by: Mario Limonciello Reviewed-by: Edward O'Callaghan Suggested-by: Andy Shevchenko --- drivers/platform/x86/dell-wmi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --

[PATCH v6 04/14] platform/x86: dell-wmi: allow 32k return size in the descriptor

2017-10-09 Thread Mario Limonciello
Some platforms this year will be adopting 32k WMI buffer, so don't complain when encountering those. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/pla

[PATCH v7 04/15] platform/x86: dell-wmi: allow 32k return size in the descriptor

2017-10-11 Thread Mario Limonciello
Some platforms this year will be adopting 32k WMI buffer, so don't complain when encountering those. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/pla

[PATCH v7 15/15] platform/x86: dell-smbios-wmi: introduce userspace interface

2017-10-11 Thread Mario Limonciello
orted to a sysfs attribute by the WMI bus in "required_buffer_size". The API for interacting with this interface is defined in documentation as well as the WMI uapi header provides the format of the structures. Signed-off-by: Mario Limonciello --- Documentation/ABI/testing/

[PATCH v7 14/15] platform/x86: wmi: create userspace interface for drivers

2017-10-11 Thread Mario Limonciello
ded the WMI bus driver will clean up the character device. Signed-off-by: Mario Limonciello --- MAINTAINERS| 1 + drivers/platform/x86/wmi.c | 115 + include/linux/wmi.h| 6 +++ include/uapi/linux/wmi.h | 24 ++ 4 fil

[PATCH v7 11/15] platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver

2017-10-11 Thread Mario Limonciello
operate over WMI-ACPI will use an ACPI OperationRegion for a buffer of data storage when SMM calls are performed. This is a safer approach to use in kernel drivers as the SMM will only have access to that OperationRegion. Signed-off-by: Mario Limonciello --- MAINTAINERS

[PATCH v7 02/15] platform/x86: dell-wmi: increase severity of some failures

2017-10-11 Thread Mario Limonciello
f the data should not be relied upon. For the remaining data set vectors, continue to notate a warning in undefined results, but as those are fields that the descriptor intended to refer to other applications, don't fail if they're new values. Signed-off-by: Mario Limonciello --- drive

[PATCH v7 09/15] platform/x86: dell-smbios: Introduce dispatcher for SMM calls

2017-10-11 Thread Mario Limonciello
AINTAINERS b/MAINTAINERS index 09e774f1d0b2..9dc1ee9603e7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3985,6 +3985,12 @@ L: platform-driver-...@vger.kernel.org S: Maintained F: drivers/platform/x86/dell-smbios.* +DELL SMBIOS SMM DRIVER +M: Mario Limonciello +L: platf

[PATCH v7 13/15] platform/x86: wmi: Add sysfs attribute for required_buffer_size

2017-10-11 Thread Mario Limonciello
Method type WMI objects need to be able to describe the size of the interface that they will expect to use. Export this information to sysfs and allow vendor drivers to set it. Signed-off-by: Mario Limonciello --- drivers/platform/x86/wmi.c | 31 +++ include/linux

[PATCH v7 12/15] platform/x86: dell-smbios-smm: test for WSMT

2017-10-11 Thread Mario Limonciello
igned-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios-smm.c | 35 ++ 1 file changed, 35 insertions(+) diff --git a/drivers/platform/x86/dell-smbios-smm.c b/drivers/platform/x86/dell-smbios-smm.c index b003d70ef7eb..0dbd28e78803 100644 --- a/dr

[PATCH v7 06/15] platform/x86: wmi: Don't allow drivers to get each other's GUIDs

2017-10-11 Thread Mario Limonciello
-off-by: Mario Limonciello --- drivers/platform/x86/wmi.c | 17 - include/linux/wmi.h| 4 2 files changed, 21 deletions(-) diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 4d73a87c2ddf..bcb41c1c7f52 100644 --- a/drivers/platform/x86/wmi.c +++ b

[PATCH v7 10/15] platform/x86: dell-smbios: add filtering capability for requests

2017-10-11 Thread Mario Limonciello
extended to also intercept calls that may cause kernel functionality to get out of sync if the same functions are used by other drivers. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 127 + drivers/platform/x86/dell-smbios.h | 2

<    1   2   3   4   >