Re: [PATCH] tty: fix flush_to_ldisc() oops before tty_open is done

2017-10-25 Thread Alan Cox
> When tty_open() is opening a serial tty at the first time, after > alloc_tty_struct() is called, before tty->ops->open() is finished. That's kind of unavoidable. > Serial driever like pl011 on ARM is ready to setup kworker threads > to receive data with flush_to_ldisc(). Serial input at this ti

Re: [tpmdd-devel] [PATCH] tpm: remove chip_num parameter from in-kernel API

2017-10-25 Thread Jarkko Sakkinen
On Wed, Oct 25, 2017 at 08:21:16PM +0530, PrasannaKumar Muralidharan wrote: > >> > 2. Moving struct tpm_rng to the TPM client is architecturally > >> >uacceptable. > >> > >> As there was no response to the patch there is no way to know whether > >> it is acceptable or not. > > > > I like the id

[PATCH 9/9] usb: host: pci-quirks: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/pci-quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/p

[PATCH v9 3/5] mfd: Add driver for RAVE Supervisory Processor

2017-10-25 Thread Andrey Smirnov
Add a driver for RAVE Supervisory Processor, an MCU implementing various bits of housekeeping functionality (watchdoging, backlight control, LED control, etc) on RAVE family of products by Zodiac Inflight Innovations. This driver implementes core MFD/serdev device as well as communication subrouti

[PATCH v9 5/5] dt-bindings: watchdog: Add bindings for RAVE SP watchdog driver

2017-10-25 Thread Andrey Smirnov
Add Device Tree bindings for RAVE SP watchdog drvier - an MFD cell of parent RAVE SP driver (documented in Documentation/devicetree/bindings/mfd/zii,rave-sp.txt). Cc: linux-kernel@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-watch...@vger.kernel.org Cc: cphe...@gmail.com Cc: Lucas Stac

Re: [PATCH 6/9] usb: host: isp1362-hcd: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
Greg, Quoting "Gustavo A. R. Silva" : In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/isp1362-hcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/isp136

[PATCH v9 1/5] serdev: Make .remove in struct serdev_device_driver optional

2017-10-25 Thread Andrey Smirnov
Using devres infrastructure it is possible to write a serdev driver that doesn't have any code that needs to be called as a part of .remove. Add code to make .remove optional. Cc: linux-kernel@vger.kernel.org Cc: linux-ser...@vger.kernel.org Cc: Rob Herring Cc: cphe...@gmail.com Cc: Guenter Roeck

[PATCH v9 0/5] ZII RAVE platform driver

2017-10-25 Thread Andrey Smirnov
Hi everyone, This patch series is v9 of the driver for supervisory processor found on RAVE series of devices from ZII. Supervisory processor is a PIC microcontroller connected to various electrical subsystems on RAVE devices whose firmware implements protocol to command/qery them. NOTE: * This

[PATCH v9 2/5] serdev: Introduce devm_serdev_device_open()

2017-10-25 Thread Andrey Smirnov
Add code implementing managed version of serdev_device_open() for serdev device drivers that "open" the device during driver's lifecycle only once (e.g. opened in .probe() and closed in .remove()). Cc: linux-kernel@vger.kernel.org Cc: linux-ser...@vger.kernel.org Cc: Rob Herring Cc: cphe...@gmail

[PATCH v9 4/5] watchdog: Add RAVE SP watchdog driver

2017-10-25 Thread Andrey Smirnov
This driver provides access to RAVE SP watchdog functionality. Cc: linux-kernel@vger.kernel.org Cc: linux-watch...@vger.kernel.org Cc: cphe...@gmail.com Cc: Lucas Stach Cc: Nikita Yushchenko Cc: Lee Jones Cc: Greg Kroah-Hartman Cc: Pavel Machek Cc: Andy Shevchenko Cc: Guenter Roeck Cc: Rob

Re: [PATCH v7] printk: hash addresses printed with %p

2017-10-25 Thread Rasmus Villemoes
On 25 October 2017 at 01:57, Tobin C. Harding wrote: > On Tue, Oct 24, 2017 at 09:25:20PM +0200, Rasmus Villemoes wrote: >> >> I haven't followed the discussion too closely, but has it been >> considered to exempt NULL from hashing? > [snip] > > The code in question is; > > static noinline_for_sta

Re: v4.14-rc3/arm64 DABT exception in atomic_inc() / __skb_clone()

2017-10-25 Thread Eric Dumazet
On Wed, Oct 25, 2017 at 11:49 AM, Willem de Bruijn wrote: > From skb->dev and netdev_priv, the tun device has flags 0x1002 == > IFF_TAP | IFF_NO_PI. This kernel precedes the recent support for > IFF_NAPI and IFF_NAPI_FRAGS. The allocation most likely happened > in tun_build_skb from current->task

