Re: [PATCH] platform/x86: wmi: Do not mix pages and kmalloc

2018-06-20 Thread Darren Hart
On Wed, Jun 20, 2018 at 04:43:14PM -0700, Kees Cook wrote: > On Wed, Jun 20, 2018 at 4:37 PM, Darren Hart wrote: > > On Wed, Jun 20, 2018 at 02:31:41PM -0700, Kees Cook wrote: > >> The probe handler_data was being allocated with __get_free_pages() > >> for no reason I

Re: [PATCH] platform/x86: wmi: Do not mix pages and kmalloc

2018-06-20 Thread Darren Hart
ree_pages((unsigned long)wblock->handler_data, > -get_order(wblock->req_buf_size)); > + kfree(wblock->handler_data); > } > > if (wdriver->remove) > -- > 2.17.1 > > > -- > Kees Cook > Pixel Security > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH] platform/x86: wmi: Do not mix pages and kmalloc

2018-06-20 Thread Darren Hart
ree_pages((unsigned long)wblock->handler_data, > -get_order(wblock->req_buf_size)); > + kfree(wblock->handler_data); > } > > if (wdriver->remove) > -- > 2.17.1 > > > -- > Kees Cook > Pixel Security > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v6 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-19 Thread Darren Hart
ng queue. Once the builds complete, I'll move these to for-next. Vadim, I see you've already updated the kernel version in the sys documentation to 4.19, so I won't attempt to push these into the 4.18 RC cycle. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v6 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-19 Thread Darren Hart
ng queue. Once the builds complete, I'll move these to for-next. Vadim, I see you've already updated the kernel version in the sys documentation to 4.19, so I won't attempt to push these into the 4.18 RC cycle. -- Darren Hart VMware Open Source Technology Center

[GIT PULL] platform-drivers-x86 for 4.18-1

2018-06-13 Thread Darren Hart
to 26ed9d1c07efa5c3a3810dbb7c668e132e91d426: platform/x86: silead_dmi: Add entry for Chuwi Hi8 tablet touchscreen (2018-06-08 14:22:15 +0300) Thanks, Darren Hart VMware Open Source Technology Center platform-drivers-x86 for v4.18

[GIT PULL] platform-drivers-x86 for 4.18-1

2018-06-13 Thread Darren Hart
to 26ed9d1c07efa5c3a3810dbb7c668e132e91d426: platform/x86: silead_dmi: Add entry for Chuwi Hi8 tablet touchscreen (2018-06-08 14:22:15 +0300) Thanks, Darren Hart VMware Open Source Technology Center platform-drivers-x86 for v4.18

Re: linux-next: build failure after merge of the drivers-x86 tree

2018-06-11 Thread Darren Hart
Thank you Stephen. We caught this earlier, but failed to remove it from for-next while repairing the series. Our apologies. I have removed this series back to the known good patch in for-next: 26ed9d1 platform/x86: silead_dmi: Add entry for Chuwi Hi8 tablet touchscreen Andy has this reworked already and is working on completing testing before pushing the update to for-next. -- Darren Hart VMware Open Source Technology Center

Re: linux-next: build failure after merge of the drivers-x86 tree

2018-06-11 Thread Darren Hart
Thank you Stephen. We caught this earlier, but failed to remove it from for-next while repairing the series. Our apologies. I have removed this series back to the known good patch in for-next: 26ed9d1 platform/x86: silead_dmi: Add entry for Chuwi Hi8 tablet touchscreen Andy has this reworked already and is working on completing testing before pushing the update to for-next. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH resend v2] dcdbas: Add support for WSMT ACPI table

2018-06-08 Thread Darren Hart
+ smi_data_buf_size = (unsigned long) min(eps->num_of_4k_pages * 4096 > > - 8, > > + (u64) ULONG_MAX); > > This is too twisted code. First, it needs explanation. > Second, it might need some refactoring. > > (Yes, I got the idea, but would it be better implementation?) > > > + max_smi_data_buf_size = smi_data_buf_size; > > + wsmt_enabled = true; > > + dev_info(_pdev->dev, > > +"WSMT found, using firmware-provided SMI buffer.\n"); > > + return 1; > > +} > > > #define SMI_CMD_MAGIC (0x534D4931) > > > > +#define SMM_EPS_SIG"$SCB" > > Just integer like above and put the sting as a comment. > (Side note: above magic also looks like string) Given the above, I think we can use the more recognizable string - since that is clearly how they think of this label. Otherwise, agree with a follow-up to all of Andy's feedback. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH resend v2] dcdbas: Add support for WSMT ACPI table

