[PATCH 2/5] mm/backing-dev: Use irqsave variant of atomic_dec_and_lock()

2018-05-04 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner The irqsave variant of atomic_dec_and_lock handles irqsave/restore when taking/releasing the spin lock. With this variant the call of local_irq_save/restore is no longer required. Signed-off-by: Anna-Maria Gleixner Signed-off-by: Sebastian Andrzej Siewior --- mm/back

[PATCH 5/5] drivers/md/raid5: Do not disable irq on release_inactive_stripe_list() call

2018-05-04 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner There is no need to invoke release_inactive_stripe_list() with interrupts disabled. All call sites, except raid5_release_stripe(), unlock ->device_lock and enable interrupts before invoking the function. Make it consistent. Signed-off-by: Anna-Maria Gleixner Signed-of

Re: [PATCH v7 00/16] tracing: probeevent: Improve fetcharg features

2018-05-04 Thread Masami Hiramatsu
On Thu, 3 May 2018 18:11:37 -0400 Steven Rostedt wrote: > On Wed, 25 Apr 2018 21:16:06 +0900 > Masami Hiramatsu wrote: > > > Hi, > > > > This is the 7th version of the fetch-arg improvement series. > > This includes variable changes on fetcharg framework like, > > > > - Add fetcharg testcases

[PATCH v2 1/6] MAINTAINERS: add at91 usart mfd driver

2018-05-04 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8e2a2fddbd19..ca06c6f58299 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9192,6 +9192,13 @@ S: Supported F: driv

Re: [PATCH 0/3] K2G: mmc: Update mmc dt node to use sdhci-omap

2018-05-04 Thread santosh.shilim...@oracle.com
On 5/4/18 1:06 AM, Kishon Vijay Abraham I wrote: Hi Santosh, On Friday 04 May 2018 12:22 AM, santosh.shilim...@oracle.com wrote: On 5/3/18 4:57 AM, Kishon Vijay Abraham I wrote: Hi Santosh, On Wednesday 25 April 2018 11:10 PM, Santosh Shilimkar wrote: On 4/25/2018 6:27 AM, Kishon Vijay Abrah

[PATCH v2 3/6] MAINTAINERS: add at91 usart spi driver

2018-05-04 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ca06c6f58299..9243b9007966 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9199,6 +9199,13 @@ S: Supported F: driv

Re: [PATCH v2] ARM: dts: k2g-evm: Add DCAN dt nodes

2018-05-04 Thread santosh.shilim...@oracle.com
On 5/3/18 12:28 AM, Faiz Abbas wrote: The 66AK2G evm has support for dcan. Add nodes and pinmuxes for dcan0 and dcan1. Signed-off-by: Faiz Abbas --- Changes since v1: Description updated. Will pick this up. Regards, Santosh

