[PATCH v2 5/5] md: fast clone bio in bio_clone_mddev()

2017-02-14 Thread Ming Lei
Firstly bio_clone_mddev() is used in raid normal I/O and isn't in resync I/O path. Secondly all the direct access to bvec table in raid happens on resync I/O except for write behind of raid1, in which we still use bio_clone() for allocating new bvec table. So this patch replaces bio_clone() with

[PATCH v2 4/5] md: remove unnecessary check on mddev

2017-02-14 Thread Ming Lei
mddev is never NULL and neither is ->bio_set, so remove the check. Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- drivers/md/md.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/md/md.c b/drivers/md/md.c index b5e2adf3493b..6cd96fde2a67 100644 --- a/drivers/md/md.c +++

[PATCH] Fix af_alg in 3.12

2017-02-14 Thread Torsten Duwe
On Fri, Feb 03, 2017 at 01:05:48PM +0100, Torsten Duwe wrote: > > If Herbert does not have a better idea, I suggest to back out this change and > fix > dynamically allocated key structures for the individual algorithms instead, > for > the older branches. So, the solution IMHO is to revert b2a

Re: [PATCH] cdrom: Make device operations read-only

2017-02-14 Thread Jens Axboe
On 02/13/2017 05:25 PM, Kees Cook wrote: > Since function tables are a common target for attackers, it's best to keep > them in read-only memory. As such, this makes the CDROM device ops tables > const. This drops additionally n_minors, since it isn't used meaningfully, > and sets the only user of

Re: [PATCH v2] i2c: designwear: Fix clk warning on suspend/resume

2017-02-14 Thread Jarkko Nikula
On 14.02.2017 06:05, John Stultz wrote: On my HiKey board, I'm seeing clk warnings on suspend/resume, which seem to be caused by runtime pm suspending the device, then the same suspend hook being called again on suspend time. This patch fixes this by setting the SYSTEM_SLEEP_PM_OPS to using pm_r

[PATCH v2 1/5] block: introduce bio_clone_bioset_partial()

2017-02-14 Thread Ming Lei
md still need bio clone(not the fast version) for behind write, and it is more efficient to use bio_clone_bioset_partial(). The idea is simple and just copy the bvecs range specified from parameters. Reviewed-by: Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- block/bio.c |

Re: [BUGFIX PATCH 2/3] kprobes/arm: Skip single-stepping in recursing path if possible

2017-02-14 Thread Masami Hiramatsu
On Tue, 14 Feb 2017 10:07:17 + "Jon Medhurst (Tixy)" wrote: > On Tue, 2017-02-14 at 00:04 +0900, Masami Hiramatsu wrote: > > Kprobes/arm skips single-stepping (moreover handling the event) > > if the conditional instruction must not be executed. This > > also apply the rule when we hit the re

[PATCH] regulator: Fix regulator_summary for deviceless consumers

2017-02-14 Thread Leonard Crestez
It is allowed to call regulator_get with a NULL dev argument (_regulator_get explicitly checks for it) but this causes an error later when printing /sys/kernel/debug/regulator_summary. Fix this by explicitly handling "deviceless" consumers in the debugfs code. This fixes errors like this: root@l

Re: [BUGFIX PATCH 1/3] kprobes/arm: Allow to handle reentered kprobe on single-stepping

2017-02-14 Thread Masami Hiramatsu
On Tue, 14 Feb 2017 10:01:43 + "Jon Medhurst (Tixy)" wrote: > On Tue, 2017-02-14 at 00:03 +0900, Masami Hiramatsu wrote: > > This is arm port of commit 6a5022a56ac3 ("kprobes/x86: Allow to > > handle reentered kprobe on single-stepping") > > > > Since the FIQ handlers can interrupt in the si

Re: [PATCH v2 0/5] md: use bio_clone_fast()

2017-02-14 Thread Jens Axboe
On 02/14/2017 08:28 AM, Ming Lei wrote: > Hi, > > This patches replaces bio_clone() with bio_fast_clone() in > bio_clone_mddev() because: > > 1) bio_clone_mddev() is used in raid normal I/O and isn't in > resync I/O path, and all the direct access to bvec table in > raid happens on resync I/O onl

