Re: [PATCH] x86, asm-generic: add KASAN instrumentation to bitops

2017-03-30 Thread Ingo Molnar
* Dmitry Vyukov wrote: > +#include > + > #include > > #include > diff --git a/include/asm-generic/bitops-instrumented.h > b/include/asm-generic/bitops-instrumented.h > new file mode 100644 > index ..01d02113fc7e > --- /dev/null > +++ b/include/asm-generic/bitops-instrumented.

Re: [RFC PATCH 2/5] sched/events: Introduce cfs_rq load tracking trace event

2017-03-30 Thread Peter Zijlstra
On Wed, Mar 29, 2017 at 11:03:45PM +0200, Dietmar Eggemann wrote: > > +static int > > +__update_load_avg_blocked_se(u64 now, int cpu, struct sched_avg *sa) > > +{ > > + return ___update_load_avg(now, cpu, sa, 0, 0, NULL); > > +} > > + > > +static int > > +__update_load_avg_se(u64 now, int cpu, s

Re: [PATCH v2 1/2] x86/boot/32: Delete cpuinfo_x86::wp_works_ok

2017-03-30 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Wed, Mar 29, 2017 at 1:20 PM, Borislav Petkov wrote: > > On Wed, Mar 29, 2017 at 09:48:41AM -0700, Andy Lutomirski wrote: > >> Linux refuses to boot if WP doesn't work okay, so tracking whether > >> it works serves no purpose. The only use I can see at all for wp_

Re: [PATCH] x86/debug: define BUG() againfor !CONFIG_BUG

2017-03-30 Thread Peter Zijlstra
On Wed, Mar 29, 2017 at 11:16:31PM +0200, Arnd Bergmann wrote: > The latest change to the BUG() macro inadvertently reverted the earlier > commit b06dd879f5db ("x86: always define BUG() and HAVE_ARCH_BUG, even > with !CONFIG_BUG") that sanitized the behavior with CONFIG_BUG=n. > > I noticed this a

Re: [RFC 0/1] add support for reclaiming priorities per mem cgroup

2017-03-30 Thread Tim Murray
Sorry for the delay on my end as well. I realized that given multiple equivalent prioritization implementations, my favorite would be the one that provides the clearest signal to vmpressure. I've been experimenting with different approaches to using memcg priority in vmpressure, and I'm cautiously

Re: in_irq_or_nmi() and RFC patch

2017-03-30 Thread Jesper Dangaard Brouer
On Thu, 30 Mar 2017 08:49:58 +0200 Peter Zijlstra wrote: > On Wed, Mar 29, 2017 at 09:44:41PM +0200, Jesper Dangaard Brouer wrote: > > @@ -2481,7 +2481,11 @@ void free_hot_cold_page(struct page *page, bool cold) > > unsigned long pfn = page_to_pfn(page); > > int migratetype; > > > > -

Re: [PATCH] x86/debug: define BUG() againfor !CONFIG_BUG

2017-03-30 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Mar 29, 2017 at 11:16:31PM +0200, Arnd Bergmann wrote: > > The latest change to the BUG() macro inadvertently reverted the earlier > > commit b06dd879f5db ("x86: always define BUG() and HAVE_ARCH_BUG, even > > with !CONFIG_BUG") that sanitized the behavior with

Re: [PATCH 2/6] virtio: add context flag to find vqs

2017-03-30 Thread Cornelia Huck
On Wed, 29 Mar 2017 23:48:51 +0300 "Michael S. Tsirkin" wrote: > Allows maintaining extra context per vq. For ease of use, passing in > NULL is legal and disables the feature for all vqs. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/misc/mic/vop/vop_main.c| 9 ++--- > driver

Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs

2017-03-30 Thread Richard Weinberger
Ralph, Am 30.03.2017 um 07:53 schrieb Ralph Sennhauser: > With this patch I'm no longer able to reproduce _this_ issue, however, > rename no longer works either: > > # mv /etc/config/wireless /etc/config/wireless.back > mv: can't rename '/etc/config/wireless': Invalid argument > # ls /etc/c

[PATCH] staging: fbtft: fix type assignment warning

2017-03-30 Thread Alex Wilson
Sparse spits out a warning that a __be16 was being assigned to a u16. Change the type of txbuf16 to __be16 b/c it's a restricted type and prevents mixing endianness. Signed-off-by: Alex Wilson --- drivers/staging/fbtft/fbtft-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/6] virtio: wrap find_vqs

2017-03-30 Thread Cornelia Huck
On Wed, 29 Mar 2017 23:48:44 +0300 "Michael S. Tsirkin" wrote: > We are going to add more parameters to find_vqs, let's wrap the call so > we don't need to tweak all drivers every time. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/block/virtio_blk.c | 3 +-- > drivers/

Re: [PATCH 2/2] staging: atomisp: use local variable to reduce the number of reference

2017-03-30 Thread walter harms
Am 30.03.2017 08:25, schrieb Daeseok Youn: > Define new local variable to reduce the number of reference. > The new local variable is added to save the addess of dfs > and used in atomisp_freq_scaling() function. > > Signed-off-by: Daeseok Youn > --- > .../media/atomisp/pci/atomisp2/atomisp_cm

Re: Random guest crashes since 5c34d002dcc7 ("virtio_pci: use shared interrupts for virtqueues")

2017-03-30 Thread Mike Galbraith
On Thu, 2017-03-30 at 05:10 +0200, Mike Galbraith wrote: > WRT spin, you should need do nothing more than boot with threadirqs, > that's 100% repeatable here in absolutely virgin source. No idea why virtqueue_get_buf() in __send_control_msg() fails forever with threadirqs, but marking that vq as

[PATCH V2 net-next 0/7] vhost-net rx batching

2017-03-30 Thread Jason Wang
Hi all: This series tries to implement rx batching for vhost-net. This is done by batching the dequeuing from skb_array which was exported by underlayer socket and pass the sbk back through msg_control to finish userspace copying. Tests shows at most 19% improvment on rx pps. Please review. Tha

[PATCH V2 net-next 1/7] ptr_ring: introduce batch dequeuing

2017-03-30 Thread Jason Wang
This patch introduce a batched version of consuming, consumer can dequeue more than one pointers from the ring at a time. We don't care about the reorder of reading here so no need for compiler barrier. Signed-off-by: Jason Wang --- include/linux/ptr_ring.h | 65 +

[PATCH V2 net-next 5/7] tun: support receiving skb through msg_control

2017-03-30 Thread Jason Wang
This patch makes tun_recvmsg() can receive from skb from its caller through msg_control. Vhost_net will be the first user. Signed-off-by: Jason Wang --- drivers/net/tun.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c

[PATCH V2 net-next 4/7] tap: export skb_array

2017-03-30 Thread Jason Wang
This patch exports skb_array through tap_get_skb_array(). Caller can then manipulate skb array directly. Signed-off-by: Jason Wang --- drivers/net/tap.c | 13 + include/linux/if_tap.h | 5 + 2 files changed, 18 insertions(+) diff --git a/drivers/net/tap.c b/drivers/net/tap

Re: [PATCH 3/6] virtio: allow extra context per descriptor

2017-03-30 Thread Cornelia Huck
On Wed, 29 Mar 2017 23:48:53 +0300 "Michael S. Tsirkin" wrote: > Allow extra context per descriptor. To avoid slow down for data path, > this disables use of indirect descriptors for this vq. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/virtio/virtio_ring.c | 70 > +++

[PATCH V2 net-next 7/7] vhost_net: try batch dequing from skb array

2017-03-30 Thread Jason Wang
We used to dequeue one skb during recvmsg() from skb_array, this could be inefficient because of the bad cache utilization and spinlock touching for each packet. This patch tries to batch them by calling batch dequeuing helpers explicitly on the exported skb array and pass the skb back through msg_

[PATCH V2 net-next 3/7] tun: export skb_array

2017-03-30 Thread Jason Wang
This patch exports skb_array through tun_get_skb_array(). Caller can then manipulate skb array directly. Signed-off-by: Jason Wang --- drivers/net/tun.c | 13 + include/linux/if_tun.h | 5 + 2 files changed, 18 insertions(+) diff --git a/drivers/net/tun.c b/drivers/net/tun

[PATCH V2 net-next 6/7] tap: support receiving skb from msg_control

2017-03-30 Thread Jason Wang
This patch makes tap_recvmsg() can receive from skb from its caller through msg_control. Vhost_net will be the first user. Signed-off-by: Jason Wang --- drivers/net/tap.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/tap.c b/drivers/net/tap.c index

Re: [PATCH v1] x86/platform/intel-mid: Enable bluetooth on Intel Edison

2017-03-30 Thread Ingo Molnar
* Andy Shevchenko wrote: > Intel Edison has Wi-Fi + BT module attached and, since it's an SFI-enumerated > platform, needs a platform data. Here we add bits to enable bluetooth device. > > Signed-off-by: Andy Shevchenko > --- > arch/x86/platform/intel-mid/device_libs/Makefile | 3 +- > ..

[PATCH V2 net-next 2/7] skb_array: introduce batch dequeuing

2017-03-30 Thread Jason Wang
Signed-off-by: Jason Wang --- include/linux/skb_array.h | 25 + 1 file changed, 25 insertions(+) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index f4dfade..90e44b9 100644 --- a/include/linux/skb_array.h +++ b/include/linux/skb_array.h @@ -97,21 +97,

Re: [PATCH] x86/debug: define BUG() againfor !CONFIG_BUG

2017-03-30 Thread Arnd Bergmann
On Thu, Mar 30, 2017 at 9:10 AM, Peter Zijlstra wrote: > On Wed, Mar 29, 2017 at 11:16:31PM +0200, Arnd Bergmann wrote: >> The latest change to the BUG() macro inadvertently reverted the earlier >> commit b06dd879f5db ("x86: always define BUG() and HAVE_ARCH_BUG, even >> with !CONFIG_BUG") that sa

Re: [PATCH 4/6] virtio_net: allow specifying context for rx

2017-03-30 Thread Cornelia Huck
On Wed, 29 Mar 2017 23:48:54 +0300 "Michael S. Tsirkin" wrote: > With mergeable buffers we never use s/g for rx, > so allow specifying context in that case. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/net/virtio_net.c | 15 ++- > 1 file changed, 14 insertions(+), 1 deleti

Re: [PATCH] x86/debug: define BUG() againfor !CONFIG_BUG

2017-03-30 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > On Wed, Mar 29, 2017 at 11:16:31PM +0200, Arnd Bergmann wrote: > > > The latest change to the BUG() macro inadvertently reverted the earlier > > > commit b06dd879f5db ("x86: always define BUG() and HAVE_ARCH_BUG, even > > > with !CONFIG_B

Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs

2017-03-30 Thread Ralph Sennhauser
Hi Richard, On Thu, 30 Mar 2017 08:56:57 +0200 Richard Weinberger wrote: > > Ralph, > Please apply this > fix:http://lists.infradead.org/pipermail/linux-mtd/2017-March/072613.html > No longer able to observe an issue with this one on top. The two patches seem all that was needed to get th

Re: [PATCH 4.10 094/111] libceph: force GFP_NOIO for socket allocations

2017-03-30 Thread Greg Kroah-Hartman
On Wed, Mar 29, 2017 at 10:09:40AM +0200, Michal Hocko wrote: > On Tue 28-03-17 14:31:20, Greg KH wrote: > > 4.10-stable review patch. If anyone has any objections, please let me know. > > Greg, please hold on with this backport. I would like to get > http://lkml.kernel.org/r/20170328124312.ge18.

Re: [PATCH 0/2] mtd: spi-nor: add stm32 qspi driver

2017-03-30 Thread Ludovic BARRE
hi Cyrille I see your patch series [PATCH v5 0/6] mtd: spi-nor: parse SFDP tables to setup (Q)SPI memories No problem, I rebase my V2 onto your patch BR Ludo On 03/29/2017 06:51 PM, Cyrille Pitchen wrote: Hi Ludovic, Le 27/03/2017 à 14:54, Ludovic Barre a écrit : From: Ludovic Barre Thi

Re: deadlock in synchronize_srcu() in debugfs?

2017-03-30 Thread Nicolai Stange
Hi Johannes, On Mon, Mar 27 2017, Johannes Berg wrote: >> > Before I go hunting - has anyone seen a deadlock in >> > synchronize_srcu() in debugfs_remove() before? >> >> Not yet. How reproducible is this? > > So ... this turned out to be a livelock of sorts. > > We have a debugfs file (not upstr

[tip:x86/mm] x86/dump_pagetables: Add support for 5-level paging

2017-03-30 Thread tip-bot for Kirill A. Shutemov
Commit-ID: fdd3d8ce0ea62c32b039af45cc5538b728e366d9 Gitweb: http://git.kernel.org/tip/fdd3d8ce0ea62c32b039af45cc5538b728e366d9 Author: Kirill A. Shutemov AuthorDate: Tue, 28 Mar 2017 13:48:06 +0300 Committer: Ingo Molnar CommitDate: Thu, 30 Mar 2017 08:20:17 +0200 x86/dump_pagetables:

Re: in_irq_or_nmi() and RFC patch

2017-03-30 Thread Peter Zijlstra
On Thu, Mar 30, 2017 at 09:12:23AM +0200, Jesper Dangaard Brouer wrote: > On Thu, 30 Mar 2017 08:49:58 +0200 > Peter Zijlstra wrote: > > > On Wed, Mar 29, 2017 at 09:44:41PM +0200, Jesper Dangaard Brouer wrote: > > > @@ -2481,7 +2481,11 @@ void free_hot_cold_page(struct page *page, bool > > > co

[tip:x86/mm] x86/boot/32: Rewrite test_wp_bit()

2017-03-30 Thread tip-bot for Andy Lutomirski
Commit-ID: 4af171105144a6475704c1e6024132883d50499e Gitweb: http://git.kernel.org/tip/4af171105144a6475704c1e6024132883d50499e Author: Andy Lutomirski AuthorDate: Wed, 29 Mar 2017 16:47:35 -0700 Committer: Ingo Molnar CommitDate: Thu, 30 Mar 2017 09:08:33 +0200 x86/boot/32: Rewrite tes

Re: [PATCH v12 00/10] mux controller abstraction and iio/i2c muxes

2017-03-30 Thread Peter Rosin
On 2017-03-27 16:21, Peter Rosin wrote: > Hi Greg! > > Please apply. > *snip snip* > v10 -> v11 changes > - added a new patch (12) with a fix for messed up error path reported > by Paul Gortmaker. Oops, should be Dan Carpenter. Sorry about that... And, I forgot to high-light this: > v4 -> v

[tip:x86/asm] x86/debug: Define BUG() again for !CONFIG_BUG

2017-03-30 Thread tip-bot for Arnd Bergmann
Commit-ID: 70579a86e3c8eb2ce57999e594a73b4dfe095959 Gitweb: http://git.kernel.org/tip/70579a86e3c8eb2ce57999e594a73b4dfe095959 Author: Arnd Bergmann AuthorDate: Wed, 29 Mar 2017 23:16:31 +0200 Committer: Ingo Molnar CommitDate: Thu, 30 Mar 2017 09:12:10 +0200 x86/debug: Define BUG() ag

Re: [PATCH] x86/debug: define BUG() againfor !CONFIG_BUG

2017-03-30 Thread Peter Zijlstra
On Thu, Mar 30, 2017 at 09:17:07AM +0200, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > On Wed, Mar 29, 2017 at 11:16:31PM +0200, Arnd Bergmann wrote: > > > The latest change to the BUG() macro inadvertently reverted the earlier > > > commit b06dd879f5db ("x86: always define BUG() and HAV

[PATCH] mtd: nand: omap2: Fix partition creation via cmdline mtdparts

2017-03-30 Thread Roger Quadros
commit c9711ec5250b ("mtd: nand: omap: Clean up device tree support") caused the parent device name to be changed from "omap2-nand.0" to ".nand" (e.g. 3000.nand on omap3 platforms). This caused mtd->name to be changed as well. This breaks partition creation via mtdparts passed by u-boot as it

Re: [PATCH 1/2] leds: Add driver for Qualcomm LPG

2017-03-30 Thread Pavel Machek
Hi! > > > There is a binding for ti,lp55xx, but there's nothing I can reuse from > > > that binding...because it's completely different hardware. > > > > Agreed, if you drop the pattern stuff from the binding, at least for now. > > I do not have a strong preference to expose these knobs in devi

Re: [RFC v2][PATCH 01/11] Introduce rare_write() infrastructure

2017-03-30 Thread Ho-Eun Ryu
> On 30 Mar 2017, at 3:23 AM, Kees Cook wrote: > > On Wed, Mar 29, 2017 at 11:15 AM, Kees Cook wrote: >> +/* >> + * Build "write rarely" infrastructure for flipping memory r/w >> + * on a per-CPU basis. >> + */ >> +#ifndef CONFIG_HAVE_ARCH_RARE_WRITE >> +# define __wr_rare >> +# define __wr_rar

Re: [PATCH] [net-next] stmmac: use netif_set_real_num_{rx,tx}_queues

2017-03-30 Thread Corentin Labbe
On Tue, Mar 28, 2017 at 06:01:05PM -0700, David Miller wrote: > From: Arnd Bergmann > Date: Tue, 28 Mar 2017 11:48:21 +0200 > > > A driver must not access the two fields directly but should instead use > > the helper functions to set the values and keep a consistent internal > > state: > > > > e

Re: [PATCH] Revert "mtd: davinci-nand: disable subpage write for keystone-nand"

2017-03-30 Thread Sekhar Nori
Hi Boris, On Wednesday 29 March 2017 08:33 PM, Boris Brezillon wrote: > On Mon, 27 Mar 2017 15:56:55 +0530 > Sekhar Nori wrote: > >> This partly reverts commit 28c015a9daabe4ed3aeb0ccf669a3f1c2b8b81d5. >> >> Since f6d7c1b5598b ("mtd: nand: davinci: Reinitialize the HW ECC >> engine in 4bit hwctl

Re: [RFC PATCH 2/5] sched/events: Introduce cfs_rq load tracking trace event

2017-03-30 Thread Dietmar Eggemann
On 03/30/2017 09:04 AM, Peter Zijlstra wrote: On Wed, Mar 29, 2017 at 11:03:45PM +0200, Dietmar Eggemann wrote: [...] Why not reduce the parameter list of these 3 incarnations to 'now, cpu, object'? static int __update_load_avg_blocked_se(u64 now, int cpu, struct sched_entity *se) static in

Re: [PATCH v2 2/2] mmc: sdhci-pci: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers

2017-03-30 Thread Adrian Hunter
On 29/03/17 21:16, Azhar Shaikh wrote: > Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card > controllers. > > Signed-off-by: Azhar Shaikh Acked-by: Adrian Hunter > --- > Changes in v2: > - Rebased the patch on top of 'next' branch. > - No code change. > > drivers/mmc/host/sdhci-pci

Re: [PATCH] x86/debug: define BUG() againfor !CONFIG_BUG

2017-03-30 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Thu, Mar 30, 2017 at 09:17:07AM +0200, Ingo Molnar wrote: > > > > * Peter Zijlstra wrote: > > > > > On Wed, Mar 29, 2017 at 11:16:31PM +0200, Arnd Bergmann wrote: > > > > The latest change to the BUG() macro inadvertently reverted the earlier > > > > commit b06dd8

Re: [PATCH v2 1/2] mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers

2017-03-30 Thread Adrian Hunter
On 29/03/17 21:16, Azhar Shaikh wrote: > Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card > controllers. > > Signed-off-by: Azhar Shaikh Acked-by: Adrian Hunter > --- > Changes in v2: > - Rebased the patch on top of 'next' branch. > - No code change. > > drivers/mmc/host/sdhci-acp

Re: [PATCH] selinux: Fix SBLABEL_MNT for NFS mounts

2017-03-30 Thread Tomeu Vizoso
On 29 March 2017 at 23:34, J. Bruce Fields wrote: > On Wed, Mar 29, 2017 at 05:27:23PM +0200, Tomeu Vizoso wrote: >> Labelling of files in a NFSv4.2 currently fails with ENOTSUPP because >> the mount point doesn't have SBLABEL_MNT. >> >> Add specific condition for NFS4 filesystems so it gets corre

[RESEND PATCH] pty: show associative slave of ptmx in fdinfo

2017-03-30 Thread Masatake YAMATO
This patch adds "tty-index" field to /proc/PID/fdinfo/N if N specifies /dev/ptmx. The field shows the index of associative slave pts. Though a minor number is given for each pts instance, ptmx is not. It means there is no way in user-space to know the association between file descriptors for pts/n

Re: [PATCH 2/2] mdadm.c: fix compile error "switch condition has boolean value"

2017-03-30 Thread Gioh Kim
On Thu, Mar 30, 2017 at 08:38:35AM +1100, NeilBrown wrote: > On Thu, Mar 30 2017, jes.soren...@gmail.com wrote: > > > Gioh Kim writes: > >> Remove a boolean expression in switch condition > >> to prevent compile error of some compilers. > > > > Please be specific, which compile is unable to handl

Re: [PATCH v22 09/11] acpi/arm64: Add memory-mapped timer support in GTDT driver

2017-03-30 Thread Fu Wei
Hi Lorenzo, On 30 March 2017 at 00:47, Lorenzo Pieralisi wrote: > On Wed, Mar 22, 2017 at 12:31:20AM +0800, fu@linaro.org wrote: >> From: Fu Wei >> >> On platforms booting with ACPI, architected memory-mapped timers' >> configuration data is provided by firmware through the ACPI GTDT >> stat

Re: ZONE_NORMAL vs. ZONE_MOVABLE

2017-03-30 Thread Vlastimil Babka
On 03/20/2017 07:33 AM, Joonsoo Kim wrote: >> The fact sticky movable pageblocks aren't ideal for CMA doesn't mean >> they're not ideal for memory hotunplug though. >> >> With CMA there's no point in having the sticky movable pageblocks >> scattered around and it's purely a misfeature to use sticky

Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-30 Thread Lee Jones
On Wed, 29 Mar 2017, Sebastian Andrzej Siewior wrote: > On 2017-03-22 09:05:58 [-0700], Steven Rostedt wrote: > > On Wed, 22 Mar 2017 16:18:43 +0100 > > Lionel Debieve wrote: > > > > > Use raw_spin_lock in enable/disable channel as it comes from > > > interrupt context. > > > > > > BUG: sleepin

Re: deadlock in synchronize_srcu() in debugfs?

2017-03-30 Thread Johannes Berg
On Thu, 2017-03-30 at 09:32 +0200, Nicolai Stange wrote: > > I wonder if holding the RTNL during the debugfs file removal is > really needed. I'll try to have a look in the next couple of days. Yes, I'm pretty much convinced that it is. I considered doing a deferred debugfs_remove() by holding th

Re: [PATCH] serial: Do not treat the IIR register as a bitfield

2017-03-30 Thread Vignesh R
On Thursday 30 March 2017 12:13 PM, Olliver Schinagl wrote: > > > On March 30, 2017 8:15:29 AM CEST, Vignesh R wrote: >> Hi, >> >> On Thursday 30 March 2017 12:14 AM, Olliver Schinagl wrote: >>> diff --git a/include/uapi/linux/serial_reg.h >> b/include/uapi/linux/serial_reg.h >>> index 5db7688

Re: [tip:x86/mm] x86/boot/32: Rewrite test_wp_bit()

2017-03-30 Thread Borislav Petkov
On Thu, Mar 30, 2017 at 12:29:18AM -0700, tip-bot for Andy Lutomirski wrote: > Commit-ID: 4af171105144a6475704c1e6024132883d50499e > Gitweb: http://git.kernel.org/tip/4af171105144a6475704c1e6024132883d50499e > Author: Andy Lutomirski > AuthorDate: Wed, 29 Mar 2017 16:47:35 -0700 > Committ

Re: [PATCH v2] livepatch: Reduce the time of finding module symbols

2017-03-30 Thread Miroslav Benes
On Tue, 28 Mar 2017, Zhou Chengming wrote: > It's reported that the time of insmoding a klp.ko for one of our > out-tree modules is too long. > > ~ time sudo insmod klp.ko > real 0m23.799s > user 0m0.036s > sys 0m21.256s > > Then we found the reason: our out-tree module used a lot of static

Re: [PATCH] x86/debug: define BUG() againfor !CONFIG_BUG

2017-03-30 Thread Arnd Bergmann
On Thu, Mar 30, 2017 at 9:47 AM, Ingo Molnar wrote: > > * Peter Zijlstra wrote: >> So should we then, for x86, disable BUG=n instead? > > Arnd, does CONFIG_BUG=n give any (marginal) text savings wrt. > CONFIG_BUG=y && CONFIG_BUG_VERBOSE=n? My patch makes it slightly worse, but the difference is

Re: [REGRESSION][Stable][v3.12.y][v4.4.y][v4.9.y][v4.10.y][v4.11-rc1] scsi: storvsc: properly set residual data length on errors

2017-03-30 Thread Greg KH
On Tue, Mar 28, 2017 at 04:14:09PM +, Stephen Hemminger wrote: > I decided not to send it to stable since problem was only observed on > 4.11 but it is probably endemic to all GEN2 VM's So, what does this mean? What should stable@ do? Nothing? Ok, now dropped this from my patch queue :) th

[PATCHv3 2/7] x86/asm: Remove __VIRTUAL_MASK_SHIFT==47 assert

2017-03-30 Thread Kirill A. Shutemov
We don't need the assert anymore. 17be0aec74fb ("x86/asm/entry/64: Implement better check for canonical addresses") made canonical address check generic wrt. address width. Signed-off-by: Kirill A. Shutemov --- arch/x86/entry/entry_64.S | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-

[PATCHv3 4/7] x86/paravirt: Make paravirt code support 5-level paging

2017-03-30 Thread Kirill A. Shutemov
Add operations to allocate/release p4ds. Xen requires more work. We will need to come back to it. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/paravirt.h | 37 --- arch/x86/include/asm/paravirt_types.h | 7 ++- arch/x86/include/asm/pgallo

[PATCHv3 5/7] x86/mm: Add basic defines/helpers for CONFIG_X86_5LEVEL

2017-03-30 Thread Kirill A. Shutemov
Extends pagetable headers to support new paging mode. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/pgtable_64.h | 11 +++ arch/x86/include/asm/pgtable_64_types.h | 20 arch/x86/include/asm/pgtable_types.h| 10 +- arch/x86/mm/pgtable.c

[PATCHv3 3/7] x86/mm: Define virtual memory map for 5-level paging

2017-03-30 Thread Kirill A. Shutemov
The first part of memory map (up to %esp fixup) simply scales existing map for 4-level paging by factor of 9 -- number of bits addressed by additional page table level. The rest of the map is unchanged. Signed-off-by: Kirill A. Shutemov --- Documentation/x86/x86_64/mm.txt | 33 +

[PATCHv3 0/7] x86: 5-level paging enabling for v4.12, Part 3

2017-03-30 Thread Kirill A. Shutemov
Here's the third bunch of patches of 5-level patchset. This time we prepare code to handle non-folded version of the additional page table level. v3: - rebased onto tip/master; v2: - address Ingo's and Peter's feedback; Kirill A. Shutemov (7): x86/boot: Detect 5-level paging support x86/as

[PATCHv3 6/7] x86/kasan: Extend to support 5-level paging

2017-03-30 Thread Kirill A. Shutemov
This patch bring support for non-folded additional page table level. Signed-off-by: Kirill A. Shutemov Cc: Dmitry Vyukov Cc: Andrey Ryabinin --- arch/x86/mm/kasan_init_64.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/kasan_init_64.c b/arc

[PATCHv3 1/7] x86/boot: Detect 5-level paging support

2017-03-30 Thread Kirill A. Shutemov
5-level paging support is required from hardware when compiled with CONFIG_X86_5LEVEL=y. We will implement boot-time switch between 4- and 5-level paging later. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/cpucheck.c | 9 + arch/x86/boot/cpuflags.c

Re: [PATCH v12 00/10] mux controller abstraction and iio/i2c muxes

2017-03-30 Thread Greg Kroah-Hartman
On Thu, Mar 30, 2017 at 09:34:52AM +0200, Peter Rosin wrote: > On 2017-03-27 16:21, Peter Rosin wrote: > > Hi Greg! > > > > Please apply. > > > > *snip snip* > > > v10 -> v11 changes > > - added a new patch (12) with a fix for messed up error path reported > > by Paul Gortmaker. > > Oops, sho

[PATCHv3 7/7] x86/espfix: Add support 5-level paging

2017-03-30 Thread Kirill A. Shutemov
We don't need extra virtual address space for ESPFIX, so it stays within one PUD page table for both 4- and 5-level paging. Redefining ESPFIX_BASE_ADDR using P4D_SHIFT instead of PGDIR_SHIFT would make it stay in the same place regarding of paging mode. Signed-off-by: Kirill A. Shutemov --- arc

Re: [RFC][PATCH] exec: Don't wait for ptraced threads to be reaped.

2017-03-30 Thread Eric W. Biederman
Oleg Nesterov writes: > On 03/03, Eric W. Biederman wrote: >> @@ -1065,11 +1065,8 @@ static int de_thread(struct task_struct *tsk) >> } >> >> sig->group_exit_task = tsk; >> -sig->notify_count = zap_other_threads(tsk); >> -if (!thread_group_leader(tsk)) >> -sig->notif

Re: [PATCH v3 3/7] arm: dts: dt-bindings: Add Renesas RZ pinctrl header

2017-03-30 Thread Linus Walleij
On Wed, Mar 29, 2017 at 4:55 PM, Chris Brandt wrote: > On Wednesday, March 29, 2017, Linus Walleij wrote: >> On Fri, Mar 24, 2017 at 4:22 PM, Jacopo Mondi >> wrote: >> >> > Add dt-bindings for Renesas r7s72100 pin controller header file. >> > >> > Signed-off-by: Jacopo Mondi >> >> > +/* >> > + *

Re: [PATCH v1 0/8] clk: meson: gxbb: more clock controller update for audio support

2017-03-30 Thread Neil Armstrong
On 03/29/2017 10:42 PM, Michael Turquette wrote: > Hi Jerome, > > Adding Neil Armstong to Cc. > > Quoting Jerome Brunet (2017-03-28 07:45:57) >> The patchset is the 2nd round of update to the meson gxbb clock controller >> to add initial audio support. The patchset is based on clk-next. >> >> The

Re: [PATCH RESEND] drm: use .hword to represent 16-bit numbers

2017-03-30 Thread Daniel Vetter
On Wed, Mar 29, 2017 at 02:45:23PM +0100, Javi Merino wrote: > The size of .word is the size of a word in the given platform, which > for intel systems is 16-bits but other architectures use different > sizes. However, .hword emits 16-bit numbers regardless of the > platform (and despite the name)

[PATCH v3 31/37] mtd: nand: denali: fix raw and oob accessors for syndrome page layout

2017-03-30 Thread Masahiro Yamada
The Denali IP adopts the syndrome page layout; payload and ECC are interleaved, with BBM area always placed at the beginning of OOB. The figure below shows the page organization for ecc->steps == 2: |||---| ||| | ||

[PATCH v3 35/37] mtd: nand: denali: skip driver internal bounce buffer when possible

2017-03-30 Thread Masahiro Yamada
For ecc->read_page() and ecc->write_page(), it is possible to call dma_map_single() against the given buffer. This bypasses the driver internal bounce buffer and save the memcpy(). Signed-off-by: Masahiro Yamada denali: set buf_align 16 --- Changes in v3: - Set chip->buf_align to 16 Changes

[PATCH v3 34/37] mtd: nand: allow drivers to request minimum alignment for passed buffer

2017-03-30 Thread Masahiro Yamada
In some cases, nand_do_{read,write}_ops is passed with unaligned ops->datbuf. Drivers using DMA will be unhappy about unaligned buffer. The new struct member, buf_align, represents the minimum alignment the driver require for the buffer. If the buffer passed from the upper MTD layer does not hav

[PATCH v6 2/3] nvmem: sunxi-sid: add support for H3's SID controller

2017-03-30 Thread Icenowy Zheng
From: Icenowy Zheng The H3 SoC have a bigger SID controller, which has its direct read address at 0x200 position in the SID block, not 0x0. Also, H3 SID controller has some silicon bug that makes the direct read value wrong at cold boot, add code to workaround the bug. (This bug has already been

[PATCH v3 36/37] mtd: nand: denali: use non-managed kmalloc() for DMA buffer

2017-03-30 Thread Masahiro Yamada
As Russell and Lars stated in the discussion [1], using devm_k*alloc() with DMA is not a good idea. Let's use kmalloc (not kzalloc because no need for zero-out). Also, allocate the buffer as late as possible because it must be freed for any error that follows. [1] https://lkml.org/lkml/2017/3/8/6

[PATCH v3 37/37] mtd: nand: denali: enable bad block table scan

2017-03-30 Thread Masahiro Yamada
Now this driver is ready to remove NAND_SKIP_BBTSCAN. The BBT descriptors in denali.c are equivalent to the ones in nand_bbt.c. There is no need to duplicate the equivalent structures. The with-oob decriptors do not work for this driver anyway. The bbt_pattern (offs = 8) and the version (veroffs

Re: [PATCH v2] scsi/bfa: use designated initializers

2017-03-30 Thread Christoph Hellwig
On Wed, Mar 29, 2017 at 01:55:09PM -0700, Kees Cook wrote: > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from

[PATCH v3 33/37] mtd: nand: allocate aligned buffers if NAND_OWN_BUFFERS is unset

2017-03-30 Thread Masahiro Yamada
Some NAND controllers are using DMA engine requiring a specific buffer alignment. The core provides no guarantee on the nand_buffers pointers, which forces some drivers to allocate their own buffers and pass the NAND_OWN_BUFFERS flag. Rework the nand_buffers allocation logic to allocate each buff

[PATCH] megachips-stdpxxxx-ge-b850v3-fw: Fix drm bridge initialization

2017-03-30 Thread Peter Senna Tschudin
Reordering of the device nodes based on unit address resulted in ge_b850v3_lvds_attach() being called before ge_b850v3_lvds_ptr->stdp4028_i2c was populated. This patch moves the drm bridge initialization from ge_b850v3_lvds_init() to stdp4028_ge_b850v3_fw_probe() ensuring that ge_b850v3_lvds_ptr->

[PATCH v3 32/37] mtd: nand: denali: support hardware-assisted erased page detection

2017-03-30 Thread Masahiro Yamada
Recent versions of this IP support automatic erased page detection. If an erased page is detected on reads, the controller does not set INTR__ECC_UNCOR_ERR, but INTR__ERASED_PAGE. If this feature is supported, the driver can use this information instead of calling nand_check_erased_ecc_chunk(). T

Re: [PATCH] irq/affinity: Assign all CPUs a vector

2017-03-30 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

[PATCH V1] mtd: mtk-nor: set controller to 4B mode with large capacity flash

2017-03-30 Thread Guochun Mao
Guochun Mao (1): mtd: mtk-nor: set controller to 4B mode with large capacity flash drivers/mtd/spi-nor/mtk-quadspi.c | 7 +++ 1 file changed, 7 insertions(+) -- 1.9.1

[PATCH V1 1/1] mtd: mtk-nor: set controller to 4B mode with large capacity flash

2017-03-30 Thread Guochun Mao
when nor's size larger than 16MByte, nor and controller should enter 4Byte mode simultaneously. Signed-off-by: Guochun Mao --- drivers/mtd/spi-nor/mtk-quadspi.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mtd/spi-nor/mtk-quadspi.c b/drivers/mtd/spi-nor/mtk-quadspi.c in

Re: [PATCH] xtensa: Fix mmap() support

2017-03-30 Thread Boris Brezillon
+Christoph who introduced the CONFIG_ARCH_NO_COHERENT_DMA_MMAP option. Hi Max, On Wed, 29 Mar 2017 15:48:24 -0700 Max Filippov wrote: > Hi Boris, > > On Tue, Mar 28, 2017 at 1:20 AM, Boris Brezillon > wrote: > > The xtensa architecture does not implement the dma_map_ops->mmap() hook, > > thus

[PATCH 0/2] target: Bug-fixes for v4.11-rc

2017-03-30 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Hi all, Here are two additional target bug-fixes that have been found by the DATERA Q/A + automation team during extended longevity and stress testing atop v4.1.y stable code. The first is a iscsi-target specific TMR reference leak during session shutdown when se_cmd qu

[PATCH 1/2] iscsi-target: Fix TMR reference leak during session shutdown

2017-03-30 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch fixes a iscsi-target specific TMR reference leak during session shutdown, that could occur when a TMR was quiesced before the hand-off back to iscsi-target code via transport_cmd_check_stop_to_fabric(). The reference leak happens because iscsit_free_cmd() was

[PATCH 2/2] target: Avoid mappedlun symlink creation during lun shutdown

2017-03-30 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch closes a race between se_lun deletion during configfs unlink in target_fabric_port_unlink() -> core_dev_del_lun() -> core_tpg_remove_lun(), when transport_clear_lun_ref() blocks waiting for percpu_ref RCU grace period to finish, but a new NodeACL mappedlun is a

[PATCH v6 3/3] ARM: sunxi: h3/h5: enable SID on Allwinner H3/H5 SoC

2017-03-30 Thread Icenowy Zheng
From: Icenowy Zheng As we have already made sunxi_sid driver support the SID controller on H3/H5, enable it. Signed-off-by: Icenowy Zheng --- Changes in v6: - Rebased on current linux-next. - Change H3 in commit message to H3/H5. arch/arm/boot/dts/sunxi-h3-h5.dtsi | 5 + 1 file changed, 5

Re: [PATCH] Fix IB va_start+ib_bytes range check on 32Bit systems

2017-03-30 Thread Christian König
Am 30.03.2017 um 03:41 schrieb Michel Dänzer: On 30/03/17 12:18 AM, Christian König wrote: Am 29.03.2017 um 16:54 schrieb Michel Dänzer: On 29/03/17 10:22 PM, Christian König wrote: Am 29.03.2017 um 11:18 schrieb Jan Burgmeier: Signed-off-by: Jan Burgmeier --- drivers/gpu/drm/amd/amdgpu/

Re: [PATCH v9 10/15] ACPI: platform-msi: retrieve dev id from IORT

2017-03-30 Thread Wei Xu
Hi All, On 2017/3/30 4:07, Hanjun Guo wrote: > On 03/30/2017 01:32 AM, Lorenzo Pieralisi wrote: >> On Wed, Mar 29, 2017 at 05:13:54PM +0100, Lorenzo Pieralisi wrote: >>> On Wed, Mar 29, 2017 at 03:52:47PM +0100, Marc Zyngier wrote: On 29/03/17 14:00, Hanjun Guo wrote: > On 03/29/2017 08:3

[tip:sched/core] sched/fair: Optimize ___update_sched_avg()

2017-03-30 Thread tip-bot for Yuyang Du
Commit-ID: a481db34b9beb7a9647c23f2320dd38a2b1d681f Gitweb: http://git.kernel.org/tip/a481db34b9beb7a9647c23f2320dd38a2b1d681f Author: Yuyang Du AuthorDate: Mon, 13 Feb 2017 05:44:23 +0800 Committer: Ingo Molnar CommitDate: Thu, 30 Mar 2017 09:43:41 +0200 sched/fair: Optimize ___update

Re: [PATCH v3 3/7] arm: dts: dt-bindings: Add Renesas RZ pinctrl header

2017-03-30 Thread Linus Walleij
On Wed, Mar 29, 2017 at 5:56 PM, jacopo wrote: > I can try to give you a few reasons why I don't see those flags fit in > the pin configuration flags definition. > > *) those flags are used during pin multiplexing procedure only and that > procedure has a specific order to be respected: > > You c

Re: [PATCH 2/2] dt-bindings: gpio: Document Cadence GPIO controller bindings

2017-03-30 Thread Linus Walleij
On Wed, Mar 29, 2017 at 6:04 PM, Boris Brezillon wrote: > Document Cadence GPIO bindings. > > Signed-off-by: Boris Brezillon That is a very terse commit message. Other than that this looks good, just cutting the DT maintainers some slack before applying it. Yours, Linus Walleij

[tip:locking/core] locking/ww-mutex: Limit stress test to 2 seconds

2017-03-30 Thread tip-bot for Chris Wilson
Commit-ID: 57dd924e541a98219bf3a508623db2e0c07e75a7 Gitweb: http://git.kernel.org/tip/57dd924e541a98219bf3a508623db2e0c07e75a7 Author: Chris Wilson AuthorDate: Fri, 10 Mar 2017 10:57:33 + Committer: Ingo Molnar CommitDate: Thu, 30 Mar 2017 09:49:47 +0200 locking/ww-mutex: Limit str

[PATCH 2/2] extcon: Add new extcon_register_notifier_all() to monitor all external connectors

2017-03-30 Thread Chanwoo Choi
The extcon core already provides the extcon_register_notifier() function in order to register the notifier block which is used to monitor the status change for the specific external connector such as EXTCON_USB, EXTCON_USB_HOST and so on. The extcon consumer uses the this function. The extcon cons

[PATCH 1/2] extcon: Use BIT() macro for the left-shift operation

2017-03-30 Thread Chanwoo Choi
This patch just uses the BIT() macro to make the code simple. Signed-off-by: Chanwoo Choi --- drivers/extcon/extcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index e85704eda645..193a3a673d10 100644 --- a/drivers/extcon

[tip:perf/core] x86/events/amd/iommu: Clean up bitwise operations

2017-03-30 Thread tip-bot for Suravee Suthikulpanit
Commit-ID: 6aad0c6269052a6114259deaf664ce350bf64fa2 Gitweb: http://git.kernel.org/tip/6aad0c6269052a6114259deaf664ce350bf64fa2 Author: Suravee Suthikulpanit AuthorDate: Fri, 24 Feb 2017 02:48:14 -0600 Committer: Ingo Molnar CommitDate: Thu, 30 Mar 2017 09:53:51 +0200 x86/events/amd/iom

[tip:perf/core] x86/events/amd/iommu: Declare pr_fmt() format

2017-03-30 Thread tip-bot for Suravee Suthikulpanit
Commit-ID: f9573e53f123ee487cca737139f3a43897a6383e Gitweb: http://git.kernel.org/tip/f9573e53f123ee487cca737139f3a43897a6383e Author: Suravee Suthikulpanit AuthorDate: Fri, 24 Feb 2017 02:48:13 -0600 Committer: Ingo Molnar CommitDate: Thu, 30 Mar 2017 09:53:51 +0200 x86/events/amd/iom

[tip:perf/core] drivers/iommu/amd: Clean up iommu_pc_get_set_reg()

2017-03-30 Thread tip-bot for Suravee Suthikulpanit
Commit-ID: 0a6d80c70b9150d6a9cf466d41955e374c2c9fab Gitweb: http://git.kernel.org/tip/0a6d80c70b9150d6a9cf466d41955e374c2c9fab Author: Suravee Suthikulpanit AuthorDate: Fri, 24 Feb 2017 02:48:16 -0600 Committer: Ingo Molnar CommitDate: Thu, 30 Mar 2017 09:53:53 +0200 drivers/iommu/amd:

[tip:perf/core] x86/events/amd/iommu: Clean up perf_iommu_read()

2017-03-30 Thread tip-bot for Suravee Suthikulpanit
Commit-ID: dc6ca5e47d44c11a111807208595ff6a8fcd2a83 Gitweb: http://git.kernel.org/tip/dc6ca5e47d44c11a111807208595ff6a8fcd2a83 Author: Suravee Suthikulpanit AuthorDate: Fri, 24 Feb 2017 02:48:15 -0600 Committer: Ingo Molnar CommitDate: Thu, 30 Mar 2017 09:53:52 +0200 x86/events/amd/iom

  1   2   3   4   5   6   7   8   9   10   >