[RFC PATCH] drm/nouveau/fb/nv50: set DMA mask before mapping scratch page

2016-06-20 Thread Ard Biesheuvel
The 100c08 scratch page is mapped using dma_map_page() before the TTM layer has had a chance to set the DMA mask. This means we are still running with the default of 32 when this code executes, and this causes problems for platforms with no memory below 4 GB (such as AMD Seattle) So move the dma_m

Re: [PATCH v2 4/4] vb2: V4L2_BUF_FLAG_DONE is set after DQBUF

2016-06-20 Thread Hans Verkuil
On 06/20/2016 02:30 PM, Ricardo Ribalda Delgado wrote: According to the doc, V4L2_BUF_FLAG_DONE is cleared after DQBUF: V4L2_BUF_FLAG_DONE 0x0004 ... After calling the VIDIOC_QBUF or VIDIOC_DQBUF it is always cleared ... Unfortunately, it seems that videobuf2 keeps it set after DQBUF. This

Re: [PATCH v9 2/4] power: reset: add reboot mode driver

2016-06-20 Thread Krzysztof Kozlowski
On 06/20/2016 10:28 AM, Andy Yan wrote: > Hi Krzysztof: > > On 2016年06月20日 16:09, Krzysztof Kozlowski wrote: >> On 06/20/2016 08:38 AM, Andy Yan wrote: >>> This driver parses the reboot commands like "reboot bootloader" >>> and "reboot recovery" to get a boot mode described in the >>> device tree

[PATCH 0/10 -v5] Handle oom bypass more gracefully

2016-06-20 Thread Michal Hocko
Hi, this is the v5 version of the patchse. Previous version was posted http://lkml.kernel.org/r/1465473137-22531-1-git-send-email-mho...@kernel.org There was one issue fixed in patch 7. Other than that we have discussed nommu situation after patch 7 which might reintroduce a theoretical race condit

[PATCH v2 1/4] vb2: Merge vb2_internal_dqbuf and vb2_dqbuf

2016-06-20 Thread Ricardo Ribalda Delgado
After all the code refactoring, vb2_internal_dqbuf is only called by vb2_dqbuf. Since the function it is very simple, there is no need to have two functions. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/videobuf2-v4l2.c | 27 +++ 1 file changed, 11

[PATCH 06/10] mm, oom: kill all tasks sharing the mm

2016-06-20 Thread Michal Hocko
From: Michal Hocko Currently oom_kill_process skips both the oom reaper and SIG_KILL if a process sharing the same mm is unkillable via OOM_ADJUST_MIN. After "mm, oom_adj: make sure processes sharing mm have same view of oom_score_adj" all such processes are sharing the same value so we shouldn't

[PATCH v2 3/4] vb2: Fix comment

2016-06-20 Thread Ricardo Ribalda Delgado
The comment was referencing the wrong function. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/videobuf2-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index 633fc

[PATCH v2 2/4] vb2: Merge vb2_internal_qbuf and vb2_qbuf

2016-06-20 Thread Ricardo Ribalda Delgado
After all the code refactoring, vb2_internal_dqbuf is only called by vb2_dqbuf. Since the function it is very simple, there is no need to have two functions. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/videobuf2-v4l2.c | 14 +- 1 file changed, 5 insertions(+),

[PATCH 02/10] proc, oom: drop bogus sighand lock