[PATCH] PCI: turn off PCIe services during shutdown

2017-10-25 Thread Sinan Kaya
Some of the PCIe services such as AER are being left enabled during shutdown. This might cause spurious AER errors while SOC is being powered down. Let's clean up the PCIe services gracefully during shutdown to clear these false positives. Signed-off-by: Sinan Kaya --- drivers/pci/pcie/portdrv_

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

2017-10-25 Thread Michal Hocko
On Wed 25-10-17 14:11:06, Johannes Weiner wrote: > On Wed, Oct 25, 2017 at 07:29:24PM +0200, Michal Hocko wrote: > > On Wed 25-10-17 12:44:02, Johannes Weiner wrote: > > > On Wed, Oct 25, 2017 at 04:12:21PM +0200, Michal Hocko wrote: > > > > So how about we start with a BIG FAT WARNING for the fail

[PATCH] i2c: designware: make *CNT values configurable

2017-10-25 Thread Shikhar Dogra
The values are already configurable from ACPI. This patch makes the high count (HCNT) and low count (LCNT) register values configurable through device tree. Cc: xe-linux-exter...@cisco.com Signed-off-by: Shikhar Dogra --- Documentation/devicetree/bindings/i2c/i2c-designware.txt | 16 +++

Re: [PATCH] tpm: Move Linux RNG connection to hwrng

2017-10-25 Thread Jarkko Sakkinen
On Wed, Oct 25, 2017 at 08:15:09PM +0530, PrasannaKumar Muralidharan wrote: > > + if (!IS_ENABLED(CONFIG_HW_RANDOM_TPM)) > > + return 0; > > Can #ifndef CONFIG_HW_RANDOM_TPM be used instead? That way an if > condition can be avoided. Nope. There is no reason to avoid the if-co

[PATCH] dt-bindings: pfuze100: Remove leading zero from '@08' notation

2017-10-25 Thread Marco Franchi
Improve the binding example by removing the leading 0 from '@08' notation, which fixes the following build warnings: Warning (unit_address_format): Node /pfuze100@08 unit name should not have leading 0s Warning (unit_address_format): Node /pfuze200@08 unit name should not have leading 0s Warning

[PATCH] iio/accel/stk8312: Improve unlocking of a mutex in two functions

2017-10-25 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 25 Oct 2017 20:46:18 +0200 * Adjust jump targets so that a call of the function "mutex_unlock" is mostly stored at the end of these function implementations. * Replace four calls by goto statements. * Adjust condition checks. This issue was detected by using t

[PATCH 1/9] usb: host: fotg210-hcd: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/fotg210-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host

[PATCH 2/9] usb: host: xhci: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/xhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index ee077a2..05db6e9

[PATCH 3/9] usb: host: xhci-mem: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/xhci-mem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 7952

Re: Fixing CVE-2017-15361

2017-10-25 Thread Jarkko Sakkinen
On Wed, Oct 25, 2017 at 07:17:17AM -0700, Matthew Garrett wrote: > On Wed, Oct 25, 2017 at 6:44 AM, Jarkko Sakkinen > wrote: > > 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.

[PATCH 8/9] usb: host: xhci-hub: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/xhci-hub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 9762

[PATCH 7/9] usb: host: oxu210hp-hcd: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/oxu210hp-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/ho

[PATCH 5/9] usb: host: ehci-hcd: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/ehci-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-

Re: v4.14-rc3/arm64 DABT exception in atomic_inc() / __skb_clone()

2017-10-25 Thread Willem de Bruijn
On Wed, Oct 25, 2017 at 2:24 PM, Willem de Bruijn wrote: > On Sat, Oct 21, 2017 at 9:56 PM, Wei Wei wrote: >> I have uploaded the VM core dump [1]. And I don’t know if these logs are >> helpful in the case of >> failing to get the C reproducer currently. >> >> [1] >> https://github.com/dotweiba

[PATCH 6/9] usb: host: isp1362-hcd: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/isp1362-hcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c i

[PATCH 4/9] usb: host: ohci-hcd: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/ohci-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-

Re: Contribution to Linux Kernel.

2017-10-25 Thread Javier Romero
Hi Pavel, Thank you for your answer. I've a Raspberry PI 3 and read that this device use it's own fork of the Linux Kernel. But do you think it would be useful to test linux-next on this device? Regards 2017-10-23 6:29 GMT-03:00 Pavel Machek : > Hi! >> >> Thank you very much for your time to

[PATCH 0/9] mark expected switch fall-throughs

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, this patchset aims to mark switch cases where we are expecting to fall through. In Kees Cook words: "This is an unfortunate omission in the C language, and thankfully both gcc and clang have stepped up to solve this the same way static analyzers h

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