2018-06-08 Thread Darren Hart
+ smi_data_buf_size = (unsigned long) min(eps->num_of_4k_pages * 4096 > > - 8, > > + (u64) ULONG_MAX); > > This is too twisted code. First, it needs explanation. > Second, it might need some refactoring. > > (Yes, I got the idea, but would it be better implementation?) > > > + max_smi_data_buf_size = smi_data_buf_size; > > + wsmt_enabled = true; > > + dev_info(_pdev->dev, > > +"WSMT found, using firmware-provided SMI buffer.\n"); > > + return 1; > > +} > > > #define SMI_CMD_MAGIC (0x534D4931) > > > > +#define SMM_EPS_SIG"$SCB" > > Just integer like above and put the sting as a comment. > (Side note: above magic also looks like string) Given the above, I think we can use the more recognizable string - since that is clearly how they think of this label. Otherwise, agree with a follow-up to all of Andy's feedback. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-08 Thread Darren Hart
cycle being handled in the kernel. 2) Why is a module option preferable to a compile time option? It seems to me the policy will be largely distro dependent, and the same kernel needing to support both modes seems likely to be pretty rare. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-08 Thread Darren Hart
cycle being handled in the kernel. 2) Why is a module option preferable to a compile time option? It seems to me the policy will be largely distro dependent, and the same kernel needing to support both modes seems likely to be pretty rare. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v5 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-06-08 Thread Darren Hart
> Signed-off-by: Vadim Pasternak No further comments on patch 7 or 8. Thanks for the updates. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v5 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-06-08 Thread Darren Hart
> Signed-off-by: Vadim Pasternak No further comments on patch 7 or 8. Thanks for the updates. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v5 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-08 Thread Darren Hart
r = mlxreg_io_attr_init(priv); > + if (err) { > + dev_err(>pdev->dev, "Failed to allocate attributes: %d\n", > + err); > + return err; > + } > + > + priv->hwmon = devm_hwmon_device_register_with_groups(>dev, > + "mlxreg_io", > + priv, > + priv->groups); > + if (IS_ERR(priv->hwmon)) { > + dev_err(>dev, "Failed to register hwmon device %ld\n", > + PTR_ERR(priv->hwmon)); > + return PTR_ERR(priv->hwmon); > + } > + > + dev_set_drvdata(>dev, priv); > + > + return 0; > +} > + > +static struct platform_driver mlxreg_io_driver = { > + .driver = { > + .name = "mlxreg-io", > + }, > + .probe = mlxreg_io_probe, > +}; > + > +module_platform_driver(mlxreg_io_driver); > + > +MODULE_AUTHOR("Vadim Pasternak "); > +MODULE_DESCRIPTION("Mellanox regmap I/O access driver"); > +MODULE_LICENSE("GPL"); > +MODULE_ALIAS("platform:mlxreg-io"); > -- > 2.1.4 > > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v5 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-08 Thread Darren Hart
r = mlxreg_io_attr_init(priv); > + if (err) { > + dev_err(>pdev->dev, "Failed to allocate attributes: %d\n", > + err); > + return err; > + } > + > + priv->hwmon = devm_hwmon_device_register_with_groups(>dev, > + "mlxreg_io", > + priv, > + priv->groups); > + if (IS_ERR(priv->hwmon)) { > + dev_err(>dev, "Failed to register hwmon device %ld\n", > + PTR_ERR(priv->hwmon)); > + return PTR_ERR(priv->hwmon); > + } > + > + dev_set_drvdata(>dev, priv); > + > + return 0; > +} > + > +static struct platform_driver mlxreg_io_driver = { > + .driver = { > + .name = "mlxreg-io", > + }, > + .probe = mlxreg_io_probe, > +}; > + > +module_platform_driver(mlxreg_io_driver); > + > +MODULE_AUTHOR("Vadim Pasternak "); > +MODULE_DESCRIPTION("Mellanox regmap I/O access driver"); > +MODULE_LICENSE("GPL"); > +MODULE_ALIAS("platform:mlxreg-io"); > -- > 2.1.4 > > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH resend v2] dcdbas: Add support for WSMT ACPI table

2018-06-08 Thread Darren Hart
ister(_driver); > > } > > diff --git a/drivers/firmware/dcdbas.h b/drivers/firmware/dcdbas.h > > index ca3cb0a54ab6..7ea5b3e070b9 100644 > > --- a/drivers/firmware/dcdbas.h > > +++ b/drivers/firmware/dcdbas.h > > @@ -54,6 +54,8 @@ > > > > #define SMI_CMD_MAGIC (0x534D4931) > > > > +#define SMM_EPS_SIG"$SCB" > > + > > #define DCDBAS_DEV_ATTR_RW(_name) \ > > DEVICE_ATTR(_name,0600,_name##_show,_name##_store); > > > > @@ -103,5 +105,14 @@ struct apm_cmd { > > > > int dcdbas_smi_request(struct smi_cmd *smi_cmd); > > > > +struct smm_eps_table { > > + char smm_comm_buff_anchor[4]; > > + u8 length; > > + u8 checksum; > > + u8 version; > > + u64 smm_comm_buff_addr; > > + u64 num_of_4k_pages; > > +} __packed; > > + > > #endif /* _DCDBAS_H_ */ > > > > -- > > 2.14.2 > > Darren, Andy, > > Stuart and I were hoping you guys could bring this through the > platform-driver-x86 tree. > The logic behind this is that the only consumer for dcdbas in kernel is > dell-smbios. > > There isn't a subsystem maintainer for someone to pull in dcdbas even though > the > current maintainer (Doug W) has acked it. Apologies for the delay. I'm OK bringing it in in general. I'm reviewing patches today and tomorrow to try and close out the backlog. Should have a review by EOD tomorrow. I've been wondering about drivers/firmware anyway - that is almost by definition platform specific and might make more sense as part of the platform drivers, especially if it is currently without a maintainer (although akpm will often take such things). -- Darren Hart VMware Open Source Technology Center

Re: [PATCH resend v2] dcdbas: Add support for WSMT ACPI table