2016-06-20 Thread Michal Hocko
From: Michal Hocko Oleg has pointed out that can simplify both oom_adj_{read,write} and oom_score_adj_{read,write} even further and drop the sighand lock. The main purpose of the lock was to protect p->signal from going away but this will not happen since ea6d290ca34c ("signals: make task_struct-

[PATCH 10/10] mm, oom: hide mm which is shared with kthread or global init

2016-06-20 Thread Michal Hocko
From: Michal Hocko The only case where the oom_reaper is not triggered for the oom victim is when it shares the memory with a kernel thread (aka use_mm) or with the global init. After "mm, oom: skip vforked tasks from being selected" the victim cannot be a vforked task of the global init so we ar

[PATCH 04/10] mm, oom_adj: make sure processes sharing mm have same view of oom_score_adj

2016-06-20 Thread Michal Hocko
From: Michal Hocko oom_score_adj is shared for the thread groups (via struct signal) but this is not sufficient to cover processes sharing mm (CLONE_VM without CLONE_SIGHAND) and so we can easily end up in a situation when some processes update their oom_score_adj and confuse the oom killer. In t

[PATCH 05/10] mm, oom: skip vforked tasks from being selected

2016-06-20 Thread Michal Hocko
From: Michal Hocko vforked tasks are not really sitting on any memory. They are sharing the mm with parent until they exec into a new code. Until then it is just pinning the address space. OOM killer will kill the vforked task along with its parent but we still can end up selecting vforked task w

[PATCH 09/10] mm, oom_reaper: do not attempt to reap a task more than twice

2016-06-20 Thread Michal Hocko
From: Michal Hocko oom_reaper relies on the mmap_sem for read to do its job. Many places which might block readers have been converted to use down_write_killable and that has reduced chances of the contention a lot. Some paths where the mmap_sem is held for write can take other locks and they mig

[PATCH 08/10] mm, oom: task_will_free_mem should skip oom_reaped tasks

2016-06-20 Thread Michal Hocko
From: Michal Hocko 0-day robot has encountered the following: [ 82.694232] Out of memory: Kill process 3914 (trinity-c0) score 167 or sacrifice child [ 82.695110] Killed process 3914 (trinity-c0) total-vm:55864kB, anon-rss:1512kB, file-rss:1088kB, shmem-rss:25616kB [ 82.706724] oom_reaper

[PATCH 07/10] mm, oom: fortify task_will_free_mem

2016-06-20 Thread Michal Hocko
From: Michal Hocko task_will_free_mem is rather weak. It doesn't really tell whether the task has chance to drop its mm. 98748bd72200 ("oom: consider multi-threaded tasks in task_will_free_mem") made a first step into making it more robust for multi-threaded applications so now we know that the w

[PATCH 01/10] proc, oom: drop bogus task_lock and mm check

2016-06-20 Thread Michal Hocko
From: Michal Hocko both oom_adj_write and oom_score_adj_write are using task_lock, check for task->mm and fail if it is NULL. This is not needed because the oom_score_adj is per signal struct so we do not need mm at all. The code has been introduced by 3d5992d2ac7d ("oom: add per-mm oom disable c

[PATCH 03/10] proc, oom_adj: extract oom_score_adj setting into a helper

2016-06-20 Thread Michal Hocko
From: Michal Hocko Currently we have two proc interfaces to set oom_score_adj. The legacy /proc//oom_adj and /proc//oom_score_adj which both have their specific handlers. Big part of the logic is duplicated so extract the common code into __set_oom_adj helper. Legacy knob still expects some detai

Re: [PATCH 1/2] i2c: qup: Cleared the error bits in ISR

2016-06-20 Thread Abhishek Sahu
On 2016-06-18 22:02, Wolfram Sang wrote: We run the command i2cdetect for address 0x3 to 0x77. The QUP generates write error for address 0x3 to 0x7 apart from other bus errors since these are reserved addresses. I was getting the crash in non DMA mode and BAM hang in DMA mode before putting the

Re: [PATCH v11 08/14] usb: otg: add OTG/dual-role core

2016-06-20 Thread Felipe Balbi
Hi, Roger Quadros writes: > diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig > index 8689dcb..ed596ec 100644 > --- a/drivers/usb/Kconfig > +++ b/drivers/usb/Kconfig > @@ -32,6 +32,23 @@ if USB_SUPPORT > config USB_COMMON > tristate > > +config USB_O

Re: [alsa-devel] [very-RFC 0/8] TSN driver for the kernel

2016-06-20 Thread Richard Cochran
On Mon, Jun 20, 2016 at 02:18:38PM +0200, Richard Cochran wrote: > Documentation/sound/alsa/timestamping.txt says: Examples of typestamping with HDaudio: 1. DMA timestamp, no compensation for DMA+analog delay $ ./audio_time -p --ts_type=1 Where is this "audio_time" program of which you

Re: [PATCH 14/19] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-06-20 Thread Yury Norov
On Sat, Jun 18, 2016 at 02:54:23AM +0300, Yury Norov wrote: > From: Andrew Pinski > > Add a separate syscall-table for ILP32, which dispatches either to native > LP64 system call implementation or to compat-syscalls, as appropriate. > > Signed-off-by: Andrew Pinski > Signed-off-by: Yury Norov

[PATCH v2 4/4] vb2: V4L2_BUF_FLAG_DONE is set after DQBUF

2016-06-20 Thread Ricardo Ribalda Delgado
According to the doc, V4L2_BUF_FLAG_DONE is cleared after DQBUF: V4L2_BUF_FLAG_DONE 0x0004 ... After calling the VIDIOC_QBUF or VIDIOC_DQBUF it is always cleared ... Unfortunately, it seems that videobuf2 keeps it set after DQBUF. This can be tested with vivid and dev_debug: [257604.338082]

Re: [PATCH v4] mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB

2016-06-20 Thread Alexander Potapenko
On Sun, Jun 19, 2016 at 7:40 PM, Sasha Levin wrote: > On 06/19/2016 03:24 AM, Alexander Potapenko wrote: >> Hi Sasha, >> >> This commit delays the reuse of memory after it has been freed, so >> it's intended to help people find more use-after-free errors. > > Is there a way to tell if the use-afte

Re: [PATCH 2/2] mtd: nand: sunxi: add reset line support

2016-06-20 Thread Boris Brezillon
Hi Philipp, On Mon, 20 Jun 2016 14:05:54 +0200 Philipp Zabel wrote: > Am Sonntag, den 19.06.2016, 14:06 +0200 schrieb Boris Brezillon: > > +Philipp > > > > On Sun, 19 Jun 2016 19:37:39 +0800 > > Icenowy Zheng wrote: > > > > > The NAND controller on some sun8i chips needs its reset line to b

[PATCH v3 3/4] vb2: Merge vb2_internal_qbuf and vb2_qbuf

2016-06-20 Thread Ricardo Ribalda Delgado
After all the code refactoring, vb2_internal_dqbuf is only called by vb2_dqbuf. Since the function it is very simple, there is no need to have two functions. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/videobuf2-v4l2.c | 14 +- 1 file changed, 5 insertions(+),

Re: [PATCH v2 05/13] mm: Move memcg stack accounting to account_kernel_stack

2016-06-20 Thread Michal Hocko
On Fri 17-06-16 13:00:41, Andy Lutomirski wrote: > We should account for stacks regardless of stack size. Move it into > account_kernel_stack. > > Fixes: 12580e4b54ba8 ("mm: memcontrol: report kernel stack usage in cgroup2 > memory.stat") > Cc: Vladimir Davydov > Cc: Johannes Weiner > Cc: Mich

Re: [PATCH v2 6/7] mm/page_owner: use stackdepot to store stacktrace

2016-06-20 Thread Alexander Potapenko
On Mon, Jun 6, 2016 at 4:51 PM, Vlastimil Babka wrote: > On 05/26/2016 04:37 AM, js1...@gmail.com wrote: >> >> From: Joonsoo Kim >> >> Currently, we store each page's allocation stacktrace on corresponding >> page_ext structure and it requires a lot of memory. This causes the >> problem >> that m

[PATCH v3 1/4] vb2: V4L2_BUF_FLAG_DONE is set after DQBUF

2016-06-20 Thread Ricardo Ribalda Delgado
According to the doc, V4L2_BUF_FLAG_DONE is cleared after DQBUF: V4L2_BUF_FLAG_DONE 0x0004 ... After calling the VIDIOC_QBUF or VIDIOC_DQBUF it is always cleared ... Unfortunately, it seems that videobuf2 keeps it set after DQBUF. This can be tested with vivid and dev_debug: [257604.338082]

[PATCH 0/2] staging: comedi: plx9080.h: a couple more changes

2016-06-20 Thread Ian Abbott
A couple more changes to "plx9080.h" for easier extraction of fields from register values, and macro naming consistency. 1) staging: comedi: plx9080.h: define PLX__TO_(r) macros 2) staging: comedi: plx9080.h: rename some macros for consistency drivers/staging/comedi/drivers/cb_pcidas64.c | 4 +-

