Re: [PATCH 12/27] x86/msr: Restrict MSR access when the kernel is locked down

2017-10-25 Thread joeyli
Hi David, On Mon, Oct 23, 2017 at 03:49:44PM +0100, David Howells wrote: > Alan Cox wrote: > > > There are a load of standard tools that use this so I think you are going > > to need a whitelist. Can you at least log *which* MSR in the failing case > > so a

Re: [PATCH 12/27] x86/msr: Restrict MSR access when the kernel is locked down

2017-10-25 Thread joeyli
Hi David, On Mon, Oct 23, 2017 at 03:49:44PM +0100, David Howells wrote: > Alan Cox wrote: > > > There are a load of standard tools that use this so I think you are going > > to need a whitelist. Can you at least log *which* MSR in the failing case > > so a whitelist can be built over time ? >

[PATCH net-next 0/2] net: stmmac: Support DWMAC5 and TSN

2017-10-25 Thread Jose Abreu
Hi, This adds support for a new IP version (5) of dwmac and for TSN features as defined by IEEE802.1Qbv-2015 and IEEE802.1Qbu. Please review. Best regards, Jose Miguel Abreu Jose Abreu (2): net: stmmac: Add support for DWMAC5 with TSN features bindings: net: stmmac: Add documentation for

[PATCH net-next 0/2] net: stmmac: Support DWMAC5 and TSN

2017-10-25 Thread Jose Abreu
Hi, This adds support for a new IP version (5) of dwmac and for TSN features as defined by IEEE802.1Qbv-2015 and IEEE802.1Qbu. Please review. Best regards, Jose Miguel Abreu Jose Abreu (2): net: stmmac: Add support for DWMAC5 with TSN features bindings: net: stmmac: Add documentation for

Re: [RFC] net/unix_diag: Provide UDIAG_SHOW_VFS2 attribute to fetch complete inode number

2017-10-25 Thread Cyrill Gorcunov
On Wed, Oct 25, 2017 at 09:55:07AM -0400, Roman Mashak wrote: > > I think __zero should be explicitly set to 0. It will be by compiler default.

Re: [RFC] net/unix_diag: Provide UDIAG_SHOW_VFS2 attribute to fetch complete inode number

2017-10-25 Thread Cyrill Gorcunov
On Wed, Oct 25, 2017 at 09:55:07AM -0400, Roman Mashak wrote: > > I think __zero should be explicitly set to 0. It will be by compiler default.

[PATCH v6 1/6] mfd: mt6397: create irq mappings in mfd core driver

2017-10-25 Thread Chen Zhong
The core driver should create and manage irq mappings instead of leaf drivers. This patch change to pass irq domain to devm_mfd_add_devices() and it will create mapping for irq resources automatically. And remove irq mapping in rtc driver since this has been done in core driver. Acked-for-MFD-by:

[PATCH v6 1/6] mfd: mt6397: create irq mappings in mfd core driver

2017-10-25 Thread Chen Zhong
The core driver should create and manage irq mappings instead of leaf drivers. This patch change to pass irq domain to devm_mfd_add_devices() and it will create mapping for irq resources automatically. And remove irq mapping in rtc driver since this has been done in core driver. Acked-for-MFD-by:

[PATCH v6 2/6] dt-bindings: input: Add common keyboard document bindings

2017-10-25 Thread Chen Zhong
This patch adds the device tree binding documentation for common keyboard. Acked-by: Rob Herring Signed-off-by: Chen Zhong --- Documentation/devicetree/bindings/input/keys.txt |8 1 file changed, 8 insertions(+) create mode 100644

[PATCH v6 2/6] dt-bindings: input: Add common keyboard document bindings

2017-10-25 Thread Chen Zhong
This patch adds the device tree binding documentation for common keyboard. Acked-by: Rob Herring Signed-off-by: Chen Zhong --- Documentation/devicetree/bindings/input/keys.txt |8 1 file changed, 8 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/keys.txt

[PATCH 1/1] l2tp: cleanup l2tp_tunnel_delete calls

2017-10-25 Thread Jiri Slaby
l2tp_tunnel_delete does not return anything since commit 62b982eeb458 ("l2tp: fix race condition in l2tp_tunnel_delete"). But call sites of l2tp_tunnel_delete still do casts to void to avoid unused return value warnings. Kill these now useless casts. Signed-off-by: Jiri Slaby

[PATCH 1/1] l2tp: cleanup l2tp_tunnel_delete calls

2017-10-25 Thread Jiri Slaby
l2tp_tunnel_delete does not return anything since commit 62b982eeb458 ("l2tp: fix race condition in l2tp_tunnel_delete"). But call sites of l2tp_tunnel_delete still do casts to void to avoid unused return value warnings. Kill these now useless casts. Signed-off-by: Jiri Slaby Cc: Sabrina