2018-06-08 Thread Darren Hart
ister(_driver); > > } > > diff --git a/drivers/firmware/dcdbas.h b/drivers/firmware/dcdbas.h > > index ca3cb0a54ab6..7ea5b3e070b9 100644 > > --- a/drivers/firmware/dcdbas.h > > +++ b/drivers/firmware/dcdbas.h > > @@ -54,6 +54,8 @@ > > > > #define SMI_CMD_MAGIC (0x534D4931) > > > > +#define SMM_EPS_SIG"$SCB" > > + > > #define DCDBAS_DEV_ATTR_RW(_name) \ > > DEVICE_ATTR(_name,0600,_name##_show,_name##_store); > > > > @@ -103,5 +105,14 @@ struct apm_cmd { > > > > int dcdbas_smi_request(struct smi_cmd *smi_cmd); > > > > +struct smm_eps_table { > > + char smm_comm_buff_anchor[4]; > > + u8 length; > > + u8 checksum; > > + u8 version; > > + u64 smm_comm_buff_addr; > > + u64 num_of_4k_pages; > > +} __packed; > > + > > #endif /* _DCDBAS_H_ */ > > > > -- > > 2.14.2 > > Darren, Andy, > > Stuart and I were hoping you guys could bring this through the > platform-driver-x86 tree. > The logic behind this is that the only consumer for dcdbas in kernel is > dell-smbios. > > There isn't a subsystem maintainer for someone to pull in dcdbas even though > the > current maintainer (Doug W) has acked it. Apologies for the delay. I'm OK bringing it in in general. I'm reviewing patches today and tomorrow to try and close out the backlog. Should have a review by EOD tomorrow. I've been wondering about drivers/firmware anyway - that is almost by definition platform specific and might make more sense as part of the platform drivers, especially if it is currently without a maintainer (although akpm will often take such things). -- Darren Hart VMware Open Source Technology Center

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-04 Thread Darren Hart
gt; dimming / auto-off of the kbd backlight when the no keys are > touched for x seconds. This would seriously get in the way of that. > > So sorry, but NACK to this series. So if instead of modifying the LED value, the kernel platform drivers converted the TOGGLE into a cycle even by conve

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-04 Thread Darren Hart
gt; dimming / auto-off of the kbd backlight when the no keys are > touched for x seconds. This would seriously get in the way of that. > > So sorry, but NACK to this series. So if instead of modifying the LED value, the kernel platform drivers converted the TOGGLE into a cycle even by conve

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-04 Thread Darren Hart
(code == NOTIFY_KBD_BRTDWN) { kbd_led_set(>kbd_led, asus->kbd_led_wk - 1); goto exit; } if (code == NOTIFY_KBD_BRTUP) { kbd_led_set(>kbd_led, asus->kbd_led_wk + 1); goto exit; } > if (is_display_toggle(code) && > asus->driver->quirks->no_display_toggle) > goto exit; > -- > 2.11.0 > > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH 1/2] platform/x86: asus-wmi: Call new led hw_changed API on kbd brightness change

2018-06-04 Thread Darren Hart
(code == NOTIFY_KBD_BRTDWN) { kbd_led_set(>kbd_led, asus->kbd_led_wk - 1); goto exit; } if (code == NOTIFY_KBD_BRTUP) { kbd_led_set(>kbd_led, asus->kbd_led_wk + 1); goto exit; } > if (is_display_toggle(code) && > asus->driver->quirks->no_display_toggle) > goto exit; > -- > 2.11.0 > > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2] platform/x86: asus-wmi: Add keyboard backlight toggle support

2018-06-04 Thread Darren Hart
rectly show the OSD when this is done. This makes sense. Userspace can't be aware of every platforms sys files, so there needs to be a common mechanism. LED_BRIGHT_HW_CHANGED makes sense. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2] platform/x86: asus-wmi: Add keyboard backlight toggle support

2018-06-04 Thread Darren Hart
rectly show the OSD when this is done. This makes sense. Userspace can't be aware of every platforms sys files, so there needs to be a common mechanism. LED_BRIGHT_HW_CHANGED makes sense. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v4 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-06-04 Thread Darren Hart
:May 2018 > +KernelVersion: 4.18 > +Contact: Vadim Pasternak > +Description: These files allow assert system's power cycling and PS units > + on/off switching. This Description is awkward. Consider: These files allow asserting system power cycling and switching power supply units on and off. > + The files are write only. Please provide usage and resulting behavior. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v4 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces

2018-06-04 Thread Darren Hart
:May 2018 > +KernelVersion: 4.18 > +Contact: Vadim Pasternak > +Description: These files allow assert system's power cycling and PS units > + on/off switching. This Description is awkward. Consider: These files allow asserting system power cycling and switching power supply units on and off. > + The files are write only. Please provide usage and resulting behavior. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v4 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-04 Thread Darren Hart
iv) ... > + for (i = 0; i < priv->pdata->counter; i++) { > + priv->mlxreg_io_attr[i] = > + >mlxreg_io_dev_attr[i].dev_attr.attr; > + memcpy(>mlxreg_io_dev_attr[i].dev_attr, > +_io_devattr_rw, sizeof(struct device_attribute)); > + > + /* Set attribute name as a label. */ :-) OK, so this comment is rather obvious from the code but where things are really opaque in the processing above, there are no comments. Let's focus the comments where the code is non-obvious. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v4 6/8] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-04 Thread Darren Hart
iv) ... > + for (i = 0; i < priv->pdata->counter; i++) { > + priv->mlxreg_io_attr[i] = > + >mlxreg_io_dev_attr[i].dev_attr.attr; > + memcpy(>mlxreg_io_dev_attr[i].dev_attr, > +_io_devattr_rw, sizeof(struct device_attribute)); > + > + /* Set attribute name as a label. */ :-) OK, so this comment is rather obvious from the code but where things are really opaque in the processing above, there are no comments. Let's focus the comments where the code is non-obvious. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v3 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-01 Thread Darren Hart
are defined per system type bases and includes the registers > > > > related > > > > + to system resets operation, system reset causes monitoring > > > > and some > > > > + kinds of mux selection. > > > > > > No Documentation/ABI/ entries for these new sysfs files? Not good :( > > > > > > > Thanks Greg for your comment. > > > > Should I call doc file like: > > Documentation/ABI/stable/sysfs-driver-mlxreg-io > > ? > > What ever matches the naming scheme for the driver, yes. Vadim, I'm happy to help out with the docs if you like. Will you be able to document this in a static way, or is this likely to change significantly from platform to platform? I ask because of the automated attribute creation in the code. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v3 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-06-01 Thread Darren Hart
are defined per system type bases and includes the registers > > > > related > > > > + to system resets operation, system reset causes monitoring > > > > and some > > > > + kinds of mux selection. > > > > > > No Documentation/ABI/ entries for these new sysfs files? Not good :( > > > > > > > Thanks Greg for your comment. > > > > Should I call doc file like: > > Documentation/ABI/stable/sysfs-driver-mlxreg-io > > ? > > What ever matches the naming scheme for the driver, yes. Vadim, I'm happy to help out with the docs if you like. Will you be able to document this in a static way, or is this likely to change significantly from platform to platform? I ask because of the automated attribute creation in the code. -- Darren Hart VMware Open Source Technology Center

Re: [RESEND] [PATCH] platform/x86: dell-wmi: Ignore new rfkill and fn-lock events

2018-06-01 Thread Darren Hart
r Darren's queue, but for some reason > didn't processed yet. Thanks for getting this one Andy. I'm traveling, but am working through these currently. I'll assume you are handling this one. -- Darren Hart VMware Open Source Technology Center

Re: [RESEND] [PATCH] platform/x86: dell-wmi: Ignore new rfkill and fn-lock events

2018-06-01 Thread Darren Hart
r Darren's queue, but for some reason > didn't processed yet. Thanks for getting this one Andy. I'm traveling, but am working through these currently. I'll assume you are handling this one. -- Darren Hart VMware Open Source Technology Center

Re: linux-next: Signed-off-by missing for commit in the drivers-x86 tree

2018-06-01 Thread Darren Hart
ant the > "gitk" invocation if you are doing this automatically, of course. The > script just takes a commit range. Thanks for sharing Stephen. -- Darren Hart VMware Open Source Technology Center

Re: linux-next: Signed-off-by missing for commit in the drivers-x86 tree

2018-06-01 Thread Darren Hart
ant the > "gitk" invocation if you are doing this automatically, of course. The > script just takes a commit range. Thanks for sharing Stephen. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-26 Thread Darren Hart
On Sat, May 26, 2018 at 11:15:35AM +, Vadim Pasternak wrote: > > > > -Original Message- > > From: Darren Hart [mailto:dvh...@infradead.org] > > Sent: Friday, May 25, 2018 3:31 AM > > To: Vadim Pasternak <vad...@mellanox.com> &g

Re: [PATCH v2 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-26 Thread Darren Hart
On Sat, May 26, 2018 at 11:15:35AM +, Vadim Pasternak wrote: > > > > -Original Message- > > From: Darren Hart [mailto:dvh...@infradead.org] > > Sent: Friday, May 25, 2018 3:31 AM > > To: Vadim Pasternak > > Cc: andy.shevche...@gmail.com; gre...

Re: media: uvcvideo: Support realtek's UVC 1.5 device

2018-05-24 Thread Darren Hart
). Took a looking at linux-next today, I didn't see it. Anything else needed to get this queued up? We'd love to get this in the 4.18 merge window, and stable if possible. -- Darren Hart VMware Open Source Technology Center

Re: media: uvcvideo: Support realtek's UVC 1.5 device

2018-05-24 Thread Darren Hart
ial media who has also confirmed this to solve her camera issue with her Dell XPS 13 (I didn't get the specific model). Took a looking at linux-next today, I didn't see it. Anything else needed to get this queued up? We'd love to get this in the 4.18 merge window, and stable if possible. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-24 Thread Darren Hart
mlxreg_io_attr_show; > + priv->mlxreg_io_dev_attr[i].dev_attr.store = > + mlxreg_io_attr_store; > + break; If this is necessary, we can simplify this by checking for the read mask and the write mask and setting each once - rather than duplicating this for r, w, and rw. As it is a 0400 would not assign the show function, even though it is readable by somebody. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-24 Thread Darren Hart
mlxreg_io_attr_show; > + priv->mlxreg_io_dev_attr[i].dev_attr.store = > + mlxreg_io_attr_store; > + break; If this is necessary, we can simplify this by checking for the read mask and the write mask and setting each once - rather than duplicating this for r, w, and rw. As it is a 0400 would not assign the show function, even though it is readable by somebody. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2 5/7] platform/x86: mlx-platform: Add LED platform driver activation

2018-05-24 Thread Darren Hart
unctions from mlxreg.h file; Please remember to put the patch changelog below the --- line below. > --- Here Queued up for testing, thanks. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2 5/7] platform/x86: mlx-platform: Add LED platform driver activation

2018-05-24 Thread Darren Hart
file; Please remember to put the patch changelog below the --- line below. > --- Here Queued up for testing, thanks. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-05-24 Thread Darren Hart
sider dependencies. I've fixed the sha in the commit message, and queued for testing. Thanks, -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-05-24 Thread Darren Hart
sider dependencies. I've fixed the sha in the commit message, and queued for testing. Thanks, -- Darren Hart VMware Open Source Technology Center

[GIT PULL] platform-drivers-x86 for 4.17-3

2018-05-18 Thread Darren Hart
ing for this Kconfig to try and catch more of this - and of course I've learned a few things to look out for as well. Thanks, Darren Hart VMware Open Source Technology Center The following changes since commit 7fe3fa3b5ec8e75389cce4bf5d052a52e6198d59: platform/x86: Kconfig: Fix dell-laptop dependenc

[GIT PULL] platform-drivers-x86 for 4.17-3

2018-05-18 Thread Darren Hart
ing for this Kconfig to try and catch more of this - and of course I've learned a few things to look out for as well. Thanks, Darren Hart VMware Open Source Technology Center The following changes since commit 7fe3fa3b5ec8e75389cce4bf5d052a52e6198d59: platform/x86: Kconfig: Fix dell-laptop dependenc

Re: drivers/platform/x86/dell-smbios-smm.c:99: undefined reference to `dcdbas_smi_request'

2018-05-12 Thread Darren Hart
On Sat, May 12, 2018 at 11:51:02AM -0700, Randy Dunlap wrote: > On 05/12/2018 11:32 AM, Darren Hart wrote: > > On Sat, May 12, 2018 at 05:28:05PM +0800, kbuild test robot wrote: > >> Hi Mario, > >> > >> FYI, the error/warning still remains. > >> >

Re: drivers/platform/x86/dell-smbios-smm.c:99: undefined reference to `dcdbas_smi_request'

2018-05-12 Thread Darren Hart
On Sat, May 12, 2018 at 11:51:02AM -0700, Randy Dunlap wrote: > On 05/12/2018 11:32 AM, Darren Hart wrote: > > On Sat, May 12, 2018 at 05:28:05PM +0800, kbuild test robot wrote: > >> Hi Mario, > >> > >> FYI, the error/warning still remains. > >> >

Re: drivers/platform/x86/dell-smbios-smm.c:99: undefined reference to `dcdbas_smi_request'

2018-05-12 Thread Darren Hart
tristate "Dell SMBIOS driver" + depends on DCDBAS || DCDBAS=n -- Darren Hart VMware Open Source Technology Center

Re: drivers/platform/x86/dell-smbios-smm.c:99: undefined reference to `dcdbas_smi_request'

2018-05-12 Thread Darren Hart
tristate "Dell SMBIOS driver" + depends on DCDBAS || DCDBAS=n -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 0/7] platform/x86: Mellanox add fixes and new features

