[PATCH 6/6] clocksource/drivers/imx-tpm: Add different counter width support

2018-04-03 Thread Daniel Lezcano
From: Anson Huang Different TPM modules have different width counters which is 16-bit or 32-bit, the counter width can be read from TPM_PARAM register bit[23:16], this patch adds dynamic check for counter width to support both 16-bit and 32-bit TPM modules. Signed-off-by: Anson Huang

[PATCH 5/6] clocksource/drivers/imx-tpm: Correct some registers operation flow

2018-04-03 Thread Daniel Lezcano
From: Anson Huang According to i.MX7ULP reference manual, TPM_SC_CPWMS can ONLY be written when counter is disabled, TPM_SC_TOF is write-1-clear, TPM_C0SC_CHF is also write-1-clear, correct these registers initialization flow; Signed-off-by: Anson Huang Signed-off-by: Daniel Lezcano ---

[PATCH 1/6] dt-binding: timer: document NPCM7xx timer DT bindings

2018-04-03 Thread Daniel Lezcano
From: Tomer Maimon Added device tree binding documentation for Nuvoton NPCM7xx timer. Signed-off-by: Tomer Maimon Acked-by: Rob Herring Reviewed-by: Brendan Higgins Signed-off-by: Daniel Lezcano --- .../bindings/timer/nuvoton,npcm7xx-timer.txt| 21 + 1 file

[PATCH 2/6] clocksource/drivers/npcm: Add NPCM7xx timer driver

2018-04-03 Thread Daniel Lezcano
From: Tomer Maimon Add Nuvoton BMC NPCM7xx timer driver. The clocksource Enable 24-bit TIMER0 and TIMER1 counters, while TIMER0 serve as clockevent and TIMER1 serve as clocksource. Signed-off-by: Tomer Maimon Reviewed-by: Brendan Higgins Signed-off-by: Daniel Lezcano ---

[PATCH 4/6] clocksource/drivers/imx-tpm: Fix typo of clock name

2018-04-03 Thread Daniel Lezcano
From: Anson Huang The clock name should be ipg instead of igp. Signed-off-by: Anson Huang Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-imx-tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-imx-tpm.c

[PATCH 3/6] dt-bindings: timer: tpm: fix typo of clock name

2018-04-03 Thread Daniel Lezcano
From: Anson Huang The clock name should be ipg instead of igp. Signed-off-by: Anson Huang Reviewed-by: Rob Herring Signed-off-by: Daniel Lezcano --- Documentation/devicetree/bindings/timer/nxp,tpm-timer.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 6/6] spi: sun4i: add DMA transfers support

