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

2017-10-13 Thread Mario Limonciello
this to 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 <mario.limoncie...@dell.

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

2017-10-13 Thread Mario Limonciello
this to 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 v8 14/15] platform/x86: wmi: create userspace interface for drivers

2017-10-13 Thread Mario Limonciello
driver will clean up the character device. Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> --- MAINTAINERS| 1 + drivers/platform/x86/wmi.c | 116 + include/linux/wmi.h| 6 +++ include/uapi/linux/wmi.h

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

2017-10-13 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 <mario.limoncie...@dell.com> --- drivers/platform/x86/wmi.

[PATCH v8 12/15] platform/x86: dell-smbios: Add filtering support

2017-10-13 Thread Mario Limonciello
the request. - If the process provides CAP_SYS_RAWIO the whitelist will be overridden. When an item is not in the blacklist, or whitelist and the process is run with insufficient capabilities the call will be rejected. Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> --- drivers/pl

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

2017-10-13 Thread Mario Limonciello
driver will clean up the character device. Signed-off-by: Mario Limonciello --- MAINTAINERS| 1 + drivers/platform/x86/wmi.c | 116 + include/linux/wmi.h| 6 +++ include/uapi/linux/wmi.h | 26 ++ 4 files changed, 149

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

2017-10-13 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 v8 12/15] platform/x86: dell-smbios: Add filtering support

2017-10-13 Thread Mario Limonciello
the request. - If the process provides CAP_SYS_RAWIO the whitelist will be overridden. When an item is not in the blacklist, or whitelist and the process is run with insufficient capabilities the call will be rejected. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-smbios.c | 190

[PATCH v8 00/15] Introduce support for Dell SMBIOS over WMI

2017-10-13 Thread Mario Limonciello
xups come first in the series. Mario Limonciello (15): platform/x86: wmi: Add new method wmidev_evaluate_method platform/x86: dell-wmi: increase severity of some failures platform/x86: dell-wmi: clean up wmi descriptor check platform/x86: dell-wmi: allow 32k return size in the descriptor

[PATCH v8 00/15] Introduce support for Dell SMBIOS over WMI

2017-10-13 Thread Mario Limonciello
xups come first in the series. Mario Limonciello (15): platform/x86: wmi: Add new method wmidev_evaluate_method platform/x86: dell-wmi: increase severity of some failures platform/x86: dell-wmi: clean up wmi descriptor check platform/x86: dell-wmi: allow 32k return size in the descriptor

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

2017-10-13 Thread Mario Limonciello
of 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 <mario.limon

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

2017-10-13 Thread Mario Limonciello
of 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 --- drivers/platform/x86

Re: staging: rtsx: Add support for RTS5260

2017-10-13 Thread Mario Limonciello
On 10/13/2017 03:50 AM, rui_f...@realsil.com.cn wrote: From: rui_feng Add support for new chip rts5260. In order to support rts5260,the definitions of some internal registers and workflow have to be modified and are different from its predecessors and OCP function is

Re: staging: rtsx: Add support for RTS5260

2017-10-13 Thread Mario Limonciello
On 10/13/2017 03:50 AM, rui_f...@realsil.com.cn wrote: From: rui_feng Add support for new chip rts5260. In order to support rts5260,the definitions of some internal registers and workflow have to be modified and are different from its predecessors and OCP function is added for RTS5260. So we

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

2017-10-11 Thread Mario Limonciello
. Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> --- MAINTAINERS| 5 + drivers/platform/x86/Kconfig | 5 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/dell-wmi-descriptor.c

[PATCH v7 03/15] platform/x86: dell-wmi: clean up wmi descriptor check

2017-10-11 Thread Mario Limonciello
Some cases the wrong type was used for errors and checks can be done more cleanly. Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> Reviewed-by: Edward O'Callaghan <quasi...@google.com> Suggested-by: Andy Shevchenko <andy.shevche...@gmail.com> --- drivers/platf

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

2017-10-11 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 v7 03/15] platform/x86: dell-wmi: clean up wmi descriptor check

2017-10-11 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 --git

[PATCH v7 00/15] Introduce support for Dell SMBIOS over WMI

2017-10-11 Thread Mario Limonciello
e buffers for WMI and SMI. If WMI is available, free the SMI buffer. * Reorder patches so all fixups come first in the series. Mario Limonciello (15): platform/x86: wmi: Add new method wmidev_evaluate_method platform/x86: dell-wmi: increase severity of some failures platform/x86: dell-wmi: cle