Re: [PATCH v2 01/11] phy: rockchip-emmc: Increase lock time allowance

2016-06-20 Thread Kishon Vijay Abraham I
On Tuesday 14 June 2016 04:34 AM, Douglas Anderson wrote: > Previous PHY code waited a fixed amount of time for the DLL to lock at > power on time. Unfortunately, the time for the DLL to lock is actually > a bit more dynamic and can be longer if the card clock is slower. > > Instead of waiting

Re: [PATCH v10 08/22] IB/hns: Add icm support

2016-06-20 Thread Leon Romanovsky
On Mon, Jun 20, 2016 at 05:48:15PM +0800, Wei Hu (Xavier) wrote: > > > On 2016/6/20 17:27, Leon Romanovsky wrote: > >On Mon, Jun 20, 2016 at 03:49:24PM +0800, Wei Hu (Xavier) wrote: > >> > >>On 2016/6/20 14:06, Leon Romanovsky wrote: > >>>On Mon, Jun 20, 2016 at 12:37:40PM +0800, Wei Hu (Xavier)

[PATCH v3 2/4] vb2: Merge vb2_internal_dqbuf and vb2_dqbuf

2016-06-20 Thread Ricardo Ribalda Delgado
After all the code refactoring, vb2_internal_dqbuf is only called by vb2_dqbuf. Since the function it is very simple, there is no need to have two functions. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/videobuf2-v4l2.c | 39 ++-- 1 file changed

[PATCH v3 4/4] vb2: Fix comment

2016-06-20 Thread Ricardo Ribalda Delgado
The comment was referencing the wrong function. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/videobuf2-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index 633fc

Re: [PATCH v2 08/11] Documentation: phy: Let the rockchip eMMC PHY get an exported card clock

2016-06-20 Thread Kishon Vijay Abraham I
On Tuesday 14 June 2016 04:34 AM, Douglas Anderson wrote: > As of an earlier change in this series ("Documentation: mmc: > sdhci-of-arasan: Add ability to export card clock") the SDHCI driver > used on Rockchip SoCs can now expose its clock. Let's now specify that > the PHY can use it. > > Lett

[PATCH 1/2] staging: comedi: plx9080.h: define PLX__TO_(r) macros

2016-06-20 Thread Ian Abbott
Various macros in "plx9080.h" take the form `PLX__(x)`, where `` is a register name, `` is a field within the register, and `x` is a value for the field specified by the caller. The macros construct a partial register register with the specified field value placed in the appropriate bits of the re

Re: [PATCH v2 10/11] phy: rockchip-emmc: Set phyctrl_frqsel based on card clock

2016-06-20 Thread Kishon Vijay Abraham I
On Tuesday 14 June 2016 04:34 AM, Douglas Anderson wrote: > The "phyctrl_frqsel" is described in the Arasan datasheet [1] as "the > frequency range of DLL operation". Although the Rockchip variant of > this PHY has different ranges than the reference Arasan PHY it appears > as if the functionali

Re: [PATCH 1/7] dt-bindings: ata: rename brcm,sata-brcmstb.txt to brcm,sata-brcm.txt