2018-04-03 Thread Sergey Suloev
On 04/03/2018 11:17 AM, Maxime Ripard wrote: On Thu, Mar 29, 2018 at 09:59:07PM +0300, Sergey Suloev wrote: +static int sun4i_spi_dma_setup(struct device *dev, + struct resource *res) +{ + struct spi_master *master = dev_get_drvdata(dev); + struct

Re: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support

2018-04-03 Thread Andrew Lunn
On Tue, Apr 03, 2018 at 11:12:52AM +, Razvan Stefanescu wrote: > DPAA2 offers several object-based abstractions for modeling network > related devices (interfaces, L2 Ethernet switch) or accelerators > (DPSECI - crypto and DPDCEI - compression), the latter not up-streamed yet. > They are

Re: [PATCH v3 05/14] s390: vfio-ap: base implementation of VFIO AP device driver

2018-04-03 Thread Tony Krowiak
On 04/03/2018 06:57 AM, Cornelia Huck wrote: On Wed, 14 Mar 2018 14:25:45 -0400 Tony Krowiak wrote: Introduces a new AP device driver. This device driver is built on the VFIO mediated device framework. The framework provides sysfs interfaces that facilitate passthrough access by guests to

Re: [PATCH v2 2/2] io: prevent compiler reordering on the default readX() implementation

2018-04-03 Thread Sinan Kaya
On 4/3/2018 8:56 AM, Arnd Bergmann wrote: > On Tue, Apr 3, 2018 at 2:44 PM, Sinan Kaya wrote: >> On 4/3/2018 7:13 AM, Arnd Bergmann wrote: >>> On Tue, Apr 3, 2018 at 12:49 PM, Mark Rutland wrote: Hi, On Fri, Mar 30, 2018 at 11:58:13AM -0400, Sinan Kaya wrote: > The default

Re: Signal handling in a page fault handler

2018-04-03 Thread Matthew Wilcox
On Tue, Apr 03, 2018 at 01:33:15PM +0100, Chris Wilson wrote: > Quoting Matthew Wilcox (2018-04-02 15:10:58) > > Souptick and I have been auditing the various page fault handler routines > > and we've noticed that graphics drivers assume that a signal should be > > able to interrupt a page fault.

Re: [virtio-dev] [pci PATCH v7 2/5] virtio_pci: Add support for unmanaged SR-IOV on virtio_pci devices

2018-04-03 Thread Michael S. Tsirkin
On Thu, Mar 15, 2018 at 11:42:41AM -0700, Alexander Duyck wrote: > From: Alexander Duyck > > Hardware-realized virtio_pci devices can implement SR-IOV, so this > patch enables its use. The device in question is an upcoming Intel > NIC that implements both a virtio_net PF and virtio_net VFs.

Re: [PATCH v3] vsprintf: Prevent crash when dereferencing invalid pointers

2018-04-03 Thread Petr Mladek
On Tue 2018-04-03 14:54:18, Andy Shevchenko wrote: > On Tue, 2018-04-03 at 13:46 +0200, Petr Mladek wrote: > > On Mon 2018-04-02 17:15:23, Andy Shevchenko wrote: > > > On Thu, 2018-03-29 at 16:53 +0200, Petr Mladek wrote: > > > > On Fri 2018-03-16 20:19:35, Andy Shevchenko wrote: > > > > > On Thu,

Re: [virtio-dev] [pci PATCH v7 2/5] virtio_pci: Add support for unmanaged SR-IOV on virtio_pci devices

2018-04-03 Thread Michael S. Tsirkin
On Fri, Mar 16, 2018 at 09:40:34AM -0700, Alexander Duyck wrote: > On Fri, Mar 16, 2018 at 9:34 AM, Michael S. Tsirkin wrote: > > On Thu, Mar 15, 2018 at 11:42:41AM -0700, Alexander Duyck wrote: > >> From: Alexander Duyck > >> > >> Hardware-realized virtio_pci devices can implement SR-IOV, so

Re: [PATCH 1/8] bindings: PCI: designware: Example update

2018-04-03 Thread Gustavo Pimentel
Hi Kishon, On 03/04/2018 11:53, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 03 April 2018 04:22 PM, Kishon Vijay Abraham I wrote: >> >> >> On Tuesday 03 April 2018 04:03 PM, Gustavo Pimentel wrote: >>> Hi Kishon, >>> >>> On 02/04/2018 06:23, Kishon Vijay Abraham I wrote: Hi,

Re: [PATCH 05/45] C++: Set compilation as C++ for .c files

2018-04-03 Thread David Howells
kbuild test robot wrote: >scripts/Makefile.kasan:17: Cannot use CONFIG_KASAN: > -fsanitize=kernel-address is not supported by compiler >cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but > not for C >cc1: warning: command line option '-fpermissive' is valid

[PATCH 1/1] taging: fbtft: fix memory leak

2018-04-03 Thread Xidong Wang
From: Xidong Wang <2711406...@qq.com> In function fbtft_framebuffer_alloc(), the memory allocated by framebuffer_alloc() is not released on the error path that txbuflen > 0 and txbuf, which holds the return value of devm_kzalloc(), is NULL. This will result in a memory leak bug. Signed-off-by:

Re: [PATCH v3 07/14] KVM: s390: interfaces to configure/deconfigure guest's AP matrix

2018-04-03 Thread Tony Krowiak
On 04/03/2018 07:07 AM, Cornelia Huck wrote: On Wed, 14 Mar 2018 14:25:47 -0400 Tony Krowiak wrote: Provides interfaces to assign AP adapters, usage domains and control domains to a KVM guest. A KVM guest is started by executing the Start Interpretive Execution (SIE) instruction. The SIE

Re: [PATCH 1/6] drivers/i2c: Update i2c_trace_msg static key to modern api

2018-04-03 Thread Wolfram Sang
On Mon, Mar 26, 2018 at 02:09:24PM -0700, Davidlohr Bueso wrote: > No changes in refcount semantics -- key init is false; replace > > static_key_slow_inc|dec with static_branch_inc|dec > static_key_false with static_branch_unlikely > > Added a '_key' suffix to i2c_trace_msg, for

Re: Signal handling in a page fault handler

2018-04-03 Thread Thomas Hellstrom
On 04/03/2018 02:33 PM, Chris Wilson wrote: Quoting Matthew Wilcox (2018-04-02 15:10:58) Souptick and I have been auditing the various page fault handler routines and we've noticed that graphics drivers assume that a signal should be able to interrupt a page fault. In contrast, the page cache

Re: [PATCH 2/3] virt: vbox: Use __get_free_pages instead of kmalloc for DMA32 memory

2018-04-03 Thread Hans de Goede
Hi, On 29-03-18 18:39, Greg Kroah-Hartman wrote: On Thu, Mar 29, 2018 at 03:42:59PM +0200, Hans de Goede wrote: Hi, On 29-03-18 13:58, Greg Kroah-Hartman wrote: On Thu, Mar 29, 2018 at 01:21:15PM +0200, Hans de Goede wrote: It is not possible to get DMA32 zone memory through kmalloc, Why

Re: [PATCH 3/8] bindings: PCI: designware: Add support for the EP in designware driver

2018-04-03 Thread Gustavo Pimentel
Hi Kishon, On 03/04/2018 11:55, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 03 April 2018 04:13 PM, Gustavo Pimentel wrote: >> Hi Kishon, >> >> On 02/04/2018 06:35, Kishon Vijay Abraham I wrote: >>> >>> >>> On Wednesday 28 March 2018 05:08 PM, Gustavo Pimentel wrote: Signed-off-by:

[PATCH v3 0/3] Misc patches to support clocks for SDM845

2018-04-03 Thread Amit Nischal
Changes in v3: 1. Adressed review comments given for v2 series. 2. The GCC clock driver(patch 3) depends upon the below patches related to GDSC operation and are under review. https://lkml.org/lkml/2018/4/2/142 Changes in v2: Fixup for recalc_rate ops for clk_rcg2_shared_ops: There could

[PATCH v3 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SDM845

2018-04-03 Thread Amit Nischal
From: Taniya Das Add support for the global clock controller found on SDM845 based devices. This should allow most non-multimedia device drivers to probe and control their clocks. Signed-off-by: Taniya Das Signed-off-by: Amit Nischal --- The patch is dependent upon the below patches related

[PATCH v3 2/3] clk: qcom: Configure the RCGs to a safe source as needed

2018-04-03 Thread Amit Nischal
For some root clock generators, there could be child branches which are controlled by an entity other than application processor subsystem. For such RCGs, as per application processor subsystem clock driver, all of its downstream clocks are disabled and RCG is in disabled state but in reality

[PATCH v3 1/3] clk: qcom: Clear hardware clock control bit of RCG

2018-04-03 Thread Amit Nischal
For upcoming targets like sdm845, POR value of the hardware clock control bit is set for most of root clocks which needs to be cleared for software to be able to control. For older targets like MSM8996, this bit is reserved bit and having POR value as 0 so this patch will work for the older

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Ard Biesheuvel
(+ Andy and Kees so they can respond to the thread) On 31 March 2018 at 12:20, David Howells wrote: > James Morris wrote: > >> Are there any known coverage gaps now? > > I've covered all the ones I know about. > Andy (and Kees) responded to this without keeping all the cc's. Given that I share

Re: [PATCH] vhost-net: add limitation of sent packets for tx polling

2018-04-03 Thread Michael S. Tsirkin
On Tue, Apr 03, 2018 at 12:29:47PM +, haibinzhang(张海斌) wrote: > > >On Tue, Apr 03, 2018 at 08:08:26AM +, haibinzhang wrote: > >> handle_tx will delay rx for a long time when tx busy polling udp packets > >> with small length(e.g. 1byte udp payload), because setting VHOST_NET_WEIGHT > >>

Re: [PATCH 05/45] C++: Set compilation as C++ for .c files

2018-04-03 Thread Fengguang Wu
On Tue, Apr 03, 2018 at 02:16:50PM +0100, David Howells wrote: kbuild test robot wrote: scripts/Makefile.kasan:17: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C

Re: [PATCH 1/1] taging: fbtft: fix memory leak

2018-04-03 Thread Greg Kroah-Hartman
On Tue, Apr 03, 2018 at 09:14:28PM +0800, Xidong Wang wrote: > From: Xidong Wang <2711406...@qq.com> > > In function fbtft_framebuffer_alloc(), the memory allocated by > framebuffer_alloc() is not released on the error path that txbuflen > 0 > and txbuf, which holds the return value of

Re: [RFC PATCH 1/1] vmscan: Support multiple kswapd threads per node

2018-04-03 Thread Michal Hocko
On Mon 02-04-18 09:24:22, Buddy Lumpkin wrote: > Page replacement is handled in the Linux Kernel in one of two ways: > > 1) Asynchronously via kswapd > 2) Synchronously, via direct reclaim > > At page allocation time the allocating task is immediately given a page > from the zone free list