2018-05-11 Thread Darren Hart
Activation of Mellanox LED driver from mlx-platform. > > Introduction of new mlxreg-io driver. > > Activation of mlxreg-io driver from mlx-platform. Patches 1,2 are queued up. Dropping 3-7 and reviewing them now from v2. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 0/7] platform/x86: Mellanox add fixes and new features

2018-05-11 Thread Darren Hart
Activation of Mellanox LED driver from mlx-platform. > > Introduction of new mlxreg-io driver. > > Activation of mlxreg-io driver from mlx-platform. Patches 1,2 are queued up. Dropping 3-7 and reviewing them now from v2. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH] selftests: futex: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-11 Thread Darren Hart
t;sh...@kernel.org> I was concerned because this override was a deliberate decision made in: 9705315b7562 selftests/futex: Update Makefile to use lib.mk But reviewing lib.mk today, the RUN_TESTS and EMIT_TESTS perform the same function running TEST_PROGS. Reviewed-by: Darren Hart (VMware)

Re: [PATCH] selftests: futex: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-11 Thread Darren Hart
I was concerned because this override was a deliberate decision made in: 9705315b7562 selftests/futex: Update Makefile to use lib.mk But reviewing lib.mk today, the RUN_TESTS and EMIT_TESTS perform the same function running TEST_PROGS. Reviewed-by: Darren Hart (VMware) -- Darren Hart VMw

Re: drivers/platform/x86/dell-smbios-smm.c:99: undefined reference to `dcdbas_smi_request'

2018-05-06 Thread Darren Hart
On Fri, May 04, 2018 at 06:27:00PM +, mario.limoncie...@dell.com wrote: > Darren, > > Is this with that fix of mine merged? FYI: This fix has now been merged to linus/master. -- Darren Hart VMware Open Source Technology Center

Re: drivers/platform/x86/dell-smbios-smm.c:99: undefined reference to `dcdbas_smi_request'

2018-05-06 Thread Darren Hart
On Fri, May 04, 2018 at 06:27:00PM +, mario.limoncie...@dell.com wrote: > Darren, > > Is this with that fix of mine merged? FYI: This fix has now been merged to linus/master. -- Darren Hart VMware Open Source Technology Center

[GIT PULL] platform-drivers-x86 for 4.17-2

