[PATCH v2] media: vb2: Fix videobuf2 to map correct area

2018-02-06 Thread Masami Hiramatsu
Fixes vb2_vmalloc_get_userptr() to ioremap correct area. Since the current code does ioremap the page address, if the offset > 0, it does not do ioremap the last page and results in kernel panic. This fixes to pass the size + offset to ioremap so that ioremap can map correct area. Also, this uses

[PATCH v2] extcon: int3496: process id-pin first so that we start with the right status

2018-02-06 Thread Hans de Goede
Some other drivers may be waiting for our extcon to show-up (exiting their probe methods with -EPROBE_DEFER until we show up). These drivers will typically get the cable state directly after getting the extcon, this commit changes the int3496 code to process the id-pin before registering the extco

Re: [PATCH] extcon: int3496: process id-pin first so that we start with the right status

2018-02-06 Thread Hans de Goede
HI, On 05-02-18 00:28, Chanwoo Choi wrote: On 2018년 02월 02일 17:10, Hans de Goede wrote: Hi, On 02-02-18 01:32, Chanwoo Choi wrote: On 2018년 01월 26일 04:39, Hans de Goede wrote: Some other drivers may be waiting for our extcon to show-up (exiting their probe methods with -EPROBE_DEFER until we

Re: [PATCH v2] media: vb2: Fix videobuf2 to map correct area

2018-02-06 Thread Marek Szyprowski
Hi Masami, On 2018-02-06 09:02, Masami Hiramatsu wrote: Fixes vb2_vmalloc_get_userptr() to ioremap correct area. Since the current code does ioremap the page address, if the offset > 0, it does not do ioremap the last page and results in kernel panic. This fixes to pass the size + offset to ior

Re: [PATCH v2] extcon: int3496: process id-pin first so that we start with the right status

2018-02-06 Thread Chanwoo Choi
On 2018년 02월 06일 17:10, Hans de Goede wrote: > Some other drivers may be waiting for our extcon to show-up (exiting their > probe methods with -EPROBE_DEFER until we show up). > > These drivers will typically get the cable state directly after getting > the extcon, this commit changes the int3496

Re: [PATCH 0/4] tree-wide: fix comparison to bitshift when dealing with a mask

2018-02-06 Thread Geert Uytterhoeven
Hi Wolfram, On Mon, Feb 5, 2018 at 9:09 PM, Wolfram Sang wrote: > In one Renesas driver, I found a typo which turned an intended bit shift > ('<<') > into a comparison ('<'). Because this is a subtle issue, I looked tree wide > for > similar patterns. This small patch series is the outcome. > >

[lkp-robot] [rcu] 6c0a1d639c: BUG:scheduling_while_atomic

2018-02-06 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-4.9): commit: 6c0a1d639cb7e989007cc3153b2f4eafb2e5bb7b ("rcu: Parallelize expedited grace-period initialization") https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git rcu/dev in testcase: trinity with following parameters:

[lkp-robot] [mm] f7f99100d8: BUG:unable_to_handle_kernel

2018-02-06 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: f7f99100d8d95dbcf09e0216a143211e79418b9f ("mm: stop zeroing memory during allocation in vmemmap") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runt

Re: [PATCH 0/4] tree-wide: fix comparison to bitshift when dealing with a mask

2018-02-06 Thread Wolfram Sang
> I found two more using "git grep 'define.*0x[0-9a-f]* < '": I added '[0-9]\+' at the end of the regex to reduce the number of false positives... > drivers/net/can/m_can/m_can.c:#define RXFC_FWM_MASK (0x7f < > RXFC_FWM_SHIFT) > drivers/usb/gadget/udc/goku_udc.h:#define INT_EPnNAK(n) > (0x0

[lkp-robot] [rcu] 5bb856a179: WARNING:at_kernel/workqueue.c:#flush_work

2018-02-06 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 5bb856a17977672f2142d06e68ac60e746e7bca2 ("rcu: Parallelize expedited grace-period initialization") https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git rcu/dev in testcase: trinity with following parameters:

Re: [PATCH -mm] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-06 Thread Minchan Kim
Hi Huang, On Tue, Feb 06, 2018 at 02:54:04PM +0800, Huang, Ying wrote: > From: Huang Ying > > It was reported by Sergey Senozhatsky that if THP (Transparent Huge > Page) and frontswap (via zswap) are both enabled, when memory goes low > so that swap is triggered, segfault and memory corruption w

[PATCH 1/3] sched: Stop nohz stats when decayed

2018-02-06 Thread Vincent Guittot
Stopped the periodic update of blocked load when all idle CPUs have fully decayed. We introduce a new nohz.has_blocked that reflect if some idle CPUs has blocked load that have to be periodiccally updated. nohz.has_blocked is set everytime that a Idle CPU can have blocked load and it is then clear

[PATCH 2/3] sched: reduce the periodic update duration

2018-02-06 Thread Vincent Guittot
Instead of using the cfs_rq_is_decayed() which monitors all *_avg and *_sum, we create a cfs_rq_has_blocked() which only takes care of util_avg and load_avg. We are only interested by these 2 values which are decaying faster than the *_sum so we can stop the periodic update earlier. Signed-off-by:

[PATCH 3/3] sched: update blocked load when newly idle

2018-02-06 Thread Vincent Guittot
When NEWLY_IDLE load balance is not triggered, we might need to update the blocked load anyway. We can kick an ilb so an idle CPU will take care of updating blocked load or we can try to update them locally before entering idle. In the latter case, we reuse part of the nohz_idle_balance. Signed-of

Re: [PATCH BUGFIX 1/1] block, bfq: add requeue-request hook

2018-02-06 Thread Oleksandr Natalenko
Hi. 06.02.2018 08:56, Mike Galbraith wrote: I was doing kbuilds, and it blew up on me twice. Switching back to cfq seemed to confirm it was indeed the patch causing trouble, but that's by no means a certainty. Just to note, I was using v4.15.1, not the latest git HEAD. Are you able to reprod

Re: [PATCH -mm] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-06 Thread Huang, Ying
Hi, Minchan, Minchan Kim writes: > Hi Huang, > > On Tue, Feb 06, 2018 at 02:54:04PM +0800, Huang, Ying wrote: >> From: Huang Ying >> >> It was reported by Sergey Senozhatsky that if THP (Transparent Huge >> Page) and frontswap (via zswap) are both enabled, when memory goes low >> so that swap

Re: [PATCH 02/10] tooling headers: Synchronize updated s390 kvm UAPI headers

2018-02-06 Thread Christian Borntraeger
Arnaldo what is the proposed way of forwarding kvm uapi changes to the perf copy? Are you going to detect and fixup that yourself? Do you want to be notified? Or do you even want to have a patch? On 02/05/2018 08:56 PM, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > The 3

[PATCH v2] drm/bridge/synopsys: dsi: Add 1.31 version support

2018-02-06 Thread Philippe Cornu
Add support for the Synopsys DesignWare MIPI DSI version 1.31 Two registers need to be updated/added for supporting 1.31: * PHY_TMR_CFG 0x9c (updated) 1.30 [31:24] phy_hs2lp_time [23:16] phy_lp2hs_time [14: 0] max_rd_time 1.31 [25:16] phy_hs2lp_time [ 9: 0] phy_lp2hs_time

Re: Software evolution around “checkpatch.pl”?

2018-02-06 Thread SF Markus Elfring
> Check patch is dumb and often gives false positives. Would you like to improve this software situation anyhow? Regards, Markus

Fwd: [PATCH v1 2/2] clk: npcm: add NPCM7xx clock driver

2018-02-06 Thread Tali Perry
On Mon, Feb 5, 2018 at 12:22 AM, Tomer Maimon wrote: > Add Nuvoton BMC NPCM7xx clock driver. > > Nuvoton BMC NPCM7xx contain integrated clock controller which > generates and supplies clock to all modules within the NPCM7xx BMC. > > Signed-off-by: Tomer Maimon > --- > drivers/clk/Makefile |

Re: [PATCH BUGFIX 1/1] block, bfq: add requeue-request hook

2018-02-06 Thread Mike Galbraith
On Tue, 2018-02-06 at 09:37 +0100, Oleksandr Natalenko wrote: > Hi. > > 06.02.2018 08:56, Mike Galbraith wrote: > > I was doing kbuilds, and it blew up on me twice. Switching back to cfq > > seemed to confirm it was indeed the patch causing trouble, but that's > > by no means a certainty. > > Ju

Re: [PATCH v6 19/36] nds32: VDSO support

2018-02-06 Thread Arnd Bergmann
On Tue, Feb 6, 2018 at 8:41 AM, Vincent Chen wrote: > 2018-01-18 18:28 GMT+08:00 Arnd Bergmann : >> On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: >>> From: Greentime Hu >>> >>> This patch adds VDSO support. The VDSO code is currently used for >>> sys_rt_sigreturn() and optimised gettimeof

Re: [PATCH 1/3] x86/entry: Clear extra registers beyond syscall arguments for 64bit kernels

2018-02-06 Thread Ingo Molnar
* Ingo Molnar wrote: > [...] so I implemented a real, per function register usage tracking. > > For the x86 defconfig kernel the results are: > > r11: used in 1704 fns, not used in 43310 fns, usage ratio:3.8% > r10: used in 3809 fns, not used in 41205 fns, usage ratio:8.5% >

[PATCH v5] fs: Add VirtualBox guest shared folder (vboxsf) support

2018-02-06 Thread Hans de Goede
VirtualBox hosts can share folders with guests, this commit adds a VFS driver implementing the Linux-guest side of this, allowing folders exported by the host to be mounted under Linux. This driver depends on the guest <-> host IPC functions exported by the vboxguest driver. Signed-off-by: Hans d

[PATCH] usb: gadget: udc: change comparison to bitshift when dealing with a mask

2018-02-06 Thread Wolfram Sang
Due to a typo, the mask was destroyed by a comparison instead of a bit shift. Reported-by: Geert Uytterhoeven Signed-off-by: Wolfram Sang --- Only build tested. drivers/usb/gadget/udc/goku_udc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/goku_udc

[PATCH] can: m_can: change comparison to bitshift when dealing with a mask