Re: [PATCH V3 4/4] genirq/affinity: irq vector spread among online CPUs as far as possible

2018-04-03 Thread Thomas Gleixner
On Thu, 8 Mar 2018, Ming Lei wrote: > 1) before 84676c1f21 ("genirq/affinity: assign vectors to all possible CPUs") > irq 39, cpu list 0 > irq 40, cpu list 1 > irq 41, cpu list 2 > irq 42, cpu list 3 > > 2) after 84676c1f21 ("genirq/affinity: assign vectors to all possible

Re: [PATCH v1] kernel/trace:check the val against the available mem

2018-04-03 Thread Steven Rostedt
On Tue, 3 Apr 2018 14:35:14 +0200 Michal Hocko wrote: > > If we use NORETRY, then we have those that complain that we do not try > > hard enough to reclaim memory. If we use RETRY_MAYFAIL we have this > > issue of taking up all memory before we get what we want. > > Just try to do what admin

Multiple generic PHY instances for DWC3 USB IP

2018-04-03 Thread Masahiro Yamada
Hi. Currently, DWC3 core IP (drivers/usb/dwc3/core.c) can take only one PHY phandle for each of SS, HS. (phy-names DT property is "usb2-phy" and "usb3-phy" for each) The DWC3 core IP is provided by Synopsys, but some SoC-dependent parts (a.k.a glue-layer) are implemented by SoC venders. The

Re: [PATCH v3 08/14] s390: vfio-ap: sysfs interfaces to configure adapters

2018-04-03 Thread Tony Krowiak
On 04/03/2018 07:10 AM, Cornelia Huck wrote: On Wed, 14 Mar 2018 14:25:48 -0400 Tony Krowiak wrote: diff --git a/drivers/s390/crypto/vfio_ap_private.h b/drivers/s390/crypto/vfio_ap_private.h index a388b66..f6e7ed1 100644 --- a/drivers/s390/crypto/vfio_ap_private.h +++

Re: [PATCH] MAINTAINERS: Add drm/xen-front maintainer entry

2018-04-03 Thread Oleksandr Andrushchenko
On 04/03/2018 03:32 PM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Add myself as drivers/gpu/drm/xen maintainer. Signed-off-by: Oleksandr Andrushchenko --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH 1/1] taging: fbtft: fix memory leak

2018-04-03 Thread Xidong Wang
From: Xidong Wang <2711406...@qq.com> In function fbtft_framebuffer_alloc(), the memory allocated by framebuffer_alloc() is not released on the error path that txbuflen > 0 and txbuf, which holds the return value of devm_kzalloc(), is NULL. This will result in a memory leak bug. Signed-off-by:

Re: [PATCH v2 1/3] locking: Document the semantics of spin_is_locked()