2018-05-05 Thread Darren Hart
figuration for 4.17 and 4.16 via stable. Thanks, Darren Hart VMware Open Source Technology Center The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the git repository at: git://git.infradead.org/linux-platfo

[GIT PULL] platform-drivers-x86 for 4.17-2

2018-05-05 Thread Darren Hart
figuration for 4.17 and 4.16 via stable. Thanks, Darren Hart VMware Open Source Technology Center The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the git repository at: git://git.infradead.org/linux-platfo

Re: drivers/platform/x86/dell-smbios-smm.c:99: undefined reference to `dcdbas_smi_request'

2018-05-04 Thread Darren Hart
-- Darren > > > -Original Message- > > From: kbuild test robot [mailto:l...@intel.com] > > Sent: Friday, May 4, 2018 1:24 PM > > To: Limonciello, Mario > > Cc: kbuild-...@01.org; linux-kernel@vger.kernel.org; Darren Hart (VMware) > > Subject: drivers/platfo

Re: drivers/platform/x86/dell-smbios-smm.c:99: undefined reference to `dcdbas_smi_request'

2018-05-04 Thread Darren Hart
-- Darren > > > -Original Message- > > From: kbuild test robot [mailto:l...@intel.com] > > Sent: Friday, May 4, 2018 1:24 PM > > To: Limonciello, Mario > > Cc: kbuild-...@01.org; linux-kernel@vger.kernel.org; Darren Hart (VMware) > > Subject: drivers/platfo

Re: drivers/platform/x86/dell-smbios-wmi.c:66: undefined reference to `wmidev_evaluate_method'

2018-04-27 Thread Darren Hart
gt; DELL_LAPTOP=y, > its select DELL_SMBIOS incorrectly makes DELL_SMBIOS=y. > > > so if we can get your patch merged, we can see if any more breakage > happens... :) Sorry, comms fail on my part. This will be merged to for-next by tomorrow. -- Darren Hart VMware Open Source Technology Center

Re: drivers/platform/x86/dell-smbios-wmi.c:66: undefined reference to `wmidev_evaluate_method'

2018-04-27 Thread Darren Hart
gt; DELL_LAPTOP=y, > its select DELL_SMBIOS incorrectly makes DELL_SMBIOS=y. > > > so if we can get your patch merged, we can see if any more breakage > happens... :) Sorry, comms fail on my part. This will be merged to for-next by tomorrow. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH] platform/x86: Kconfig: Fix dell-laptop dependency chain.

2018-04-20 Thread Darren Hart
ile in but this > > > causes dell-smbios to compile in which breaks if dcdbas is a module. > > > > > > Dell laptop shouldn't select dell-smbios anymore, but depend on it. > > > > > > Fixes: 32d7b19 (platform/x86: dell-smbios: Resolve dependency error on > >

Re: [PATCH] platform/x86: Kconfig: Fix dell-laptop dependency chain.

2018-04-20 Thread Darren Hart
ile in but this > > > causes dell-smbios to compile in which breaks if dcdbas is a module. > > > > > > Dell laptop shouldn't select dell-smbios anymore, but depend on it. > > > > > > Fixes: 32d7b19 (platform/x86: dell-smbios: Resolve dependency error on > >

Re: [PATCH] platform/x86: Kconfig: Fix dell-laptop dependency chain.

2018-04-20 Thread Darren Hart
uot; avoids the dependency check causing this failure (I'm surprised and dismayed this made it through all the config permutation testing this saw). I'll apply this patch, and I guess it should go to stable, and for the next version I think it's time for a new "CONFIG DELL_EXTRAS" which will allow us to default DELL_SMBIOS to y and make the menu more consistent. Thank you for the catch. Grr :-( -- Darren Hart VMware Open Source Technology Center

Re: [PATCH] platform/x86: Kconfig: Fix dell-laptop dependency chain.

2018-04-20 Thread Darren Hart
uot; avoids the dependency check causing this failure (I'm surprised and dismayed this made it through all the config permutation testing this saw). I'll apply this patch, and I guess it should go to stable, and for the next version I think it's time for a new "CONFIG DELL_EXTRAS" which will allow us to default DELL_SMBIOS to y and make the menu more consistent. Thank you for the catch. Grr :-( -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v3 3/5] platform/x86: Rename silead_dmi to touchscreen_dmi

2018-04-19 Thread Darren Hart
one > > Taking above into attention, and assuming it will go via some other tree, > Acked-by: Andy Shevchenko <andy.shevche...@gmail.com> This driver is all kinds of a special case, so no objection here either. :-) -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v3 3/5] platform/x86: Rename silead_dmi to touchscreen_dmi

2018-04-19 Thread Darren Hart
o attention, and assuming it will go via some other tree, > Acked-by: Andy Shevchenko This driver is all kinds of a special case, so no objection here either. :-) -- Darren Hart VMware Open Source Technology Center

Re: [PATCH 40/61] platform: x86: simplify getting .drvdata