2016-06-20 Thread Rob Herring
On Thu, Jun 16, 2016 at 09:53:29AM -0400, Yendapally Reddy Dhananjaya Reddy wrote: > Renames the dt bindings document of Broadcom STB ahci driver to > common Broadcom ahci driver bindings document > > Signed-off-by: Yendapally Reddy Dhananjaya Reddy > > --- > .../bindings/ata/{brcm,sata-brcmst

Re: [PATCH v6] ASoC: rockchip: Add machine driver for RK3399 GRU Boards

2016-06-20 Thread Rob Herring
On Thu, Jun 16, 2016 at 08:40:58PM +0800, Xing Zheng wrote: > Because we need to support the multiple codecs (MAX98357A/RT5514/DA7219) > on the RK3399 GRU boards, this patch can help us to support these codecs. > > Signed-off-by: Xing Zheng > --- > > Changes in v6: > - remove enable/disable dapm

[PATCH 2/2] staging: comedi: plx9080.h: rename some macros for consistency

2016-06-20 Thread Ian Abbott
Most of the macros in "plx9080.h" that define register values are single-bits flags of the form `PLX__`, or are constant, multi-bit values of the form `PLX___`, or are non-constant, function-like macros of the form `PLX__(x)`. Some of the macros for constant, multi-bit values do not currently fit t

Re: [PATCH 2/4] phy: rockchip-emmc: configure frequency range and drive impedance

2016-06-20 Thread Kishon Vijay Abraham I
On Friday 13 May 2016 04:13 AM, Brian Norris wrote: > From: Shawn Lin > > Signal integrity analysis has suggested we set these values. Do this in > power_on(), so that they get reconfigured after suspend/resume. > > Signed-off-by: Shawn Lin > Signed-off-by: Brian Norris Acked-by: Kishon Vij

Re: [PATCH 1/4] phy: rockchip-emmc: give DLL some extra time to be ready

2016-06-20 Thread Kishon Vijay Abraham I
On Friday 13 May 2016 04:13 AM, Brian Norris wrote: > From: Shawn Lin > > According to the databook, 10.2us is the max time for dll to be ready to > work. However in testing, some chips need 20us for dll to be ready. This > patch adds some extra margin for dllrdy to be ready, fixing our > -ETIM

Re: [PATCH 4/4] phy: rockchip-emmc: reindent the register definitions

2016-06-20 Thread Kishon Vijay Abraham I
On Friday 13 May 2016 04:13 AM, Brian Norris wrote: > Some of the spacing was wrong (spaces instead of tabs), and due to > longer entries added later, the columns weren't aligned. Let's get > everything consistent. > > Signed-off-by: Brian Norris Acked-by: Kishon Vijay Abraham I > --- > driv

Re: [PATCH 3/4] phy: rockchip-emmc: configure default output tap delay

2016-06-20 Thread Kishon Vijay Abraham I
On Friday 13 May 2016 04:13 AM, Brian Norris wrote: > The output tap delay controls helps maintain the hold requirements for > eMMC. The exact value is dependent on the SoC and other factors, though > it isn't really an exact science. But the default of 0 is not very good, > as it doesn't give th

Re: Boot failure on emev2/kzm9d (was: Re: [PATCH v2 11/11] mm/slab: lockless decision to grow cache)

2016-06-20 Thread Paul E. McKenney
On Mon, Jun 20, 2016 at 03:39:43PM +0900, Joonsoo Kim wrote: > CCing Paul to ask some question. > > On Wed, Jun 15, 2016 at 10:39:47AM +0200, Geert Uytterhoeven wrote: > > Hi Joonsoo, > > > > On Wed, Jun 15, 2016 at 4:23 AM, Joonsoo Kim wrote: > > > On Tue, Jun 14, 2016 at 12:45:14PM +0200, Geer

Re: [PATCH v2 09/11] phy: rockchip-emmc: Minor code cleanup in rockchip_emmc_phy_power_on/off()

2016-06-20 Thread Kishon Vijay Abraham I
On Tuesday 14 June 2016 04:34 AM, Douglas Anderson wrote: > There's no reason to store the return value of rockchip_emmc_phy_power() > in a variable nor to check it. Just return it. > > Signed-off-by: Douglas Anderson Acked-by: Kishon Vijay Abraham I > --- > Changes in v2: > - Move code clea

Re: [PATCH v2 04/13] mm: Track NR_KERNEL_STACK in KiB instead of number of stacks

2016-06-20 Thread Michal Hocko
On Fri 17-06-16 13:00:40, Andy Lutomirski wrote: > Currently, NR_KERNEL_STACK tracks the number of kernel stacks in a > zone. This only makes sense if each kernel stack exists entirely in > one zone, and allowing vmapped stacks could break this assumption. > > Since frv has THREAD_SIZE < PAGE_SIZ

Re: [PATCH 3/7] dt-bindings: phy: Add documentation for NSP SATA PHY

2016-06-20 Thread Rob Herring
On Thu, Jun 16, 2016 at 09:53:31AM -0400, Yendapally Reddy Dhananjaya Reddy wrote: > Add documentation for SATA PHY available in Broadcom's > NSP SoC. > > Signed-off-by: Yendapally Reddy Dhananjaya Reddy > > --- > Documentation/devicetree/bindings/phy/brcm-sata-phy.txt | 4 +++- > 1 file chang

Re: [PATCH] thermal: hisilicon: Add dependency on the clock driver to allow frequency scaling

2016-06-20 Thread Leo Yan
Hi Amit, On Mon, Jun 20, 2016 at 05:46:36PM +0530, Amit Kucheria wrote: > The Hisilicon clock stub driver is needed to allow the thermal drivers to > actually scale the frequency. Make it an automatic dependency. > > Signed-off-by: Amit Kucheria > --- > drivers/thermal/Kconfig | 1 + > 1 file c

Re: [PATCH 1/2] Documentation: dt: clock: Add fractional scale binding

2016-06-20 Thread Rob Herring
On Thu, Jun 16, 2016 at 04:40:32PM -0700, Hoan Tran wrote: > Add fractional scale clock DTS binding. We've generally decided against putting this level of clock details into DT. > > Signed-off-by: Hoan Tran > Signed-off-by: Loc Ho > --- > .../bindings/clock/fractional-scale-clock.txt |

Re: [PATCH v3 1/7] max8903: adds documentation for device tree bindings.

2016-06-20 Thread Rob Herring
On Fri, Jun 17, 2016 at 03:00:20PM +1000, Chris Lapa wrote: > From: Chris Lapa > > Signed-off-by: Chris Lapa > --- > .../devicetree/bindings/power/max8903-charger.txt | 25 > ++ > 1 file changed, 25 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/p

[tip:sched/urgent] sched/fair: Fix cfs_rq avg tracking underflow

2016-06-20 Thread tip-bot for Peter Zijlstra
Commit-ID: 8974189222159154c55f24ddad33e3613960521a Gitweb: http://git.kernel.org/tip/8974189222159154c55f24ddad33e3613960521a Author: Peter Zijlstra AuthorDate: Thu, 16 Jun 2016 10:50:40 +0200 Committer: Ingo Molnar CommitDate: Mon, 20 Jun 2016 11:29:09 +0200 sched/fair: Fix cfs_rq av

Re: [PATCH v2 1/3] coccinelle: also catch kzfree() issues

2016-06-20 Thread Michal Marek
On 2016-05-23 17:18, Julia Lawall wrote: > > > On Mon, 23 May 2016, Yann Droneaud wrote: > >> Since commit 3ef0e5ba4673 ('slab: introduce kzfree()'), >> kfree() is no more the only function to be considered: >> kzfree() should be recognized too. >> >> In particular, kzfree() must not be called o

[PATCH 1/1] mm/page_ref: introduce page_ref_inc_return

2016-06-20 Thread Christian Borntraeger
From: David Hildenbrand Let's introduce that helper. Signed-off-by: David Hildenbrand Signed-off-by: Christian Borntraeger --- include/linux/page_ref.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/page_ref.h b/include/linux/page_ref.h index 8b5e0a9..610e132 10064

Re: NFS/d_splice_alias breakage

2016-06-20 Thread Oleg Drokin
It looks like this patch was totally forgotten? I don't see it in neither vfs nor nfs trees and yet it fixes a very easy to cause crash in nfs code. And I think it's unrelated to the other parallel case too. On Jun 3, 2016, at 1:56 AM, Al Viro wrote: > On Fri, Jun 03, 2016 at 12:58:10AM -0400, O

Re: [PATCH 0/6] dell-smm-hwmon fixes

2016-06-20 Thread Guenter Roeck
On 06/20/2016 02:12 AM, Pali Rohár wrote: On Sunday 19 June 2016 00:39:47 Pali Rohár wrote: On Saturday 18 June 2016 18:54:58 Guenter Roeck wrote: On 06/18/2016 08:26 AM, Pali Rohár wrote: On Saturday 18 June 2016 17:13:59 Guenter Roeck wrote: On 06/17/2016 03:54 PM, Pali Rohár wrote: I'm se

Re: [PATCH v5 2/2] [media] atmel-isc: DT binding for Image Sensor Controller driver

2016-06-20 Thread Rob Herring
On Fri, Jun 17, 2016 at 04:57:14PM +0800, Songjun Wu wrote: > DT binding documentation for ISC driver. > > Signed-off-by: Songjun Wu > --- > > Changes in v5: > - Add clock names. > > Changes in v4: > - Remove the isc clock nodes. > > Changes in v3: > - Remove the 'atmel,sensor-preferred'. > -

[PATCH] printk: do not include interrupt.h

2016-06-20 Thread Sergey Senozhatsky
A trivial cosmetic change: interrupt.h header is redundant since 'commit 6b898c07cb1d ("console: use might_sleep in console_lock")'. Signed-off-by: Sergey Senozhatsky --- kernel/printk/printk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c ind

Re: [PATCH 2/7] dt-bindings: ata: add support for Broadcom NSP SoC ahci

2016-06-20 Thread Rob Herring
On Thu, Jun 16, 2016 at 09:53:30AM -0400, Yendapally Reddy Dhananjaya Reddy wrote: > Add support for Broadcom NSP SoC ahci > > Signed-off-by: Yendapally Reddy Dhananjaya Reddy > > --- > Documentation/devicetree/bindings/ata/brcm,sata-brcm.txt | 1 + > 1 file changed, 1 insertion(+) Acked-by:

Re: [PATCH] block: flush writeback dwork before detaching a bdev inode from it

2016-06-20 Thread Jan Kara
Hi, On Fri 17-06-16 12:04:05, Tejun Heo wrote: > 43d1c0eb7e11 ("block: detach bdev inode from its wb in > __blkdev_put()") detached bdev inode from its wb as the bdev inode may > outlive the underlying bdi and thus the wb. This is accomplished by > invoking inode_detach_wb() from __blkdev_put();

Re: [PATCH v10 06/22] IB/hns: Add initial cmd operation

2016-06-20 Thread Leon Romanovsky
On Thu, Jun 16, 2016 at 10:35:14PM +0800, Lijun Ou wrote: > This patch added the operation for cmd, and added some functions > for initializing eq table and selecting cmd mode. > > Signed-off-by: Wei Hu > Signed-off-by: Nenglong Zhao > Signed-off-by: Lijun Ou > --- > PATCH v9/v8/v7/v6: > - No c

Re: [PATCH v3 2/3] block: convert to device_add_disk()

2016-06-20 Thread Bart Van Assche
On 06/17/2016 06:34 PM, Dan Williams wrote: diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index ef6b4d960bad..4e7cb5df8e43 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -823,12 +823,11 @@ static int ubd_disk_register(int major, u64 size, int u

Re: [PATCH v2 06/13] fork: Add generic vmalloced stack support

2016-06-20 Thread Michal Hocko
On Fri 17-06-16 13:00:42, Andy Lutomirski wrote: > If CONFIG_VMAP_STACK is selected, kernel stacks are allocated with > vmalloc_node. I like this! It also reduces demand for higher order (order-2) pages considerably which is a great plus on its own. I would be little bit worried about the performa

Re: [PATCH 1/3] clk: samsung: exynos5433: prepare for adding CPU clocks

2016-06-20 Thread Bartlomiej Zolnierkiewicz
Hi Tomasz, On Saturday, June 18, 2016 11:40:05 PM Tomasz Figa wrote: > Hi Bartlomiej, > > 2016-05-24 22:19 GMT+09:00 Bartlomiej Zolnierkiewicz > : > > Open-code samsung_cmu_register_one() calls for CMU_APOLLO and > > CMU_ATLAS setup code as a preparation for adding CPU clocks > > support for Ex

[PATCH 1/2] ARM: multi_v7_defconfig: Enable AHCI_IMX

2016-06-20 Thread Tuomas Tynkkynen
The Wandboard Quad comes with a SATA port. Enable the IMX SATA driver by default to make it easy to have the root filesystem on it. Signed-off-by: Tuomas Tynkkynen --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/a

Re: [PATCH v3 1/3] block: introduce device_add_disk()

2016-06-20 Thread Bart Van Assche
On 06/17/2016 06:34 PM, Dan Williams wrote: In preparation for removing the ->driverfs_dev member of a gendisk, add an api that takes the parent device as a parameter to add_disk(). For now this maintains the status quo of WARN()ing on failure, but not return a error code. Reviewed-by: Bart Va

[rcu:rcu/next 16/16] memremap.c:undefined reference to `__aeabi_uldivmod'

2016-06-20 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: b4aa201e0c7c73a9f4fee7d82d4ff46b85feeea9 commit: b4aa201e0c7c73a9f4fee7d82d4ff46b85feeea9 [16/16] torture: Convert torture_shutdown() to hrtimer config: arm-allyesconfig (attached as .config) compiler:

Re: [PATCH 02/13] irq: Introduce IRQD_AFFINITY_MANAGED flag

2016-06-20 Thread Bart Van Assche
On 06/20/2016 02:22 PM, Christoph Hellwig wrote: On Thu, Jun 16, 2016 at 05:39:07PM +0200, Bart Van Assche wrote: On 06/16/2016 05:20 PM, Christoph Hellwig wrote: On Wed, Jun 15, 2016 at 09:36:54PM +0200, Bart Van Assche wrote: My concern is that I doubt that there is an interrupt assignment s

Re: [PATCH] block: flush writeback dwork before detaching a bdev inode from it

2016-06-20 Thread Dmitry Vyukov
On Mon, Jun 20, 2016 at 3:31 PM, Jan Kara wrote: > Hi, > > On Fri 17-06-16 12:04:05, Tejun Heo wrote: >> 43d1c0eb7e11 ("block: detach bdev inode from its wb in >> __blkdev_put()") detached bdev inode from its wb as the bdev inode may >> outlive the underlying bdi and thus the wb. This is accompli

Re: [PATCH 3/3] ftrace/x86: Set ftrace_stub to weak to prevent gcc from using short jumps to it

2016-06-20 Thread Steven Rostedt
On Mon, 20 Jun 2016 09:46:02 +0900 Namhyung Kim wrote: > Hi Steve, > > On Sun, May 22, 2016 at 04:28:49PM -0400, Steven Rostedt wrote: > > From: Steven Rostedt > > > > Matt Fleming reported seeing crashes when enabling and disabling > > function profiling which uses function graph tracer. Late

[PATCH v2 0/3] Convert clk-fixed into module platform driver

2016-06-20 Thread Ricardo Ribalda Delgado
When clock providers are added to the device tree after of_clk_init is called they are not added to the clock provider list. This makes that drivers such as i2c-xiic.c fail to init, as they may depend on the unadded clock provider. We first introduce a new function clk.c that will check if a devic

[PATCH v2 1/3] clk: Add new function of_clk_is_provider()

2016-06-20 Thread Ricardo Ribalda Delgado
of_clk_is_provider() checks if a device_node has already been added to the clk provider list. This can be used to avoid adding the same clock provider twice. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/clk.c| 20 include/linux/clk-provider.h | 5 +

[PATCH v2 2/3] clk: fixed-factor: Convert into a module platform driver

2016-06-20 Thread Ricardo Ribalda Delgado
Adds support for fixed-factor clock providers which have not been enabled via of_clk_init(). This is required by Device trees overlays that introduce clocks providers. Signed-off-by: Ricardo Ribalda Delgado --- v2: Changes proposed by: Stephen Boyd -Add error check -CodeStyle on of_device_ide -

[PATCH v2 3/3] clk: fixed-rate: Convert into a module platform driver

2016-06-20 Thread Ricardo Ribalda Delgado
Adds support for fixed-rate clock providers which have not been enabled via of_clk_init(). This is required by Device trees overlays that introduce clocks providers. Signed-off-by: Ricardo Ribalda Delgado --- v2: Changes proposed by: Stephen Boyd -Add error check -CodeStyle on of_device_ide -Us

Re: [v3,1/4] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-06-20 Thread Javier Martinez Canillas
Hello Guenter, Brian On 06/18/2016 01:09 PM, Guenter Roeck wrote: > On 06/17/2016 06:08 PM, Brian Norris wrote: >> On Fri, Jun 17, 2016 at 02:41:51PM -0700, Guenter Roeck wrote: >>> On Fri, Jun 17, 2016 at 12:58:12PM -0700, Brian Norris wrote: +int cros_ec_cmd_xfer_status(struct cros_ec_devic

[PATCH v2 2/3] mtd: nand: implement two pairing scheme

2016-06-20 Thread Boris Brezillon
Implement two common pairing scheme (found on many MLC devices), and name them in reference to the paired pages distance (3 or 6 pages). Signed-off-by: Boris Brezillon Signed-off-by: Richard Weinberger --- drivers/mtd/nand/nand_base.c | 97 include/l

[PATCH v2 3/3] mtd: nand: add a pairing field to nand_flash_dev

2016-06-20 Thread Boris Brezillon
Add a new field to attach a pairing scheme to a NAND chip definition and assign it to mtd->pairing when a full-id match is detected. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 1 + include/linux/mtd/nand.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/

[PATCH v2 1/3] mtd: introduce the mtd_pairing_scheme concept

2016-06-20 Thread Boris Brezillon
MLC and TLC NAND devices are using NAND cells exposing more than one bit, but instead of attaching all the bits in a given cell to a single NAND page, each bit is usually attached to a different page. This concept is called 'page pairing', and has significant impacts on the flash storage usage. The

[PATCH v2 0/3] mtd: add support for pairing scheme description

2016-06-20 Thread Boris Brezillon
Hi, This series is the first step towards reliable MLC/TLC NAND support. Those patches allows the NAND layer to expose page pairing information to MTD users. The plan is to teach UBI about those constraints and let UBI code take the appropriate precautions when dealing with those multi-level cells

[PATCH 0/1] introduce page_ref_inc_return

2016-06-20 Thread Christian Borntraeger
commit 0139aa7b7fa1 ("mm: rename _count, field of the struct page, to _refcount") changed all accesses to page->_count to use wrappers. There is already a page_ref_dec_return and we need for kvm/s390 code the function "page_ref_inc_return" as well. FWIW, the code is under https://git.kernel.org/cg

[PATCH] of/irq: Mark initialised interrupt controllers as populated

2016-06-20 Thread Jon Hunter
For interrupt controllers successfully initialised early via device-tree, mark these interrupt controllers as populated so we don't unnecessarily create a device and populate any platform data later on in the boot sequence when we populate all the various platform devices. Signed-off-by: Jon Hunte

Re: [PATCH 3/3] iio: st_sensors: Use level interrupts

2016-06-20 Thread Linus Walleij
On Fri, May 13, 2016 at 8:43 PM, Crestez Dan Leonard wrote: > As far as I can tell DRDY for ST sensors behaves as a level rather than > edge interrupt. Registering for IRQF_TRIGGER_RISING instead of > IRQF_TRIGGER_HIGH mostly works except when the sampling frequency is > high enough that new samp

Re: [PATCH v2 5/6] x86: Pass kernel thread parameters in fork_frame

2016-06-20 Thread Borislav Petkov
On Sat, Jun 18, 2016 at 04:56:17PM -0400, Brian Gerst wrote: > Instead of setting up a fake pt_regs context, put the kernel thread > function pointer and arg into the unused callee-restored registers > of struct fork_frame. > > Signed-off-by: Brian Gerst > --- > arch/x86/entry/entry_32.S| 3

[PATCH 2/2] ARM: multi_v7_defconfig: Enable ARM_IMX6Q_CPUFREQ

2016-06-20 Thread Tuomas Tynkkynen
The Wandboard Quad can make use of the cpufreq support provided by the driver. Enable it and its dependency, REGULATOR_ANATOP, by default. Signed-off-by: Tuomas Tynkkynen --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/multi_v7_defco

Re: [PATCH] scsi: libfc: fix seconds_since_last_reset calculation

2016-06-20 Thread Bart Van Assche
On 06/17/2016 05:47 PM, Arnd Bergmann wrote: - jiffies_to_timespec(jiffies, &v0); - jiffies_to_timespec(lport->boot_time, &v1); - fc_stats->seconds_since_last_reset = (v0.tv_sec - v1.tv_sec); + fc_stats->seconds_since_last_reset = (lport->boot_time - jiffies) / HZ; Does

[PATCH 1/2] tracing: Handle NULL formats in hold_module_trace_bprintk_format()

2016-06-20 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" If a task uses a non constant string for the format parameter in trace_printk(), then the trace_printk_fmt variable is set to NULL. This variable is then saved in the __trace_printk_fmt section. The function hold_module_trace_bprintk_format() checks to see if dup

[PATCH 2/2] ftracetest: Fix hist unsupported result in hist selftests

2016-06-20 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" When histograms are not configured in the kernel, the ftracetest histogram selftests should return "unsupported" and not "Failed". To detect this, the test scripts have: FEATURE=`grep hist events/sched/sched_process_fork/trigger` if [ -z "$FEATURE" ]; then

[PATCH 0/2] [GIT PULL] tracing: Two small fixes

2016-06-20 Thread Steven Rostedt
Linus, Two fixes for the tracing system. o When trace_printk() is used with a non constant format descriptor, it adds a NULL pointer into the trace format section, and the code isn't prepared to deal with it. This bug appeared by a change that was added in v3.5. o The ftracetest (sel

Re: [PATCH] tracing: Expose CPU physical addresses (resource values) for PCI devices

2016-06-20 Thread Steven Rostedt
On Sat, 18 Jun 2016 08:23:23 +1000 Benjamin Herrenschmidt wrote: > On Fri, 2016-06-17 at 17:59 -0400, Steven Rostedt wrote: > > Sorry for the late reply, this patch got pushed down in my INBOX. > > > > Could I get someone from PPC to review this patch, just to be safe? > > The patch makes sen

Re: [patch V2 00/20] timer: Refactor the timer wheel

2016-06-20 Thread Thomas Gleixner
On Fri, 17 Jun 2016, Eric Dumazet wrote: > To avoid increasing probability of such events we would need to have > at least 4 ms difference between the RTO timer and delack timer. > > Meaning we have to increase both of them and increase P99 latencies of > RPC workloads. > > Maybe a switch to hrti

Re: [PATCH 1/3] clk: Add new function of_clk_is_provider()

2016-06-20 Thread Ricardo Ribalda Delgado
Hi Stephen When the device tree is populated or when an overlay is added, all its nodes have the flag OF_POPULATED set. The flag is enabled recursively in of_platform_bus_create->of_platform_device_create_pdata() So we cannot use that flag to mark what is enabled and what is not. The other issue

Re: [PATCH v3 1/4] reset: hisilicon: Add media reset controller binding

2016-06-20 Thread Xinliang Liu
On 20 June 2016 at 20:07, Philipp Zabel wrote: > Am Montag, den 20.06.2016, 11:50 +0800 schrieb Xinliang Liu: >> >> Required properties: >> -- compatible: may be "hisilicon,hi6220-sysctrl" >> +- compatible: should be one of the following: >> + - "hisilicon,hi6220-sysctrl", "syscon" : For periphe

Re: [PATCH v2] tools/perf: Fix the mask in regs_dump__printf and

2016-06-20 Thread Madhavan Srinivasan
On Monday 20 June 2016 03:10 PM, Jiri Olsa wrote: > On Mon, Jun 20, 2016 at 05:27:25PM +0800, Wangnan (F) wrote: >> >> On 2016/6/20 17:18, Jiri Olsa wrote: >>> On Mon, Jun 20, 2016 at 02:14:01PM +0530, Madhavan Srinivasan wrote: When decoding the perf_regs mask in regs_dump__printf(), w

Re: [PATCH 2/3] clk: samsung: cpu: prepare for adding Exynos5433 CPU clocks

2016-06-20 Thread Bartlomiej Zolnierkiewicz
On Saturday, June 18, 2016 11:53:36 PM Tomasz Figa wrote: > Hi Bart, Hi Tomek, > 2016-05-24 22:19 GMT+09:00 Bartlomiej Zolnierkiewicz > : > > Exynos5433 uses different register layout for CPU clock registers > > than earlier SoCs so add new code for handling this layout. Also > > add new CLK_C

Re: [PATCH] aio: Cleanup unnecessary test for nr_pages

2016-06-20 Thread Minfei Huang
Ping. Any comment is appreciate. Thanks Minfei On 06/13/16 at 12:33P, Minfei Huang wrote: > The variable nr_pages is always more than 1, because the size of > structure aio_ring is bigger than 0. So remove unnecessary test for > nr_page. > > Signed-off-by: Minfei Huang > --- > fs/aio.c | 2 --

Re: NFS/d_splice_alias breakage

2016-06-20 Thread Al Viro
On Mon, Jun 20, 2016 at 09:25:12AM -0400, Oleg Drokin wrote: > It looks like this patch was totally forgotten? > I don't see it in neither vfs nor nfs trees and yet it fixes a very easy to > cause > crash in nfs code. And I think it's unrelated to the other parallel case too. I assumed it would g

Re: [PATCH 3/3] clk: samsung: exynos5433: add CPU clocks configuration data and instantiate CPU clocks

2016-06-20 Thread Bartlomiej Zolnierkiewicz
On Saturday, June 18, 2016 11:57:30 PM Tomasz Figa wrote: > Hi Bart, Hi Tomek, > 2016-05-24 22:19 GMT+09:00 Bartlomiej Zolnierkiewicz > : > > Add the CPU clocks configuration data and instantiate the CPU clocks > > type for Exynos5433. > > > > Cc: Kukjin Kim > > CC: Krzysztof Kozlowski > > Sig

[PATCH v2] mfd: twl6040: Handle mclk used for HPPLL and optional internal clock source

2016-06-20 Thread Peter Ujfalusi
On some boards, like omap5-uevm the MCLK is gated by default and in order to be able to use the High performance modes of twl6040 it need to be enabled by SW. Add support for handling the MCLK source clock via CCF. At the same time lower the print priority of the notification that the 32K clock is

[PULL] drm/bridge: sii902x driver

2016-06-20 Thread Boris Brezillon
Hi Dave, This pull request contains 2 patches adding support for the sii902x bridge. Regards, Boris The following changes since commit a0877f52035280370707bdefeddc6faa6478b892: Merge tag 'topic/drm-misc-2016-06-15' of git://anongit.freedesktop.org/drm-intel into drm-next (2016-06-16 05:49:3

Re: [PATCH] mmc: core: add auto bkops support

2016-06-20 Thread Alex Lemberg
Hi Shawn, […] >>> + >>> +static int mmc_stop_auto_bkops(struct mmc_card *card) >>> +{ >>> + int err = 0; >>> + >>> + if (!card->ext_csd.auto_bkops_en) >>> + return 0; >>> + >> >> Shouldn’t the BKOPS_STATUS be checked prior to disabling the BKOPS activity >> of the device? >> > >Hrm

[PATCH v3 0/3] pwm support for Broadcom iProc SoC's

2016-06-20 Thread Yendapally Reddy Dhananjaya Reddy
This patchset contains the pwm support for the Broadcom's iProc SoC's. The first patch provides the documentation details and the second patch contains the controller support details. The third patch contains the enable method for Northstar Plus SoC. This patch series has been tested on NSP bcm95

<    1   2   3   4   5   6   7   8   9   10   >