2018-04-03 Thread Andrea Parri
On Tue, Apr 03, 2018 at 01:49:09PM +0100, David Howells wrote: > Andrea Parri wrote: > > > +/** > > + * spin_is_locked() - Check whether a spinlock is locked. > > + * @lock: Pointer to the spinlock. > > + * > > + * This function is NOT required to provide any memory ordering > > + * guarantees;

Re: [PATCH v3 07/14] KVM: s390: interfaces to configure/deconfigure guest's AP matrix

2018-04-03 Thread Cornelia Huck
On Tue, 3 Apr 2018 09:17:59 -0400 Tony Krowiak wrote: > On 04/03/2018 07:07 AM, Cornelia Huck wrote: > > On Wed, 14 Mar 2018 14:25:47 -0400 > > Tony Krowiak wrote: > > > >> Provides interfaces to assign AP adapters, usage domains > >> and control domains to a KVM guest. > >> > >> A KVM guest

Re: [PATCH v3] vsprintf: Prevent crash when dereferencing invalid pointers

2018-04-03 Thread Andy Shevchenko
On Tue, 2018-04-03 at 15:13 +0200, Petr Mladek wrote: > On Tue 2018-04-03 14:54:18, Andy Shevchenko wrote: > > On Tue, 2018-04-03 at 13:46 +0200, Petr Mladek wrote: > > > On Mon 2018-04-02 17:15:23, Andy Shevchenko wrote: > > > > On Thu, 2018-03-29 at 16:53 +0200, Petr Mladek wrote: > > > > > On

[PATCH] arm64: allwinner: h6: restore the usage of CCU slice macros

2018-04-03 Thread Icenowy Zheng
As the definition of CCU slice macros are already merged into the source tree, restore the usage of the macros now. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git

RE: Re: [PATCH 1/1] lz4: Implement lz4 with dynamic offset length.

2018-04-03 Thread Vaneet Narang
Hi Sergey, >You shrink a 2 bytes offset down to a 1 byte offset, thus you enforce that 2 Byte offset is not shrinked to 1 byte, Its only 1 bit is reserved out of 16 bits of offset. So only 15 Bits can be used to store offset value. >'page should be less than 32KB', which I'm sure will be

Re: [PATCH v17 04/10] PCI: Apply the new generic I/O management on PCI IO hosts

2018-04-03 Thread Thierry Reding
On Thu, Mar 15, 2018 at 02:15:53AM +0800, John Garry wrote: > From: Zhichang Yuan > > After introducing the new generic I/O space management(Logical PIO), the > original PCI MMIO relevant helpers need to be updated based on the new > interfaces defined in logical PIO. > This patch adapts the

Re: [alsa-devel] [PATCH] ASoC: atmel_ssc_dai: fix spelling mistake: "Stoping" -> "Stopping"

2018-04-03 Thread Ladislav Michl
On Fri, Mar 30, 2018 at 04:44:20PM +0100, Colin King wrote: > From: Colin Ian King Hello Colin, > Trivial fix to spelling mistake in pr_debug message text would you mind making this patch a bit less non-trivial and change pr_debug to dev_dbg dropping Atmel_ssc_dai prefix? Thank you. >

Re: Signal handling in a page fault handler

2018-04-03 Thread Matthew Wilcox
On Tue, Apr 03, 2018 at 02:20:43PM +0100, Chris Wilson wrote: > Quoting Matthew Wilcox (2018-04-03 14:10:25) > > On Tue, Apr 03, 2018 at 01:33:15PM +0100, Chris Wilson wrote: > > > Quoting Matthew Wilcox (2018-04-02 15:10:58) > > > > I don't think the graphics drivers really want to be interrupted

Re: [PATCH 2/2] smp: introduce kick_active_cpus_sync()

2018-04-03 Thread Mark Rutland
Hi Yury, On Sun, Apr 01, 2018 at 02:11:08PM +0300, Yury Norov wrote: > +/* > + * Flush I-cache if CPU is in extended quiescent state > + */ This comment is misleading. An ISB doesn't touch the I-cache; it forces a context synchronization event. > + .macro isb_if_eqs > +#ifndef

Re: [PATCH RFC tools/memory-model] Add s390.{cfg,cat}

2018-04-03 Thread Alan Stern
On Mon, 2 Apr 2018, Paul E. McKenney wrote: > > > I will look at this more later, reaching end of both battery and useful > > > attention span... > > Like the following, perhaps? > > Thanx, Paul > >

Re: [PATCH v4 1/3] Add notrace to lib/ucmpdi2.c

2018-04-03 Thread Matt Redfearn
Hi Palmer, On 29/03/18 22:59, Palmer Dabbelt wrote: On Thu, 29 Mar 2018 03:41:21 PDT (-0700), matt.redfe...@mips.com wrote: From: Palmer Dabbelt As part of the MIPS conversion to use the generic GCC library routines, Matt Redfearn discovered that I'd missed a notrace on __ucmpdi2().  This

Re: [PATCH 1/1] taging: fbtft: fix memory leak

2018-04-03 Thread Dan Carpenter
There is a typo in the subject. It should be "Staging" instead of "taging:". On Tue, Apr 03, 2018 at 09:14:28PM +0800, Xidong Wang wrote: > From: Xidong Wang <2711406...@qq.com> > > In function fbtft_framebuffer_alloc(), the memory allocated by > framebuffer_alloc() is not released on the error

Re: [PATCH v2 1/3] locking: Document the semantics of spin_is_locked()

2018-04-03 Thread David Howells
Andrea Parri wrote: > > It's more complicated than that. This function is dangerous and should be > > used with extreme care. In the case where CONFIG_SMP=n the value is locked > > one way or the other and it might be the wrong way. > > You mean "unlocked"? (aka, return 0) No, I mean

Re: [PATCH] usbip: vhci_hcd: Fix usb device and sockfd leaks