[PATCH v2 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-04 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 29 +++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/dr

[PATCH v2 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-04 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea --- drivers/spi/Kconfig

[PATCH v2 4/6] dt-bindings: add binding for at91-usart in spi mode

2018-05-04 Thread Radu Pirea
These are bindings for at91-usart IP in spi spi mode. There is no support for internal chip select. Only kind of chip selects available are gpio chip selects. Signed-off-by: Radu Pirea --- .../bindings/spi/microchip,at91-usart-spi.txt | 28 +++ 1 file changed, 28 insertions(+) c

[PATCH v2 2/6] mfd: at91-usart: added mfd driver for usart

2018-05-04 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea --- drivers/mfd/Kconfig

Introduce atomic_dec_and_lock_irqsave()

2018-05-04 Thread Sebastian Andrzej Siewior
This series introduces atomic_dec_and_lock_irqsave() and converts a few users to use it. They were using local_irq_save() + atomic_dec_and_lock() before that series. Sebastian

[PATCH 1/5] spinlock: atomic_dec_and_lock: Add an irqsave variant

2018-05-04 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner There are in-tree users of atomic_dec_and_lock() which must acquire the spin lock with interrupts disabled. To workaround the lack of an irqsave variant of atomic_dec_and_lock() they use local_irq_save() at the call site. This causes extra code and creates in some places

[PATCH 4/5] drivers/md/raid5: Use irqsave variant of atomic_dec_and_lock()

2018-05-04 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner The irqsave variant of atomic_dec_and_lock handles irqsave/restore when taking/releasing the spin lock. With this variant the call of local_irq_save is no longer required. Signed-off-by: Anna-Maria Gleixner Signed-off-by: Sebastian Andrzej Siewior --- drivers/md/raid

[PATCH v2 0/6] Driver for at91 usart in spi mode

2018-05-04 Thread Radu Pirea
Hello, This is the second version of driver. I added a mfd driver which by default probes atmel_serial driver and if in dt is specified to probe the spi driver, then the spi-at91-usart driver will be probed. The compatible for atmel_serial is now the compatible for at91-usart mfd driver and compat

Re: [PATCH] Add a file named cgroup.procs_stat in cgroup

2018-05-04 Thread Peter Zijlstra
On Fri, May 04, 2018 at 10:28:20PM +0800, zhangq95 wrote: > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 5e10aae..ba969af 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -3404,11 +3404,19 @@ static void __sched notrace __schedule(bool preempt) > struct rq

Re: [PATCH v2 09/10] ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes

2018-05-04 Thread Maxime Ripard
On Fri, May 04, 2018 at 03:57:48PM +0200, Paul Kocialkowski wrote: > On Fri, 2018-05-04 at 15:40 +0200, Maxime Ripard wrote: > > On Fri, May 04, 2018 at 02:04:38PM +0200, Paul Kocialkowski wrote: > > > On Fri, 2018-05-04 at 11:15 +0200, Maxime Ripard wrote: > > > > On Fri, May 04, 2018 at 10:47:44A

[PATCH] sched/numa: Stagger NUMA balancing scan periods for new threads v2

2018-05-04 Thread Mel Gorman
Changelog since v1 o Cosmetic changes and documentation (ingo) o Note results were very similar to v1 and so I didn't update the changelog Threads share an address space and each can change the protections of the same address space to trap NUMA faults. This is redundant and potentially counter-pro

Re: [PATCH] init/main.c: simplify repair_env_string

2018-05-04 Thread Steven Rostedt
Cleaning out my INBOX, I stumbled across this old patch. On Fri, 15 Dec 2017 22:33:17 +0100 Michal Suchanek wrote: > Quoting characters are now removed from the parameter so value always > follows directly after the NUL terminating parameter name. > > Signed-off-by: Michal Suchanek > --- > i

Re: [PATCH 2/3] include/linux/gfp.h: use unsigned int in gfp_zone

2018-05-04 Thread Matthew Wilcox
On Fri, May 04, 2018 at 03:35:33PM +0200, Michal Hocko wrote: > On Fri 04-05-18 14:52:08, Huaisheng Ye wrote: > > Suggest using unsigned int instead of int for bit within gfp_zone. > > @@ -401,7 +401,7 @@ static inline bool gfpflags_allow_blocking(const gfp_t > > gfp_flags) > > static inline enum

Re: linux-next: build warning after merge of the akpm-current tree

2018-05-04 Thread Randy Dunlap
On 05/03/2018 09:17 PM, Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm-current tree, today's linux-next build > (x86_64_allmodconfig) produced this warning: > > drivers/block/zram/zram_drv.c: In function 'read_block_state': > drivers/block/zram/zram_drv.c:674:16: warning: format

Re: [PATCH] i2c: core-smbus: fix a potential uninitialization bug

2018-05-04 Thread Peter Rosin
On 2018-05-04 16:59, Wenwen Wang wrote: > On Fri, May 4, 2018 at 2:27 AM, Peter Rosin wrote: >> On 2018-05-04 09:17, Wenwen Wang wrote: >>> On Fri, May 4, 2018 at 1:49 AM, Peter Rosin wrote: On 2018-05-04 07:28, Wenwen Wang wrote: > On Fri, May 4, 2018 at 12:04 AM, Peter Rosin wrote: >>

Re: [PATCH v2] perf: Suppress AUX/OVERWRITE records

2018-05-04 Thread Arnaldo Carvalho de Melo
Em Fri, May 04, 2018 at 12:35:34PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, May 04, 2018 at 03:09:59PM +0300, Alexander Shishkin escreveu: > > On Wed, Apr 04, 2018 at 05:53:23PM +0300, Alexander Shishkin wrote: > > > It has been pointed out to me many times that it is useful to be able >

Re: [PATCH v2] perf: Suppress AUX/OVERWRITE records

2018-05-04 Thread Arnaldo Carvalho de Melo
Em Fri, May 04, 2018 at 03:09:59PM +0300, Alexander Shishkin escreveu: > On Wed, Apr 04, 2018 at 05:53:23PM +0300, Alexander Shishkin wrote: > > It has been pointed out to me many times that it is useful to be able > > to switch off AUX records to save the bandwidth for records that actually > > ma

Re: [PATCH 2/2] mm: Add kvmalloc_ab_c and kvzalloc_struct

2018-05-04 Thread Linus Torvalds
On Fri, May 4, 2018 at 3:14 AM Matthew Wilcox wrote: > > In fact, the conversion I saw was buggy. You can *not* convert a GFP_ATOMIC > > user of kmalloc() to use kvmalloc. > Not sure which conversion you're referring to; not one of mine, I hope? I was thinking of the coccinelle patch in this th

[PATCH] percpu_ida: Use _irqsave() instead of local_irq_save() + spin_lock

2018-05-04 Thread Sebastian Andrzej Siewior
percpu_ida() decouples disabling interrupts from the locking operations. This breaks some assumptions if the locking operations are replaced like they are under -RT. The same locking can be achieved by avoiding local_irq_save() and using spin_lock_irqsave() instead. percpu_ida_alloc() gains one mor

[PATCH] ALSA: pcm: Hide local_irq_disable/enable() and local_irqsave/restore()

2018-05-04 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner The snd_pcm_stream_lock_irq*() functions decouple disabling interrupts from the actual locking process. This does not work as expected if the locking primitives are replaced like on preempt-rt. Provide one function for locking which uses correct locking primitives. Sig

Re: [PATCH v3 2/5] efi: Add embedded peripheral firmware support

2018-05-04 Thread Martijn Coenen
On Thu, May 3, 2018 at 5:21 PM, Luis R. Rodriguez wrote: > Android folks, poke below. otherwise we'll have no option but to seriously > consider Mimi's patch to prevent these calls when IMA appraisal is enforced: Sorry, figuring out who's the right person to answer this, will get back to you ASAP

[PATCH] posix-cpu-timers: remove lockdep_assert_irqs_disabled()

2018-05-04 Thread Sebastian Andrzej Siewior
The lockdep_assert_irqs_disabled() was a BUG_ON() statement in the beginning and it was added just before the "spin_lock(siglock)" statement to ensure this lock was taken with disabled interrupts. This is no longer the case: the siglock is acquired via lock_task_sighand() and this function already

[PATCH v4 1/3] dt-bindings: panel: Add the Ilitek ILI9881c panel documentation

2018-05-04 Thread Maxime Ripard
The LHR050H41 from BananaPi is a 1280x700 4-lanes DSI panel based on the ILI9881c from Ilitek. Acked-by: Rob Herring Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt | 20 1 file changed, 20 insertions(+) create mode 100

[PATCH v4 3/3] [DO NOT MERGE] arm: dts: sun8i: bpi-m2m: Add DSI display

2018-05-04 Thread Maxime Ripard
The BananaPi M2M has an optional 1280x720 DSI panel. Since that panel is optional, we can only show a DT patch that would show how to enable it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 39 +- 1 file changed, 39 insertions(+) diff --git

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-04 Thread 陈立东
> 在 2018年5月4日,21:39,Leon Romanovsky 写道: > >> On Fri, May 04, 2018 at 04:32:38PM +0800, 858585 jemmy wrote: >>> On Fri, May 4, 2018 at 6:01 AM, Jason Gunthorpe wrote: On Thu, May 03, 2018 at 09:43:01PM +0300, Leon Romanovsky wrote: > On Thu, May 03, 2018 at 12:26:56PM -0600, Jason Gunt

[PATCH v4 2/3] drm/panel: Add Ilitek ILI9881c panel driver

2018-05-04 Thread Maxime Ripard
The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic, and is based on the Ilitek ILI9881c Controller. Add a driver for it, modelled after the other Ilitek controller drivers. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/panel/Kconfig | 9 +- drivers/gpu/drm/p

[PATCH v4 0/3] drm/panel: Add Ilitek ILI9881c controller driver

2018-05-04 Thread Maxime Ripard
Hi, Here is the next version of the patches to add the support for the Ilitek ILI9881c panel controller. This used to be a part of the larger DSI support series for the Allwinner SoCs whose patches have been since merged and are obviously not part of this series anymore. Let me know what you thi

Re: [RFC PATCH 00/35] overlayfs: stack file operations

2018-05-04 Thread Miklos Szeredi
On Thu, Apr 12, 2018 at 5:07 PM, Miklos Szeredi wrote: > Git tree is here: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git > overlayfs-rorw Thanks everyone for your review. Force pushed new version to the above branch. Hopefully no comment was missed (I didn't add more re

Re: [PATCH v1 5/5] ARM: dts: tegra114: Add IOMMU nodes to Host1x and its clients

2018-05-04 Thread Thierry Reding
On Fri, May 04, 2018 at 02:47:23AM +0300, Dmitry Osipenko wrote: > Enable IOMMU support for Host1x and its clients. > > Signed-off-by: Dmitry Osipenko > --- > arch/arm/boot/dts/tegra114.dtsi | 5 + > 1 file changed, 5 insertions(+) Applied, thanks. Thierry signature.asc Description: PGP

Re: [PATCH v1 4/5] ARM: dts: tegra30: Add IOMMU nodes to Host1x and its clients

2018-05-04 Thread Thierry Reding
On Fri, May 04, 2018 at 02:47:22AM +0300, Dmitry Osipenko wrote: > Enable IOMMU support for Host1x and its clients. > > Signed-off-by: Dmitry Osipenko > --- > arch/arm/boot/dts/tegra30.dtsi | 14 ++ > 1 file changed, 14 insertions(+) Applied, thanks. Thierry signature.asc Descrip

[PATCH net-next] net: phy: sfp: handle cases where neither BR,min nor BR,max is given

2018-05-04 Thread Antoine Tenart
When computing the bitrate using values read from an SFP module EEPROM, we use the nominal BR plus BR,min and BR,max to determine the boundaries. But in some cases BR,min and BR,max aren't provided, which led the SFP code to end up having the nominal value for both the minimum and maximum bitrate v

Re: [PATCH v2 1/3] drm/tegra: dc: Enable plane scaling filters

2018-05-04 Thread Thierry Reding
On Fri, May 04, 2018 at 05:39:58PM +0300, Dmitry Osipenko wrote: [...] > +static bool tegra_dc_window_can_use_horizontal_filtering( > + struct tegra_plane *plane, > + const struct tegra_dc_window *window) [...] > +static bool t

Re: [PATCH v2 0/3] Couple more DRM plane features for Tegra

2018-05-04 Thread Thierry Reding
On Fri, May 04, 2018 at 05:39:57PM +0300, Dmitry Osipenko wrote: > Hi, > > This series improves DRM plane support by supporting zPos on older Tegra's > and enabling plane scaling filters (up to Tegra210). > > Changelog: > > v2: > - Addressed v1 review comments. > > Dmitry Osipenko (3): >

[PATCH net] net: phy: sfp: fix the BR,min computation

2018-05-04 Thread Antoine Tenart
In an SFP EEPROM values can be read to get information about a given SFP module. One of those is the bitrate, which can be determined using a nominal bitrate in addition with min and max values (in %). The SFP code currently compute both BR,min and BR,max values thanks to this nominal and min,max v

Re: [PATCH 6/7] arm64: allwinner: h6: add R_I2C controller

2018-05-04 Thread Maxime Ripard
On Fri, May 04, 2018 at 02:38:46AM +0800, Icenowy Zheng wrote: > Allwinner H6 SoC has a R_I2C controller wired to the PL0/PL1 pins, which > are used in the reference design to connect AXP805 PMIC. > > Add support for it. > > Signed-off-by: Icenowy Zheng Dropped the headers (that should have bee

Re: [PATCH 5/7] arm64: allwinner: h6: add R_INTC interrupt controller

2018-05-04 Thread Maxime Ripard
On Fri, May 04, 2018 at 02:38:45AM +0800, Icenowy Zheng wrote: > Allwinner H6 SoC has also a R_INTC interrupt controller like Allwinner > A64 SoC, but has its base address changed due to the memory map change > in H6. > > Add it into the device tree. > > Signed-off-by: Icenowy Zheng Applied, th

Re: [PATCH 4/7] arm64: allwinner: h6: add node for R_PIO pin controller

2018-05-04 Thread Maxime Ripard
On Fri, May 04, 2018 at 02:38:44AM +0800, Icenowy Zheng wrote: > Allwinner H6 SoC has a R_PIO pin controller which controls PL and PM > GPIO banks. > > Add support for it. > > Signed-off-by: Icenowy Zheng > --- > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 13 + > 1 file changed,

Re: [PATCH 2/7] arm64: allwinner: h6: add PRCM CCU device node

2018-05-04 Thread Maxime Ripard
On Fri, May 04, 2018 at 02:38:42AM +0800, Icenowy Zheng wrote: > Allwinner H6 has also a PRCM CCU. > > Add its device node into the device tree. > > Signed-off-by: Icenowy Zheng Applied, thanks! Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering h

Re: [PATCH 1/7] clk: sunxi-ng: add support for H6 PRCM CCU

2018-05-04 Thread Maxime Ripard
On Fri, May 04, 2018 at 02:38:41AM +0800, Icenowy Zheng wrote: > The H6 has clock/reset controls in PRCM part, like old SoCs such as H3 > and A64. However, the PRCM CCU is rearranged; the register arragement > is now similar to the main CCU of H6, and the PRCM now has two APB > buses to control --

Re: [PATCH 3/7] pinctrl: sunxi: add support for H6 R_PIO pin controller

2018-05-04 Thread Maxime Ripard
On Fri, May 04, 2018 at 02:38:43AM +0800, Icenowy Zheng wrote: > Allwinner H6 SoC has a R_PIO pin controller like other Allwinner SoCs, > which controls the PL and PM pin banks. > > Add support for it. > > Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard,

Re: [PATCH 1/6] powerpc/syscalls: Switch trivial cases to SYSCALL_DEFINE

2018-05-04 Thread Naveen N. Rao
Michael Ellerman wrote: From: Al Viro Signed-off-by: Al Viro --- arch/powerpc/kernel/pci_32.c | 6 +++--- arch/powerpc/kernel/pci_64.c | 4 ++-- arch/powerpc/mm/subpage-prot.c | 4 +++- arch/powerpc/platforms/cell/spu_syscalls.c | 3 ++- 4 files changed

Re: [PATCH] i2c: core-smbus: fix a potential uninitialization bug

2018-05-04 Thread Wenwen Wang
On Fri, May 4, 2018 at 2:27 AM, Peter Rosin wrote: > On 2018-05-04 09:17, Wenwen Wang wrote: >> On Fri, May 4, 2018 at 1:49 AM, Peter Rosin wrote: >>> On 2018-05-04 07:28, Wenwen Wang wrote: On Fri, May 4, 2018 at 12:04 AM, Peter Rosin wrote: > On 2018-05-04 06:08, Wenwen Wang wrote: >>

Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information

2018-05-04 Thread Christopher Lameter
On Thu, 3 May 2018, prakash.sangappa wrote: > > > exact numa node from where the pages have been allocated. > > Cant you write a small script that scans the information in numa_maps and > > then displays the total pages per NUMA node and then a list of which > > ranges have how many pages on a par

Re: [PATCH 1/3] kcov: ensure irq code sees a valid area

2018-05-04 Thread Mark Rutland
On Fri, May 04, 2018 at 02:55:33PM +0100, Mark Rutland wrote: > In kcov_init_task() Since we update t->kcov_{mode,area,size} with plain > stores, which may be re-ordered, torn, etc. Thus > __sanitizer_cov_trace_pc() may see bogus values for any of these fields, > and may attempt to write to memory

Re: [PATCH] memcg: Replace mm->owner with mm->memcg

2018-05-04 Thread Oleg Nesterov
On 05/04, Eric W. Biederman wrote: > > Oleg Nesterov writes: > > > OK, what about exec() ? mm_init_memcg() initializes bprm->mm->memcg early in > > bprm_mm_init(). What if the execing task migrates before exec_mmap() ? > > We need the the cgroup when the mm is initialized. That way we have the >

Re: [v2] mm: access to uninitialized struct page

2018-05-04 Thread Steven Rostedt
On Fri, 04 May 2018 12:47:53 + Pavel Tatashin wrote: > Hi Andrei, > > Could you please provide me with scripts to reproduce this issue? > > And the config that was used. Just saying that the commit doesn't boot isn't very useful. -- Steve

Re: [patch-rt] sched,fair: Fix CFS bandwidth control lockdep DEADLOCK report

2018-05-04 Thread Steven Rostedt
On Fri, 04 May 2018 08:14:38 +0200 Mike Galbraith wrote: > CFS bandwidth control yields the inversion gripe below, moving > handling quells it. > > > WARNING: possible irq lock inversion dependency detected > 4.16.7-rt1-rt #2 Tainted: G

[GIT PULL] Btrfs updates for 4.17-rc3

2018-05-04 Thread David Sterba
Hi, please pull the following branch with 2 regression fixes and one fix for stable. Thanks. The following changes since commit c0872323746e11fc79344e3738b283a8cda86654: btrfs: print-tree: debugging output enhancement (2018-04-20

[PATCH] ntfs: don't disable interrupts during kmap_atomic()

2018-05-04 Thread Sebastian Andrzej Siewior
ntfs_end_buffer_async_read() disables interrupts around kmap_atomic(). This is a leftover from the old kmap_atomic() implementation which relied on fixed mapping slots, so the caller had to make sure that the same slot could not be reused from an interrupting context. kmap_atomic() was changed to

Re: [PATCH 2/3] kcov: prefault the kcov_area

2018-05-04 Thread Andrey Ryabinin
On 05/04/2018 05:38 PM, Mark Rutland wrote: > On Fri, May 04, 2018 at 05:36:49PM +0300, Andrey Ryabinin wrote: >> >> >> On 05/04/2018 04:55 PM, Mark Rutland wrote: >> >>> >>> +static void kcov_fault_in_area(struct kcov *kcov) >>> +{ >>> + unsigned long stride = PAGE_SIZE / sizeof(unsigned lon

[PATCH v2] rdmacg: Convert to use match_string() helper

2018-05-04 Thread Andy Shevchenko
The new helper returns index of the matching string in an array. We are going to use it here. Signed-off-by: Andy Shevchenko --- - fix compile error kernel/cgroup/rdma.c | 35 --- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/kernel/cgroup/rdma.c

[PATCH v2 1/3] drm/tegra: dc: Enable plane scaling filters

2018-05-04 Thread Dmitry Osipenko
Currently resized plane produces a "pixelated" image which doesn't look nice, especially in a case of a video overlay. Enable scaling filters that significantly improve image quality of a scaled overlay. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/dc.c | 81 +

[PATCH v2 2/3] drm/tegra: plane: Implement zPos plane property for older Tegra's

2018-05-04 Thread Dmitry Osipenko
Older Tegra's do not support planes z position handling in hardware, but HW provides knobs for zPos implementation in software. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/dc.c| 134 --- drivers/gpu/drm/tegra/plane.c | 193 --

[PATCH v2 3/3] drm/tegra: dc: Rename supports_blending to has_legacy_blending

2018-05-04 Thread Dmitry Osipenko
Older Tegra's support blending. Rename SoC info entry supports_blending to has_legacy_blending to eliminate confusion. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/dc.c | 20 ++-- drivers/gpu/drm/tegra/dc.h | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-)

[PATCH v2 0/3] Couple more DRM plane features for Tegra

2018-05-04 Thread Dmitry Osipenko
Hi, This series improves DRM plane support by supporting zPos on older Tegra's and enabling plane scaling filters (up to Tegra210). Changelog: v2: - Addressed v1 review comments. Dmitry Osipenko (3): drm/tegra: dc: Enable plane scaling filters drm/tegra: plane: Implement zPos plane

[PATCH] kernel/signal: Remove no longer required irqsave/restore

2018-05-04 Thread Sebastian Andrzej Siewior
From: Anna-Maria Gleixner Commit a841796f11c9 ("signal: align __lock_task_sighand() irq disabling and RCU") introduced a rcu read side critical section with interrupts disabled. The changelog suggested that a better long-term fix would be "to make rt_mutex_unlock() disable irqs when acquiring the

Re: [PATCH 2/3] kcov: prefault the kcov_area

2018-05-04 Thread Mark Rutland
On Fri, May 04, 2018 at 05:36:49PM +0300, Andrey Ryabinin wrote: > > > On 05/04/2018 04:55 PM, Mark Rutland wrote: > > > > > +static void kcov_fault_in_area(struct kcov *kcov) > > +{ > > + unsigned long stride = PAGE_SIZE / sizeof(unsigned long); > > + unsigned long *area = kcov->area; > >

Re: [PATCH v2] apparmor: secid: fix error return value in error handling path

2018-05-04 Thread Colin Ian King
Hi Gustavo, if you are using the coverity scan bug tracking, please can you mark a bug as being worked on by yourself so I don't work on it at the same time as we're duplicating work here. Colin On 04/05/18 15:09, Gustavo A. R. Silva wrote: > Currently, function apparmor_secid_to_secctx returns

Re: [PATCH] memcg: Replace mm->owner with mm->memcg

2018-05-04 Thread Eric W. Biederman
Oleg Nesterov writes: > On 05/03, Eric W. Biederman wrote: >> >> Oleg Nesterov writes: >> >> > On 05/02, Eric W. Biederman wrote: >> >> >> >> +static void mem_cgroup_fork(struct task_struct *tsk) >> >> +{ >> >> + struct cgroup_subsys_state *css; >> >> + >> >> + rcu_read_lock(); >> >> + css = tas

Re: [PATCH 3/3] sched/core / kcov: avoid kcov_area during task switch

2018-05-04 Thread Mark Rutland
On Fri, May 04, 2018 at 05:32:26PM +0300, Andrey Ryabinin wrote: > On 05/04/2018 04:55 PM, Mark Rutland wrote: > > > +#define kcov_prepare_switch(t) \ > > +do { \ > > + (t)->kcov_mode |= KCOV_IN_CTXSW;\ > > +} while (0) >

Re: perf: fuzzer causes stack going in wrong direction warnings

2018-05-04 Thread Vince Weaver
On Wed, 2 May 2018, Josh Poimboeuf wrote: > After looking closer, I realized that at least some of these warnings > are due to bad unwind hints in the entry code. Can you try this patch > instead of the last one? with just this new patch applied I still get warnings such as this: [ 469.436218]

Re: [PATCH 2/3] kcov: prefault the kcov_area

2018-05-04 Thread Andrey Ryabinin
On 05/04/2018 04:55 PM, Mark Rutland wrote: > > +static void kcov_fault_in_area(struct kcov *kcov) > +{ > + unsigned long stride = PAGE_SIZE / sizeof(unsigned long); > + unsigned long *area = kcov->area; > + unsigned long offset; > + > + for (offset = 0; offset < kcov->size; of

Re: [RFC PATCH for 4.18 12/23] cpu_opv: Provide cpu_opv system call (v7)

2018-05-04 Thread Mathieu Desnoyers
- On Apr 16, 2018, at 4:58 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Apr 16, 2018, at 3:26 PM, Linus Torvalds > torva...@linux-foundation.org > wrote: > >> On Mon, Apr 16, 2018 at 12:21 PM, Mathieu Desnoyers >> wrote: >>> >>> And I try very hard to avoid being

[PATCH v2 0/4] Introduce LSM-hook for socketpair(2)

2018-05-04 Thread David Herrmann
Hi This is v2 of the socketpair(2) LSM hook introduction. Changes since v1 are: - Added ACKs from previous series. - Moved the hook into generic socketpair(2) handling. The hook is now called security_socket_socketpair(), just like the other hooks on the socket layer. There is no

Re: [PATCH 3/3] sched/core / kcov: avoid kcov_area during task switch

2018-05-04 Thread Andrey Ryabinin
On 05/04/2018 04:55 PM, Mark Rutland wrote: > +#define kcov_prepare_switch(t) \ > +do { \ > + (t)->kcov_mode |= KCOV_IN_CTXSW;\ > +} while (0) > + > +#define kcov_finish_switch(t)\ > +do {

[PATCH v2 3/4] selinux: provide socketpair callback

2018-05-04 Thread David Herrmann
Make sure to implement the new socketpair callback so the SO_PEERSEC call on socketpair(2)s will return correct information. Acked-by: Serge Hallyn Acked-by: Stephen Smalley Signed-off-by: Tom Gundersen Signed-off-by: David Herrmann --- security/selinux/hooks.c | 13 + 1 file chan

Re: [PATCH 4/7] dt-bindings: gnss: add u-blox binding

2018-05-04 Thread Tony Lindgren
* Sebastian Reichel [180504 13:40]: > Hi, > > On Fri, May 04, 2018 at 02:04:15PM +0200, H. Nikolaus Schaller wrote: > > > Am 04.05.2018 um 13:42 schrieb Sebastian Reichel : > > >> I think it does not need much more (if at all) than a gpio controller on > > >> the OMAP3 chip (I think the clocks ar

Re: [PATCH v3 0/9] trace_uprobe: Support SDT markers having reference count (semaphore)

2018-05-04 Thread Oleg Nesterov
Sorry Ravi, I saved the new version for review and forgot about it... I'll try to do this on weekend. On 05/03, Ravi Bangoria wrote: > > On 04/17/2018 10:02 AM, Ravi Bangoria wrote: > > Userspace Statically Defined Tracepoints[1] are dtrace style markers > > inside userspace applications. Applica

[PATCH v2 4/4] smack: provide socketpair callback

2018-05-04 Thread David Herrmann
From: Tom Gundersen Make sure to implement the new socketpair callback so the SO_PEERSEC call on socketpair(2)s will return correct information. Signed-off-by: Tom Gundersen Signed-off-by: David Herrmann --- security/smack/smack_lsm.c | 22 ++ 1 file changed, 22 insertions

[PATCH v2 1/4] security: add hook for socketpair()

2018-05-04 Thread David Herrmann
Right now the LSM labels for socketpairs are always uninitialized, since there is no security hook for the socketpair() syscall. This patch adds the required hooks so LSMs can properly label socketpairs. This allows SO_PEERSEC to return useful information on those sockets. Note that the behavior o

[PATCH v2 2/4] net: hook socketpair() into LSM

2018-05-04 Thread David Herrmann
Use the newly created LSM-hook for socketpair(). The default hook return-value is 0, so behavior stays the same unless LSMs start using this hook. Acked-by: Serge Hallyn Signed-off-by: Tom Gundersen Signed-off-by: David Herrmann --- net/socket.c | 7 +++ 1 file changed, 7 insertions(+) di

Re: [PATCH 0/3] Introduce LSM-hook for socketpair(2)

2018-05-04 Thread David Herrmann
Hey On Wed, Apr 25, 2018 at 9:02 PM, James Morris wrote: > On Wed, 25 Apr 2018, Paul Moore wrote: > >> On Wed, Apr 25, 2018 at 2:44 PM, James Morris wrote: >> > On Mon, 23 Apr 2018, David Herrmann wrote: >> >> This patch series tries to close this gap and makes both behave the >> >> same. A new

[PATCH] Add a file named cgroup.procs_stat in cgroup

2018-05-04 Thread zhangq95
When I run "cat /proc/stat" in a container, container will access host's file directly which is a security risk. LXCFS is a good way to strengthen the isolation among containers. However, I can not get a container's correct status because LXCFS just transfer host's status to container. So I track s

Re: [PATCH v4 00/14] Copy Offload in NVMe Fabrics with P2P PCI Memory

2018-05-04 Thread Christian König
Am 03.05.2018 um 20:43 schrieb Logan Gunthorpe: On 03/05/18 11:29 AM, Christian König wrote: Ok, that is the point where I'm stuck. Why do we need that in one function call in the PCIe subsystem? The problem at least with GPUs is that we seriously don't have that information here, cause the PC

Re: [PATCH v9 07/27] ARM: davinci: dm355: add new clock init using common clock framework

2018-05-04 Thread David Lechner
On 05/04/2018 05:01 AM, Sekhar Nori wrote: On Thursday 03 May 2018 09:14 PM, David Lechner wrote: On 05/03/2018 10:34 AM, Sekhar Nori wrote: On Friday 27 April 2018 05:47 AM, David Lechner wrote: This adds the new board-specific clock init in mach-davinci/dm355.c using the new common clock fra

[PATCH 3/4] ide: don't disable interrupts during kmap_atomic()

2018-05-04 Thread Sebastian Andrzej Siewior
ide_pio_bytes() disables interrupts around kmap_atomic(). This is a leftover from the old kmap_atomic() implementation which relied on fixed mapping slots, so the caller had to make sure that the same slot could not be reused from an interrupting context. kmap_atomic() was changed to dynamic slots

[PATCH 2/4] ide: Handle irq disabling consistently

2018-05-04 Thread Sebastian Andrzej Siewior
ide_timer_expiry() disables interrupt at function entry when acquiring hwif->lock. Before disabling the device interrupt it unlocks hwif->lock, but interrupts stay disabled. After the call to disable_irq() interrupts are disabled again, which is a pointless exercise. After the device irq handler h

[PATCH 4/4] ide: don't enable/disable interrupts in force threaded-IRQ mode

2018-05-04 Thread Sebastian Andrzej Siewior
The interrupts are enabled/disabled so the interrupt handler can run with enabled interrupts while serving the interrupt and not lose other interrupts especially the timer tick. If the system runs with force-threaded interrupts then there is no need to enable the interrupts. Signed-off-by: Sebasti

[PATCH 1/4] alim15x3: move irq-restore before pci_dev_put()

2018-05-04 Thread Sebastian Andrzej Siewior
init_chipset_ali15x3() initializes the chipset during init with disabled interrupts. There is no need to keep the interrupts disabled during pci_dev_put(). Move the irq-restore before pci_dev_put() is invoked. Side note: The same init is performed in drivers/ata/pata_ali.c::ali_init_chipset() with

[PATCH 0/4] avoid disabling interrupts where it is not required

2018-05-04 Thread Sebastian Andrzej Siewior
This series avoids/limits disabling of interrupts in drivers/ide. This is from the -RT queue where it was reported initially (ata was not widespread back then) and it hurts -RT. While looking at alim15x3, there are some drivers which exist in both worlds (alim15x3 included was far as I can tell).

[PATCH] clk: davinci: pll-dm355: fix SYSCLKn parent names

2018-05-04 Thread David Lechner
This fixes the parent clock names of the SYSCLKn clocks for the DM355 SoC in the TI DaVinici PLL clock driver. It appears that this name just didn't get updated to the correct name like the other SoCs during the driver's development. Reported-by: Sekhar Nori Signed-off-by: David Lechner --- Se

Re: pciehp 0000:00:1c.0:pcie004: Timeout on hotplug command 0x1038 (issued 65284 msec ago)

2018-05-04 Thread okaya
On 2018-05-04 14:33, Bjorn Helgaas wrote: On Fri, May 04, 2018 at 07:37:40AM +0100, ok...@codeaurora.org wrote: On 2018-05-04 03:45, Bjorn Helgaas wrote: > On Thu, May 03, 2018 at 10:49:24AM +0200, Paul Menzel wrote: > > On 04/27/18 21:22, Bjorn Helgaas wrote: > > > [+cc Lukas, Sinan] > > > > >

Re: [PATCH 01/30] gcc-plugins: fix build condition of SANCOV plugin

2018-05-04 Thread Masahiro Yamada
Hi Kees, 2018-04-13 14:06 GMT+09:00 Masahiro Yamada : > Since commit d677a4d60193 ("Makefile: support flag > -fsanitizer-coverage=trace-cmp"), you miss to build the SANCOV > plugin under some circumstances. > > CONFIG_KCOV=y > CONFIG_KCOV_ENABLE_COMPARISONS=y > Your compiler does not suppor

Re: [PATCH v3 6/9] trace_uprobe: Support SDT markers having reference count (semaphore)

2018-05-04 Thread Ravi Bangoria
Hi Masami, On 05/04/2018 10:18 AM, Masami Hiramatsu wrote: >> +void uprobe_down_write_dup_mmap(void) >> +{ >> +percpu_down_write(&dup_mmap_sem); >> +} >> + >> +void uprobe_up_write_dup_mmap(void) >> +{ >> +percpu_up_write(&dup_mmap_sem); >> +} >> + > I'm not sure why these hunks are not do

Re: [Ksummit-discuss] bug-introducing patches

2018-05-04 Thread Ulf Hansson
Tony, Sasha, Mark On 4 May 2018 at 01:09, Tony Lindgren wrote: > * Mark Brown [180503 22:44]: >> On Wed, May 02, 2018 at 08:52:29PM -0700, Guenter Roeck wrote: >> >> > As for -next, me and others stopped reporting bugs in it, because when we >> > do >> > we tend to get flamed for the "noise". I

Re: [PATCH] memcg: Replace mm->owner with mm->memcg

2018-05-04 Thread Oleg Nesterov
On 05/03, Eric W. Biederman wrote: > > Oleg Nesterov writes: > > > On 05/02, Eric W. Biederman wrote: > >> > >> +static void mem_cgroup_fork(struct task_struct *tsk) > >> +{ > >> + struct cgroup_subsys_state *css; > >> + > >> + rcu_read_lock(); > >> + css = task_css(tsk, memory_cgrp_id); > >> +

Re: [PATCH] block: add verifier for cmdline partition

2018-05-04 Thread Jens Axboe
On 5/4/18 1:07 AM, Caizhiyong wrote: >> -Original Message- >> From: Wang YanQing [mailto:udkni...@gmail.com] >> Sent: Thursday, May 03, 2018 7:18 PM >> To: ax...@kernel.dk >> Cc: gre...@linuxfoundation.org; pombreda...@nexb.com; >> t...@linutronix.de; Caizhiyong ; linux- >> bl...@vger.kerne

Re: [PATCH 5/5] hisi: Consolidate the Kconfigs for the CLOCK_STUB and the MAILBOX

2018-05-04 Thread Leo Yan
On Wed, Apr 04, 2018 at 11:14:35AM +0800, Leo Yan wrote: > From: Daniel Lezcano > > The current defconfig is inconsistent as it selects the mailbox and > the clock for the hi6220 and the hi3660 without having their Kconfigs > making sure the dependencies are correct. It ends up when selecting > d

[PATCHv4 4/7] dt-bindings: fpga: add Stratix10 SoC FPGA manager binding

2018-05-04 Thread richard . gong
From: Alan Tull Add a Device Tree binding for the Intel Stratix10 SoC FPGA manager. Signed-off-by: Alan Tull Signed-off-by: Richard Gong --- v2: this patch is added in patch set version 2 v3: change to put fpga_mgr node under firmware/svc node v4: s/fpga-mgr@0/fpga-mgr/ to remove unit_address

[PATCHv4 6/7] fpga: add intel stratix10 soc fpga manager driver

2018-05-04 Thread richard . gong
From: Alan Tull Add driver for reconfiguring Intel Stratix10 SoC FPGA devices. This driver communicates through the Intel Service Driver which does communication with privileged hardware (that does the FPGA programming) through a secure mailbox. Signed-off-by: Alan Tull Signed-off-by: Richard G

[PATCHv4 5/7] arm64: dts: stratix10: add fpga manager and region

2018-05-04 Thread richard . gong
From: Alan Tull Add the Stratix10 FPGA manager and a FPGA region to the device tree. Signed-off-by: Alan Tull Signed-off-by: Richard Gong --- v2: this patch is added in patch set version 2 v3: change to put fpga_mgr node under firmware/svc node v4: s/fpga-mgr@0/fpga-mgr/ to remove unit_address

[PATCHv4 7/7] defconfig: enable fpga and service layer

2018-05-04 Thread richard . gong
From: Richard Gong Enable fpga framework, Stratix 10 SoC FPGA manager and Stratix10 Service Layer Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v2: this patch is added in patch set version 2 v3: no change v4: s/CONFIG_INTEL_SERVICE/CONFIG_STRATIX10_SERVICE/ Add CONFIG_OF_FPGA_RE

[PATCHv4 1/7] dt-bindings, firmware: add Intel Stratix10 service layer binding

2018-05-04 Thread richard . gong
From: Richard Gong Add a device tree binding for the Intel Stratix10 service layer driver Signed-off-by: Richard Gong Signed-off-by: Alan Tull Reviewed-by: Rob Herring --- v2: Change to put service layer driver node under the firmware node Change compatible to "intel, stratix10-svc" v3: N

<    1   2   3   4   5   6   7   8   9   >