Re: [PATCH v4 1/4] usb: dbc: early driver for xhci debug capability

2016-11-11 Thread Lu Baolu
Hi Peter, On 11/11/2016 08:28 PM, Peter Zijlstra wrote: > On Fri, Nov 11, 2016 at 12:33:29PM +0800, Lu Baolu wrote: > >> Things become complicated when it comes to USB debug port. >> But it's still addressable. >> >> At this time, we can do it like this. >> >> write() >> { >> if (in_nmi() &&

Re: [PATCH] iproute2: ss: escape all null bytes in abstract unix domain socket

2016-11-11 Thread Stephen Hemminger
On Sat, 29 Oct 2016 22:20:19 +0300 Isaac Boukris wrote: > Abstract unix domain socket may embed null characters, > these should be translated to '@' when printed by ss the > same way the null prefix is currently being translated. > > Signed-off-by: Isaac Boukris Applied

kvm: suspicious RCU usage/missed lock in kvm_lapic_set_vapic_addr

2016-11-11 Thread Dmitry Vyukov
Hello, I've got the following warning while running syzkaller fuzzer: [ INFO: suspicious RCU usage. ] 4.9.0-rc4+ #47 Not tainted --- ./include/linux/kvm_host.h:536 suspicious rcu_dereference_check() usage! other info that might help us debug this: rcu_scheduler_acti

[PATCH 09/10] ARM: dts: sun8i-h3: Add device nodes for audio codec and its analog controls

2016-11-11 Thread Chen-Yu Tsai
Now that we support the audio codec found on the Allwinner H3 SoC, add device nodes for it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-h3.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi i

[PATCH 02/10] ASoC: sunxi: Add support for A23/A33/H3 codec's analog path controls

2016-11-11 Thread Chen-Yu Tsai
The internal codec on A23/A33/H3 is split into 2 parts. The analog path controls are routed through an embedded custom register bus accessed through the PRCM block. The SoCs share a common set of inputs, outputs, and audio paths. The following table lists the differences.

[PATCH 00/10] ASoC: sunxi: Add support for audio codec in A23/H3 SoCs

2016-11-11 Thread Chen-Yu Tsai
Hi everyone, This series adds support for the audio codec found in Allwinner A23 and H3 SoCs. The design and data paths are similar to the audio codec found in earlier SoCs such as the A31. The analog audio paths are symmetrical with left/right channels and down-mix selectors for mono differential

[PATCH 07/10] ARM: dts: sun8i-a23: q8-tablet: Enable internal audio codec

2016-11-11 Thread Chen-Yu Tsai
The A23 Q8 tablets have an internal mono speaker w/ external amp which has a shutdown control tied to a GPIO pin. Both the speaker amp and the headphone jack are tied to the HP output pins. While the speaker is mono, the headset jack is stereo. Unfortunately the driver does not support automatic sw

[PATCH 06/10] ARM: dts: sun8i-a23: Add device node for internal audio codec

2016-11-11 Thread Chen-Yu Tsai
Now that we have a device tree binding and driver for the A23's internal audio codec, add a device node for it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a23.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a23.dtsi b/arch/arm/boot/

[PATCH 08/10] ASoC: sun4i-codec: Add support for H3 codec

2016-11-11 Thread Chen-Yu Tsai
The codec on the H3 is similar to the one found on the A31. One key difference is the analog path controls are routed through the PRCM block. This is supported by the sun8i-codec-analog driver, and tied into this codec driver with the audio card's aux_dev. In addition, the H3 has no HP (headphone)

[PATCH 01/10] ASoC: sunxi: Add bindings for A23/A33/H3 codec's analog path controls

2016-11-11 Thread Chen-Yu Tsai
The internal codec on A23/A33/H3 is split into 2 parts. The analog path controls are routed through an embedded custom register bus accessed through the PRCM block. The SoCs share a common set of inputs, outputs, and audio paths. The following table lists the differences.

[PATCH 05/10] ARM: dts: sun8i: Add codec analog path controls node in PRCM for A23/A33

2016-11-11 Thread Chen-Yu Tsai
On the A23/A33, the internal codec's analog path controls are located in the PRCM node. Add a sub-device node to the PRCM for it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a23-a33.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a23-a33.dtsi b/

[PATCH 10/10] ARM: dts: sun8i-h3: orange-pi-pc: Enable audio codec

2016-11-11 Thread Chen-Yu Tsai
The Orange Pi PC routes the LINEOUT pins to the audio out jack on the board. The onboard microphone is routed to MIC1, with MBIAS providing power. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/

[PATCH 03/10] mfd: sun6i-prcm: Add codec analog controls sub-device for Allwinner A23

2016-11-11 Thread Chen-Yu Tsai
The PRCM block on the A23 contains a message box like interface to the registers for the analog path controls of the internal codec. Add a sub-device for it. Signed-off-by: Chen-Yu Tsai --- drivers/mfd/sun6i-prcm.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/m

[PATCH 04/10] ASoC: sun4i-codec: Add support for A23 codec