2018-04-03 Thread Shuah Khan
On 04/03/2018 12:56 AM, Greg KH wrote: > On Mon, Apr 02, 2018 at 02:52:32PM -0600, Shuah Khan wrote: >> vhci_hcd fails to do reset to put usb device and sockfd in the >> module remove/stop paths. Fix the leak. >> >> Signed-off-by: Shuah Khan > > Should this be marked for the stable kernels? >

RE: [PATCH] x86/smpboot: Don't do mwait_play_dead() on AMD systems

2018-04-03 Thread Ghannam, Yazen
> -Original Message- > From: Ingo Molnar On Behalf Of Ingo Molnar > Sent: Tuesday, April 3, 2018 7:04 AM > To: Ghannam, Yazen > Cc: x...@kernel.org; linux-kernel@vger.kernel.org; b...@suse.de > Subject: Re: [PATCH] x86/smpboot: Don't do mwait_play_dead() on AMD > systems > > > * Yazen

Re: [PATCH v1] kernel/trace:check the val against the available mem

2018-04-03 Thread Michal Hocko
On Tue 03-04-18 09:32:45, Steven Rostedt wrote: > On Tue, 3 Apr 2018 14:35:14 +0200 > Michal Hocko wrote: [...] > > Being clever is OK if it doesn't add a tricky code. And relying on > > si_mem_available is definitely tricky and obscure. > > Can we get the mm subsystem to provide a better method

Re: [PATCH v3] vsprintf: Prevent crash when dereferencing invalid pointers

2018-04-03 Thread Sergey Senozhatsky
On (04/03/18 13:52), Petr Mladek wrote: > On Tue 2018-04-03 10:12:37, Sergey Senozhatsky wrote: > > On (04/02/18 17:15), Andy Shevchenko wrote: > > > > > > > > Hmm, I have never seen the error code in this form. > > > > > > We have limited space to print it and error numbers currently can be up

Re: [GIT PULL] Andes(nds32) Port for Linux 4.17

2018-04-03 Thread Arnd Bergmann
On Mon, Apr 2, 2018 at 6:04 PM, Linus Torvalds wrote: > On Sun, Apr 1, 2018 at 11:01 PM, Greentime Hu wrote: >> >> This tag contains the core nds32 Linux port(including interrupt controller >> driver and timer driver), which has been through 7 rounds of review on >> mailing >> list. > > Can I

[GIT PULL] Btrfs updates for 4.17

2018-04-03 Thread David Sterba
Hi, please pull the following btrfs changes. There are a several user visible changes, the rest is mostly invisible and continues to clean up the whole code base. There are no merge conflicts with current master. Please pull, thanks. User visible changes: - new mount option nossd_spread

Re: [PATCH 1/6] drivers/i2c: Update i2c_trace_msg static key to modern api

2018-04-03 Thread David Howells
Wolfram Sang wrote: > > No changes in refcount semantics -- key init is false; replace > > > > static_key_slow_inc|dec with static_branch_inc|dec > > static_key_false with static_branch_unlikely > > > > Added a '_key' suffix to i2c_trace_msg, for better self > > documentation. >

[PATCH v2] x86/smpboot: Don't do mwait_play_dead() on AMD systems

2018-04-03 Thread Yazen Ghannam
From: Yazen Ghannam Recent AMD systems support using MWAIT for C1 state. However, MWAIT will not allow deeper cstates than C1 on current systems. With play_dead() we expect the OS to use the deepest state available. The deepest state available on AMD systems is reached through SystemIO or HALT.

Re: [PATCH v5 06/12] PCI: designware-ep: Make dw_pcie_ep_set_bar() handle 64-bit BARs properly

2018-04-03 Thread Niklas Cassel
On Tue, Apr 03, 2018 at 01:53:12PM +0100, Lorenzo Pieralisi wrote: > On Mon, Apr 02, 2018 at 09:37:03PM +0200, Niklas Cassel wrote: > > On Thu, Mar 29, 2018 at 03:17:11PM +0530, Kishon Vijay Abraham I wrote: > > > Hi, > > > > > > On Wednesday 28 March 2018 05:20 PM, Niklas Cassel wrote: > > > >

Re: [PATCH v17 04/10] PCI: Apply the new generic I/O management on PCI IO hosts

2018-04-03 Thread John Garry
On 03/04/2018 14:45, Thierry Reding wrote: On Thu, Mar 15, 2018 at 02:15:53AM +0800, John Garry wrote: From: Zhichang Yuan After introducing the new generic I/O space management(Logical PIO), the original PCI MMIO relevant helpers need to be updated based on the new interfaces defined in

Re: [PATCH v17 01/10] LIB: Introduce a generic PIO mapping method

2018-04-03 Thread Thierry Reding
On Thu, Mar 15, 2018 at 02:15:50AM +0800, John Garry wrote: > From: Zhichang Yuan > > In commit 41f8bba7f555 ("of/pci: Add pci_register_io_range() and > pci_pio_to_address()"), a new I/O space management was supported. With > that driver, the I/O ranges configured for PCI/PCIe hosts on some >

Re: [PATCH v5 03/14] PCI: Add pcie_bandwidth_capable() to compute max supported link bandwidth

2018-04-03 Thread Bjorn Helgaas
On Mon, Apr 02, 2018 at 05:30:54PM -0700, Jacob Keller wrote: > On Mon, Apr 2, 2018 at 7:05 AM, Bjorn Helgaas wrote: > > +/* PCIe speed to Mb/s reduced by encoding overhead */ > > +#define PCIE_SPEED2MBS_ENC(speed) \ > > + ((speed) == PCIE_SPEED_16_0GT ? (16000*(128/130)) : \ > > +