2018-02-06 Thread Wolfram Sang
Due to a typo, the mask was destroyed by a comparison instead of a bit shift. Reported-by: Geert Uytterhoeven Signed-off-by: Wolfram Sang --- Only build tested. drivers/net/can/m_can/m_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/m_can/m_can.c b/dri

Re: [PATCH] usb: gadget: udc: change comparison to bitshift when dealing with a mask

2018-02-06 Thread Wolfram Sang
On Tue, Feb 06, 2018 at 09:50:40AM +0100, Wolfram Sang wrote: > Due to a typo, the mask was destroyed by a comparison instead of a bit > shift. > > Reported-by: Geert Uytterhoeven > Signed-off-by: Wolfram Sang > --- > Only build tested. Add. note: according to 'git grep', this macro is unused c

Re: [PATCH 1/3] sched: Stop nohz stats when decayed

2018-02-06 Thread Vincent Guittot
Hi Peter, On 6 February 2018 at 09:32, Vincent Guittot wrote: > Stopped the periodic update of blocked load when all idle CPUs have fully > decayed. We introduce a new nohz.has_blocked that reflect if some idle > CPUs has blocked load that have to be periodiccally updated. nohz.has_blocked > is s

RE: [PATCH v6 1/2] staging: fsl-mc: Move core bus out of staging

2018-02-06 Thread Bogdan Purcareata
> -Original Message- > From: Horia Geantă > Sent: Tuesday, February 06, 2018 9:18 AM > To: Bogdan Purcareata ; gre...@linuxfoundation.org; > Laurentiu Tudor ; Ruxandra Ioana Ciocoi Radulescu > > Cc: stuyo...@gmail.com; a...@arndb.de; r...@kernel.org; Razvan Stefanescu > ; Ioana Ciornei ; N

Re: WARNING in handle_ept_misconfig

2018-02-06 Thread Wanpeng Li
2018-02-06 16:30 GMT+08:00 syzbot : > syzbot has found reproducer for the following crash on upstream commit > 2deb41b245320f0eefb535a5c8ea19ed66b33c04 (Mon Feb 5 18:07:40 2018 +) > Merge tag 'rproc-v4.16' of git://github.com/andersson/remoteproc > > So far this crash happened 234 times on linu