[PATCH v7 00/15] Introduce support for Dell SMBIOS over WMI

2017-10-11 Thread Mario Limonciello
e buffers for WMI and SMI. If WMI is available, free the SMI buffer. * Reorder patches so all fixups come first in the series. Mario Limonciello (15): platform/x86: wmi: Add new method wmidev_evaluate_method platform/x86: dell-wmi: increase severity of some failures platform/x86: dell-wmi: cle

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

2017-10-11 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 <mario.limoncie...@dell.com> --- drivers/platform/x8

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

2017-10-11 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 +++ 1 file

[PATCH v7 01/15] platform/x86: wmi: Add new method wmidev_evaluate_method

2017-10-11 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 v7 01/15] platform/x86: wmi: Add new method wmidev_evaluate_method

2017-10-11 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 v7 08/15] platform/x86: dell-smbios: Add a sysfs interface for SMBIOS tokens

2017-10-11 Thread Mario Limonciello
. Add myself and Pali to maintainers list for it. Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> --- .../ABI/testing/sysfs-platform-dell-smbios | 20 ++ MAINTAINERS| 7 + drivers/platform/x86/dell-smbios.c

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

2017-10-11 Thread Mario Limonciello
. 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 files

[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 <mario.limoncie...@dell.com> --- drivers/platform/x86/dell-smbios.c | 127 + d

[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

[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 <mario.limoncie...@dell.com> --- 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

[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 12/15] platform/x86: dell-smbios-smm: test for WSMT

2017-10-11 Thread Mario Limonciello
-off-by: Mario Limonciello <mario.limoncie...@dell.com> --- 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..0dbd28

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

2017-10-11 Thread Mario Limonciello
-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/drivers

[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 <mario.limoncie...@dell.com> --- drivers/platform/x86/wmi.

[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 09/15] platform/x86: dell-smbios: Introduce dispatcher for SMM calls

2017-10-11 Thread Mario Limonciello
smbios-smm.c diff --git a/MAINTAINERS 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 Limon

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

2017-10-11 Thread Mario Limonciello
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: platform-driver

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

2017-10-11 Thread Mario Limonciello
of 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 <mario.limon

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

2017-10-11 Thread Mario Limonciello
of 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 --- drivers/platform/x86

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

2017-10-11 Thread Mario Limonciello
this to 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 <mario.limoncie...@dell.

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

2017-10-11 Thread Mario Limonciello
this to 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 14/15] platform/x86: wmi: create userspace interface for drivers

2017-10-11 Thread Mario Limonciello
driver will clean up the character device. Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> --- MAINTAINERS| 1 + drivers/platform/x86/wmi.c | 115 + include/linux/wmi.h| 6 +++ include/uapi/linux/wmi.h

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

2017-10-11 Thread Mario Limonciello
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 files changed, 146

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

2017-10-11 Thread Mario Limonciello
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 <mario.limoncie...@dell.com> --- Documentation/

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

2017-10-11 Thread Mario Limonciello
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/dell-smbio

[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 <mario.limoncie...@dell.com> --- drivers/platform/x86/dell-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x8

[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/platform

[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 <mario.limoncie...@dell.com> --- drivers/platform/x86/dell-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x8

[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/platform

[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 <mario.limoncie...@dell.com> Reviewed-by: Edward O'Callaghan <quasi...@google.com> Suggested-by: Andy Shevchenko <andy.shevche...@gmail.com> --- drivers/platf

[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 --git

[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 <mario.limoncie...@dell.com> --- 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

[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 <mario.limoncie...@dell.com> --- MAINTAINERS| 5 + drivers/platform/x86/Kconfig | 5 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/dell-wmi-descriptor.c

[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 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 <mario.limoncie...@dell.com> --- drivers/platform/x86/dell-smbios.c | 123 + d

[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 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 <mario.limoncie...@dell.com> --- drivers/platform/x8

[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 +++ 1 file

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

2017-10-09 Thread Mario Limonciello
-off-by: Mario Limonciello <mario.limoncie...@dell.com> --- 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..ba3157

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

2017-10-09 Thread Mario Limonciello
-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/drivers

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

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

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

2017-10-09 Thread Mario Limonciello
. 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 files

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

2017-10-09 Thread Mario Limonciello
this to 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 <mario.limoncie...@dell.

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

2017-10-09 Thread Mario Limonciello
this to 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 09/14] platform/x86: dell-smbios: Introduce dispatcher for SMM calls

2017-10-09 Thread Mario Limonciello
-smm.c diff --git a/MAINTAINERS 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 Limon

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

2017-10-09 Thread Mario Limonciello
/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: platform-driver

[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 13/14] platform/x86: wmi: create character devices when requested by drivers

2017-10-09 Thread Mario Limonciello
driver will clean up the character device. Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> --- MAINTAINERS| 1 + drivers/platform/x86/wmi.c | 69 ++ include/linux/wmi.h| 3 ++ include/uapi/linux/wmi.h

[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 13/14] platform/x86: wmi: create character devices when requested by drivers

2017-10-09 Thread Mario Limonciello
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 files changed, 92

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

2017-10-09 Thread Mario Limonciello
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 <mario.limoncie...@dell.com> --- Documentation/ABI/testing/dell-smbios-wmi | 41 .

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

2017-10-09 Thread Mario Limonciello
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-platform-dell

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

2017-10-09 Thread Mario Limonciello
fault 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. * Reorder patches so all fixups come first in the series. Mario Limonciello (14): platform/x86: wmi: Add n

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

2017-10-09 Thread Mario Limonciello
fault 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. * Reorder patches so all fixups come first in the series. Mario Limonciello (14): platform/x86: wmi: Add n

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

2017-10-09 Thread Mario Limonciello
of 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 <mario.limon

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

2017-10-09 Thread Mario Limonciello
of 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 --- drivers/platform/x86

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

2017-10-06 Thread Mario Limonciello
of 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 <mario.limon

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

2017-10-06 Thread Mario Limonciello
of 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 --- drivers/platform/x86

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

2017-10-06 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 v5 01/14] platform/x86: wmi: Add new method wmidev_evaluate_method

2017-10-06 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 v5 03/14] platform/x86: dell-wmi: clean up wmi descriptor check

2017-10-06 Thread Mario Limonciello
Some cases the wrong type was used for errors and checks can be done more cleanly. Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> Reviewed-by: Edward O'Callaghan <quasi...@google.com> Suggested-by: Andy Shevchenko <andy.shevche...@gmail.com> --- drivers/platf

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

2017-10-06 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 <mario.limoncie...@dell.com> --- drivers/platform/x8

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

2017-10-06 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 --git

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

2017-10-06 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 +++ 1 file

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

2017-10-06 Thread Mario Limonciello
. This is 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 <mario.limoncie...@dell.com> --- .../ABI/t

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

2017-10-06 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 <mario.limoncie...@dell.com> --- drivers/platform/x86/dell-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x8

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

2017-10-06 Thread Mario Limonciello
. This is 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 --- .../ABI/testing/sysfs-platform-dell-smbios

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

2017-10-06 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/platform

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

2017-10-06 Thread Mario Limonciello
smbios-smm.c diff --git a/MAINTAINERS 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 Limon

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

2017-10-06 Thread Mario Limonciello
. Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> --- MAINTAINERS| 5 + drivers/platform/x86/Kconfig | 5 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/dell-wmi-descriptor.c

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

2017-10-06 Thread Mario Limonciello
eried via MOF, but that's not possible yet) * Create separate buffers for WMI 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:

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

2017-10-06 Thread Mario Limonciello
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: platform-driver

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

2017-10-06 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 v5 00/14] Introduce support for Dell SMBIOS over WMI

2017-10-06 Thread Mario Limonciello
eried via MOF, but that's not possible yet) * Create separate buffers for WMI 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:

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

2017-10-06 Thread Mario Limonciello
this to 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 <mario.limoncie...@dell.

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

2017-10-06 Thread Mario Limonciello
this to 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 v5 10/14] platform/x86: dell-smbios: add filtering capability for requests

2017-10-06 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 <mario.limoncie...@dell.com> --- drivers/platform/x86/dell-smbios.c | 76 ++ d

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

2017-10-06 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 | 76 ++ drivers/platform/x86/dell-smbios.h | 2

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

2017-10-06 Thread Mario Limonciello
driver will clean up the character device. Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> --- MAINTAINERS| 1 + drivers/platform/x86/wmi.c | 85 ++ include/linux/wmi.h| 5 +++ include/uapi/linux/wmi.h

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

2017-10-06 Thread Mario Limonciello
driver will clean up the character device. Signed-off-by: Mario Limonciello --- MAINTAINERS| 1 + drivers/platform/x86/wmi.c | 85 ++ include/linux/wmi.h| 5 +++ include/uapi/linux/wmi.h | 19 +++ 4 files changed, 110

<    1   2   3   4   5   6   7   8   >