2016-11-11 Thread Chen-Yu Tsai
The codec in the A23 is similar to the one found on the A31. One key difference is the analog path controls are routed through the PRCM block. This is supported by the sun8i-codec-analog driver, and tied into this codec driver with the audio card's aux_dev. In addition, the A23 does not have LINEO

Re: [PATCH RFC] mm: Add debug_virt_to_phys()

2016-11-11 Thread Will Deacon
On Fri, Nov 11, 2016 at 04:44:43PM -0800, Florian Fainelli wrote: > When CONFIG_DEBUG_VM is turned on, virt_to_phys() maps to > debug_virt_to_phys() which helps catch vmalloc space addresses being > passed. This is helpful in debugging bogus drivers that just assume > linear mappings all over the p

Re: [PATCH] ARM: dts: vfxxx: Enable DMA for DSPI2 and DSPI3

2016-11-11 Thread maitysanchayan
On 16-11-11 20:46:12, Fabio Estevam wrote: > On Thu, Nov 10, 2016 at 9:45 AM, Sanchayan Maity > wrote: > > Enable DMA for DSPI2 and DSPI3 on Vybrid. > > You missed your Signed-off-by line. Argh...Sorry about that...Will send a follow patch with this fixed. - Sanchayan.

Re: [PATCH] clk: Register clkdev after setup of fixed-rate and fixed-factor clocks

2016-11-11 Thread Xiaolong Zhang
On 二, 10月 25, 2016 at 08:40:08下午 +, Stephen Boyd wrote: > On 10/22, Xiaolong Zhang wrote: > > On 四, 10月 20, 2016 at 04:01:03下午 -0700, Stephen Boyd wrote: > > > On 10/11, Orson Zhai wrote: > > > > From: Xiaolong Zhang > > > > > > > > When common kernel setups fixed clock, of_clk_provider will

Re: [PATCH 2/3] cpufreq: schedutil: move slow path from workqueue to SCHED_FIFO task

2016-11-11 Thread Viresh Kumar
On 12 November 2016 at 07:01, Saravana Kannan wrote: > Hold on a sec. I thought during LPC someone (Peter?) made a point that when > RT thread run, we should bump the frequency to max? I wasn't there but AFAIU, this is the case we have currently for the schedutil governor. And we (mobile world, L

Re: [PATCH 6/8] block: add scalable completion tracking of requests

2016-11-11 Thread Jens Axboe
On 11/10/2016 12:38 PM, Jan Kara wrote: On Wed 09-11-16 12:52:25, Jens Axboe wrote: On 11/09/2016 09:09 AM, Jens Axboe wrote: On 11/09/2016 02:01 AM, Jan Kara wrote: On Tue 08-11-16 08:25:52, Jens Axboe wrote: On 11/08/2016 06:30 AM, Jan Kara wrote: On Tue 01-11-16 15:08:49, Jens Axboe wrote

Re: [PATCH 2/3] cpufreq: schedutil: move slow path from workqueue to SCHED_FIFO task