2018-04-19 Thread Darren Hart
--- > > Build tested only. buildbot is happy. Please apply individually. Queued up for testing. (I'm not sure what you mean by "Please apply individually") -- Darren Hart VMware Open Source Technology Center

Re: [PATCH 40/61] platform: x86: simplify getting .drvdata

2018-04-19 Thread Darren Hart
dbot is happy. Please apply individually. Queued up for testing. (I'm not sure what you mean by "Please apply individually") -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2] platform/x86: asus-wireless: Fix NULL pointer dereference

2018-04-19 Thread Darren Hart
On Thu, Apr 19, 2018 at 07:04:34AM -0700, João Paulo Rechi Vita wrote: > When the module is removed the led workqueue is destroyed in the remove > callback, before the led device is unregistered from the led subsystem. Queued up, thanks. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2] platform/x86: asus-wireless: Fix NULL pointer dereference

2018-04-19 Thread Darren Hart
On Thu, Apr 19, 2018 at 07:04:34AM -0700, João Paulo Rechi Vita wrote: > When the module is removed the led workqueue is destroyed in the remove > callback, before the led device is unregistered from the led subsystem. Queued up, thanks. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH] platform/x86: dell-smbios: Match on www.dell.com in OEM strings too

2018-04-19 Thread Darren Hart
t instead supported www.dell.com in OEM strings. Match both of these to indicate that this driver is running on a Dell system. Reported-by: Sergey Kubushyn <k...@koi8.net> Tested-by: Sergey Kubushyn <k...@koi8.net> Signed-off-by: Mario Limonciello <mario.limoncie...@dell.com> [dvhar

Re: [PATCH] platform/x86: dell-smbios: Match on www.dell.com in OEM strings too

2018-04-19 Thread Darren Hart
RING, "Dell System", NULL) && + !dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "www.dell.com", NULL)) { pr_err("Unable to run on non-Dell system\n"); return -ENODEV; } -- 2.14.3 -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 4/7] platform: mellanox: add new ODM system types to mlx-platform

2018-04-13 Thread Darren Hart
ompanies can't change DMI_BOARD_NAME". Is that an assumption, or is that how ODMs work with Mellanox? -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 4/7] platform: mellanox: add new ODM system types to mlx-platform

2018-04-13 Thread Darren Hart
ompanies can't change DMI_BOARD_NAME". Is that an assumption, or is that how ODMs work with Mellanox? -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-04-13 Thread Darren Hart
} > + if (!aggr_asserted) We seem to check aggr_asserted in several places in this routine now. Looks like something we could simplify. If you check it here, can you drop the check lower in the routine? Can you remove it from the for loop if conditional entirely? Please consider how to simplify. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-04-13 Thread Darren Hart
} > + if (!aggr_asserted) We seem to check aggr_asserted in several places in this routine now. Looks like something we could simplify. If you check it here, can you drop the check lower in the routine? Can you remove it from the for loop if conditional entirely? Please consider how to simplify. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 2/7] platform/mellanox: mlxreg-hotplug: Document fixes for hotplug private data

2018-04-13 Thread Darren Hart
struct regmap *regmap; > struct delayed_work dwork_irq; > - struct delayed_work dwork; > spinlock_t lock; /* sync with interrupt */ > struct device *hwmon; > struct attribute *mlxreg_hotplug_attr[MLXREG_HOTPLUG_ATTRS_MAX + 1]; > -- > 2.1.4 > > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 2/7] platform/mellanox: mlxreg-hotplug: Document fixes for hotplug private data

2018-04-13 Thread Darren Hart
struct delayed_work dwork_irq; > - struct delayed_work dwork; > spinlock_t lock; /* sync with interrupt */ > struct device *hwmon; > struct attribute *mlxreg_hotplug_attr[MLXREG_HOTPLUG_ATTRS_MAX + 1]; > -- > 2.1.4 > > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 1/7] platform_data/mlxreg: Document fixes for hotplug device

2018-04-13 Thread Darren Hart
ccess mask; > - * @mode: access mode; > * @bit: attribute effective bit; > + * @mode: access mode; > * @np - pointer to node platform associated with attribute; > * @hpdev - hotplug device data; > * @health_cntr: dynamic device health indication counter; > -- > 2.1.4 > > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 1/7] platform_data/mlxreg: Document fixes for hotplug device

2018-04-13 Thread Darren Hart
ode: access mode; > * @bit: attribute effective bit; > + * @mode: access mode; > * @np - pointer to node platform associated with attribute; > * @hpdev - hotplug device data; > * @health_cntr: dynamic device health indication counter; > -- > 2.1.4 > > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 0/7] platform/x86: Mellanox add fixes and new features

2018-04-13 Thread Darren Hart
| 66 - > 6 files changed, 765 insertions(+), 4 deletions(-) > create mode 100644 drivers/platform/mellanox/mlxreg-io.c > > -- > 2.1.4 > > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 0/7] platform/x86: Mellanox add fixes and new features

2018-04-13 Thread Darren Hart
| 66 - > 6 files changed, 765 insertions(+), 4 deletions(-) > create mode 100644 drivers/platform/mellanox/mlxreg-io.c > > -- > 2.1.4 > > -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v3 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics

2018-04-13 Thread Darren Hart
any kind of indicator for a PCI device if it is a removable device? Only disabling those PCI devices which are wholly integrated with the platform would be ideal. Failing that, is there an indicator in the PCI configuration which will distinguish such devices? Are the integrated devices using specific lanes, are the external devices behind a switch? etc. And can we do this in a generic way for all relevant platforms. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v3 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics

2018-04-13 Thread Darren Hart
a PCI device if it is a removable device? Only disabling those PCI devices which are wholly integrated with the platform would be ideal. Failing that, is there an indicator in the PCI configuration which will distinguish such devices? Are the integrated devices using specific lanes, are the external devices behind a switch? etc. And can we do this in a generic way for all relevant platforms. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2 1/3] dell-led: Change dell-led.h to dell-common.h

2018-04-07 Thread Darren Hart
reasonable. So I'm waiting for v3 from Kai-Heng - unless I've misunderstood the conclusion of this thread. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v2 1/3] dell-led: Change dell-led.h to dell-common.h

2018-04-07 Thread Darren Hart
from Kai-Heng - unless I've misunderstood the conclusion of this thread. -- Darren Hart VMware Open Source Technology Center

Re: [PATCH] platform/x86: asus-wireless: Fix NULL pointer dereference

2018-04-07 Thread Darren Hart
iff the workqueue is successfully created. It seems like it would make sense to move the devm_led_classdev_unregister() call within the 'if (data->wq)' condition block. This should also cc stable. Thanks, -- Darren Hart VMware Open Source Technology Center

Re: [PATCH] platform/x86: asus-wireless: Fix NULL pointer dereference

2018-04-07 Thread Darren Hart
uld make sense to move the devm_led_classdev_unregister() call within the 'if (data->wq)' condition block. This should also cc stable. Thanks, -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 0/4] platform/x86: mlx-platform: Add bus differed and auto detection functionalities

2018-03-23 Thread Darren Hart
On Fri, Mar 23, 2018 at 03:59:22PM +, Vadim Pasternak wrote: > > > > -Original Message- > > From: Darren Hart [mailto:dvh...@infradead.org] > > Sent: Friday, March 23, 2018 1:56 AM > > To: Vadim Pasternak <vad...@mellanox.com> &g

Re: [PATCH v1 0/4] platform/x86: mlx-platform: Add bus differed and auto detection functionalities

2018-03-23 Thread Darren Hart
On Fri, Mar 23, 2018 at 03:59:22PM +, Vadim Pasternak wrote: > > > > -Original Message- > > From: Darren Hart [mailto:dvh...@infradead.org] > > Sent: Friday, March 23, 2018 1:56 AM > > To: Vadim Pasternak > > Cc: andy.shevche...@gmail.com;

[PATCH] platform/x86: fujitsu-laptop: Simplify soft key handling

2018-03-22 Thread Darren Hart (VMware)
Glogowski <glo...@fbihome.de> Cc: Michał Kępień <ker...@kempniu.pl> Cc: Jonathan Woithe <jwoi...@just42.net> Signed-off-by: Darren Hart (VMware) <dvh...@infradead.org> --- Note: this applies on top of Jan-Marek's recent RFKILL and MICMUTE hotkey patch. I'd really appreci

[PATCH] platform/x86: fujitsu-laptop: Simplify soft key handling

2018-03-22 Thread Darren Hart (VMware)
Glogowski Cc: Michał Kępień Cc: Jonathan Woithe Signed-off-by: Darren Hart (VMware) --- Note: this applies on top of Jan-Marek's recent RFKILL and MICMUTE hotkey patch. I'd really appreciate a Tested-by from Jan-Marek in particular. You can get the entire series ready for testing here: http

Re: [PATCH v1 0/4] platform/x86: mlx-platform: Add bus differed and auto detection functionalities

2018-03-22 Thread Darren Hart
ommit messages for the top 4 commits: http://git.infradead.org/linux-platform-drivers-x86.git/shortlog/refs/heads/review-dvhart-mellanox Does this still match your intent? -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 0/4] platform/x86: mlx-platform: Add bus differed and auto detection functionalities

2018-03-22 Thread Darren Hart
ommit messages for the top 4 commits: http://git.infradead.org/linux-platform-drivers-x86.git/shortlog/refs/heads/review-dvhart-mellanox Does this still match your intent? -- Darren Hart VMware Open Source Technology Center

Re: [PATCH v1 2/4] platform/x86: mlx-platform: Add differed bus functionality

2018-03-22 Thread Darren Hart
On Thu, Mar 22, 2018 at 10:04:51AM +0100, Greg Kroah-Hartman wrote: > On Wed, Mar 21, 2018 at 03:58:18PM -0700, Darren Hart wrote: > > On Tue, Feb 13, 2018 at 10:09:34PM +, Vadim Pasternak wrote: > > > Add deferred bus functionality in order to enforce probing flow exe

Re: [PATCH v1 2/4] platform/x86: mlx-platform: Add differed bus functionality

2018-03-22 Thread Darren Hart
On Thu, Mar 22, 2018 at 10:04:51AM +0100, Greg Kroah-Hartman wrote: > On Wed, Mar 21, 2018 at 03:58:18PM -0700, Darren Hart wrote: > > On Tue, Feb 13, 2018 at 10:09:34PM +, Vadim Pasternak wrote: > > > Add deferred bus functionality in order to enforce probing flow exe

Re: [PATCH] platform/x86: fujitsu-laptop: Revert UNSUPPORTED_CMD back to an int

2018-03-21 Thread Darren Hart
> drivers/platform/x86/fujitsu-laptop.c:816 acpi_fujitsu_laptop_add() warn: > > impossible condition '(priv->flags_supported == (1 << (31))) => > > (0-2147483647,18446744071562067968-u64max == 2147483648)' > > > > Fixes: 819cddae7cfa ("platform/x86: fujits

<    1   2   3   4   5   6   7   8   9   10   >