Re: [PATCH v2 1/3] locking: Document the semantics of spin_is_locked()

2018-04-03 Thread Andrea Parri
On Tue, Apr 03, 2018 at 02:52:33PM +0100, David Howells wrote: > Andrea Parri wrote: > > > > It's more complicated than that. This function is dangerous and should be > > > used with extreme care. In the case where CONFIG_SMP=n the value is > > > locked > > > one way or the other and it might

Re: [PATCH v2 1/3] locking: Document the semantics of spin_is_locked()

2018-04-03 Thread Paul E. McKenney
On Tue, Apr 03, 2018 at 02:52:33PM +0100, David Howells wrote: > Andrea Parri wrote: > > > > It's more complicated than that. This function is dangerous and should be > > > used with extreme care. In the case where CONFIG_SMP=n the value is > > > locked > > > one way or the other and it might

Re: [PATCH 4.4 15/97] genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs

2018-04-03 Thread Ben Hutchings
On Fri, 2018-03-23 at 10:54 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Hans de Goede > > > [ Upstream commit 382bd4de61827dbaaf5fb4fb7b1f4be4a86505e7 ] > > When requesting a shared irq with

Re: [PATCH v1] kernel/trace:check the val against the available mem

2018-04-03 Thread Steven Rostedt
On Tue, 3 Apr 2018 15:56:07 +0200 Michal Hocko wrote: > On Tue 03-04-18 09:32:45, Steven Rostedt wrote: > > On Tue, 3 Apr 2018 14:35:14 +0200 > > Michal Hocko wrote: > [...] > > > Being clever is OK if it doesn't add a tricky code. And relying on > > > si_mem_available is definitely tricky

Re: [GIT PULL] f2fs update for 4.16-rc1

2018-04-03 Thread Tejun Heo
Hello, Stephen. On Tue, Apr 03, 2018 at 12:29:19PM +1000, Stephen Rothwell wrote: > > I am still applying this to the merge of the btrfs tree every day ... > > > > Commit > > 578c647879f7 ("f2fs: implement cgroup writeback support") > > was merged into Linus' tree on Jan 31. > > > > Here is

Re: problem with bio handling on raid5 and pblk

2018-04-03 Thread Javier González
> On 23 Mar 2018, at 13.52, Javier González wrote: > >> On 22 Mar 2018, at 18.00, Matias Bjørling wrote: >> >> On 03/22/2018 03:34 PM, Javier González wrote: >>> Hi, >>> I have been looking into a bug report when using pblk and raid5 on top >>> and I am having problems understanding if the

Re: [GIT PULL] siginfo fix for v4.16-rc5

2018-04-03 Thread Eric W. Biederman
Geert Uytterhoeven writes: > Hi Eric, > > On Mon, Apr 2, 2018 at 10:17 PM, Eric W. Biederman > wrote: >> Eugene Syromiatnikov writes: >> >>> So, the offset of the si_lower field is 20 at the current HEAD and was 18 at >>> commits v4.16-rc3~17^2 and v4.16-rc1~159^2~20. I believe this is due to

Re: [PATCH] net: improve ipv4 performances

2018-04-03 Thread Douglas Caetano dos Santos
Hi Anton, everyone, On 04/01/18 15:31, Anton Gary Ceph wrote: > As the Linux networking stack is growing, more and more protocols are > added, increasing the complexity of stack itself. > Modern processors, contrary to common belief, are very bad in branch > prediction, so it's our task to give

[PATCH v4 0/2] media: Introduce Omnivision OV2680 driver

2018-04-03 Thread Rui Miguel Silva
Add driver and bindings for the OV2680 2 megapixel CMOS 1/5" sensor, which has a single MIPI lane interface and output format of 10-bit Raw RGB. Features supported are described in PATCH 2/2. v3->v4: Sakari Ailus: - remove auto_{exposure|gain}_enable and direct call the set functions - add

[PATCH v4 2/2] media: ov2680: Add Omnivision OV2680 sensor driver

2018-04-03 Thread Rui Miguel Silva
This patch adds V4L2 sub-device driver for OV2680 image sensor. The OV2680 is a 1/5" CMOS color sensor from Omnivision. Supports output format: 10-bit Raw RGB. The OV2680 has a single lane MIPI interface. The driver exposes following V4L2 controls: - auto/manual exposure, - exposure, -

Re: [PATCH 1/6] x86/intel_rdt/mba_sc: Add documentation for MBA software controller

2018-04-03 Thread Thomas Gleixner
On Tue, 3 Apr 2018, Thomas Gleixner wrote: > On Thu, 29 Mar 2018, Vikas Shivappa wrote: > You said above: > > > This may lead to confusion in scenarios below: > > Reading the blurb after that creates even more confusion than being > helpful. > > First of all this information should not be under

[PATCH v4 1/2] media: ov2680: dt: Add bindings for OV2680

2018-04-03 Thread Rui Miguel Silva
Add device tree binding documentation for the OV2680 camera sensor. Reviewed-by: Rob Herring CC: devicet...@vger.kernel.org Signed-off-by: Rui Miguel Silva --- .../devicetree/bindings/media/i2c/ov2680.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644

[GIT PULL] libata changes for v4.17-rc1

2018-04-03 Thread Tejun Heo
Hello, Linus. Nothing too interesting. The biggest change is refcnting fix for ata_host - the bug is recent and can only be triggered on controller hotplug, so very few are hitting it. There also are a number of trivial license / error message changes and some hardware specific changes.