2017-10-25 Thread Scott Branden
Hi Bjorn, On 17-10-25 10:23 AM, Bjorn Helgaas wrote: [+cc Ray, Scott, Jon] On Wed, Oct 25, 2017 at 11:28:07AM -0400, Jim Quinlan wrote: On Tue, Oct 24, 2017 at 2:57 PM, Florian Fainelli wrote: Hi Jim, On 10/24/2017 11:15 AM, Jim Quinlan wrote: This commit adds MSI to the Broadcom STB PCIe

[PATCH 1/4] usb: xhci: Fix build warning

2017-10-25 Thread Corentin Labbe
This patch fix the following build warnings: drivers/usb/host/xhci.c:3378:6: warning: variable 'last_freed_endpoint' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- drivers/usb/host/xhci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/host/xhci

[PATCH 2/4] usb: xhci: Fix build warning

2017-10-25 Thread Corentin Labbe
This patch fix the following build warning: drivers/usb/host/xhci.c:2853:23: warning: variable 'ep' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- drivers/usb/host/xhci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/h

[PATCH 3/4] usb: xhci: Fix build warning

2017-10-25 Thread Corentin Labbe
This patch fix the following build warning: drivers/usb/host/xhci-ring.c:1895:19: warning: variable 'urb_priv' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- drivers/usb/host/xhci-ring.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/host/xhci-r

[PATCH 4/4] usb: xhci: Fix build warning

2017-10-25 Thread Corentin Labbe
This patch fix the following build warnings: drivers/usb/host/xhci-ring.c:2011:20: warning: variable 'ep_ring' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- drivers/usb/host/xhci-ring.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/host/xhci-r

Re: [PATCH] lightnvm: Convert timers to use timer_setup()

2017-10-25 Thread Javier González
> On 25 Oct 2017, at 20.24, Jens Axboe wrote: > >> On 10/25/2017 01:53 AM, Javier González wrote: >> One thing though: The patch does not apply on top of Jen's for-15/block. >> It is trivial, but here you have a version that applies. > > Jens's... > > It won't work against that tree, as it doe

Re: v4.14-rc3/arm64 DABT exception in atomic_inc() / __skb_clone()

2017-10-25 Thread Willem de Bruijn
On Sat, Oct 21, 2017 at 9:56 PM, Wei Wei wrote: > I have uploaded the VM core dump [1]. And I don’t know if these logs are > helpful in the case of > failing to get the C reproducer currently. > > [1] https://github.com/dotweiba/skb_clone_atomic_inc_bug/blob/master/vmcore.gz Thanks. So this woul

Re: [PATCH] lightnvm: Convert timers to use timer_setup()

2017-10-25 Thread Jens Axboe
On 10/25/2017 01:53 AM, Javier González wrote: > One thing though: The patch does not apply on top of Jen's for-15/block. > It is trivial, but here you have a version that applies. Jens's... It won't work against that tree, as it doesn't have the necessary prep patch. We can do this after the mer

Re: [PATCH v5 9/9] block: Assign a lock_class per gendisk used for wait_for_completion()

2017-10-25 Thread Jens Axboe
On 10/25/2017 03:13 AM, Ingo Molnar wrote: > > * Byungchul Park wrote: > >> Darrick posted the following warning and Dave Chinner analyzed it: >> >>> == >>> WARNING: possible circular locking dependency detected >>> 4.14.0-rc1-fixes #1 Tainted:

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

2017-10-25 Thread Johannes Weiner
On Wed, Oct 25, 2017 at 07:29:24PM +0200, Michal Hocko wrote: > On Wed 25-10-17 12:44:02, Johannes Weiner wrote: > > On Wed, Oct 25, 2017 at 04:12:21PM +0200, Michal Hocko wrote: > > > So how about we start with a BIG FAT WARNING for the failure case? > > > Something resembling warn_alloc for the f

Re: [PATCH] genalloc: Make the avail variable an atomic64_t

2017-10-25 Thread Logan Gunthorpe
On 25/10/17 11:55 AM, Daniel Mentz wrote: avail is defined as size_t (32 bit). Aren't you going to overflow that variable? I think the point is to get support for 64-bit systems (ie. ARM64 and x64. We're working with large PCI BARs and need some way to allocate memory from them. You aren't

Re: [PATCH v3 2/2] ima: check signature enforcement against cmdline param instead of CONFIG

2017-10-25 Thread Bruno E. O. Meneguele
On 25-10, Mimi Zohar wrote: > On Wed, 2017-10-25 at 13:05 -0200, Bruno E. O. Meneguele wrote: > > On 24-10, Mimi Zohar wrote: > > > On Tue, 2017-10-24 at 15:37 -0200, Bruno E. O. Meneguele wrote: > > > > When the user requests MODULE_CHECK policy and its kernel is compiled > > > > with CONFIG_MODUL