Re: [PATCH -mm] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-06 Thread Minchan Kim
On Tue, Feb 06, 2018 at 04:39:18PM +0800, Huang, Ying wrote: > Hi, Minchan, > > Minchan Kim writes: > > > Hi Huang, > > > > On Tue, Feb 06, 2018 at 02:54:04PM +0800, Huang, Ying wrote: > >> From: Huang Ying > >> > >> It was reported by Sergey Senozhatsky that if THP (Transparent Huge > >> Page

Re: [PATCH v3 2/3] x86/entry: Clear registers for 64bit exceptions/interrupts

2018-02-06 Thread Dominik Brodowski
On Mon, Feb 05, 2018 at 05:18:11PM -0800, Dan Williams wrote: > @@ -1178,6 +1180,7 @@ ENTRY(paranoid_entry) > cld > SAVE_C_REGS 8 > SAVE_EXTRA_REGS 8 > + CLEAR_REGS_NOSPEC > ENCODE_FRAME_POINTER 8 > movl$1, %ebx > movl$MSR_GS_BASE, %ecx > @@ -1185,7 +

Re: [PATCH v1 1/2] dt-bindings/display/panel: otm8009a: Add optional power-supply property

2018-02-06 Thread Yannick FERTRE
Reviewed-by: Yannick Fertré On 02/05/2018 10:45 AM, Philippe Cornu wrote: > Some boards use a dedicated voltage regulator for this panel. > Add & document this related optional power-supply property. > > Signed-off-by: Philippe Cornu > --- > Documentation/devicetree/bindings/display/panel/ori

Re: [PATCH v1 2/2] drm/panel: otm8009a: Add support for the optional power-supply

2018-02-06 Thread Yannick FERTRE
Reviewed-by: Yannick Fertré On 02/05/2018 10:45 AM, Philippe Cornu wrote: > Add support for the optional power-supply. > > Note: A "dummy regulator" is returned by devm_regulator_get() > if the optional regulator is not present in the device tree, > simplifying the source code when enabling/disa

Re: [PATCH v2 05/10] ARM: sun8i: h3: add operating-points-v2 table for CPU

2018-02-06 Thread Maxime Ripard
On Tue, Feb 06, 2018 at 12:49:00PM +0800, Icenowy Zheng wrote: > The CPU on Allwinner H3 can do dynamic frequency scaling. > > Add a DVFS table based on the one shipped with Allwinner's H3 SDK. The > voltage-frequency relationship seems to be conservative, and Armbian has > another DVFS table whic

Re: [PATCH v2 05/10] ARM: sun8i: h3: add operating-points-v2 table for CPU

2018-02-06 Thread Icenowy Zheng
于 2018年2月6日 GMT+08:00 下午5:06:56, Maxime Ripard 写到: >On Tue, Feb 06, 2018 at 12:49:00PM +0800, Icenowy Zheng wrote: >> The CPU on Allwinner H3 can do dynamic frequency scaling. >> >> Add a DVFS table based on the one shipped with Allwinner's H3 SDK. >The >> voltage-frequency relationship seems t

Re: [PATCH v2 07/10] ARM: sun8i: h3: add SY8113B regulator used by Orange Pi One board

2018-02-06 Thread Maxime Ripard
On Tue, Feb 06, 2018 at 12:49:02PM +0800, Icenowy Zheng wrote: > Orange Pi One board has a SY8113B regulator, which is controlled via > GPIO and capable of outputing 1.1V when the PL6 GPIO is set to output 0 > or 1.3V when the PL6 GPIO is set to input or output 1, and the output is > the power supp

Re: [RESEND RFC PATCH V3] sched: Improve scalability of select_idle_sibling using SMT balance

2018-02-06 Thread Peter Zijlstra
On Mon, Feb 05, 2018 at 02:09:11PM -0800, Subhra Mazumdar wrote: > The pseudo random is also used for choosing a random core to compare with, > how will transposing achieve that? Not entirely sure what your point is. Current code doesn't compare to just _one_ other core, and I don't think we'd eve

Re: [PATCH v1 1/2] drm/stm: ltdc: add non-alpha color formats

2018-02-06 Thread Yannick FERTRE
Reviewed-by: Yannick Fertré On 02/01/2018 11:42 AM, Philippe Cornu wrote: > ltdc supports natively some color formats with alpha (like > ARGB, ARGB1555, ARGB...). Related non-alpha formats are > supported too (ARGB->XRGB, ARGB->XRGB...) by > adjusting ltdc blending factor

Re: [PATCH v1 2/2] drm/stm: ltdc: remove non-alpha color formats on layer 2 for older hw

2018-02-06 Thread Yannick FERTRE
Reviewed-by: Yannick Fertré On 02/01/2018 11:42 AM, Philippe Cornu wrote: > Hw older versions support non-alpha color formats derived > from native alpha color formats only on the primary layer. > For instance, RG16 native format without alpha works fine > on 2nd layer but XR24 (derived color fo

Re: linux-next: manual merge of the tip tree with Linus' tree

2018-02-06 Thread Peter Zijlstra
On Tue, Feb 06, 2018 at 11:54:38AM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the tip tree got a conflict in: > > include/linux/sched/mm.h > > between commit: > > d70f2a14b72a ("include/linux/sched/mm.h: uninline mmdrop_async(), etc") FWIW, akpm has a patch th

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-02-06 Thread David Woodhouse
On Sun, 2018-02-04 at 19:43 +0100, Thomas Gleixner wrote: > Yet another possibility is to avoid the function entry and accouting magic > and use the generic gcc return thunk: > > __x86_return_thunk: > call L2 > L1: > pause > lfence > jmp L1 > L2: > lea 8(%

Re: [PATCH v3 2/3] x86/entry: Clear registers for 64bit exceptions/interrupts

2018-02-06 Thread Dominik Brodowski
On Mon, Feb 05, 2018 at 05:18:11PM -0800, Dan Williams wrote: > From: Andi Kleen > > Clear the 'extra' registers on entering the 64bit kernel for exceptions > and interrupts. The common registers are not cleared since they are > likely clobbered well before they can be exploited in a speculative

Re: It's back! (Re: [REGRESSION] NFS is creating a hidden port (left over from xs_bind() ))

2018-02-06 Thread Daniel Reichelt
On 02/06/2018 01:24 AM, Trond Myklebust wrote: > Does the following fix the issue? > > 8<--- > From 9b30889c548a4d45bfe6226e58de32504c1d682f Mon Sep 17 00:00:00 2001 > From: Trond Myklebust > Date: Mon, 5 Feb 2018 10:20:06 -0500 > Subject: [PATCH] SUNRP

[PATCH] printk: Print error pointers as negative integers for %p

2018-02-06 Thread David Howells
The new hashing feature of unadorned printk("%p") makes it hard to spot if the pointer actually carries an error value. Make %p print any pointer that matches IS_ERR() as a negative integer. Should I set SMALL and the field_width as well, I wonder? Signed-off-by: David Howells --- lib/vsprint

Re: [RFC PATCH 2/5] sched: Add NOHZ_STATS_KICK

2018-02-06 Thread Vincent Guittot
On 5 February 2018 at 23:18, Valentin Schneider wrote: > On 01/30/2018 11:41 AM, Valentin Schneider wrote: >> [...] >>> I have studied a way to keep track of how many cpus still have blocked >>> load to try to minimize the number of useless ilb kick but this add >>> more atomic operations which ca

Re: [PATCH 4/5] lightnvm: pblk: add padding distribution sysfs attribute

2018-02-06 Thread Hans Holmberg
Hi Matias, On Wed, Jan 31, 2018 at 9:44 AM, Matias Bjørling wrote: > On 01/31/2018 03:06 AM, Javier González wrote: >> >> From: Hans Holmberg >> >> When pblk receives a sync, all data up to that point in the write buffer >> must be comitted to persistent storage, and as flash memory comes with a

Re: [PATCH AUTOSEL for 4.14 029/110] ASoC: nau8825: fix issue that pop noise when start capture

2018-02-06 Thread Greg KH
On Tue, Feb 06, 2018 at 01:41:29AM +, Sasha Levin wrote: > On Mon, Feb 05, 2018 at 11:41:54AM +, Mark Brown wrote: > >On Sat, Feb 03, 2018 at 06:00:42PM +, Sasha Levin wrote: > >> From: Abhijeet Kumar > >> > >> [ Upstream commit d070f7c703ef26e3db613f24206823f916272fc6 ] > >> > >> In s

[PATCH 5/7] arm64: dts: Add watchdog device node for Spreadtrum SC9860

2018-02-06 Thread Baolin Wang
Add the watchdog device node for Spreadtrum SC9860 platform to watch the system's stability. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi |9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2

[PATCH 7/7] arm64: dts: Add SC2731 PMIC dts file for Spreadtrum SC9860

2018-02-06 Thread Baolin Wang
The Spreadtrum SC9860 platform has one SC2731 PMIC, and the SC2731 PMIC integrates all mobile handset power management, audio codec, battery management and user interface support function in a single chip. This patch adds the SC2731 dts file, as well as adding the RTC and regulator device node for

[PATCH 1/7] arm64: dts: Add hwspinlock node for Spreadtrum SC9860

2018-02-06 Thread Baolin Wang
The Spreadtrum SC9860 platform only has one hardware spinlock device, which is located on AON system of Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/spr

[PATCH 2/7] arm64: dts: Add ADI device node for Spreadtrum SC9860

2018-02-06 Thread Baolin Wang
We will access the PMIC through ADI controller, thus this patch adds the ADI device node for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sp9860g-1h10.dts |1 + arch/arm64/boot/dts/sprd/whale2.dtsi |9 + 2 files changed, 10 insertions(+

[PATCH 6/7] arm64: dts: Add DMA device node for Spreadtrum SC9860

2018-02-06 Thread Baolin Wang
The Spreadtrum SC9860 platform has two DMA controllers, one is located on the ap-ahb system, and another one is located on the agcp system. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 34 ++ 1 file changed, 34 insertions(+) diff --git

[PATCH 3/7] arm64: dts: Add pin controller node for Spreadtrum SC9860

2018-02-06 Thread Baolin Wang
This patch adds the pin controller device node for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index 63fe89

[PATCH 4/7] arm64: dts: Add timer node for Spreadtrum SC9860

2018-02-06 Thread Baolin Wang
We will use one always-on timer to be the broadcast device, thus add the timer device node for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arc

[PATCH 1/2] trace_uprobe: Use %lx to display offset

2018-02-06 Thread Ravi Bangoria
Kees suggested that, 'offset' is unsigned long, not a pointer, thus %lx should be used to print it, not the %px. Also, I don't see any reason to prepend offset with 0s. Replace %px with %lx. Before patch: # echo "p:probe_a/main /tmp/a.out:0x594" > uprobe_events # cat uprobe_events p:probe_

[PATCH 2/2] trace_uprobe: Simplify probes_seq_show()

2018-02-06 Thread Ravi Bangoria
Simplify probes_seq_show() function. We are using %lx to display the offset and we don't prepend unnecessary 0s in the offset. Signed-off-by: Ravi Bangoria --- kernel/trace/trace_uprobe.c | 21 +++-- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/kernel/trace/trac

Re: [PATCH 06/14] kbuild: define PYTHON2 and PYTHON3 variables instead of PYTHON

2018-02-06 Thread Greg Kroah-Hartman
On Tue, Feb 06, 2018 at 09:34:46AM +0900, Masahiro Yamada wrote: > The variable 'PYTHON' allows users to specify a proper executable > name in case the default 'python' does not work. However, this does > not address the case where both Python 2 and Python 3 scripts are > used in one system. > >

Re: [PATCH v3 1/7] drm/panel: simple: add support for Ampire AM-800480AYTZQW-00H

2018-02-06 Thread Philipp Zabel
Hi Jagan, On Sun, 2018-02-04 at 23:19 +0530, Jagan Teki wrote: > This adds support for the Ampire AM-800480AYTZQW-00H 7.0" WGA LCD, > which can be supported by the simple panel driver. > > Signed-off-by: Jagan Teki > Reviewed-by: Rob Herring > --- > Changes for v3: > - collect Rob reiew tag >

Re: [PATCH 1/3] perf tools: Fix period/freq terms setup

2018-02-06 Thread Jiri Olsa
On Mon, Feb 05, 2018 at 06:51:05PM -0800, Stephane Eranian wrote: SNIP > > > Looks like this is working then, great! > > Now, related to profiling and reporting. There is still an issue I > keep running into > with grouping. I want to sample on N events, where N > number of hw counters. > Yet I

Re: [PATCH 00/14] Add Kconfig unit tests

2018-02-06 Thread Greg Kroah-Hartman
On Tue, Feb 06, 2018 at 09:34:40AM +0900, Masahiro Yamada wrote: > I am applying various patches to Kconfig these days. > > However, I fear regressions. I have been thinking of unit-tests. > > There are various cryptic parts in Kconfig and corner cases where > it is difficult to notice breakage.

Re: [PATCH BUGFIX 1/1] block, bfq: add requeue-request hook

2018-02-06 Thread Paolo Valente
> Il giorno 06 feb 2018, alle ore 08:56, Mike Galbraith ha > scritto: > > On Tue, 2018-02-06 at 08:44 +0100, Oleksandr Natalenko wrote: >> Hi, Paolo. >> >> I can confirm that this patch fixes cfdisk hang for me. I've also tried >> to trigger the issue Mike has encountered, but with no luck (

Re: [PATCH v5 00/11] PCI: Add support to the Cadence PCIe controller

2018-02-06 Thread Lorenzo Pieralisi
On Tue, Jan 30, 2018 at 10:12:36PM +0100, Cyrille Pitchen wrote: [...] > >>> v4 -> v5: > >>> - rebase on today's (20180128) linux-pci/next > >> > >> Don't bother rebasing onto linux-pci/next. > >> > >> If your patches actually *depend* on something that has already been > >> merged onto a PCI top

Re: [PATCH 3/4] lightnvm: add 2.0 geometry identification

2018-02-06 Thread Matias Bjørling
On 02/05/2018 07:04 PM, Randy Dunlap wrote: On 02/05/2018 04:15 AM, Matias Bjørling wrote: Implement the geometry data structures for 2.0 and enable a drive to be identified as one, including exposing the appropriate 2.0 sysfs entries. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core

Re: [PATCH 07/20] riscv: Remove ARCH_WANT_OPTIONAL_GPIOLIB select

2018-02-06 Thread Linus Walleij
On Mon, Feb 5, 2018 at 2:21 AM, Ulf Magnusson wrote: > The ARCH_WANT_OPTIONAL_GPIOLIB symbol was removed in commit 65053e1a7743 > ("gpio: delete ARCH_[WANTS_OPTIONAL|REQUIRE]_GPIOLIB"). GPIOLIB should > just be selected explicitly if needed. > > Remove the ARCH_WANT_OPTIONAL_GPIOLIB select from R

Re: [PATCH -mm] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-06 Thread Sergey Senozhatsky
Hello, On (02/06/18 01:02), Minchan Kim wrote: [..] > Can't we simple do like that if you want to make it simple and rely on someone > who makes frontswap THP-aware later? > > diff --git a/mm/swapfile.c b/mm/swapfile.c > index 42fe5653814a..4bf1725407aa 100644 > --- a/mm/swapfile.c > +++ b/mm/swa

Re: [PATCH] nvme-pci: Fix incorrect use of CMB size to calculate q_depth

2018-02-06 Thread Sagi Grimberg
Looks good, Reviewed-by: Sagi Grimberg I'll pick this one up unless someone thinks I shouldn't..

Re: [RFCv2 00/17] Request API, take three

2018-02-06 Thread Hans Verkuil
Hi Alexandre, On 01/31/18 11:24, Alexandre Courbot wrote: > This is a quickly-put together revision that includes and uses Hans' work to > use v4l2_ctrl_handler as the request state holder for V4L2 devices. Although > minor fixes have also been applied, there are still a few comments from the > pr

Re: [PATCH 07/20] riscv: Remove ARCH_WANT_OPTIONAL_GPIOLIB select

2018-02-06 Thread Linus Walleij
On Tue, Feb 6, 2018 at 12:49 AM, Ulf Magnusson wrote: > On Tue, Feb 6, 2018 at 12:38 AM, Ulf Magnusson wrote: >> On Tue, Feb 6, 2018 at 12:25 AM, Linus Walleij >> wrote: >>> On Mon, Feb 5, 2018 at 2:21 AM, Ulf Magnusson wrote: >>> The ARCH_WANT_OPTIONAL_GPIOLIB symbol was removed in commi

[PATCH v2 00/16] add dts nodes to MT7622 SoC

2018-02-06 Thread sean.wang
From: Sean Wang Changes since v1: - add usb, thermal, HSDMA, mmc related nodes - fix Warning (unit_address_vs_reg): Node /oscillator@0 has a unit name, but no reg property in patch 2 - fix Warning (pci_bridge): Node /pcie@1a14/pcie@0,0 missing bus-range for PCI bridge - fix Warning (pci_b

[PATCH v2 04/16] arm64: dts: mt7622: add pinctrl related device nodes

2018-02-06 Thread sean.wang
From: Sean Wang add pinctrl device nodes and rfb1 board, additionally include all pin groups possible being used on rfb1 board and available gpio keys. Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 200 +++ arch/arm64/boot/dts/mediatek/mt76

[PATCH v2 02/16] arm64: dts: mt7622: add clock controller device nodes

2018-02-06 Thread sean.wang
From: Sean Wang Add clock controller nodes for MT7622 and include header for topckgen, infracfg, pericfg, apmixedsys, ethsys, sgmiisys, pciesys and ssusbsys for those devices nodes to be added afterwards. In addition, provides an oscillator node for the source of PLLs and dummy clock for PWARP t

[PATCH v2 10/16] arm64: dts: mt7622: add ethernet device nodes

2018-02-06 Thread sean.wang
From: Sean Wang add ethernet device nodes which enable GMAC1 with SGMII interface Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 22 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 31 2 files changed, 53 insertions(

[PATCH v2 15/16] arm64: dts: mt7622: add High-Speed DMA device nodes

2018-02-06 Thread sean.wang
From: Sean Wang add High-Speed DMA (HSDMA) nodes Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 6cf67dd..ed7ee78 100

[PATCH v2 16/16] arm64: dts: mt7622: add mmc related device nodes

2018-02-06 Thread sean.wang
From: Sean Wang add mmc device nodes and proper setup for used pins Signed-off-by: Sean Wang Signed-off-by: Jimin Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 106 +++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 20 + 2 files changed, 126 insertions(

[PATCH v2 11/16] arm64: dts: mt7622: add PCIe device nodes

2018-02-06 Thread sean.wang
From: Ryder Lee This patch adds PCIe support fot MT7622. Signed-off-by: Ryder Lee Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 10 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 74 2 files changed, 84 insertions(+) diff --git

[PATCH v2 13/16] arm64: dts: mt7622: add usb device nodes

2018-02-06 Thread sean.wang
From: Chunfeng Yun add xhci node and usb3 phy nodes Signed-off-by: Chunfeng Yun Signed-off-by: Sean Wang Tested-by: Jumin Li --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 28 +++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 51 2 files changed,

[PATCH v2 03/16] arm64: dts: mt7622: add power domain controller device nodes

2018-02-06 Thread sean.wang
From: Sean Wang add power domain controller nodes Signed-off-by: Sean Wang Cc: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dts

[PATCH v2 12/16] arm64: dts: mt7622: add SATA device nodes

2018-02-06 Thread sean.wang
From: Ryder Lee This patch adds SATA support fot MT7622. Signed-off-by: Ryder Lee Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 8 ++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 40 2 files changed, 48 insertions(+) diff --gi

[PATCH v2 08/16] arm64: dts: mt7622: add SoC and peripheral related device nodes

2018-02-06 Thread sean.wang
From: Sean Wang Add watchdog, rtc, auxadc, cir, efuse, rng, uart[1-4], pwm, i2c[0-2], spi[0-1] and btif nodes Signed-off-by: Sean Wang Cc: Andrew-CT Chen Cc: Zhiyong Tao Cc: Zhi Mao Cc: Jun Gao Cc: Leilk Liu Cc: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 54

[PATCH v2 07/16] arm64: dts: mt7622: turn uart0 clock to real ones

2018-02-06 Thread sean.wang
From: Sean Wang This patch also cleans up two oscillators that provide clocks for MT7623. Switch the uart clocks to the real ones while at it. Signed-off-by: Sean Wang Cc: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 15 ++- 1 file changed, 2 insertions(+), 13 d

[PATCH v2 14/16] arm64: dts: mt7622: add thermal and related nodes

2018-02-06 Thread sean.wang
From: Sean Wang add nodes for the thermal controller and associated thermal zone using CPU as the cooling device for each trip point. In addition, add a fixup for thermal_calibration on nvmem should be 12 bytes as the minimal requirement. Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediat

[PATCH v2 05/16] arm64: dts: mt7622: add PMIC MT6380 related nodes

2018-02-06 Thread sean.wang
From: Sean Wang Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380 regulator nodes in an alone file to allow similar boards using MT6380 able to resue the configuration. Signed-off-by: Sean Wang Cc: Mark Brown Cc: Matthias Brugger Cc: Philippe Ombredanne --- arch/arm64/boot/d

[PATCH v2 09/16] arm64: dts: mt7622: add flash related device nodes

2018-02-06 Thread sean.wang
From: Sean Wang add nodes for NOR flash, parallel Nand flash with error correction code support. Signed-off-by: Sean Wang Cc: RogerCC Lin Cc: Guochun Mao --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 21 + arch/arm64/boot/dts/mediatek/mt7622.dtsi | 34 +++

[PATCH v2 06/16] arm64: dts: mt7622: add cpufreq related device nodes

2018-02-06 Thread sean.wang
From: Sean Wang Add clocks, regulators and opp information into cpu nodes. In addition, the power supply for cpu nodes is deployed on mt7622-rfb1 board. Signed-off-by: Sean Wang Cc: Viresh Kumar --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 12 +++ arch/arm64/boot/dts/mediatek/mt7622

[PATCH v2 01/16] dt-bindings: clock: mediatek: add missing required #reset-cells

2018-02-06 Thread sean.wang
From: Sean Wang All ethsys, pciesys and ssusbsys internally include reset controller, so explicitly add back these missing cell definitions to related bindings and examples. Signed-off-by: Sean Wang Cc: Rob Herring Cc: Stephen Boyd Reviewed-by: Rob Herring --- Documentation/devicetree/bindi

Re: [PATCH] sched/core: avoid spurious spinlock recursion splats

2018-02-06 Thread Peter Zijlstra
On Mon, Feb 05, 2018 at 03:51:18PM +, Mark Rutland wrote: > However, this happens *after* prev->on_cpu is cleared, which allows prev > to be scheduled on another CPU. If prev then attempts to acquire the > same rq lock, before the updated rq->lock.owner is made visible, it will > see itself as

Re: [PATCH 05/10] tools headers: Synchoronize x86 features UAPI headers

2018-02-06 Thread David Woodhouse
On Mon, 2018-02-05 at 16:56 -0300, Arnaldo Carvalho de Melo wrote: > > None will entail changes in the tools/perf/, synchronizing to elliminate > these perf build warnings: > >   Warning: Kernel ABI header at > 'tools/arch/x86/include/asm/disabled-features.h' differs from latest version > at

[PATCH/RFC 3/6] usb: gadget: Add NO_DMA dummies for DMA mapping API

2018-02-06 Thread Geert Uytterhoeven
Add dummies for usb_gadget_{,un}map_request{,_by_dev}(), to allow compile-testing if NO_DMA=y. This prevents the following from showing up later: ERROR: "usb_gadget_unmap_request_by_dev" [drivers/usb/renesas_usbhs/renesas_usbhs.ko] undefined! ERROR: "usb_gadget_map_request_by_dev" [driv

[PATCH/RFC 5/6] scsi: Add NO_DMA dummies for SCSI DMA mapping API

2018-02-06 Thread Geert Uytterhoeven
Add dummies for scsi_dma_{,un}map(), to allow compile-testing if NO_DMA=y. This prevents the following from showing up later: ERROR: "scsi_dma_unmap" [drivers/firewire/firewire-sbp2.ko] undefined! ERROR: "scsi_dma_map" [drivers/firewire/firewire-sbp2.ko] undefined! Signed-off-by: Geert U

[PATCH/RFC 1/6] dma-mapping: Convert NO_DMA get_dma_ops() into a real dummy

2018-02-06 Thread Geert Uytterhoeven
If NO_DMA=y, get_dma_ops() returns a reference to the non-existing symbol bad_dma_ops, thus causing a link failure if it is ever used. Make get_dma_ops() return NULL instead, to avoid the link failure. This allows to improve compile-testing, and limits the need to keep on sprinkling dependencies o

[PATCH/RFC 4/6] mm: Add NO_DMA dummies for DMA pool API

2018-02-06 Thread Geert Uytterhoeven
Add dummies for dma{,m}_pool_{create,destroy,alloc,free}(), to allow compile-testing if NO_DMA=y. This prevents the following from showing up later: ERROR: "dma_pool_destroy" [drivers/usb/mtu3/mtu3.ko] undefined! ERROR: "dma_pool_free" [drivers/usb/mtu3/mtu3.ko] undefined! ERROR: "dma

[PATCH/RFC 2/6] dma-coherent: Add NO_DMA dummies for managed DMA API

2018-02-06 Thread Geert Uytterhoeven
Add dummies for dmam_{alloc,free}_coherent(), to allow compile-testing if NO_DMA=y. This prevents the following from showing up later: ERROR: "dmam_alloc_coherent" [drivers/net/ethernet/arc/arc_emac.ko] undefined! ERROR: "dmam_free_coherent" [drivers/net/ethernet/apm/xgene/xgene-enet.ko]

[PATCH/RFC 6/6] Treewide: Remove depends on HAS_DMA in case of platform dependency

2018-02-06 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [PATCH] nvme-pci: Fix incorrect use of CMB size to calculate q_depth

2018-02-06 Thread Max Gurtovoy
On 2/6/2018 11:48 AM, Sagi Grimberg wrote: Looks good, Reviewed-by: Sagi Grimberg I'll pick this one up unless someone thinks I shouldn't.. Looks good to me (I can imagine what scenario failed this :) ), Reviewed-by: Max Gurtovoy ___ Linux-n

[PATCH/RFC 0/6] Allow compile-testing NO_DMA

2018-02-06 Thread Geert Uytterhoeven
Hi all, If NO_DMA=y, get_dma_ops() returns a reference to the non-existing symbol bad_dma_ops, thus causing a link failure if it is ever used. The intention of this is twofold: 1. To catch users of the DMA API on systems that do no support the DMA mapping API, 2. To avoid buildin

[PATCH RFC 1/1] iommu/arm-smmu: Fix context fault message considering non-NTS

2018-02-06 Thread Vivek Gautam
SMMU_CBn_FSYNR0 definition from SMMU v2 architecture document says that, the S1CBNDX[23:16] field is only valid if SMMU_IDR0.NTS==1. So, update the fsynr in context bank fault handler, so that the fault message displays cbndx only when we have nested translations enabled. Otherwise, it is confusing

[PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu()

2018-02-06 Thread Kirill Tkhai
Recent times kvmalloc() begun widely be used in kernel. Some of such memory allocations have to be freed after rcu grace period, and this patchset introduces a generic primitive for doing this. Actually, everything is made in [1/2]. Patch [2/2] is just added to make new kvfree_rcu() have the first

[PATCH 1/2] rcu: Transform kfree_rcu() into kvfree_rcu()

2018-02-06 Thread Kirill Tkhai
Recent times kvmalloc() begun widely be used in kernel. Some of such memory allocations have to be freed after rcu grace period, and this patch introduces a generic primitive for doing this. Currently, there is kfree_rcu() primitive in kernel, which encodes rcu_head offset inside freed structure o

[PATCH 2/2] mm: Use kvfree_rcu() in update_memcg_params()

2018-02-06 Thread Kirill Tkhai
Make update_memcg_params() to use generic kvfree_rcu() helper and remove free_memcg_params() code. Signed-off-by: Kirill Tkhai --- mm/slab_common.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mm/slab_common.c b/mm/slab_common.c index 10f127b2de7c..92d4a3a9471d

  1   2   3   4   5   6   7   8   9   10   >