[PATCH v4 0/1] can: ucan: add driver for Theobroma Systems UCAN devices

2018-04-03 Thread Jakob Unterwurzacher
This is v4 of the Theobroma Systems CAN/USB "UCAN" adapter driver upstreaming effort. v3 -> v4 changes: * get rid of a few repeated le16_to_cpu casts by storing the value once * fix canid masking logic * drop __func__ from log messages. Use netdev_* where possible, use UCAN_DRIVER_NAME where

[PATCH v4 1/1] can: ucan: add driver for Theobroma Systems UCAN devices

2018-04-03 Thread Jakob Unterwurzacher
The UCAN driver supports the microcontroller-based USB/CAN adapters from Theobroma Systems. There are two form-factors that run essentially the same firmware: * Seal: standalone USB stick ( https://www.theobroma-systems.com/seal ) * Mule: integrated on the PCB of various System-on-Modules from

[PATCH] lockdep: Add print_irqtrace_events() to __warn

2018-04-03 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Running a test on a x86_32 kernel I triggered a bug that an interrupt disable/enable isn't being catched by lockdep. At least knowing where the last one was found would be helpful, but the warnings that are produced do not show this information. Even without

[GIT PULL] workqueue changes for v4.17-rc1

2018-04-03 Thread Tejun Heo
Hello, Linus. rcu_work addition and a couple trivial changes. Thanks. The following changes since commit c698ca5278934c0ae32297a8725ced2e27585d7f: Linux 4.16-rc6 (2018-03-18 17:48:42 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git

Re: [PATCH v17 01/10] LIB: Introduce a generic PIO mapping method

2018-04-03 Thread Thierry Reding
On Tue, Apr 03, 2018 at 04:04:10PM +0200, Thierry Reding wrote: > On Thu, Mar 15, 2018 at 02:15:50AM +0800, John Garry wrote: > > From: Zhichang Yuan > > > > In commit 41f8bba7f555 ("of/pci: Add pci_register_io_range() and > > pci_pio_to_address()"), a new I/O space management was supported.

[PATCH v2] x86/xen/efi: Initialize UEFI secure boot state during dom0 boot

2018-04-03 Thread Daniel Kiper
Initialize UEFI secure boot state during dom0 boot. Otherwise the kernel may not even know that it runs on secure boot enabled platform. Signed-off-by: Daniel Kiper --- arch/x86/xen/efi.c| 57 + drivers/firmware/efi/libstub/secureboot.c |

Re: [PATCH] x86/smpboot: Don't do mwait_play_dead() on AMD systems

2018-04-03 Thread Ingo Molnar
* Ghannam, Yazen wrote: > > -Original Message- > > From: Ingo Molnar On Behalf Of Ingo Molnar > > Sent: Tuesday, April 3, 2018 7:04 AM > > To: Ghannam, Yazen > > Cc: x...@kernel.org; linux-kernel@vger.kernel.org; b...@suse.de > > Subject: Re: [PATCH] x86/smpboot: Don't do

Re: [PATCH v6 10/21] tracing: probeevent: Return consumed bytes of dynamic area

2018-04-03 Thread Masami Hiramatsu
On Mon, 2 Apr 2018 16:02:07 -0400 Steven Rostedt wrote: > On Sat, 17 Mar 2018 21:44:52 +0900 > Masami Hiramatsu wrote: > > > -static nokprobe_inline void > > -fetch_store_string(unsigned long addr, void *dest) > > +static nokprobe_inline int > > +fetch_store_string(unsigned long addr, void

Re: [RESEND] rtc: snvs: Fix usage of snvs_rtc_enable

2018-04-03 Thread Alexandre Belloni
Hi, On 02/04/2018 at 23:51:12 +0100, Bryan O'Donoghue wrote: > On 30/03/18 23:59, Trent Piepho wrote: > > However, I think that even if the driver fails to probe if there is a > > timeout at probe time, it's still possible to hang later if there are > > not limits to the hardware polling loops,

Re: [PATCH v2 1/3] locking: Document the semantics of spin_is_locked()

2018-04-03 Thread Peter Zijlstra
On Tue, Apr 03, 2018 at 07:17:18AM -0700, Paul E. McKenney wrote: > Suggestions for a fix? Clearly great care is required when using it > in things like WARN_ON()... Yeah, don't use it there, use lockdep_assert_held(). As I stated before in this thread, ideally we'd make *_is_locked() go away

Re: [PATCH v4 1/3] Add notrace to lib/ucmpdi2.c

2018-04-03 Thread James Hogan
On Tue, Apr 03, 2018 at 02:51:06PM +0100, Matt Redfearn wrote: > On 29/03/18 22:59, Palmer Dabbelt wrote: > > Ah, thanks, I think I must have forgotten about this.  I assume these > > three are going through your tree? > > Yeah I think that's the plan - James will need your ack to patch 2 if >

Re: [GIT PULL] f2fs update for 4.16-rc1

2018-04-03 Thread Stephen Rothwell
Hi Tejun, On Tue, 3 Apr 2018 07:20:29 -0700 Tejun Heo wrote: > > Hello, Stephen. > > On Tue, Apr 03, 2018 at 12:29:19PM +1000, Stephen Rothwell wrote: > > > I am still applying this to the merge of the btrfs tree every day ... > > > > > > Commit > > > 578c647879f7 ("f2fs: implement cgroup

RE: [PATCH] x86/smpboot: Don't do mwait_play_dead() on AMD systems

2018-04-03 Thread Ghannam, Yazen
> -Original Message- > From: Ingo Molnar On Behalf Of Ingo Molnar > Sent: Tuesday, April 3, 2018 10:41 AM > To: Ghannam, Yazen > Cc: x...@kernel.org; linux-kernel@vger.kernel.org; b...@suse.de > Subject: Re: [PATCH] x86/smpboot: Don't do mwait_play_dead() on AMD > systems > > > *

Re: stable-rc build: 4 warnings 0 failures (stable-rc/v4.15.15)

2018-04-03 Thread Arnd Bergmann
On Sat, Mar 31, 2018 at 7:49 PM, Olof's autobuilder wrote: > Warnings: > > arm64.allmodconfig: > WARNING: modpost: missing MODULE_LICENSE() in > drivers/phy/qualcomm/phy-qcom-ufs.o This needs a backport of 59fba0869aca ("phy: qcom-ufs: add MODULE_LICENSE tag") Arnd

Re: Signal handling in a page fault handler

2018-04-03 Thread Matthew Wilcox
On Tue, Apr 03, 2018 at 03:12:35PM +0200, Thomas Hellstrom wrote: > I think the TTM page fault handler originally set the standard for this. > First, IMO any critical section that waits for the GPU (like typically the > page fault handler does), should be locked at least killable. The need for >

Re: [PATCH 1/6] drivers/i2c: Update i2c_trace_msg static key to modern api

2018-04-03 Thread Wolfram Sang
On Mon, Mar 26, 2018 at 02:09:24PM -0700, Davidlohr Bueso wrote: > No changes in refcount semantics -- key init is false; replace > > static_key_slow_inc|dec with static_branch_inc|dec > static_key_false with static_branch_unlikely > > Added a '_key' suffix to i2c_trace_msg, for

Re: [PATCH v3] vsprintf: Prevent crash when dereferencing invalid pointers

2018-04-03 Thread Petr Mladek
On Tue 2018-04-03 16:40:58, Andy Shevchenko wrote: > On Tue, 2018-04-03 at 15:13 +0200, Petr Mladek wrote: > > On Tue 2018-04-03 14:54:18, Andy Shevchenko wrote: > > > On Tue, 2018-04-03 at 13:46 +0200, Petr Mladek wrote: > > > > On Mon 2018-04-02 17:15:23, Andy Shevchenko wrote: > > > We have a

Re: [PATCH] memcg, thp: do not invoke oom killer on thp charges

2018-04-03 Thread Johannes Weiner
On Wed, Mar 21, 2018 at 02:22:13PM -0700, David Rientjes wrote: > PAGE_ALLOC_COSTLY_ORDER is a heuristic used by the page allocator because > it cannot free high-order contiguous memory. Memcg just needs to reclaim > a number of pages. Two order-3 charges can cause a memcg oom kill but now >

Re: [PATCH 0/5] KVM: x86: hyperv: PV TLB flush for Windows guests

2018-04-03 Thread Vitaly Kuznetsov
Roman Kagan writes: > On Mon, Apr 02, 2018 at 06:10:54PM +0200, Vitaly Kuznetsov wrote: >> >> Feature description: >> >> PV TLB flush helps a lot when running overcommited. KVM gained support for >> it recently but it is only available for Linux guests. Windows guests use >> emulated Hyper-V

Re: [PATCH 4.4 22/97] scsi: virtio_scsi: Always try to read VPD pages

2018-04-03 Thread Ben Hutchings
On Fri, 2018-03-23 at 10:54 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: David Gibson > > > [ Upstream commit 25d1d50e23275e141e3a3fe06c25a99f4c4bf4e0 ] [...] This is an incomplete fix as it

Re: [PATCH] memcg, thp: do not invoke oom killer on thp charges

2018-04-03 Thread Johannes Weiner
On Wed, Mar 21, 2018 at 09:59:28PM +0100, Michal Hocko wrote: > From: Michal Hocko > > David has noticed that THP memcg charge can trigger the oom killer > since 2516035499b9 ("mm, thp: remove __GFP_NORETRY from khugepaged and > madvised allocations"). We have used an explicit __GFP_NORETRY >

Re: [RESEND] [PATCH] rtc: snvs: Fix usage of snvs_rtc_enable

2018-04-03 Thread Alexandre Belloni
On 28/03/2018 20:14:05+0100, Bryan O'Donoghue wrote: > commit 179a502f8c46 ("rtc: snvs: add Freescale rtc-snvs driver") introduces > the SNVS RTC driver with a function snvs_rtc_enable(). > > snvs_rtc_enable() can return an error on the enable path however this > driver does not currently trap

Re: [PATCH] rtc: mt7622: fix module autoloading for OF platform drivers

2018-04-03 Thread Alexandre Belloni
On 26/03/2018 18:05:52+0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > It's required to create a modules.alias via MODULE_DEVICE_TABLE helper > for the OF platform driver. Otherwise, module autoloading cannot work. > > Signed-off-by: Sean Wang > --- > drivers/rtc/rtc-mt7622.c | 1 +

Re: [PATCH] rtc: isl12022: use true and false for boolean values

2018-04-03 Thread Alexandre Belloni
On 22/03/2018 14:53:28-0500, Gustavo A. R. Silva wrote: > Assign true or false to boolean variables instead of an integer value. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/rtc/rtc-isl12022.c | 2 +- > 1 file changed, 1

general protection fault in ucma_set_ib_path (2)

2018-04-03 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 642e7fd23353e22290e3d51719fcb658dc252342 (Tue Apr 3 04:22:12 2018 +) Merge branch 'syscalls-next' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux syzbot dashboard link:

<    11   12   13   14   15   16   17   18   19   >