[PATCH] KVM: arm/arm64: Fix external abort type matching

2017-10-25 Thread Dongjiu Geng
For this matching, current code using the {I,D}FSC range to match kvm_vcpu_trap_get_fault_type() return value, but kvm_vcpu_trap_get_fault_type() only return the part {I,D}FSC instead of whole, so fix this issue Value Type 0x10FSC_SEA 0x14FSC_SEA_TTW0 FSC_SEA_TTW1 FSC_SEA_TTW

Re: iio/accel/bmc150: Improve unlocking of a mutex in two functions

2017-10-25 Thread SF Markus Elfring
> What you are suggesting breaks this pattern I might be looking for an other balance between involved implementation details after your constructive feedback for my first approach in this software module. > (not using a goto in the last if (err) case) I would find it nice when a bit more code

Re: alpha boot hang - 4.14-rc* regression

2017-10-25 Thread Meelis Roos
> It is probably because I patched the wrong map_irq() function, > I am trying to detect which one you are _actually_ using, if > the patch below fails I will patch them all (which is what I > have to do anyway). > > Please give this a go - this _has_ to make a difference, it is not > correct to l

Re: [PATCH] genalloc: Make the avail variable an atomic64_t

2017-10-25 Thread Daniel Mentz
I found that genalloc is very slow for large chunk sizes because bitmap_find_next_zero_area has to grind through that entire bitmap. Hence, I recommend avoiding genalloc for large chunk sizes. I'm thinking how this would behave on a 32 bit ARM platform On Wed, Oct 25, 2017 at 8:32 AM, wrote: >

Re: Detecting page cache trashing state