2016-11-11 Thread Viresh Kumar
On 12 November 2016 at 03:46, Rafael J. Wysocki wrote: >> +static void sugov_work(struct kthread_work *work) >> { >> - struct sugov_policy *sg_policy = container_of(work, struct >> sugov_policy, work); >> + struct sugov_policy *sg_policy = >> + container_of(work, struc

Re: [PATCH 2/3] cpufreq: schedutil: move slow path from workqueue to SCHED_FIFO task

2016-11-11 Thread Viresh Kumar
On 11 November 2016 at 20:09, Peter Zijlstra wrote: > On Fri, Nov 11, 2016 at 03:32:04PM +0100, Tommaso Cucinotta wrote: >> >+struct sched_param param = { .sched_priority = 50 }; >> >> won't you have a tunable here? (sysctl?) > > You can use the regular userspace tools, like schedtool and chrt

Re: [PATCH 2/3] cpufreq: schedutil: move slow path from workqueue to SCHED_FIFO task

2016-11-11 Thread Viresh Kumar
On 11 November 2016 at 20:02, Tommaso Cucinotta wrote: > would you have an insight, as to what runtime/deadline/period to set, and/or > what specific timing constraints you'd like to set, just for this cpufreq > slowpath work? I don't have any such figures for not at least :(

Re: [PATCH 1/3] cpufreq: schedutil: enable fast switch earlier

2016-11-11 Thread Viresh Kumar
On 12 November 2016 at 03:28, Rafael J. Wysocki wrote: >> @@ -478,8 +484,6 @@ static void sugov_exit(struct cpufreq_policy *policy) >> struct sugov_tunables *tunables = sg_policy->tunables; >> unsigned int count; >> >> - cpufreq_disable_fast_switch(policy); >> - > > ->but wh

kvm: use-after-free in irq_bypass_register_consumer

2016-11-11 Thread Dmitry Vyukov
Hello, While running syzkaller fuzzer I got the following use-after-free report. On commit 015ed9433be2b476ec7e2e6a9a411a56e3b5b035 (Nov 11) BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x3d1/0x420 at addr 88003b5d8820 Write of size 8 by task syz-executor/25573 CPU: 0 PID: 2557

Re: [PATCH v2 2/9] arm64: dts: rockchip: add pd_sd power node for rk3399

2016-11-11 Thread Shawn Lin
Hi Caesar, On 2016/11/9 21:21, Caesar Wang wrote: From: zhangqing 1.add pd node for RK3399 Soc 2.create power domain tree 3.add qos node for domain 4.add the pd_sd consumers node I'm no sure if it is worth spliting out a seperated patch as it looks to me that you was doing 4 things within on

[PATCH] mm: disable numa migration faults for dax vmas

2016-11-11 Thread Dan Williams
Mark dax vmas as not migratable to exclude them from task_numa_work(). This is especially relevant for device-dax which wants to ensure predictable access latency and not incur periodic faults. Cc: Andrew Morton Cc: Michal Hocko Cc: Vlastimil Babka Cc: "Kirill A. Shutemov" Reported-by: Aneesh

Re: [PATCH v2 1/9] arm64: dts: rockchip: add eMMC's power domain support for rk3399

2016-11-11 Thread Shawn Lin
On 2016/11/9 21:21, Caesar Wang wrote: From: Ziyuan Xu Control power domain for eMMC via genpd to reduce power consumption. Signed-off-by: Elaine Zhang Signed-off-by: Ziyuan Xu Signed-off-by: Caesar Wang It was verified on my rk3399 evb with kernel4.4, so free feel to add my tag, Tested-

Re: [PATCH 3.12 89/91] PM / devfreq: Fix incorrect type issue.

2016-11-11 Thread Willy Tarreau
On Sat, Nov 12, 2016 at 03:02:23AM +, Ben Hutchings wrote: > On Tue, 2016-01-05 at 18:47 +0100, Jiri Slaby wrote: > > From: Xiaolong Ye > > > > 3.12-stable review patch.  If anyone has any objections, please let > > me know. > > > > === > > > > commit 5f25f066f75a67835abb5e40047

kvm: WARNING in kvm_load_guest_fpu

2016-11-11 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in kvm_load_guest_fpu: https://gist.githubusercontent.com/dvyukov/5bc076073b48772e22b5f33acbe2b743/raw/1000df869f0d58a5c6e637268453c711280b255d/gistfile1.txt On commit 015ed9433be2b476ec7e2e6a9a411a56e3b5b035 (Nov 11). WARNING: CPU: 3 PID: 23924 at .

Re: [PATCH RFC] mm: Add debug_virt_to_phys()

2016-11-11 Thread Florian Fainelli
Le 11/11/2016 à 17:49, Nicolas Pitre a écrit : > On Fri, 11 Nov 2016, Florian Fainelli wrote: > >> When CONFIG_DEBUG_VM is turned on, virt_to_phys() maps to >> debug_virt_to_phys() which helps catch vmalloc space addresses being >> passed. This is helpful in debugging bogus drivers that just assum

Re: [git pull] vfs.git

2016-11-11 Thread Yan, Zheng
> On 12 Nov 2016, at 01:25, Linus Torvalds > wrote: > > On Thu, Nov 10, 2016 at 10:05 PM, Al Viro wrote: >>Christoph's and Jan's aio fixes, fixup for generic_file_splice_read >> (removal of pointless detritus that actually breaks it when used for gfs2 >> ->splice_read()) and fixup for

Re: [PATCH 3.12 89/91] PM / devfreq: Fix incorrect type issue.

2016-11-11 Thread Ben Hutchings
On Tue, 2016-01-05 at 18:47 +0100, Jiri Slaby wrote: > From: Xiaolong Ye > > 3.12-stable review patch.  If anyone has any objections, please let > me know. > > === > > commit 5f25f066f75a67835abb5e400471a27abd09395b upstream. > > time_in_state in struct devfreq is defined as unsign

Re: [PATCH V6 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-11-11 Thread agustinv
Hey Lorenzo, Hanjun, On 2016-11-11 08:33, Hanjun Guo wrote: Hi Lorenzo, On 11/11/2016 01:58 AM, Lorenzo Pieralisi wrote: On Thu, Nov 10, 2016 at 10:02:35AM -0500, agust...@codeaurora.org wrote: Hey Hanjun, On 2016-11-09 21:36, Hanjun Guo wrote: Hi Marc, Rafael, Lorenzo, Since we agreed to

kvm: GPF in kvm_pic_set_irq

2016-11-11 Thread Dmitry Vyukov
Hello, The following program triggers GPF in kvm_pic_set_irq in run in a parallel loop: https://gist.githubusercontent.com/dvyukov/0d868a3fcec50758ccf638dc87827ab3/raw/526bb6285785137e5d7c89dad2bdd05c66337daf/gistfile1.txt On commit 015ed9433be2b476ec7e2e6a9a411a56e3b5b035 (Nov 11). general prot

Re: [RFC 00/17] clk: Add per-controller locks to fix deadlocks

2016-11-11 Thread Stephen Boyd
On 11/04, Marek Szyprowski wrote: > Hi Stephen, > > Krzysztof has left Samsung, but we would like to continue this task, because > the ABBA dead-locks related to global prepare lock becomes more and more > problematic for us to workaround. Hmm. Ok. Thanks for the info. > > On 2016-09-09 02:24,

[PATCH] [STYLE 2/2]staging:speakup:speakup_ltlk.c Preferred space around

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: spaces preferred around that '|,+' Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_ltlk.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/speak

[PATCH] [STYLE 1/2]staging:speakup:speakup_ltlk.c Block align on *

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: WARNING: Block comments should align the * on each line Modified multi line comment to single Removed blankline at end Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_ltlk.c | 8 +++- 1 file changed, 3 inser

Re: [PATCH 3.16 289/305] netfilter: x_tables: validate targets of jumps

2016-11-11 Thread Ben Hutchings
On Sat, 2016-08-13 at 20:30 +0200, Florian Westphal wrote: > Ben Hutchings wrote: > > 3.16.37-rc1 review patch.  If anyone has any objections, please let > > me know. > > > > -- > > > > From: Florian Westphal > > > > commit 36472341017529e2b12573093cc0f68719300997 upstream. >

Re: [PATCH] Security: selinux - Improvement in code readability when

2016-11-11 Thread Paul Moore
On Fri, Nov 11, 2016 at 3:48 AM, Shailendra Verma wrote: > From: "Shailendra Verma" > > There is no need to call kfree() if memdup_user() fails, as no memory > was allocated and the error in the error-valued pointer should be returned. > > Signed-off-by: Shailendra Verma > --- > security/selinu

[PATCH] [STYLE 3/3]staging:speakup:speakup_keypc.c Align around parenthesis

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: Alignment should match open parenthesis Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_keypc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/speakup/speakup_keypc.c b/d

Re: [GIT PULL] SCSI fixes for 4.9-rc3

2016-11-11 Thread Gabriel C
On 12.11.2016 02:08, Kashyap Desai wrote: >> -Original Message- >> From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- >> ow...@vger.kernel.org] On Behalf Of Gabriel C >> Sent: Friday, November 11, 2016 9:40 AM >> To: James Bottomley; Andrew Morton; Linus Torvalds >> Cc: linux-scsi

[PATCH] [STYLE 2/3]staging:speakup:speakup_keypc.c Preferred space around

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: spaces preferred around that '|,+,-' Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_keypc.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/sp

Re: Source address fib invalidation on IPv6

2016-11-11 Thread Jason A. Donenfeld
Hi David, On Fri, Nov 11, 2016 at 11:14 PM, David Ahern wrote: > What do you mean by 'valid dst'? ipv6 returns net->ipv6.ip6_null_entry on > lookup failures so yes dst is non-NULL but that does not mean the lookup > succeeded. What I mean is that it returns an ordinary dst, as if that souce ad

Re: [PATCH v3] PM / devfreq: Restart previous governor if new governor fails to start

2016-11-11 Thread Chanwoo Choi
2016-11-12 11:17 GMT+09:00 Chanwoo Choi : > 2016-11-12 8:25 GMT+09:00 Saravana Kannan : >> On 11/09/2016 04:10 PM, Chanwoo Choi wrote: >>> >>> Hi, >>> >>> On 2016년 11월 10일 05:34, Saravana Kannan wrote: On 11/08/2016 06:38 PM, Chanwoo Choi wrote: > > On 2016년 11월 09일 11:36, Chanwoo

Re: [PATCH v3] PM / devfreq: Restart previous governor if new governor fails to start

2016-11-11 Thread Chanwoo Choi
2016-11-12 8:25 GMT+09:00 Saravana Kannan : > On 11/09/2016 04:10 PM, Chanwoo Choi wrote: >> >> Hi, >> >> On 2016년 11월 10일 05:34, Saravana Kannan wrote: >>> >>> On 11/08/2016 06:38 PM, Chanwoo Choi wrote: On 2016년 11월 09일 11:36, Chanwoo Choi wrote: > > Hi, > > On 2016년 11월

[PATCH] [STYLE 1/3]staging:speakup:speakup_keypc.c Block text modification

2016-11-11 Thread Walt Feasel
Modified multi line comment to single Removed blankline at end Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_keypc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/speakup/speakup_keypc.c b/drivers/staging/speakup/speakup_keypc.c index

[PATCH] [STYLE]staging:speakup:speakup.h Space preferred around

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to CHECK: spaces preferred around that '|,+' Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/speakup/speakup.h b/drivers/stag

Re: [PATCH] PCI: rockchip: correct the use of FTS mask

2016-11-11 Thread Shawn Lin
On 2016/11/12 6:30, Bjorn Helgaas wrote: On Tue, Oct 18, 2016 at 04:13:04PM -0700, Brian Norris wrote: We're trying to mask out bits[23:8] while retaining [32:24, 7:0], but we're doing the inverse. That doesn't have too much effect, since we're setting all the [23:8] bits to 1, and the other bit

Re: [PATCH v6 05/07] iommu/ipmmu-vmsa: Add new IOMMU_DOMAIN_DMA ops

2016-11-11 Thread Laurent Pinchart
Hi Robin, On Friday 11 Nov 2016 14:44:29 Robin Murphy wrote: > On 11/11/16 01:50, Laurent Pinchart wrote: > > On Friday 21 Oct 2016 18:52:53 Robin Murphy wrote: > >> On 20/10/16 00:36, Magnus Damm wrote: > >>> From: Magnus Damm > >>> > >>> Introduce an alternative set of iommu_ops suitable for 6

kvm: WARNING In kvm_apic_accept_events

2016-11-11 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in kvm_apic_accept_events: https://gist.githubusercontent.com/dvyukov/95b845a2e637485568ea1ef181a72370/raw/d90717dd67128b21715c5e794568a1600f613d97/gistfile1.txt On commit 015ed9433be2b476ec7e2e6a9a411a56e3b5b035 (Nov 11). [ cut here ]--

Re: [PATCH] timers: Fix timer inaccuracy

2016-11-11 Thread Saravana Kannan
On 11/10/2016 02:07 AM, Thomas Gleixner wrote: On Wed, 9 Nov 2016, Joonwoo Park wrote: So this timer expired exactly a few micro seconds after arming and therefor violates the guarantee of firing not before the specified interval. So depending on when you arm the timer the expiry is going to

kvm: WARNING in __x86_set_memory_region

2016-11-11 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in __x86_set_memory_region if run in a loop: https://gist.githubusercontent.com/dvyukov/efadb6b001717a896b0c281f85880988/raw/17dda56adba33020d8f3b89bd91363b60f49be24/gistfile1.txt On commit 015ed9433be2b476ec7e2e6a9a411a56e3b5b035 (Nov 11). WARNING:

Re: [PATCH RFC] mm: Add debug_virt_to_phys()

2016-11-11 Thread Nicolas Pitre
On Fri, 11 Nov 2016, Florian Fainelli wrote: > When CONFIG_DEBUG_VM is turned on, virt_to_phys() maps to > debug_virt_to_phys() which helps catch vmalloc space addresses being > passed. This is helpful in debugging bogus drivers that just assume > linear mappings all over the place. > > For ARM,

Re: [PATCH 2/2] mm: THP page cache support for ppc64

2016-11-11 Thread Hugh Dickins
On Fri, 11 Nov 2016, Kirill A. Shutemov wrote: > On Fri, Nov 11, 2016 at 05:42:11PM +0530, Aneesh Kumar K.V wrote: > > > > doing this in do_set_pmd keeps this closer to where we set the pmd. Any > > reason you thing we should move it higher up the stack. We already do > > pte_alloc() at the same l

Re: [PATCH] drivers: tca8418: Change the interrupt type

2016-11-11 Thread Dmitry Torokhov
On Thu, Nov 10, 2016 at 10:13:02AM +0100, Maxime Ripard wrote: > On Wed, Nov 09, 2016 at 08:02:08PM -0800, Dmitry Torokhov wrote: > > On Wed, Nov 09, 2016 at 09:02:35AM +0100, Maxime Ripard wrote: > > > Hello Dmitry, > > > > > > On Tue, Nov 08, 2016 at 04:04:00PM -0800, Dmitry Torokhov wrote: > >

[GIT PULL] SCSI fixes for 4.9-rc4

2016-11-11 Thread James Bottomley
The megaraid_sas patch in here fixes a major regression in the last fix set that made all megaraid_sas cards unusable. It turns out no-one had actually tested such an "obvious" fix, sigh. The fix for the fix has been tested ... The next most serious is the vmw_pvscsi abort problem which basical

[PATCH 1/2] f2fs: use err for f2fs_preallocate_blocks

2016-11-11 Thread Jaegeuk Kim
This patch has no functional change. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 26 +- fs/f2fs/f2fs.h | 2 +- fs/f2fs/file.c | 35 +++ 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c in

[PATCH 2/2] f2fs: fix redundant block allocation

2016-11-11 Thread Jaegeuk Kim
In direct_IO path of f2fs_file_write_iter(), 1. f2fs_preallocate_blocks(F2FS_GET_BLOCK_PRE_DIO) -> allocate LBA X 2. f2fs_direct_IO() -> return 0; Then, f2fs_write_data_page() will allocate another LBA X+1. This makes EIO triggered by HM-SMR. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c

Re: [PATCH 2/3] cpufreq: schedutil: move slow path from workqueue to SCHED_FIFO task

2016-11-11 Thread Saravana Kannan
On 11/11/2016 02:16 PM, Rafael J. Wysocki wrote: On Fri, Nov 11, 2016 at 11:22 AM, Viresh Kumar wrote: If slow path frequency changes are conducted in a SCHED_OTHER context then they may be delayed for some amount of time, including indefinitely, when real time or deadline activity is taking pl

Re: [PATCH 0/4] x86: enable User-Mode Instruction Prevention

2016-11-11 Thread Ricardo Neri
On Fri, 2016-11-11 at 23:51 +0300, Stas Sergeev wrote: > 11.11.2016 07:14, Ricardo Neri пишет: > >> 10.11.2016 09:46, Ricardo Neri пишет: > >>> I took a closer look at the dosemu code. It appears that it does not > >>> purposely utilize SGDT to obtain the descriptor table while in vm86. It > >>> do

Re: [PATCH] PCI: move cfg space size (256/4096) macros to pci_regs.h

2016-11-11 Thread Wang Sheng-Hui
Thanks! Regards, Wang Sheng-Hui -- Original -- From: "Bjorn Helgaas";; Date: Sat, Nov 12, 2016 04:51 AM To: "Wang Sheng-Hui"; Cc: "yu.zhao"; "jbarnes"; "alex.williamson"; "bhelgaas"; "linux-pci"; "kvm"; "linux-kernel"; Subject: Re: [PATCH] PCI: move cfg

Re: [GIT PULL] Block fixes for 4.9-rc

2016-11-11 Thread Jens Axboe
On 11/11/2016 05:45 PM, Linus Torvalds wrote: On Fri, Nov 11, 2016 at 4:11 PM, Jens Axboe wrote: Hi Linus, Three small (really, one liners all of them!) fixes that should go into this series: What about the aoeblk one? That seems to have come in with a tester lately. From your original email

Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions

2016-11-11 Thread Ricardo Neri
On Fri, 2016-11-11 at 11:22 +0100, Borislav Petkov wrote: > On Thu, Nov 10, 2016 at 08:08:07PM -0800, Ricardo Neri wrote: > > UMIP is enabled by setting a bit in CR4. If that bit is not supposed > > to be set, that could cause a #GP fault. > > Yeah, you do check CPUID first, AFAICT, so you should

Re: kvm: GPF in __get_kvmclock_ns

2016-11-11 Thread Dmitry Vyukov
On Fri, Nov 11, 2016 at 4:13 PM, Dmitry Vyukov wrote: > Hello, > > The following program triggers GPF in __get_kvmclock_ns if run in a loop: > https://gist.githubusercontent.com/dvyukov/91e4b366019e8500bac73ead5fbc44b0/raw/18178c254775dc953c4b5cf75442207480d939b4/gistfile1.txt > > On commit 015ed9

[PATCH] [STYLE 2/2]staging:speakup:speakup_dummy.c Spaces prefered around

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: spaces preferred around that '|' Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_dummy.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/speakup/speaku

kvm: GPF in irq_bypass_unregister_consumer

2016-11-11 Thread Dmitry Vyukov
Hello, The following programs triggers GPF in irq_bypass_unregister_consumer if run in a parallel loop: https://gist.githubusercontent.com/dvyukov/0d18d7b11659187ec3eab22285b4a67e/raw/c1c622ca26ebce0c7b77e3200970ca0f7792cb32/gistfile1.txt On commit 015ed9433be2b476ec7e2e6a9a411a56e3b5b035 (Nov 11

[PATCH] [STYLE 1/2]staging:speakup:speakup_dummy.c Modify block comments

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to Modified multiline block text to single Removed blank line from the end Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_dummy.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging

[PATCH v4] drm: move allocation out of drm_get_format_name()

2016-11-11 Thread Eric Engestrom
The function's behaviour was changed in 90844f00049e, without changing its signature, causing people to keep using it the old way without realising they were now leaking memory. Rob Clark also noticed it was also allocating GFP_KERNEL memory in atomic contexts, breaking them. Instead of having to

[PATCH] [STYLE]staging:speakup:speakup_dtlk.h Modify block comments

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to WARNING: Block comments should align the * on each line Modified block text alignment for consistency Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_dtlk.h | 16 1 file changed, 8 insertions(+), 8 de

Re: [PATCH] PCI: enable extended tags support for PCIe endpoints

2016-11-11 Thread Sinan Kaya
On 11/11/2016 3:58 PM, Bjorn Helgaas wrote: >> I should have checked the capability here before trying to enable it. >> > I'll post a follow up patch on this. >> > >> > Is there any other feedback? > If this were completely safe to enable for every device that supported > it, why would there be

RE: [GIT PULL] SCSI fixes for 4.9-rc3

2016-11-11 Thread Kashyap Desai
> -Original Message- > From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- > ow...@vger.kernel.org] On Behalf Of Gabriel C > Sent: Friday, November 11, 2016 9:40 AM > To: James Bottomley; Andrew Morton; Linus Torvalds > Cc: linux-scsi; linux-kernel; sta...@vger.kernel.org > Subject:

[PATCH v3] tools/power/acpi: Remove direct kernel source include reference

2016-11-11 Thread Lv Zheng
ACPICA tools trickily uses integer types, and trickily includes kernel include directory directly, which breaks tools build for some cross compilers. This patch improves ACPICA tools build to make it a bit more robust in such situation by splitting include/acpi into a separate output directory. Th

[GIT PULL] clk fixes for v4.9-rc5

2016-11-11 Thread Stephen Boyd
The following changes since commit 91bbc174d45c347aa7aedb2215cc7d2013c06c1f: clk: at91: Fix a return value in case of error (2016-10-20 16:37:56 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git tags/clk-fixes-for-linus for you to fe

[PATCH 2/3] x86/intel_rdt: Return state to default on umount

2016-11-11 Thread Fenghua Yu
From: Fenghua Yu All CPUs in a rdtgroup are given back to the default rdtgroup before the rdtgroup is removed during umount. After umount, the default rdtgroup contains all online CPUs. cpu_closid needs to be cleared for each cpu in root rdtgroup during umount. Otherwise, PQR_ASSOC will be writt

[PATCH 1/3] x86/intel_rdt: Fix kernfs_to_rdtgroup to know about "info/*" directories

2016-11-11 Thread Fenghua Yu
From: Fenghua Yu We saw a kernel oops on NULL pointer when we ran "rmdir info". This is because the "info" directory and per-resource subdirectories of "info" do not use "kn->priv" to point to a "struct rdtgroup". Also change error code from -ENOENT to the more appropriate -EPERM so the user see

[PATCH 3/3] x86/intel_rdt: Update closid in PQR_ASSOC registers in synchronous mode when changing "cpus"

2016-11-11 Thread Fenghua Yu
From: Fenghua Yu When "cpus" is changed in a rdtgroup, the current code doesn't update PQR_ASSOC registers with new closid in the cpus write operation. The PQR_ASSOC registers are updated asynchronously later when new processes are scheduled in on the CPUs. A process may run on a CPU for long ti

[PATCH] kernfs: Declare two local data structures static

2016-11-11 Thread Bart Van Assche
This was spotted by the 'sparse' static checker. Signed-off-by: Bart Van Assche Cc: Andreas Gruenbacher --- fs/kernfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/kernfs/inode.c b/fs/kernfs/inode.c index a198211..ac9e108 100644 --- a/fs/kernfs/inode.c +++ b

Re: Long delays creating a netns after deleting one (possibly RCU related)

2016-11-11 Thread Cong Wang
On Fri, Nov 11, 2016 at 4:23 PM, Paul E. McKenney wrote: > > Ah! This net_mutex is different than RTNL. Should synchronize_net() be > modified to check for net_mutex being held in addition to the current > checks for RTNL being held? > Good point! Like commit be3fc413da9eb17cce0991f214ab0, che

Re: [PATCH v4 8/8] clocksource: import ARC timer driver

2016-11-11 Thread Vineet Gupta
On 11/11/2016 03:11 PM, Daniel Lezcano wrote: > On Fri, Nov 11, 2016 at 01:38:52PM -0800, Vineet Gupta wrote: >> This adds support for >> >> - CONFIG_ARC_TIMERS : legacy 32-bit TIMER0 and TIMER1 which count UP >>from @CNT to @LIMIT, before optionally triggering an interrupt. >>These are pr

[PATCH] [STYLE 3/3]staging:speakup:speakup_dectlk.c Align match parenthesis

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: Alignment should match open parenthesis Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_dectlk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/speakup/speakup_dectlk.c b

Re: [GIT PULL] Block fixes for 4.9-rc

2016-11-11 Thread Linus Torvalds
On Fri, Nov 11, 2016 at 4:11 PM, Jens Axboe wrote: > Hi Linus, > > Three small (really, one liners all of them!) fixes that should go into > this series: What about the aoeblk one? That seems to have come in with a tester lately. From your original email: "I'm wondering if this is bio iteration

[PATCH RFC] mm: Add debug_virt_to_phys()

2016-11-11 Thread Florian Fainelli
When CONFIG_DEBUG_VM is turned on, virt_to_phys() maps to debug_virt_to_phys() which helps catch vmalloc space addresses being passed. This is helpful in debugging bogus drivers that just assume linear mappings all over the place. For ARM, ARM64, Unicore32 and Microblaze, the architectures define

[PATCH] [STYLE 2/3]staging:speakup:speakup_dectlk.c Spaces preferred around

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: spaces preferred around that '|' Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_dectlk.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/speakup/spe

RE: [PATCH 3/3] PCI: hv: delete the device earlier from hbus->children for hot-remove

2016-11-11 Thread Jake Oshins
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, November 9, 2016 11:20 PM > To: Bjorn Helgaas ; linux-...@vger.kernel.org; > de...@linuxdriverproject.org > Cc: gre...@linuxfoundation.org; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Jake Oshins ; Hadden > Hoppert ; Vit

RE: [PATCH 2/3] PCI: hv: fix hv_pci_remove() for hot-remove

2016-11-11 Thread Jake Oshins
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, November 9, 2016 11:19 PM > To: Bjorn Helgaas ; linux-...@vger.kernel.org; > de...@linuxdriverproject.org > Cc: gre...@linuxfoundation.org; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Jake Oshins ; Hadden > Hoppert ; Vit

[PATCH] [STYLE 1/3]staging:speakup:speakup_dectlk.c Block text modification

2016-11-11 Thread Walt Feasel
Modified multi line text to single Removed unneeded blankline at end Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_dectlk.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/speakup/speakup_dectlk.c b/drivers/staging/speakup/speakup_dectl

Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-11 Thread Rafael J. Wysocki
On Sat, Nov 12, 2016 at 1:19 AM, Tony Lindgren wrote: > * Rafael J. Wysocki [16 15:35]: >> On Fri, Nov 11, 2016 at 11:32 PM, Tony Lindgren wrote: >> > * Tony Lindgren [16 14:29]: >> >> * Rafael J. Wysocki [16 13:33]: >> >> > On Fri, Nov 11, 2016 at 5:31 PM, Tony Lindgren wrote: >>

RE: [PATCH 7/9] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface

2016-11-11 Thread Stuart Yoder
> > +/** > > + * dpaa2_io_service_rearm() - Rearm the notification for the given DPIO > > service. > > + * @service: the given DPIO service. > > + * @ctx: the notification context. > > + * > > + * Once a FQDAN/CDAN has been produced, the corresponding FQ/channel > > is > > + * considered "disarmed"

[PATCH] [STYLE 3/3]staging:speakup:speakup_decpc.c Align match parenthesis

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: Alignment should match open parenthesis Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_decpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/speakup/speakup_decpc.c

Re: Long delays creating a netns after deleting one (possibly RCU related)

2016-11-11 Thread Paul E. McKenney
On Fri, Nov 11, 2016 at 01:11:01PM +, Rolf Neugebauer wrote: > On Thu, Nov 10, 2016 at 9:24 PM, Paul E. McKenney > wrote: > > On Thu, Nov 10, 2016 at 09:37:47AM -0800, Cong Wang wrote: > >> (Cc'ing Paul) > >> > >> On Wed, Nov 9, 2016 at 7:42 AM, Rolf Neugebauer > >> wrote: > >> > Hi > >> > >

[PATCH] usb: gadget: Fix checkpatch error for braces

2016-11-11 Thread Anson Jacob
Fix error message by checkpath.pl open brace '{' following struct/enum go on the same line Patch applied by running fix inplace capability of checkpatch: checkpatch.pl -f *.[ch] --types OPEN_BRACE --fix-inplace Signed-off-by: Anson Jacob --- drivers/usb/gadget/function/rndis.c| 3 +- drive

[PATCH] [STYLE 2/3]staging:speakup:speakup_decpc.c Perferred spaces around

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: spaces preferred around that '|,+,&' Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_decpc.c | 46 - 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/drivers/staging

Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-11 Thread Tony Lindgren
* Rafael J. Wysocki [16 15:35]: > On Fri, Nov 11, 2016 at 11:32 PM, Tony Lindgren wrote: > > * Tony Lindgren [16 14:29]: > >> * Rafael J. Wysocki [16 13:33]: > >> > On Fri, Nov 11, 2016 at 5:31 PM, Tony Lindgren wrote: > >> > > * Rafael J. Wysocki [161110 16:06]: > >> > >> On Thu,

kvm: GPF in __get_kvmclock_ns

2016-11-11 Thread Dmitry Vyukov
Hello, The following program triggers GPF in __get_kvmclock_ns if run in a loop: https://gist.githubusercontent.com/dvyukov/91e4b366019e8500bac73ead5fbc44b0/raw/18178c254775dc953c4b5cf75442207480d939b4/gistfile1.txt On commit 015ed9433be2b476ec7e2e6a9a411a56e3b5b035 (Nov 11). general protection

[PATCH] [STYLE 1/3]staging:speakup:speakup_decpc.c Block align text

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: WARNING: Block comments should align the * on each line Modified horizontal spacing for consistency/legibility Modified multi line comment to single Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_decpc.c | 97 +

[GIT PULL] Block fixes for 4.9-rc

2016-11-11 Thread Jens Axboe
Hi Linus, Three small (really, one liners all of them!) fixes that should go into this series: - Request allocation error handling fix for nbd, from Christophe, fixing a regression in this series. - lightnvm fix for a bad offset calculation, also a regression in this series. From Matias. -

Re: [PATCH 1/2] clk: hisilicon: add CRG driver for Hi3798CV200 SoC

2016-11-11 Thread Stephen Boyd
On 10/29, Jiancheng Xue wrote: > Add CRG driver for Hi3798CV200 SoC. CRG(Clock and Reset > Generator) module generates clock and reset signals used > by other module blocks on SoC. > > Signed-off-by: Jiancheng Xue > Acked-by: Rob Herring > --- Applied to clk-hisi and merged into clk-next -- Q

Re: [PATCH 2/2] clk: hisilicon: add CRG driver for Hi3516CV300 SoC

2016-11-11 Thread Stephen Boyd
On 10/29, Jiancheng Xue wrote: Should be a From: Pan Wen here? > Add CRG driver for Hi3516CV300 SoC. CRG(Clock and Reset > Generator) module generates clock and reset signals used > by other module blocks on SoC. > > Signed-off-by: Pan Wen And you should have signed it off? Care to resend or s

Re: [tpmdd-devel] [PATCH RFC 2/2] tpm: refactor tpm2_get_tpm_pt to tpm2_getcap_cmd

2016-11-11 Thread Jarkko Sakkinen
On Fri, Nov 11, 2016 at 09:51:45AM +0530, Nayna wrote: > > > On 10/09/2016 03:44 PM, Jarkko Sakkinen wrote: > > Refactored tpm2_get_tpm_pt to tpm2_getcap_cmd, which means that it also > > takes capability ID as input. This is required to access > > TPM_CAP_HANDLES, which contains metadata needed

[GIT PULL] ACPI fix for v4.9-rc3

2016-11-11 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.9-rc5 with top-most commit 66f5854c6894dc028fc13345838c6f82bfcfef0c Merge branch 'device-properties' on top of commit bc33b0ca11e3df46a4fa7639ba488c9d4911 Linux 4.9-rc4 to re

  1   2   3   4   5   6   7   >