Re: [PATCH linux v7 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-02-14 Thread Eddie James
On 02/09/2017 11:31 PM, Joel Stanley wrote: On Wed, Feb 8, 2017 at 9:40 AM, wrote: diff --git a/Documentation/hwmon/occ b/Documentation/hwmon/occ new file mode 100644 index 000..79d1642 --- /dev/null +++ b/Documentation/hwmon/occ The kernel is using reStructuredText these days. You sh

[PATCH] sched: ignore task_h_load for CPU_NEWLY_IDLE

2017-02-14 Thread Uladzislau Rezki
From: Uladzislau 2 Rezki A load balancer calculates imbalance factor for particular sched domain and tries to steal up the prescribed amount of weighted load. However, a small imbalance factor would sometimes prevent us from stealing any tasks at all. When a CPU is newly idle, it should steal fir

RE: Re: Re: Re: Subject: [PATCH v1] USB:Core: BugFix: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously

2017-02-14 Thread Alan Stern
On Thu, 2 Feb 2017, Ajay Kaher wrote: >  At boot time, probe function of multiple connected devices >  (proprietary devices) execute simultaneously. > >>> > >>> What exactly do you mean here?  How can probe happen "simultaneously"? > >>> The USB core prevents this, right? > >>  > >> I have

[RFC PATCH v1 0/1] mm: zswap - crypto acomp/scomp support

2017-02-14 Thread Mahipal Challa
Hi Seth, Herbert, This series adds support for kernel's new crypto acomp/scomp compression & decompression framework to zswap. We verified these changes using the kernel's crypto deflate-scomp, lzo-scomp modules and Cavium's ThunderX ZIP driver (We will post the Cavium's ThunderX ZIP driver v2 pa

[RFC PATCH v1 1/1] mm: zswap - Add crypto acomp/scomp framework support

2017-02-14 Thread Mahipal Challa
This adds the support for kernel's crypto new acomp/scomp framework to zswap. Signed-off-by: Mahipal Challa Signed-off-by: Vishnu Nair --- mm/zswap.c | 129 +++-- 1 file changed, 99 insertions(+), 30 deletions(-) diff --git a/mm/zswap.c

Re: [PATCH v2] reset: Add i.MX7 SRC reset driver

2017-02-14 Thread Andrey Smirnov
On Mon, Feb 13, 2017 at 8:50 AM, Philipp Zabel wrote: > Hi Andrey, > > thank you for the driver, I have a few comments below. > > On Mon, 2017-02-13 at 07:33 -0800, Andrey Smirnov wrote: >> This driver exposes various reset faculties, impelented by System Reset > > s/impelented/implemented/ Thank

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-14 Thread Paolo Valente
> Il giorno 14 feb 2017, alle ore 16:16, Jens Axboe ha > scritto: > > On 02/14/2017 01:14 AM, Paolo Valente wrote: >> >>> Il giorno 14 feb 2017, alle ore 00:10, Jens Axboe ha >>> scritto: >>> >>> On 02/13/2017 03:28 PM, Jens Axboe wrote: On 02/13/2017 03:09 PM, Omar Sandoval wrote: >>>

[PATCH] fs,eventpoll: Don't test for bitfield with stack value

2017-02-14 Thread Cyrill Gorcunov
In case if epoll_ctl is called with operation EPOLL_CTL_DEL then @epds.events variable allocated on stack may contain random bits which we test then for EPOLLEXCLUSIVE. Since currently the test look like if (epds.events & EPOLLEXCLUSIVE) { if (op == EPOLL_CTL_MOD)

RE: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock when scheduling workqueue elements")

2017-02-14 Thread Dexuan Cui
suppose I don't need to test the 2 patches on the latest linux-next repo. > > I'd love a test on that repo actually. We had a few other for sense > handling since then I think. I tested today's linux-next (next-20170214) + the 2 patches just now and got a weird r

Re: [PATCH v2 0/3] x86/vdso: Add Hyper-V TSC page clocksource support

2017-02-14 Thread Vitaly Kuznetsov
Thomas Gleixner writes: > On Tue, 14 Feb 2017, Vitaly Kuznetsov wrote: > >> Hi, >> >> while we're still waiting for a definitive ACK from Microsoft that the >> algorithm is good for SMP case (as we can't prevent the code in vdso from >> migrating between CPUs) I'd like to send v2 with some modif

Re: [PATCH] ARM: mvebu: add support for the Linksys WRT1900ACS (Shelby)

2017-02-14 Thread Andrew Lunn
On Tue, Feb 14, 2017 at 09:59:17AM +0100, Ralph Sennhauser wrote: > The Linksys WRT1900ACS (Shelby) is another Armada 385 based router in > the Linksys WRT AC Series which got released in October 2015. > > The file armada-385-linksys-shelby.dts is taken from OpenWrt as-is and > originally authored

Re: [PATCH v2 5/5] md: fast clone bio in bio_clone_mddev()

2017-02-14 Thread Christoph Hellwig
On Tue, Feb 14, 2017 at 11:29:03PM +0800, Ming Lei wrote: > Firstly bio_clone_mddev() is used in raid normal I/O and isn't > in resync I/O path. > > Secondly all the direct access to bvec table in raid happens on > resync I/O except for write behind of raid1, in which we still > use bio_clone() fo

Re: [BUGFIX PATCH 3/3] kprobes/arm: Fix the return address of multiple kretprobes

2017-02-14 Thread Masami Hiramatsu
On Tue, 14 Feb 2017 13:47:07 + "Jon Medhurst (Tixy)" wrote: > On Tue, 2017-02-14 at 10:32 +, Jon Medhurst (Tixy) wrote: > > On Tue, 2017-02-14 at 00:05 +0900, Masami Hiramatsu wrote: > > > This is arm port of commit 737480a0d525 ("kprobes/x86: > > > Fix the return address of multiple kret

Re: [PATCH v1 1/5] block: introduce bio_clone_bioset_partial()

2017-02-14 Thread Christoph Hellwig
On Tue, Feb 14, 2017 at 09:04:26AM +0800, Ming Lei wrote: > On Mon, Feb 13, 2017 at 9:46 PM, Christoph Hellwig wrote: > > On Fri, Feb 10, 2017 at 06:56:13PM +0800, Ming Lei wrote: > >> md still need bio clone(not the fast version) for behind write, > >> and it is more efficient to use bio_clone_bi

Re: Regression in next with use printk_safe buffers in printk

2017-02-14 Thread Sergey Senozhatsky
Hello, Cc Rafael, just in case On (02/13/17 10:59), Tony Lindgren wrote: > Looks like commit f975237b7682 ("printk: use printk_safe buffers in > printk") causes "possible circular locking dependency detected " for > me on the first suspend. thanks for the report. > Reverting the following four

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-14 Thread Peter Zijlstra
On Tue, Feb 14, 2017 at 09:46:17AM -0500, Waiman Long wrote: > On 02/14/2017 04:39 AM, Peter Zijlstra wrote: > > On Mon, Feb 13, 2017 at 05:34:01PM -0500, Waiman Long wrote: > >> It is the address of &steal_time that will exceed the 32-bit limit. > > That seems extremely unlikely. That would mean w

Re: [PATCH 1/5] arm64: dts: Add basic DT to support Spreadtrum's SP9860G

2017-02-14 Thread Mark Rutland
Hi, On Tue, Feb 14, 2017 at 05:19:08PM +0800, Chunyan Zhang wrote: > + timer { > + compatible = "arm,armv8-timer"; > + interrupts = + | IRQ_TYPE_LEVEL_LOW)>, > + + | IR

Re: [RFC 06/13] v4l2-async: per notifier locking

2017-02-14 Thread Sebastian Reichel
Hi, On Tue, Feb 14, 2017 at 02:39:56PM +0100, Pavel Machek wrote: > From: Sebastian Reichel > > Without this, camera support breaks boot on N900. That's kind of vague. I just checked my original patch and it looks like I did not bother to write a proper patch description. I suggest to make this

[PATCH 0/4 linux-next] usb: gadget: udc: atmel: Endpoint allocation scheme fixes

2017-02-14 Thread cristian.birsan
From: Cristian Birsan This patch series provides fixes, based on the feedback received on the mailing list, for the following: - fifo table parameters validation against device tree values - coding style - message display for EP configuration error - Kconfig comme

[PATCH 1/3 staging-next] android: Collect statistics from lowmemorykiller

2017-02-14 Thread peter.enderborg
From: Peter Enderborg This collects stats for shrinker calls and how much waste work we do within the lowmemorykiller. Signed-off-by: Peter Enderborg --- drivers/staging/android/Kconfig | 11 drivers/staging/android/Makefile| 1 + drivers/staging/android/l

[PATCH 1/4 linux-next] usb: gadget: udc: atmel: Check fifo configuration values against device tree

2017-02-14 Thread cristian.birsan
From: Cristian Birsan Check fifo configuration values against device tree values for endpoint fifo in auto configuration mode (fifo_mode=0). Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 26 +++--- 1 file changed, 23 insertions(+), 3 deletions

[PATCH 2/3 staging-next] oom: Add notification for oom_score_adj

2017-02-14 Thread peter.enderborg
From: Peter Enderborg This adds subscribtion for changes in oom_score_adj, this value is important to android systems. For task that uses oom_score_adj they read the task list. This can be long and need rcu locks and has a impact on the system. Let the user track the changes based on oom_score_ad

[PATCH 3/3 staging-next] mm: Remove RCU and tasklocks from lmk

2017-02-14 Thread peter.enderborg
From: Peter Enderborg Fundamental changes: 1 Does NOT take any RCU lock in shrinker functions. 2 It returns same result for scan and counts, so we dont need to do shinker will know when it is pointless to call scan. 3 It does not lock any other process than the one that is going to be killed

[PATCH 2/4 linux-next] usb: gadget: udc: atmel: Minor code cleanup

2017-02-14 Thread cristian.birsan
From: Cristian Birsan Minor code cleanup based on feedback received on mailinglist. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/

[PATCH 3/4 linux-next] usb: gadget: udc: atmel: Use dev_warn() to display EP configuration error

2017-02-14 Thread cristian.birsan
From: Cristian Birsan Use dev_warn() to display EP configuration error to avoid silent failure. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/driver

[PATCH 4/4 linux-next] usb: gadget: udc: atmel: Update Kconfig help for fifo_mode = 0

2017-02-14 Thread cristian.birsan
From: Cristian Birsan Update Kconfig help for fifo_mode = 0 to explain the behavior better. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig

Re: [PATCHv4 4/5] x86/mm: check in_compat_syscall() instead TIF_ADDR32 for mmap(MAP_32BIT)

2017-02-14 Thread Dmitry Safonov
On 02/11/2017 11:13 PM, Thomas Gleixner wrote: On Mon, 30 Jan 2017, Dmitry Safonov wrote: At this momet, logic in arch_get_unmapped_area{,_topdown} for mmaps with MAP_32BIT flag checks TIF_ADDR32 which means: o if 32-bit ELF changes mode to 64-bit on x86_64 and then tries to mmap() with MAP_3

Re: [PATCH 1/5] selftests: Fix selftests build to just build, not run tests

2017-02-14 Thread Shuah Khan
On 02/13/2017 07:09 PM, Michael Ellerman wrote: > Michael Ellerman writes: > >> In commit 88baa78d1f31 ("selftests: remove duplicated all and clean >> target"), the "all" target was removed from individual Makefiles and >> added to lib.mk. >> >> However the "all" target was added to lib.mk *after

Re: [PATCH 1/6] x86: drop unneded members of struct cpuinfo_x86

2017-02-14 Thread Borislav Petkov
On Sun, Feb 12, 2017 at 10:12:07PM +0100, Mathias Krause wrote: > Those member serve no purpose -- not even fill padding for alignment or > such. So just get rid of them. Well, almost. You need the wp_works_ok removal patch too, otherwise you have the 3 bytes hole below. But the wp_works_ok goes

Re: [RFC] mm/zsmalloc: remove redundant SetPagePrivate2 in create_page_chain

2017-02-14 Thread Sergey Senozhatsky
On (02/14/17 20:48), Yisheng Xie wrote: > We had used page->lru to link the component pages (except the first > page) of a zspage, and used INIT_LIST_HEAD(&page->lru) to init it. > Therefore, to get the last page's next page, which is NULL, we had to > use page flag PG_Private_2 to identify it. >

[PATCH] Revert: "PCI: Add ACS quirk for all Cavium devices"

2017-02-14 Thread Alex Williamson
This reverts commit b404bcfbf035413dcce539c8ba2c9986d220d8ed. The reverted commit makes no attempt to selectively consider devices, current or future. Instead, it whitelists the entire PCI vendor ID. This is a reckless approach as we clearly cannot know whether future device IDs within this vendo

Re: [PATCHv4 4/5] x86/mm: check in_compat_syscall() instead TIF_ADDR32 for mmap(MAP_32BIT)

2017-02-14 Thread Dmitry Safonov
On 02/14/2017 07:11 PM, Dmitry Safonov wrote: On 02/11/2017 11:13 PM, Thomas Gleixner wrote: On Mon, 30 Jan 2017, Dmitry Safonov wrote: At this momet, logic in arch_get_unmapped_area{,_topdown} for mmaps with MAP_32BIT flag checks TIF_ADDR32 which means: o if 32-bit ELF changes mode to 64-bit

Re: Regression in next with use printk_safe buffers in printk

2017-02-14 Thread Peter Zijlstra
On Wed, Feb 15, 2017 at 01:01:40AM +0900, Sergey Senozhatsky wrote: > > but I'm a bit confused by rt_b->rt_runtime_lock in this unsafe lock > scenario (so it's not ABBA, but ABAD) > > > lock(hrtimer_bases.lock); > >lock(&rt_b->rt_runtime_lock); > >

Re: [PATCH 1/2] perf/x86/intel/pt: Fail event scheduling on conflict with VMX

2017-02-14 Thread Alexander Shishkin
Peter Zijlstra writes: > On Tue, Feb 14, 2017 at 03:24:15PM +0200, Alexander Shishkin wrote: >> At the moment, if VMX operation prevents PT tracing, the PMU will >> silently return success to the event scheduling code, which will >> track its 'on' time, etc. Instead, report failure so that perf >

Re: [Xen-devel] [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-14 Thread Andrew Cooper
On 14/02/17 14:46, Waiman Long wrote: > On 02/14/2017 04:39 AM, Peter Zijlstra wrote: >> On Mon, Feb 13, 2017 at 05:34:01PM -0500, Waiman Long wrote: >>> It is the address of &steal_time that will exceed the 32-bit limit. >> That seems extremely unlikely. That would mean we have more than 4G >> wor

Re: [PATCH v4 5/7] dt-bindings: display/panel: Add common rotation property

2017-02-14 Thread Rob Herring
On Sat, Feb 11, 2017 at 12:48 PM, Noralf Trønnes wrote: > Display panels can be oriented many ways, especially in the embedded > world. The rotation property is a way to describe this orientation. > The counter clockwise direction is chosen because that's what fbdev > and drm use. > > Signed-off-b

Re: [PATCH 3/6] x86/cpu: proc - remove "wp" status line in cpuinfo

2017-02-14 Thread Borislav Petkov
On Sun, Feb 12, 2017 at 10:12:09PM +0100, Mathias Krause wrote: > As of commit a5c2a893dbd4 ("x86, 386 removal: Remove > CONFIG_X86_WP_WORKS_OK") the kernel won't boot if CR0.WP isn't working > correctly. This makes a process reading this file always see "wp : yes" > here -- otherwise there would b

Re: [RFC PATCH v1 1/1] mm: zswap - Add crypto acomp/scomp framework support

2017-02-14 Thread Seth Jennings
On Tue, Feb 14, 2017 at 9:40 AM, Mahipal Challa wrote: > This adds the support for kernel's crypto new acomp/scomp framework > to zswap. > > Signed-off-by: Mahipal Challa > Signed-off-by: Vishnu Nair > --- > mm/zswap.c | 129 > +++-- > 1

Re: [PATCH 1/2] perf/x86/intel/pt: Fail event scheduling on conflict with VMX

2017-02-14 Thread Peter Zijlstra
On Tue, Feb 14, 2017 at 06:17:30PM +0200, Alexander Shishkin wrote: > Peter Zijlstra writes: > > > On Tue, Feb 14, 2017 at 03:24:15PM +0200, Alexander Shishkin wrote: > >> At the moment, if VMX operation prevents PT tracing, the PMU will > >> silently return success to the event scheduling code,

Re: [PATCH] oom_reaper: switch to struct list_head for reap queue

2017-02-14 Thread Johannes Weiner
On Wed, Feb 15, 2017 at 02:07:14AM +1100, Aleksa Sarai wrote: > Rather than implementing an open addressing linked list structure > ourselves, use the standard list_head structure to improve consistency > with the rest of the kernel and reduce confusion. > > Cc: Michal Hocko > Cc: Oleg Nesterov

Re: [PATCH v2] reset: Add i.MX7 SRC reset driver

2017-02-14 Thread Philipp Zabel
On Tue, 2017-02-14 at 07:46 -0800, Andrey Smirnov wrote: [...] > >> +enum imx7_src_registers { > >> + SRC_PCIEPHY_RCR = 0x002c, > >> + SRC_PCIEPHY_RCR_PCIEPHY_G_RST = BIT(1), > > > > What about the others resets? There's at least HSICPHY, MIPIPHY and > > USBOPHY registers before the PCI

Re: [PATCH v2 01/10] mm, compaction: reorder fields in struct compact_control

2017-02-14 Thread Johannes Weiner
On Fri, Feb 10, 2017 at 06:23:34PM +0100, Vlastimil Babka wrote: > While currently there are (mostly by accident) no holes in struct > compact_control (on x86_64), but we are going to add more bool flags, so place > them all together to the end of the structure. While at it, just order all > fields

Re: [PATCH v2 02/10] mm, compaction: remove redundant watermark check in compact_finished()

2017-02-14 Thread Johannes Weiner
On Fri, Feb 10, 2017 at 06:23:35PM +0100, Vlastimil Babka wrote: > When detecting whether compaction has succeeded in forming a high-order page, > __compact_finished() employs a watermark check, followed by an own search for > a suitable page in the freelists. This is not ideal for two reasons: >

Re: [dm-devel] v4.9, 4.4-final: 28 bioset threads on small notebook, 36 threads on cellphone

2017-02-14 Thread Mikulas Patocka
On Thu, 9 Feb 2017, Kent Overstreet wrote: > On Wed, Feb 08, 2017 at 11:34:07AM -0500, Mike Snitzer wrote: > > On Tue, Feb 07 2017 at 11:58pm -0500, > > Kent Overstreet wrote: > > > > > On Tue, Feb 07, 2017 at 09:39:11PM +0100, Pavel Machek wrote: > > > > On Mon 2017-02-06 17:49:06, Kent Overs

Re: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock when scheduling workqueue elements")

2017-02-14 Thread h...@lst.de
> I tested today's linux-next (next-20170214) + the 2 patches just now and got > a weird result: > sometimes the VM stills hung with a new calltrace (BUG: spinlock bad > magic) , but sometimes the VM did boot up despite the new calltrace! > > Attached is the log of a &qu

Re: [PATCH v4 3/4] dmaengine: Add Broadcom SBA RAID driver

2017-02-14 Thread Dan Williams
On Mon, Feb 13, 2017 at 10:51 PM, Anup Patel wrote: > The Broadcom stream buffer accelerator (SBA) provides offloading > capabilities for RAID operations. This SBA offload engine is > accessible via Broadcom SoC specific ring manager. > > This patch adds Broadcom SBA RAID driver which provides one

Re: [BUGFIX PATCH 3/3] kprobes/arm: Fix the return address of multiple kretprobes

2017-02-14 Thread Jon Medhurst (Tixy)
On Wed, 2017-02-15 at 01:01 +0900, Masami Hiramatsu wrote: > On Tue, 14 Feb 2017 13:47:07 + > "Jon Medhurst (Tixy)" wrote: > > > On Tue, 2017-02-14 at 10:32 +, Jon Medhurst (Tixy) wrote: > > > On Tue, 2017-02-14 at 00:05 +0900, Masami Hiramatsu wrote: > > > > This is arm port of commit 73

Re: [PATCH 1/6] x86: drop unneded members of struct cpuinfo_x86

2017-02-14 Thread Mathias Krause
On 14 February 2017 at 17:17, Borislav Petkov wrote: > On Sun, Feb 12, 2017 at 10:12:07PM +0100, Mathias Krause wrote: >> Those member serve no purpose -- not even fill padding for alignment or >> such. So just get rid of them. > > Well, almost. You need the wp_works_ok removal patch too, otherwis

[PATCH 2/3] powerpc/mm: handle VM_FAULT_RETRY earlier

2017-02-14 Thread Laurent Dufour
In do_page_fault() if handle_mm_fault() returns VM_FAULT_RETRY, retry the page fault handling before anything else. This would simplify the handling of the mmap_sem lock in this part of the code. Signed-off-by: Laurent Dufour --- arch/powerpc/mm/fault.c | 67

[PATCH 0/3] powerpc/mm: page fault handler cleaning

2017-02-14 Thread Laurent Dufour
This series attempts to clean the page fault handler in the way it has been done previously for the x86 architecture [1]. The goal is to manage the mmap_sem earlier and only in do_page_fault(). This done by handling the retry case earlier, before handling the error case. This way the semaphore ca

Re: [PATCH 1/5] arm64: dts: Add basic DT to support Spreadtrum's SP9860G

2017-02-14 Thread Sudeep Holla
On Tue, Feb 14, 2017 at 9:19 AM, Chunyan Zhang wrote: > From: Orson Zhai > > SC9860G is a 8 cores of A53 SoC with 4G LTE support SoC from Spreadtrum. > > According to regular hierarchy of sprd dts, whale2.dtsi contains SoC > peripherals IP nodes, sc9860.dtsi contains stuff related to ARM core stu

[PATCH 3/3] powerpc/mm: move mmap_sem unlocking in do_page_fault()

2017-02-14 Thread Laurent Dufour
Since the fault retry is now handled earlier, we can release the mmap_sem lock earlier too and remove later unlocking previously done in mm_fault_error(). Signed-off-by: Laurent Dufour --- arch/powerpc/mm/fault.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --

[PATCH 1/3] powerpc/mm: move mmap_sem unlock up from do_sigbus

2017-02-14 Thread Laurent Dufour
Move mmap_sem releasing in the do_sigbus()'s unique caller : mm_fault_error() No functional changes. Signed-off-by: Laurent Dufour --- arch/powerpc/mm/fault.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 62a50d

Re: [RFC simple allocator v2 0/2] Simple allocator

2017-02-14 Thread Mark Brown
On Mon, Feb 13, 2017 at 11:01:14AM -0800, Laura Abbott wrote: > On 02/13/2017 10:18 AM, Mark Brown wrote: > > The software defined networking people seemed to think they had a use > > case for this as well. They're not entirely upstream of course but > > still... > This is the first I've heard o

Re: [PATCH 3/6] x86/cpu: proc - remove "wp" status line in cpuinfo

2017-02-14 Thread Mathias Krause
On 14 February 2017 at 17:20, Borislav Petkov wrote: > On Sun, Feb 12, 2017 at 10:12:09PM +0100, Mathias Krause wrote: >> As of commit a5c2a893dbd4 ("x86, 386 removal: Remove >> CONFIG_X86_WP_WORKS_OK") the kernel won't boot if CR0.WP isn't working >> correctly. This makes a process reading this f

Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion

2017-02-14 Thread James Bottomley
On Tue, 2017-02-14 at 08:38 -0600, Dr. Greg Wettstein wrote: > On Fri, Feb 10, 2017 at 04:13:05PM -0500, Kenneth Goldman wrote: > > Good morning to everyone. > > > James Bottomley wrote on > > 02/10/2017 11:46:03 AM: > > > > > > quote: 810 milliseconds > > > > verify signature: 635 millisecond

Re: [tip:x86/urgent] x86/fpu: Set the xcomp_bv when we fake up a XSAVES area

2017-02-14 Thread Dave Hansen
On 01/23/2017 01:43 AM, tip-bot for Kevin Hao wrote: > diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c > index 1d77704..e287b90 100644 > --- a/arch/x86/kernel/fpu/xstate.c > +++ b/arch/x86/kernel/fpu/xstate.c > @@ -1070,6 +1070,7 @@ int copyin_to_xsaves(const void *kbuf, co

Re: [PATCH 1/3 staging-next] android: Collect statistics from lowmemorykiller

2017-02-14 Thread Greg KH
On Tue, Feb 14, 2017 at 05:09:30PM +0100, peter.enderb...@sonymobile.com wrote: > From: Peter Enderborg > > This collects stats for shrinker calls and how much > waste work we do within the lowmemorykiller. > > Signed-off-by: Peter Enderborg > --- > drivers/staging/android/Kconfig

Re: [PATCH] oom_reaper: switch to struct list_head for reap queue

2017-02-14 Thread Aleksa Sarai
Rather than implementing an open addressing linked list structure ourselves, use the standard list_head structure to improve consistency with the rest of the kernel and reduce confusion. Cc: Michal Hocko Cc: Oleg Nesterov Signed-off-by: Aleksa Sarai --- include/linux/sched.h | 6 +- kern

Re: [PATCH 1/3 staging-next] android: Collect statistics from lowmemorykiller

2017-02-14 Thread Greg KH
On Tue, Feb 14, 2017 at 05:09:30PM +0100, peter.enderb...@sonymobile.com wrote: > From: Peter Enderborg > > This collects stats for shrinker calls and how much > waste work we do within the lowmemorykiller. > > Signed-off-by: Peter Enderborg Wait, what changed from the previous versions of thi

Re: [GIT PULL 4/4] arm64: dts: exynos: DT64 for v4.11, third round

2017-02-14 Thread Krzysztof Kozlowski
On Fri, Feb 10, 2017 at 12:30:48PM +0100, Sylwester Nawrocki wrote: > On 02/09/2017 07:56 PM, Krzysztof Kozlowski wrote: > > On Thu, Feb 09, 2017 at 04:19:57PM +0100, Arnd Bergmann wrote: > >> On Thursday, February 2, 2017 8:30:08 PM CET Krzysztof Kozlowski wrote: > >>> arch/arm64/boot/dts/exynos/

Re: Regression in next with use printk_safe buffers in printk

2017-02-14 Thread Tony Lindgren
* Sergey Senozhatsky [170214 08:03]: > Hello, > > Cc Rafael, just in case > > On (02/13/17 10:59), Tony Lindgren wrote: > > Looks like commit f975237b7682 ("printk: use printk_safe buffers in > > printk") causes "possible circular locking dependency detected " for > > me on the first suspend. >

Re: Regression in next with use printk_safe buffers in printk

2017-02-14 Thread Sergey Senozhatsky
On (02/14/17 17:18), Peter Zijlstra wrote: > On Wed, Feb 15, 2017 at 01:01:40AM +0900, Sergey Senozhatsky wrote: > > > > but I'm a bit confused by rt_b->rt_runtime_lock in this unsafe lock > > scenario (so it's not ABBA, but ABAD) > > > > > lock(hrtimer_bases.lock); > > >

Re: [PATCH v3 21/24] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-02-14 Thread Philipp Zabel
Hi Steve, On Mon, 2017-02-13 at 15:20 -0800, Steve Longerbeam wrote: [...] > > It seems the OV5640 driver never puts its the CSI-2 lanes into stop > > state while not streaming. > > Yes I found that as well. > > But good news, I finally managed to coax the OV5640's clock lane > into LP-11 state!

Re: [PATCH v2 03/10] mm, page_alloc: split smallest stolen page in fallback

2017-02-14 Thread Johannes Weiner
On Fri, Feb 10, 2017 at 06:23:36PM +0100, Vlastimil Babka wrote: > The __rmqueue_fallback() function is called when there's no free page of > requested migratetype, and we need to steal from a different one. There are > various heuristics to make this event infrequent and reduce permanent > fragmen

Re: [PATCH V2 2/2] sched/deadline: Throttle a constrained deadline task activated after the deadline

2017-02-14 Thread Tommaso Cucinotta
On 13/02/2017 20:05, Daniel Bristot de Oliveira wrote: To avoid this problem, in the activation of a constrained deadline task after the deadline but before the next period, throttle the task and set the replenishing timer to the begin of the next period, unless it is boosted. my only comment i

[PATCH] staging:nvec:nvec_ps2.c: Prefering kzalloc(sizeof(*ser_dev)...) over kzalloc(sizeof(struct serio)...)

2017-02-14 Thread Arushi Singhal
Prefer kzalloc(sizeof(*ser_dev)...) over kzalloc(sizeof(struct serio)...) as reported by checkpatch.pl. Signed-off-by: Arushi Singhal --- drivers/staging/nvec/nvec_ps2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/nvec/nvec_ps2.c b/drivers/staging/nvec/nve

[PATCH v6 01/14] clk: apn806: Add eMMC clock to system controller driver

2017-02-14 Thread Gregory CLEMENT
From: Konstantin Porotchkin Add fixed clock of 400MHz to system controller driver. This clock is used as SD/eMMC clock source. Signed-off-by: Konstantin Porotchkin Reviewed-by: Omri Itach Reviewed-by: Hanna Hawa [fixed up conflicts, added error handling --rmk] Signed-off-by: Russell King Ac

[PATCH v6 02/14] clk: apn806: Turn the eMMC clock as optional for dts backwards compatible

2017-02-14 Thread Gregory CLEMENT
First version of the binding didn't have the eMMC clock. This patch allows to not registering the eMMC clock if it is not present in the device tree. Then the device tree can be backwards compatible. Suggested-by: Stephen Boyd Signed-off-by: Gregory CLEMENT --- drivers/clk/mvebu/ap806-system-co

[PATCH v6 03/14] mmc: core: Add mmc-card dt sub-node parse in core layer

2017-02-14 Thread Gregory CLEMENT
From: Hu Ziji Some vendor host, like Xenon, can support multiple types. In dts, use mmc-card dt sub-node to indicate eMMC is in use. Add a generic mmc-card parse function in mmc core layer. If mmc-card sub-node is detected, set eMMC common caps, such as MMC_CAP_NONREMOVABLE, MMC_CAP2_NO_SD and M

[PATCH v6 04/14] mmc: sdhci: Export sdhci_set_ios() from sdhci.c

2017-02-14 Thread Gregory CLEMENT
From: Hu Ziji Export sdhci_set_ios() in sdhci.c. Thus vendor sdhci driver can implement its own set_ios() routine. Signed-off-by: Hu Ziji Signed-off-by: Gregory CLEMENT --- drivers/mmc/host/sdhci.c | 3 ++- drivers/mmc/host/sdhci.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v6 13/14] arm64: dts: marvell: add sdhci support for Armada 7K/8K

2017-02-14 Thread Gregory CLEMENT
Also enable it on the Armada 7040 DB and Armada 8040 DB boards. Signed-off-by: Gregory CLEMENT --- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 14 +- arch/arm64/boot/dts/marvell/armada-8040-db.dts | 20 +- arch/arm64/boot/dts/marvell/armada-ap806.dtsi

[PATCH v6 14/14] arm64: configs: enable SDHCI driver for Xenon

2017-02-14 Thread Gregory CLEMENT
This patch enables the driver for the SDHCI controller found on the Marvell Armada 3700 and 7K/8K ARM64 SoCs. Signed-off-by: Gregory CLEMENT --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 869d

[PATCH v6 12/14] arm64: dts: marvell: add eMMC support for Armada 37xx

2017-02-14 Thread Gregory CLEMENT
Add the eMMC support for Armada 37xx SoC and enable it in the Armada 3720 DB board. Signed-off-by: Gregory CLEMENT --- arch/arm64/boot/dts/marvell/armada-3720-db.dts | 16 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 11 +++ 2 files changed, 27 insertions(+) diff --

Re: [PATCH 3/5] devicetree: bindings: revise compatible string of sprd uart

2017-02-14 Thread Rob Herring
On Tue, Feb 14, 2017 at 3:19 AM, Chunyan Zhang wrote: > This patch revise the compatible string of sprd uart to "sc-uart" > since this driver is not only for SC9836, but for all Spreadtrum > SoCs so far. > > Signed-off-by: Chunyan Zhang > --- > Documentation/devicetree/bindings/serial/sprd-uart.

[PATCH v6 08/14] mmc: sdhci-xenon: Add Marvell Xenon SDHC core functionality

2017-02-14 Thread Gregory CLEMENT
From: Hu Ziji Add Xenon eMMC/SD/SDIO host controller core functionality. Add Xenon specific initialization process. Add Xenon specific mmc_host_ops APIs. Add Xenon specific register definitions. Add CONFIG_MMC_SDHCI_XENON support in drivers/mmc/host/Kconfig. Marvell Xenon SDHC conforms to SD Ph

[PATCH v6 11/14] MAINTAINERS: add entry for Marvell Xenon MMC Host Controller drivers

2017-02-14 Thread Gregory CLEMENT
From: Hu Ziji Add maintainer entry for Marvell Xenon eMMC/SD/SDIO Host Controller drivers. Signed-off-by: Hu Ziji Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index cfff2c9e3d94..f4fea77165d5 100644 --- a/M

<    3   4   5   6   7   8