2017-10-25 Thread Johannes Weiner
Hi Ruslan, sorry about the delayed response, I missed the new activity in this older thread. On Thu, Sep 28, 2017 at 06:49:07PM +0300, Ruslan Ruslichenko -X (rruslich - GLOBALLOGIC INC at Cisco) wrote: > Hi Johannes, > > Hopefully I was able to rebase the patch on top v4.9.26 (latest supported

Re: [RFC 13/14] bootsplash: Add main documentation

2017-10-25 Thread Randy Dunlap
On 10/25/17 05:46, Max Staudt wrote: > 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/Doc

Re: [PATCH 3/8] PCI: host: brcmstb: Broadcom PCIe Host Controller

2017-10-25 Thread Jim Quinlan
On Tue, Oct 24, 2017 at 5:15 PM, Bjorn Helgaas wrote: > Run "git log --oneline drivers/pci/host" and make yours match, e.g., > > s/PCI: host: brcmstb: Broadcom PCIe Host Controller/ > PCI: brcmstb: Add Broadcom STB PCIe host controller driver/ > > On Tue, Oct 24, 2017 at 02:15:44PM -0400, Jim Qu

Re: Re [PATCH v2] lib: optimize cpumask_next_and()

2017-10-25 Thread Yury Norov
On Wed, Oct 25, 2017 at 06:50:14PM +0300, Yury Norov wrote: > On Wed, Oct 25, 2017 at 05:28:41PM +0200, Clement Courbet wrote: > > Thanks for the comments Yury. > > > > > But I'd like also to keep _find_next_bit() consistent with > > > _find_next_bit_le() > > > > Not sure I understand what you're

Re: [PATCH] wimax/i2400m: Remove VLAIS

2017-10-25 Thread Dan Williams
On Wed, 2017-10-25 at 17:12 +, Perez-Gonzalez, Inaky wrote: > > On Tue, 2017-10-24 at 21:00 +, Perez-Gonzalez, Inaky wrote: > > > > ping any comments on this? > > > > > > None from me; I don't have access to this HW anymore, so I can't > > > validate if the change would work or not. > > I

Re: [PATCH V2 0/3] RDMA/hns: Add Features & Code improvements for hip08

2017-10-25 Thread Doug Ledford
On Wed, 2017-10-18 at 17:32 +0800, Wei Hu (Xavier) wrote: > This patch-set introduce PBL page size configuration support, > updating PD&CQE&MTT specification and IRRL table chunk size > for hip08. > > Wei Hu (Xavier) (3): > RDMA/hns: Support WQE/CQE/PBL page size configurable feature in > hip08

Re: [tip:x86/mm] x86/mm: Add support for early encryption/decryption of memory

2017-10-25 Thread Dave Hansen
On 07/18/2017 03:51 AM, tip-bot for Tom Lendacky wrote: > +/* > + * This routine does not change the underlying encryption setting of the > + * page(s) that map this memory. It assumes that eventually the memory is > + * meant to be accessed as either encrypted or decrypted but the contents > + * a

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

2017-10-25 Thread Randy Dunlap
On 10/25/17 05:45, Max Staudt wrote: > diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig > index a6617c07229a..c3496c5ac2bb 100644 > --- a/drivers/video/console/Kconfig > +++ b/drivers/video/console/Kconfig > @@ -175,6 +175,14 @@ config BOOTSPLASH >If unsure, s

Re: n900 in next-20170901

2017-10-25 Thread Tony Lindgren
* Joonsoo Kim [171022 21:51]: > On Fri, Oct 20, 2017 at 10:31:47AM -0700, Tony Lindgren wrote: > > * Joonsoo Kim [171019 18:53]: > > > Oops... I made a mistak. Could you test with reverting commit > > > c977ee2803787363187d6aca9cebdabc793c6531 ("omap: forcibly call > > > save_secure_ram_context()

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

2017-10-25 Thread Michal Hocko
On Wed 25-10-17 12:44:02, Johannes Weiner wrote: > On Wed, Oct 25, 2017 at 04:12:21PM +0200, Michal Hocko wrote: [...] I yet have to digest the first path of the email but the remaining just sounds we are not on the same page. > > So how about we start with a BIG FAT WARNING for the failure case?

Re: iio/accel/bmc150: Improve unlocking of a mutex in two functions

2017-10-25 Thread Hans de Goede
Hi, On 25-10-17 18:58, SF Markus Elfring wrote: If that is the only unlock in the function, then it is probably best to keep things as is. In general gotos are considered better then multiple unlocks, but not having either is even better. Thanks for your quick feedback. How do you think abo

[PATCH] usb: gadget: udc: dummy_hcd: mark expected switch fall-throughs

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/gadget/udc/dummy_hcd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/u

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

2017-10-25 Thread Randy Dunlap
On 10/25/17 05:45, Max Staudt wrote: > diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig > index 7f1f1fbcef9e..a6617c07229a 100644 > --- a/drivers/video/console/Kconfig > +++ b/drivers/video/console/Kconfig > @@ -151,6 +151,30 @@ config FRAMEBUFFER_CONSOLE_ROTATION >

[tip:perf/core] perf util: Enable handling of inlined frames by default

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: d8a88dd243a170a226aba33e7c53704db2f82aa6 Gitweb: https://git.kernel.org/tip/d8a88dd243a170a226aba33e7c53704db2f82aa6 Author: Milian Wolff AuthorDate: Thu, 19 Oct 2017 13:38:36 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 25 Oct 2017 10:50:47 -0300 perf util: En

[tip:perf/core] perf report: Use srcline from callchain for hist entries

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: 1fb7d06a509e82893e59e0f0b223e7d5d6d0ef8c Gitweb: https://git.kernel.org/tip/1fb7d06a509e82893e59e0f0b223e7d5d6d0ef8c Author: Milian Wolff AuthorDate: Thu, 19 Oct 2017 13:38:35 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 25 Oct 2017 10:50:46 -0300 perf report:

[tip:perf/core] perf report: Cache srclines for callchain nodes

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: 21ac9d547fdde79c1e8692587d9044fde549214b Gitweb: https://git.kernel.org/tip/21ac9d547fdde79c1e8692587d9044fde549214b Author: Milian Wolff AuthorDate: Thu, 19 Oct 2017 13:38:34 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 25 Oct 2017 10:50:46 -0300 perf report:

[tip:perf/core] perf report: Compare symbol name for inlined frames when sorting

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: aa441895f7b4ff5394d4964a8e6749f3866e44d0 Gitweb: https://git.kernel.org/tip/aa441895f7b4ff5394d4964a8e6749f3866e44d0 Author: Milian Wolff AuthorDate: Mon, 9 Oct 2017 22:33:04 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Oct 2017 09:59:56 -0300 perf report: C

[tip:perf/core] perf report: Cache failed lookups of inlined frames

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: b38775cf7678d7715b35dded3dcfab66e244baae Gitweb: https://git.kernel.org/tip/b38775cf7678d7715b35dded3dcfab66e244baae Author: Milian Wolff AuthorDate: Thu, 19 Oct 2017 13:38:33 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 25 Oct 2017 10:50:45 -0300 perf report:

Re: [RFC 10/14] bootsplash: Add animation support

2017-10-25 Thread Max Staudt
On 10/25/2017 07:20 PM, Randy Dunlap wrote: > On 10/25/17 05:45, Max Staudt wrote: >> @@ -117,17 +128,45 @@ static bool is_fb_compatible(struct fb_info *info) >> */ >> void bootsplash_render_full(struct fb_info *info) >> { >> +bool is_update = false; >> + >> mutex_lock(&splash_global.d

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

2017-10-25 Thread Bjorn Helgaas
[+cc Ray, Scott, Jon] On Wed, Oct 25, 2017 at 11:28:07AM -0400, Jim Quinlan wrote: > On Tue, Oct 24, 2017 at 2:57 PM, Florian Fainelli > wrote: > > Hi Jim, > > > > On 10/24/2017 11:15 AM, Jim Quinlan wrote: > >> This commit adds MSI to the Broadcom STB PCIe host controller. It does > >> not add

[tip:perf/core] perf report: Properly handle branch count in match_chain()

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: bf36eb5c4b3ef0ebfb19b1a67a5fa5821e6c9fa7 Gitweb: https://git.kernel.org/tip/bf36eb5c4b3ef0ebfb19b1a67a5fa5821e6c9fa7 Author: Milian Wolff AuthorDate: Fri, 20 Oct 2017 12:14:47 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 25 Oct 2017 10:50:37 -0300 perf report:

[PATCH] usb: gadget: composite: mark expected switch fall-throughs

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/gadget/composite.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/u

[tip:perf/core] perf callchain: Compare symbol name for inlined frames when matching

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: 9856240ad3269f2fdab0b2fa4400ef8aab792061 Gitweb: https://git.kernel.org/tip/9856240ad3269f2fdab0b2fa4400ef8aab792061 Author: Milian Wolff AuthorDate: Mon, 9 Oct 2017 22:33:03 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Oct 2017 09:59:56 -0300 perf callchain

[tip:perf/core] perf script: Mark inlined frames and do not print DSO for them

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: 9628b56dc1240ce0faa3bd9b7a3390fa4451c59f Gitweb: https://git.kernel.org/tip/9628b56dc1240ce0faa3bd9b7a3390fa4451c59f Author: Milian Wolff AuthorDate: Mon, 9 Oct 2017 22:33:02 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Oct 2017 09:59:56 -0300 perf script: M

[tip:perf/core] perf report: Remove code to handle inline frames from browsers

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: 2a704fc8db7b0080a67d9f4f4cb2a7bcaf79949d Gitweb: https://git.kernel.org/tip/2a704fc8db7b0080a67d9f4f4cb2a7bcaf79949d Author: Milian Wolff AuthorDate: Mon, 9 Oct 2017 22:32:55 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Oct 2017 09:59:55 -0300 perf report: R

[tip:perf/core] perf callchain: Create real callchain entries for inlined frames

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: 11ea2515f32e783b9a7984c148e742c377383915 Gitweb: https://git.kernel.org/tip/11ea2515f32e783b9a7984c148e742c377383915 Author: Milian Wolff AuthorDate: Mon, 9 Oct 2017 22:32:59 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Oct 2017 09:59:55 -0300 perf callchain

[tip:perf/core] perf callchain: Mark inlined frames in output by " (inlined)" suffix

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: 8932f8071cae8a12dfd5f49224ee176b0da4 Gitweb: https://git.kernel.org/tip/8932f8071cae8a12dfd5f49224ee176b0da4 Author: Milian Wolff AuthorDate: Mon, 9 Oct 2017 22:33:01 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Oct 2017 09:59:56 -0300 perf callchain

[tip:perf/core] perf callchain: Store srcline in callchain_cursor_node

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: 40a342cda2cd9bc8f7bf81c5ce1a141584760757 Gitweb: https://git.kernel.org/tip/40a342cda2cd9bc8f7bf81c5ce1a141584760757 Author: Milian Wolff AuthorDate: Mon, 9 Oct 2017 22:32:56 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Oct 2017 09:59:55 -0300 perf callchain

[tip:perf/core] perf report: Fall-back to function name comparison for -g srcline

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: cbe50f61727f538f05e63186c2e0022182a3a28f Gitweb: https://git.kernel.org/tip/cbe50f61727f538f05e63186c2e0022182a3a28f Author: Milian Wolff AuthorDate: Mon, 9 Oct 2017 22:33:00 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Oct 2017 09:59:55 -0300 perf report: F

[tip:perf/core] perf callchain: Refactor inline_list to operate on symbols

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: fea0cf842c7aa08950063264ab1cfbce4ba38c1b Gitweb: https://git.kernel.org/tip/fea0cf842c7aa08950063264ab1cfbce4ba38c1b Author: Milian Wolff AuthorDate: Mon, 9 Oct 2017 22:32:57 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Oct 2017 09:59:55 -0300 perf callchain

[tip:perf/core] perf callchain: Refactor inline_list to store srcline string directly

2017-10-25 Thread tip-bot for Milian Wolff
Commit-ID: 2be8832f3c51cf9e36a3e80ff57f4137505c2ba4 Gitweb: https://git.kernel.org/tip/2be8832f3c51cf9e36a3e80ff57f4137505c2ba4 Author: Milian Wolff AuthorDate: Mon, 9 Oct 2017 22:32:58 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Oct 2017 09:59:55 -0300 perf callchain

Re: [RFC 10/14] bootsplash: Add animation support

2017-10-25 Thread Randy Dunlap
On 10/25/17 05:45, Max Staudt wrote: > @@ -117,17 +128,45 @@ static bool is_fb_compatible(struct fb_info *info) > */ > void bootsplash_render_full(struct fb_info *info) > { > + bool is_update = false; > + > mutex_lock(&splash_global.data_lock); > > - if (!is_fb_compatible(info))

Re: [PATCH v3 2/2] ima: check signature enforcement against cmdline param instead of CONFIG

2017-10-25 Thread Mimi Zohar
On Wed, 2017-10-25 at 13:05 -0200, Bruno E. O. Meneguele wrote: > On 24-10, Mimi Zohar wrote: > > On Tue, 2017-10-24 at 15:37 -0200, Bruno E. O. Meneguele wrote: > > > When the user requests MODULE_CHECK policy and its kernel is compiled > > > with CONFIG_MODULE_SIG_FORCE not set, all modules would

Re: [PATCH 2/2] Add /proc/PID/{smaps, numa_maps} support for DAX

2017-10-25 Thread Dave Hansen
On 10/25/2017 02:30 AM, Michal Hocko wrote: >> >> 7f6c1780-7f6c17e0 rw-s 00:06 20559 /dev/dax12.0 >> Size: 6144 kB >> . >> . >> . >> Ptes@2MB:6144 kB > This says how but it doesn't tell why and who is going to use the > information and what for.

[PATCH v2 1/9] irqchip: stm32: select GENERIC_IRQ_CHIP

2017-10-25 Thread Ludovic Barre
From: Ludovic Barre This patch adds GENERIC_IRQ_CHIP to stm32 exti config. Signed-off-by: Ludovic Barre --- drivers/irqchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 9d8a1dd..c067aae 100644 --- a/drivers/irqchip/Kconfig

[PATCH v2 4/9] irqchip: stm32: add stm32h7 support

2017-10-25 Thread Ludovic Barre
From: Ludovic Barre stm32h7 has up to 96 inputs (3 banks of 32 inputs max). Signed-off-by: Ludovic Barre --- drivers/irqchip/irq-stm32-exti.c | 42 1 file changed, 42 insertions(+) diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm

[PATCH v2 3/9] dt-bindings: interrupt-controllers: add compatible string for stm32h7

2017-10-25 Thread Ludovic Barre
From: Ludovic Barre This patch updates stm32-exti documentation with stm32h7-exti compatible string. Signed-off-by: Ludovic Barre --- .../devicetree/bindings/interrupt-controller/st,stm32-exti.txt| 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devi

[PATCH v2 8/9] ARM: dts: stm32: add system config bank node for stm32h743

2017-10-25 Thread Ludovic Barre
From: Ludovic Barre This patch adds system config support for stm32h743. Signed-off-by: Ludovic Barre --- arch/arm/boot/dts/stm32h743.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi index 6b2fb4c..b17aa5c 100644

[PATCH v2 9/9] ARM: dts: stm32: add support of exti on stm32h743 pinctrl

2017-10-25 Thread Ludovic Barre
From: Ludovic Barre This patch adds support of external interrupt (exti) on all gpio ports of stm32h743. Signed-off-by: Ludovic Barre --- arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743-pinctrl.d

[PATCH v2 5/9] irqchip: stm32: fix initial values

2017-10-25 Thread Ludovic Barre
From: Ludovic Barre -After cold boot, imr default value depends on hardware configuration. -After hot reboot the registers must be cleared to avoid residue. Signed-off-by: Ludovic Barre --- drivers/irqchip/irq-stm32-exti.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/ir

[PATCH v2 2/9] irqchip: stm32: add multi-bank management

2017-10-25 Thread Ludovic Barre
From: Ludovic Barre -Prepare to manage multi-bank of external interrupts (N banks of 32 inputs). -Prepare to manage registers offsets by compatible (registers offsets could be different follow per stm32 platform). Signed-off-by: Ludovic Barre --- drivers/irqchip/irq-stm32-exti.c | 151

[PATCH v2 0/9] irqchip: stm32: add stm32h7 support

2017-10-25 Thread Ludovic Barre
From: Ludovic Barre This series adds: -Management of multi-bank of external interrupts stm32h7 has up to 96 inputs (3 banks of 32 inputs). -Fix initial value after cold/hot boot (wakeup issue). Changes v2: -Remove irq_mask and adds const on struct stm32_exti_bank -Add wrapper functions pending

Re: [fstests PATCH v2] generic: add test for DAX MAP_SYNC support

2017-10-25 Thread Ross Zwisler
On Wed, Oct 25, 2017 at 03:19:22PM +0300, Amir Goldstein wrote: > On Sun, Oct 22, 2017 at 9:56 AM, Amir Goldstein wrote: > > On Sat, Oct 21, 2017 at 12:25 AM, Ross Zwisler > > wrote: > >> Add a test that exercises DAX's new MAP_SYNC flag. > >> > >> This test creates a file and writes to it via an

RE: [PATCH] wimax/i2400m: Remove VLAIS

2017-10-25 Thread Perez-Gonzalez, Inaky
>On Tue, 2017-10-24 at 21:00 +, Perez-Gonzalez, Inaky wrote: >> > ping any comments on this? >> >> None from me; I don't have access to this HW anymore, so I can't >> validate if the change would work or not. > I still have a 5350 around somewhere, I can make sure firmware loads if > you like.

[PATCH v2 6/9] irqchip: stm32: move the wakeup on interrupt mask

2017-10-25 Thread Ludovic Barre
From: Ludovic Barre Move irq_set_wake on interrupt mask, needed to wake up from low power mode as the event mask is not able to do so. Signed-off-by: Ludovic Barre --- drivers/irqchip/irq-stm32-exti.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/irqchi

[PATCH v2 7/9] ARM: dts: stm32: add exti support for stm32h743

2017-10-25 Thread Ludovic Barre
From: Ludovic Barre This patch adds support of external interrupt (exti) for stm32h743. Signed-off-by: Ludovic Barre --- arch/arm/boot/dts/stm32h743.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi index 58ec22

Re: [GIT PULL 00/15] perf/core inlining improvements

2017-10-25 Thread Ingo Molnar
ernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core > (2017-10-24 10:53:04 +0200) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-core-for-mingo-4.15-20171025 > > for you to fetch changes

Re: [PATCH v2 0/2] mtd: nand: wait for tWHR, and fix the setup_data_interface of Denali

2017-10-25 Thread Masahiro Yamada
Hi Marc, 2017-10-19 23:58 GMT+09:00 Marc Gonzalez : > On 13/10/2017 10:34, Masahiro Yamada wrote: > >> 2017-10-04 20:05, Marc Gonzalez wrote: >> >>> On 29/09/2017 16:33, Masahiro Yamada wrote: >>> tango_nand.c is the only driver that sets NAND_WAIT_TCCS. Now, there is completely no

Re: [PATCH] net: sunrpc: svcauth_gss: use BUG_ON instead of if condition followed by BUG

2017-10-25 Thread Jeff Layton
On Tue, 2017-10-24 at 15:12 -0500, Gustavo A. R. Silva wrote: > Quoting "J. Bruce Fields" : > > > On Tue, Oct 24, 2017 at 02:18:52PM -0400, Jeff Layton wrote: > > > On Tue, 2017-10-24 at 13:53 -0400, J. Bruce Fields wrote: > > > > On Tue, Oct 24, 2017 at 01:26:49PM -0400, Weston Andros Adamson wro

Re: Detecting page cache trashing state

2017-10-25 Thread Daniel Walker
On 09/28/2017 08:49 AM, Ruslan Ruslichenko -X (rruslich - GLOBALLOGIC INC at Cisco) wrote: Hi Johannes, Hopefully I was able to rebase the patch on top v4.9.26 (latest supported version by us right now) and test a bit. The overall idea definitely looks promising, although I have one question

Re: iio/accel/bmc150: Improve unlocking of a mutex in two functions

2017-10-25 Thread SF Markus Elfring
> If that is the only unlock in the function, then it is probably > best to keep things as is. In general gotos are considered > better then multiple unlocks, but not having either is > even better. Thanks for your quick feedback. >> How do you think about to use the following code variant then?

Re: [PATCH 0/2] ARM-OMAP3: Fine-tuning for omap3xxx_hwmod_init()

2017-10-25 Thread Tony Lindgren
* SF Markus Elfring [171020 08:17]: > From: Markus Elfring > Date: Fri, 20 Oct 2017 17:08:09 +0200 > > Two update suggestions were taken into account > from static source code analysis. Thanks applying into omap-for-v4.15/coccinelle. Regards, Tony

Re: [PATCH] kernel/kprobes: add check to avoid kprobe memory leak

2017-10-25 Thread Masami Hiramatsu
On Tue, 24 Oct 2017 20:17:02 +0800 JianKang Chen wrote: > The function register_kretprobe is used to initialize a struct > kretprobe and allocate a list table for kprobe instance. > However,in this function, there is a memory leak. > > The test case: > > static struct kretprobe rp; > struct kr

Re: [PATCH 0/9] Enable dw-mmc multi-card support

2017-10-25 Thread Ulf Hansson
[...] > Unfortunate patch 8 and 9 does *not* solve the fundamental problem > with multiple slots. You can't solve it without involving the mmc > core, as explained in earlier discussions [1]. > This link got lost, so here it is: [1] https://www.spinics.net/lists/linux-mmc/msg46549.html [...] K

<    1   2   3   4   5   6   7   8   >