Re: [RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-25 Thread Jiri Olsa
On Tue, Oct 24, 2017 at 07:50:06PM +0530, Ravi Bangoria wrote: > Perf top is often crashing at very random locations on powerpc. > After investigating, I found the crash only happens when sample > is of zero length symbol. Powerpc kernel has many such symbols > which does not contain length

Re: [RFC] perf tool: Fix memory corruption because of zero length symbols

2017-10-25 Thread Jiri Olsa
On Tue, Oct 24, 2017 at 07:50:06PM +0530, Ravi Bangoria wrote: > Perf top is often crashing at very random locations on powerpc. > After investigating, I found the crash only happens when sample > is of zero length symbol. Powerpc kernel has many such symbols > which does not contain length

Re: [RFC] net/unix_diag: Provide UDIAG_SHOW_VFS2 attribute to fetch complete inode number

2017-10-25 Thread Roman Mashak
Cyrill Gorcunov writes: > Currently unix_diag_vfs structure reports unix socket inode > as u32 value which of course doesn't fit to ino_t type and > the number may be trimmed. Lets rather deprecate old UDIAG_SHOW_VFS > interface and provide UDIAG_SHOW_VFS2 (with one field

Re: [RFC] net/unix_diag: Provide UDIAG_SHOW_VFS2 attribute to fetch complete inode number

2017-10-25 Thread Roman Mashak
Cyrill Gorcunov writes: > Currently unix_diag_vfs structure reports unix socket inode > as u32 value which of course doesn't fit to ino_t type and > the number may be trimmed. Lets rather deprecate old UDIAG_SHOW_VFS > interface and provide UDIAG_SHOW_VFS2 (with one field "__zero" reserved >

[PATCH v6 6/6] mfd: mt6397: Add PMIC keys support to MT6397 driver

2017-10-25 Thread Chen Zhong
This patch adds compatible strings and interrupts for pmic keys which serves as child device of MFD. Acked-for-MFD-by: Lee Jones Signed-off-by: Chen Zhong --- drivers/mfd/mt6397-core.c | 22 +- 1 file changed, 21

[PATCH v6 6/6] mfd: mt6397: Add PMIC keys support to MT6397 driver

2017-10-25 Thread Chen Zhong
This patch adds compatible strings and interrupts for pmic keys which serves as child device of MFD. Acked-for-MFD-by: Lee Jones Signed-off-by: Chen Zhong --- drivers/mfd/mt6397-core.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git

Re: [RFC PATCH] PCI: Detach driver before procfs & sysfs teardown on device remove

2017-10-25 Thread Bjorn Helgaas
On Wed, Oct 11, 2017 at 03:35:56PM -0600, Alex Williamson wrote: > When removing a device, for example a VF being removed due to SR-IOV > teardown, a "soft" hot-unplug via 'echo 1 > remove' in sysfs, or an > actual hot-unplug, we first remove the procfs and sysfs attributes > for the device before

Re: [RFC PATCH] PCI: Detach driver before procfs & sysfs teardown on device remove

2017-10-25 Thread Bjorn Helgaas
On Wed, Oct 11, 2017 at 03:35:56PM -0600, Alex Williamson wrote: > When removing a device, for example a VF being removed due to SR-IOV > teardown, a "soft" hot-unplug via 'echo 1 > remove' in sysfs, or an > actual hot-unplug, we first remove the procfs and sysfs attributes > for the device before

Re: [PATCH v6 02/13] xen/pvcalls: implement frontend disconnect

2017-10-25 Thread Boris Ostrovsky
On 10/24/2017 01:33 PM, Stefano Stabellini wrote: > +static void pvcalls_front_free_map(struct pvcalls_bedata *bedata, > +struct sock_mapping *map, bool locked) > +{ > +} > + > static const struct xenbus_device_id pvcalls_front_ids[] = { > { "pvcalls" }, >

Re: [PATCH v6 02/13] xen/pvcalls: implement frontend disconnect

2017-10-25 Thread Boris Ostrovsky
On 10/24/2017 01:33 PM, Stefano Stabellini wrote: > +static void pvcalls_front_free_map(struct pvcalls_bedata *bedata, > +struct sock_mapping *map, bool locked) > +{ > +} > + > static const struct xenbus_device_id pvcalls_front_ids[] = { > { "pvcalls" }, >

Re: [PATCH 1/2 v2] fdmap(2)

2017-10-25 Thread Pavel Machek
On Wed 2017-10-25 14:45:31, Alexey Dobriyan wrote: > On 10/23/17, Pavel Machek wrote: > > > Binary fdmap looks... quite ugly to me. But close_all(from, to) > > syscall kindof makes sense to me... and is not that ugly. > > > > Given that openbsd has something similar... perhaps we

Re: [PATCH 1/2 v2] fdmap(2)

2017-10-25 Thread Pavel Machek
On Wed 2017-10-25 14:45:31, Alexey Dobriyan wrote: > On 10/23/17, Pavel Machek wrote: > > > Binary fdmap looks... quite ugly to me. But close_all(from, to) > > syscall kindof makes sense to me... and is not that ugly. > > > > Given that openbsd has something similar... perhaps we can take that?

Maintenance, how to check the solar water heating system

2017-10-25 Thread Mr.David
New Year, New Product, New Certificate, New Price, New Opportunity Hi, Now, It is my pleasure to introduce you the new product, model SHC, The CPC heat pipe collectors. Its main advantages are: biggest aperture area of evacuated tubes collectors, highest power output, and overheating

Maintenance, how to check the solar water heating system

2017-10-25 Thread Mr.David
New Year, New Product, New Certificate, New Price, New Opportunity Hi, Now, It is my pleasure to introduce you the new product, model SHC, The CPC heat pipe collectors. Its main advantages are: biggest aperture area of evacuated tubes collectors, highest power output, and overheating

Re: [PATCH] PCI: rework error checking in the reset path

2017-10-25 Thread Bjorn Helgaas
[+cc Alex] On Mon, Oct 23, 2017 at 05:36:48PM -0400, Sinan Kaya wrote: > The return codes from various reset types are not consistent. The code is > assuming that all reset types will return -ENOTTY when things go wrong. > Instead of relying on negative error status, let's bail out if the >

Re: [PATCH] PCI: rework error checking in the reset path

2017-10-25 Thread Bjorn Helgaas
[+cc Alex] On Mon, Oct 23, 2017 at 05:36:48PM -0400, Sinan Kaya wrote: > The return codes from various reset types are not consistent. The code is > assuming that all reset types will return -ENOTTY when things go wrong. > Instead of relying on negative error status, let's bail out if the >

Fixing CVE-2017-15361

2017-10-25 Thread Jarkko Sakkinen
I'm implementing a fix for CVE-2017-15361 that simply blacklists vulnerable FW versions. I think this is the only responsible action from my side that I can do. /arkko

Fixing CVE-2017-15361

2017-10-25 Thread Jarkko Sakkinen
I'm implementing a fix for CVE-2017-15361 that simply blacklists vulnerable FW versions. I think this is the only responsible action from my side that I can do. /arkko

[PATCH v6 3/6] dt-bindings: input: Add document bindings for mtk-pmic-keys

2017-10-25 Thread Chen Zhong
This patch adds the device tree binding documentation for the MediaTek pmic keys found on PMIC MT6397/MT6323. Acked-by: Rob Herring Signed-off-by: Chen Zhong --- .../devicetree/bindings/input/mtk-pmic-keys.txt| 43 1 file

[PATCH v6 3/6] dt-bindings: input: Add document bindings for mtk-pmic-keys

2017-10-25 Thread Chen Zhong
This patch adds the device tree binding documentation for the MediaTek pmic keys found on PMIC MT6397/MT6323. Acked-by: Rob Herring Signed-off-by: Chen Zhong --- .../devicetree/bindings/input/mtk-pmic-keys.txt| 43 1 file changed, 43 insertions(+) create mode 100644

Re: alpha boot hang - 4.14-rc* regression

2017-10-25 Thread Lorenzo Pieralisi
On Wed, Oct 25, 2017 at 03:21:21PM +0300, Meelis Roos wrote: > > > (Added linux-pci to CC) > > > > > > > > I run Gentoo Linux on my alphas, with latest git kernels for test. > > > > > 4.13.0 worked well on 3 alphas but 4.13.0-09217-g5969d1bb3082 hangs > > > > > on > > > > > boot on all 3 of

Re: alpha boot hang - 4.14-rc* regression

2017-10-25 Thread Lorenzo Pieralisi
On Wed, Oct 25, 2017 at 03:21:21PM +0300, Meelis Roos wrote: > > > (Added linux-pci to CC) > > > > > > > > I run Gentoo Linux on my alphas, with latest git kernels for test. > > > > > 4.13.0 worked well on 3 alphas but 4.13.0-09217-g5969d1bb3082 hangs > > > > > on > > > > > boot on all 3 of

Re: [PATCH] Input: synaptics-rmi4: Limit the range of what GPIOs are buttons

2017-10-25 Thread Benjamin Tissoires
On Oct 24 2017 or thereabouts, Andrew Duggan wrote: > By convention the first 6 bits of F30 Ctrl 2 and 3 are used to signify I really do not like the "by convention". What if future firmware developers are willing to add extra buttons and already have trackstick buttons there, meaning the max 6

Re: [PATCH] Input: synaptics-rmi4: Limit the range of what GPIOs are buttons

2017-10-25 Thread Benjamin Tissoires
On Oct 24 2017 or thereabouts, Andrew Duggan wrote: > By convention the first 6 bits of F30 Ctrl 2 and 3 are used to signify I really do not like the "by convention". What if future firmware developers are willing to add extra buttons and already have trackstick buttons there, meaning the max 6

Re: [PATCH] I2C-S3C2410: Use common error handling code in s3c24xx_i2c_probe()

2017-10-25 Thread Dan Carpenter
> @@ -1180,24 +1179,21 @@ static int s3c24xx_i2c_probe(struct platform_device > *pdev) > i2c->irq = ret = platform_get_irq(pdev, 0); > if (ret <= 0) { Not related to this patch, but the comparison here should be < 0. Or otherwise we should set an error code. The bug

Re: [PATCH] I2C-S3C2410: Use common error handling code in s3c24xx_i2c_probe()

2017-10-25 Thread Dan Carpenter
> @@ -1180,24 +1179,21 @@ static int s3c24xx_i2c_probe(struct platform_device > *pdev) > i2c->irq = ret = platform_get_irq(pdev, 0); > if (ret <= 0) { Not related to this patch, but the comparison here should be < 0. Or otherwise we should set an error code. The bug

[PATCH] Documentation: support kernel enforcement

2017-10-25 Thread Jarkko Sakkinen
I'm sorry that I forgot to add my name on time. Signed-off-by: Jarkko Sakkinen --- Documentation/process/kernel-enforcement-statement.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/process/kernel-enforcement-statement.rst

[PATCH] Documentation: support kernel enforcement

2017-10-25 Thread Jarkko Sakkinen
I'm sorry that I forgot to add my name on time. Signed-off-by: Jarkko Sakkinen --- Documentation/process/kernel-enforcement-statement.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/process/kernel-enforcement-statement.rst

Re: [PATCH v2] dwc: dra7xx: Print link state to console for debug

2017-10-25 Thread Bjorn Helgaas
On Wed, Oct 25, 2017 at 01:51:53PM +0530, Faiz Abbas wrote: > Bjorn, > > On Wednesday 25 October 2017 01:29 AM, Bjorn Helgaas wrote: > > On Thu, Oct 19, 2017 at 06:13:29PM +0530, Faiz Abbas wrote: > >> Enable support for printing the LTSSM link state for debugging PCI > >> when link is down. > >>

Re: [PATCH v2] dwc: dra7xx: Print link state to console for debug

2017-10-25 Thread Bjorn Helgaas
On Wed, Oct 25, 2017 at 01:51:53PM +0530, Faiz Abbas wrote: > Bjorn, > > On Wednesday 25 October 2017 01:29 AM, Bjorn Helgaas wrote: > > On Thu, Oct 19, 2017 at 06:13:29PM +0530, Faiz Abbas wrote: > >> Enable support for printing the LTSSM link state for debugging PCI > >> when link is down. > >>

Re: [PATCH 6/8] PCI: host: brcmstb: add MSI capability

2017-10-25 Thread Bjorn Helgaas
On Tue, Oct 24, 2017 at 02:15:47PM -0400, Jim Quinlan wrote: > This commit adds MSI to the Broadcom STB PCIe host controller. It does > not add MSIX since that functionality is not in the HW. The MSI > controller is physically located within the PCIe block, however, there > is no reason why the

Re: [PATCH 6/8] PCI: host: brcmstb: add MSI capability

2017-10-25 Thread Bjorn Helgaas
On Tue, Oct 24, 2017 at 02:15:47PM -0400, Jim Quinlan wrote: > This commit adds MSI to the Broadcom STB PCIe host controller. It does > not add MSIX since that functionality is not in the HW. The MSI > controller is physically located within the PCIe block, however, there > is no reason why the

[PATCH v6 5/6] input: Add MediaTek PMIC keys support

2017-10-25 Thread Chen Zhong
This patch add support to handle MediaTek PMIC MT6397/MT6323 key interrupts including pwrkey and homekey, also add setting for long press key shutdown behavior. Acked-by: Dmitry Torokhov Signed-off-by: Chen Zhong ---

[PATCH v6 5/6] input: Add MediaTek PMIC keys support

2017-10-25 Thread Chen Zhong
This patch add support to handle MediaTek PMIC MT6397/MT6323 key interrupts including pwrkey and homekey, also add setting for long press key shutdown behavior. Acked-by: Dmitry Torokhov Signed-off-by: Chen Zhong --- drivers/input/keyboard/Kconfig |9 +

Re: [PATCH] Input: synaptics-rmi4: Limit the range of what GPIOs are buttons

2017-10-25 Thread Daniel Martin
On 25 October 2017 at 05:42, Andrew Duggan wrote: > By convention the first 6 bits of F30 Ctrl 2 and 3 are used to signify > GPIOs which are connected to buttons. Additional GPIOs may be used as > input GPIOs to signal the touch controller of some event > (ie disable

Re: [PATCH] Input: synaptics-rmi4: Limit the range of what GPIOs are buttons

2017-10-25 Thread Daniel Martin
On 25 October 2017 at 05:42, Andrew Duggan wrote: > By convention the first 6 bits of F30 Ctrl 2 and 3 are used to signify > GPIOs which are connected to buttons. Additional GPIOs may be used as > input GPIOs to signal the touch controller of some event > (ie disable touchpad). These additional

Re: Kernel error messages: leds fujitsu::radio_led: Setting an LED's brightness failed

2017-10-25 Thread Harvey
Am 25.10.2017 um 06:39 schrieb Michał Kępień: >>> - Investigating the E LED. This requires taking a look at the DSDT >>> dump from your laptop and searching for clues as to how this LED is >>> handled. I will be happy to do that, but again, no promises about >>> how much time it

Re: Kernel error messages: leds fujitsu::radio_led: Setting an LED's brightness failed

2017-10-25 Thread Harvey
Am 25.10.2017 um 06:39 schrieb Michał Kępień: >>> - Investigating the E LED. This requires taking a look at the DSDT >>> dump from your laptop and searching for clues as to how this LED is >>> handled. I will be happy to do that, but again, no promises about >>> how much time it

Re: Proposal: rename tpm1_eventlog.c and tpm2_eventlog.c

2017-10-25 Thread Jarkko Sakkinen
On Wed, Oct 25, 2017 at 10:43:10AM +0200, Thiebaud Weksteen wrote: > On Wed, Oct 25, 2017 at 12:21 AM, Jarkko Sakkinen > wrote: > > I noticed when making slides for KS that the naming for event log stuff > > that the naming is so broken that it is hard to

Re: Proposal: rename tpm1_eventlog.c and tpm2_eventlog.c

2017-10-25 Thread Jarkko Sakkinen
On Wed, Oct 25, 2017 at 10:43:10AM +0200, Thiebaud Weksteen wrote: > On Wed, Oct 25, 2017 at 12:21 AM, Jarkko Sakkinen > wrote: > > I noticed when making slides for KS that the naming for event log stuff > > that the naming is so broken that it is hard to understand the code. > > Here it really

Re: [GIT PULL de-alpha] Make core code not need to know about Alpha for v4.15

2017-10-25 Thread Paul E. McKenney
On Wed, Oct 25, 2017 at 11:04:43AM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > On Wed, Oct 25, 2017 at 10:45:48AM +0200, Ingo Molnar wrote: > > > > > > * Paul E. McKenney wrote: > > > > > > > Hello, Ingo, > > > > > >

Re: [GIT PULL de-alpha] Make core code not need to know about Alpha for v4.15

2017-10-25 Thread Paul E. McKenney
On Wed, Oct 25, 2017 at 11:04:43AM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > On Wed, Oct 25, 2017 at 10:45:48AM +0200, Ingo Molnar wrote: > > > > > > * Paul E. McKenney wrote: > > > > > > > Hello, Ingo, > > > > > > > > This series is a first step towards making the core

Re: [PATCH] fs, mm: account filp and names caches to kmemcg

2017-10-25 Thread Johannes Weiner
On Wed, Oct 25, 2017 at 09:15:22AM +0200, Michal Hocko wrote: > On Tue 24-10-17 23:51:30, Greg Thelen wrote: > > Michal Hocko wrote: > [...] > > > I am definitely not pushing that thing right now. It is good to discuss > > > it, though. The more kernel allocations we will track

Re: [PATCH] fs, mm: account filp and names caches to kmemcg

2017-10-25 Thread Johannes Weiner
On Wed, Oct 25, 2017 at 09:15:22AM +0200, Michal Hocko wrote: > On Tue 24-10-17 23:51:30, Greg Thelen wrote: > > Michal Hocko wrote: > [...] > > > I am definitely not pushing that thing right now. It is good to discuss > > > it, though. The more kernel allocations we will track the more careful

[PATCH v6 4/6] dt-bindings: mfd: Add bindings for the keys as subnode of PMIC

2017-10-25 Thread Chen Zhong
This patch adds documentation for device tree bindings for keys support as the subnode of MT6397/MT6323 PMIC. Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones Signed-off-by: Chen Zhong ---

[PATCH v6 4/6] dt-bindings: mfd: Add bindings for the keys as subnode of PMIC

2017-10-25 Thread Chen Zhong
This patch adds documentation for device tree bindings for keys support as the subnode of MT6397/MT6323 PMIC. Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones Signed-off-by: Chen Zhong --- Documentation/devicetree/bindings/mfd/mt6397.txt |6 ++ 1 file changed, 6 insertions(+) diff

Re: [PATCH] platform/x86: fujitsu-laptop: Fix radio LED detection

2017-10-25 Thread Harvey
Am 25.10.2017 um 08:33 schrieb Jonathan Woithe: > On Wed, Oct 25, 2017 at 06:29:46AM +0200, Micha?? K??pie?? wrote: >> Radio LED detection method implemented in commit 4f62568c1fcf >> ("fujitsu-laptop: Support radio LED") turned out to be incorrect as it >> causes a radio LED to be erroneously

Re: [PATCH] platform/x86: fujitsu-laptop: Fix radio LED detection

2017-10-25 Thread Harvey
Am 25.10.2017 um 08:33 schrieb Jonathan Woithe: > On Wed, Oct 25, 2017 at 06:29:46AM +0200, Micha?? K??pie?? wrote: >> Radio LED detection method implemented in commit 4f62568c1fcf >> ("fujitsu-laptop: Support radio LED") turned out to be incorrect as it >> causes a radio LED to be erroneously

Re: [1/2,v2] fdmap(2)

2017-10-25 Thread Alexey Dobriyan
On 10/20/17, Greg KH wrote: > On Thu, Oct 19, 2017 at 05:34:35PM +0200, Alexey Dobriyan wrote: >> So the answer it not to fix /proc, the answer it to leave /proc alone. > > No, because: > >> The answer is make Unix shell people move their lazy asses and >> implement

Re: [1/2,v2] fdmap(2)

2017-10-25 Thread Alexey Dobriyan
On 10/20/17, Greg KH wrote: > On Thu, Oct 19, 2017 at 05:34:35PM +0200, Alexey Dobriyan wrote: >> So the answer it not to fix /proc, the answer it to leave /proc alone. > > No, because: > >> The answer is make Unix shell people move their lazy asses and >> implement minimal type system and a way

Re: [PATCH] drm/i915/selftests: Convert timers to use timer_setup()

2017-10-25 Thread Chris Wilson
Quoting Chris Wilson (2017-10-25 11:24:19) > Quoting Chris Wilson (2017-10-24 17:17:09) > > Quoting Kees Cook (2017-10-24 16:13:44) > > > In preparation for unconditionally passing the struct timer_list pointer > > > to > > > all timer callbacks, switch to using the new timer_setup() and > > >

Re: [PATCH] drm/i915/selftests: Convert timers to use timer_setup()

2017-10-25 Thread Chris Wilson
Quoting Chris Wilson (2017-10-25 11:24:19) > Quoting Chris Wilson (2017-10-24 17:17:09) > > Quoting Kees Cook (2017-10-24 16:13:44) > > > In preparation for unconditionally passing the struct timer_list pointer > > > to > > > all timer callbacks, switch to using the new timer_setup() and > > >

Re: [RFC PATCH v2 1/3] regulator: bindings: Add properties for coupled regulators

2017-10-25 Thread Maciej Purski
On 10/25/2017 02:59 PM, Rob Herring wrote: On Wed, Oct 25, 2017 at 2:31 AM, Maciej Purski wrote: On 10/24/2017 08:58 PM, Rob Herring wrote: On Wed, Oct 18, 2017 at 02:47:00PM +0200, Maciej Purski wrote: Some regulators require keeping their voltage spread below

Re: [RFC PATCH v2 1/3] regulator: bindings: Add properties for coupled regulators

2017-10-25 Thread Maciej Purski
On 10/25/2017 02:59 PM, Rob Herring wrote: On Wed, Oct 25, 2017 at 2:31 AM, Maciej Purski wrote: On 10/24/2017 08:58 PM, Rob Herring wrote: On Wed, Oct 18, 2017 at 02:47:00PM +0200, Maciej Purski wrote: Some regulators require keeping their voltage spread below defined max_spread. Add

[PATCH] I2C-S3C2410: Use common error handling code in s3c24xx_i2c_probe()

2017-10-25 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 25 Oct 2017 15:00:35 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring

[PATCH] I2C-S3C2410: Use common error handling code in s3c24xx_i2c_probe()

2017-10-25 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 25 Oct 2017 15:00:35 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/i2c/busses/i2c-s3c2410.c | 19

Re: [RFC PATCH v2 1/3] regulator: bindings: Add properties for coupled regulators

2017-10-25 Thread Rob Herring
On Wed, Oct 25, 2017 at 2:31 AM, Maciej Purski wrote: > > > On 10/24/2017 08:58 PM, Rob Herring wrote: >> >> On Wed, Oct 18, 2017 at 02:47:00PM +0200, Maciej Purski wrote: >>> >>> Some regulators require keeping their voltage spread below defined >>> max_spread. >>> >>> Add

Re: [RFC PATCH v2 1/3] regulator: bindings: Add properties for coupled regulators

2017-10-25 Thread Rob Herring
On Wed, Oct 25, 2017 at 2:31 AM, Maciej Purski wrote: > > > On 10/24/2017 08:58 PM, Rob Herring wrote: >> >> On Wed, Oct 18, 2017 at 02:47:00PM +0200, Maciej Purski wrote: >>> >>> Some regulators require keeping their voltage spread below defined >>> max_spread. >>> >>> Add properties to provide

Re: [PATCH] drivers/net: hippi: Convert timers to use timer_setup()

2017-10-25 Thread Jes Sorensen
On 10/25/2017 06:51 AM, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Jes Sorensen Cc:

Re: [PATCH] drivers/net: hippi: Convert timers to use timer_setup()

2017-10-25 Thread Jes Sorensen
On 10/25/2017 06:51 AM, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Jes Sorensen Cc: linux-hi...@sunsite.dk Cc:

[RFC 01/14] bootsplash: Initial implementation showing black screen

2017-10-25 Thread Max Staudt
This is the initial prototype for a lean Linux kernel bootsplash. It works by replacing fbcon's FB manipulation routines (such as bitblit, tileblit) with dummy functions, effectively disabling text output, and drawing the splash directly onto the FB device. As it is now, it will show a black

[RFC 01/14] bootsplash: Initial implementation showing black screen

2017-10-25 Thread Max Staudt
This is the initial prototype for a lean Linux kernel bootsplash. It works by replacing fbcon's FB manipulation routines (such as bitblit, tileblit) with dummy functions, effectively disabling text output, and drawing the splash directly onto the FB device. As it is now, it will show a black

[RFC 02/14] bootsplash: Add platform device

2017-10-25 Thread Max Staudt
This allows us to export a userland API via sysfs, showing/hiding the splash on request by dracut, systemd, or other init systems. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash.c | 83

[RFC 02/14] bootsplash: Add platform device

2017-10-25 Thread Max Staudt
This allows us to export a userland API via sysfs, showing/hiding the splash on request by dracut, systemd, or other init systems. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash.c | 83 ++

[RFC 05/14] bootsplash: Disable splash on oops

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/fbcon.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c index 4ac1a33be418..cbe8a4480037 100644

[RFC 00/14] Kernel based bootsplash

2017-10-25 Thread Max Staudt
Dear fbdev and fbcon developers, Could you please voice your opinion on the following patch series? This series adds simple bootsplash functionality on top of fbcon. A (simple!) kernel based bootsplash allows system integrators to show an earlier and more reliable bootsplash, completely hiding

[RFC 05/14] bootsplash: Disable splash on oops

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/fbcon.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c index 4ac1a33be418..cbe8a4480037 100644 ---

[RFC 00/14] Kernel based bootsplash

2017-10-25 Thread Max Staudt
Dear fbdev and fbcon developers, Could you please voice your opinion on the following patch series? This series adds simple bootsplash functionality on top of fbcon. A (simple!) kernel based bootsplash allows system integrators to show an earlier and more reliable bootsplash, completely hiding

[RFC 12/14] bootsplash: Add sysfs ABI documentation

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- Documentation/ABI/testing/sysfs-platform-bootsplash | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-platform-bootsplash diff --git

[RFC 12/14] bootsplash: Add sysfs ABI documentation

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- Documentation/ABI/testing/sysfs-platform-bootsplash | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-platform-bootsplash diff --git

[RFC 07/14] bootsplash: Add VT keyboard hook

2017-10-25 Thread Max Staudt
Let's disable the splash if the user presses ESC or F1-F12 on a VT. The F1-F12 check is to disable the splash on VT switches. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/tty/vt/keyboard.c | 11 +++ 1 file changed, 11

[RFC 07/14] bootsplash: Add VT keyboard hook

2017-10-25 Thread Max Staudt
Let's disable the splash if the user presses ESC or F1-F12 on a VT. The F1-F12 check is to disable the splash on VT switches. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/tty/vt/keyboard.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[RFC 08/14] bootsplash: Add file reading and picture rendering

2017-10-25 Thread Max Staudt
Load logo(s) from a file and render them in the center of the screen. This removes the "black screen" functionality, which can now be emulated by providing a splash file with no pictures and a black background. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum

[RFC 08/14] bootsplash: Add file reading and picture rendering

2017-10-25 Thread Max Staudt
Load logo(s) from a file and render them in the center of the screen. This removes the "black screen" functionality, which can now be emulated by providing a splash file with no pictures and a black background. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum ---

[RFC 06/14] bootsplash: Disable on SysRq SAK

2017-10-25 Thread Max Staudt
When the user requests a clean TTY via the SAK SysRq, that means he really wants to use the console. Let's disable the bootsplash, even if the request is not on a VT, as the user probably knows what he's doing and it's more helpful to get out of his way. Signed-off-by: Max Staudt

[RFC 10/14] bootsplash: Add animation support

2017-10-25 Thread Max Staudt
Each 'picture' in the splash file can consist of multiple 'blobs'. If animation is enabled, these blobs become the frames of an animation, in the order in which they are stored in the file. Note: There is only one global timer, so all animations happen at the same frame rate. It doesn't

[RFC 06/14] bootsplash: Disable on SysRq SAK

2017-10-25 Thread Max Staudt
When the user requests a clean TTY via the SAK SysRq, that means he really wants to use the console. Let's disable the bootsplash, even if the request is not on a VT, as the user probably knows what he's doing and it's more helpful to get out of his way. Signed-off-by: Max Staudt Reviewed-by:

[RFC 10/14] bootsplash: Add animation support

2017-10-25 Thread Max Staudt
Each 'picture' in the splash file can consist of multiple 'blobs'. If animation is enabled, these blobs become the frames of an animation, in the order in which they are stored in the file. Note: There is only one global timer, so all animations happen at the same frame rate. It doesn't

[RFC 11/14] bootsplash: Redraw fully on console_unblank

2017-10-25 Thread Max Staudt
After exiting a KD_GRAPHICS program and falling back to the text console, a previously enabled splash needs to be fully redrawn. Without this patch, the following fails: 1. Switch to a text console 2. Enable splash 3. Start X (or any other KD_GRAPHICS program) 4. Exit X 5. Splash is not seen,

[RFC 09/14] bootsplash: Add corner positioning

2017-10-25 Thread Max Staudt
This allows showing multiple logos, each in its own position, relative to the eight screen corners. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash_file.h | 42 -

[RFC 11/14] bootsplash: Redraw fully on console_unblank

2017-10-25 Thread Max Staudt
After exiting a KD_GRAPHICS program and falling back to the text console, a previously enabled splash needs to be fully redrawn. Without this patch, the following fails: 1. Switch to a text console 2. Enable splash 3. Start X (or any other KD_GRAPHICS program) 4. Exit X 5. Splash is not seen,

[RFC 09/14] bootsplash: Add corner positioning

2017-10-25 Thread Max Staudt
This allows showing multiple logos, each in its own position, relative to the eight screen corners. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash_file.h | 42 - drivers/video/fbdev/core/bootsplash_render.c | 55

[RFC 04/14] bootsplash: Redraw on suspend/hibernate

2017-10-25 Thread Max Staudt
When the system is woken from sleep or restored after hibernating, we cannot expect the screen contents to still be present in VRAM. Thus, we have to redraw the splash if we're currently active. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum ---

[RFC 04/14] bootsplash: Redraw on suspend/hibernate

2017-10-25 Thread Max Staudt
When the system is woken from sleep or restored after hibernating, we cannot expect the screen contents to still be present in VRAM. Thus, we have to redraw the splash if we're currently active. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/video/fbdev/core/bootsplash.c | 22

[RFC 13/14] bootsplash: Add main documentation

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- Documentation/fb/bootsplash.txt | 169 1 file changed, 169 insertions(+) create mode 100644 Documentation/fb/bootsplash.txt diff --git

[RFC 13/14] bootsplash: Add main documentation

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- Documentation/fb/bootsplash.txt | 169 1 file changed, 169 insertions(+) create mode 100644 Documentation/fb/bootsplash.txt diff --git a/Documentation/fb/bootsplash.txt

[RFC 14/14] bootsplash: Update MAINTAINERS

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a74227ad082e..ee792797cee9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2705,6 +2705,15 @@ S:

[RFC 14/14] bootsplash: Update MAINTAINERS

2017-10-25 Thread Max Staudt
Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a74227ad082e..ee792797cee9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2705,6 +2705,15 @@ S: Supported F:

<    4   5   6   7   8   9   10   11   12   13   >