Re: suspicious __GFP_NOMEMALLOC in selinux

2017-08-10 Thread Michal Hocko
On Tue 08-08-17 09:34:15, Paul Moore wrote: > On Mon, Aug 7, 2017 at 2:58 AM, Michal Hocko wrote: > > On Fri 04-08-17 13:12:04, Paul Moore wrote: > >> On Fri, Aug 4, 2017 at 3:56 AM, Michal Hocko wrote: > > [...] > >> > Btw. Should I resend the patch or somebody will take it from this email > >>

Re: [linux-sunxi] [PATCH 1/3] arm64: allwinner: a64: add ethernet0 alias for BPi M64 EMAC node

2017-08-10 Thread Chen-Yu Tsai
On Thu, Aug 10, 2017 at 12:40 PM, Icenowy Zheng wrote: > > > 于 2017年8月10日 GMT+08:00 上午11:56:02, Chen-Yu Tsai 写到: >>Hi, >> >>On Sat, Jul 22, 2017 at 10:28 AM, Icenowy Zheng >>wrote: >>> The Banana Pi M64 board uses the A64 chip's EMAC to provide Ethernet >>> link. >>> >>> Add the ethernet0 alias

Re: [PATCH v4 1/2] x86/unwind: add ORC unwinder

2017-08-10 Thread Juergen Gross
On 09/08/17 22:15, Josh Poimboeuf wrote: > On Wed, Aug 09, 2017 at 11:55:35AM +0200, Juergen Gross wrote: >> On 09/08/17 11:35, Peter Zijlstra wrote: >>> On Wed, Aug 09, 2017 at 11:24:07AM +0200, Juergen Gross wrote: On 09/08/17 11:16, Peter Zijlstra wrote: > On Wed, Aug 09, 2017 at 10:49:

Re: [virtio-dev] Re: [PATCH v13 4/5] mm: support reporting free page blocks

2017-08-10 Thread Michal Hocko
On Tue 08-08-17 14:34:25, Wei Wang wrote: > On 08/08/2017 02:12 PM, Wei Wang wrote: > >On 08/03/2017 05:11 PM, Michal Hocko wrote: > >>On Thu 03-08-17 14:38:18, Wei Wang wrote: > >>This is just too ugly and wrong actually. Never provide struct page > >>pointers outside of the zone->lock. What I've

Re: [PATCH 15/15] perf tests attr: Fix task term values

2017-08-10 Thread Thomas Richter
On Wed, Aug 09, 2017 at 05:00:49PM +0200, Jiri Olsa wrote: > On Mon, Jul 03, 2017 at 04:50:30PM +0200, Jiri Olsa wrote: > > The perf_event_attr::task is 1 by default for first (tracking) > > event in the session. Setting task=1 as default and adding > > task=0 for cases that need it. > > hm, looks

Re: [PATCH] memory: Convert to using %pOF instead of full_name

2017-08-10 Thread Roger Quadros
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 19/07/17 00:43, Rob Herring wrote: > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remo

Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator

2017-08-10 Thread Michal Hocko
On Tue 08-08-17 19:15:36, Jerome Glisse wrote: > On Tue, Aug 08, 2017 at 03:59:36PM +0300, Igor Stoppa wrote: > > On 07/08/17 22:12, Jerome Glisse wrote: > > > On Mon, Aug 07, 2017 at 05:13:00PM +0300, Igor Stoppa wrote: > > > > [...] > > > > >> I have an updated version of the old proposal: > >

Re: [PATCH] sched/fair: Make PELT signal more accurate

2017-08-10 Thread Vincent Guittot
On 9 August 2017 at 19:51, Joel Fernandes wrote: > Hi Vincent, > > On Wed, Aug 9, 2017 at 3:23 AM, Vincent Guittot > wrote: > >>> >>> Yes this is true, however since I'm using the 'delta' instead of >>> period_contrib, its only does the update every 128us, however if >>> several updates fall wit

Re: [linux-sunxi] [PATCH v2 2/3] arm64: allwinner: a64: enable AXP803 for Banana Pi M64

2017-08-10 Thread Chen-Yu Tsai
On Tue, Jul 25, 2017 at 8:45 PM, Icenowy Zheng wrote: > Banana Pi M64 board uses an AXP803 PMIC. > > Enable the PMIC and its regulators. > > As we have now proper regulators support, missing or dummy regulators > are changed to the correct ones. > > Signed-off-by: Icenowy Zheng Applied for 4.14.

Re: [linux-sunxi] [PATCH v2 1/3] arm64: allwinner: a64: enable USB host controller for BPi M64

2017-08-10 Thread Chen-Yu Tsai
On Tue, Jul 25, 2017 at 8:45 PM, Icenowy Zheng wrote: > Banana Pi M64 connects the USB host-only controller on A64 SoC to a USB > hub, which provided the two USB Type-A ports on the board. > > Enable the USB host controller. > > The OTG function of the Micro-USB port needs the drivevbus function o

Re: [RESEND PATCH 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-10 Thread Jun Gao
On Thu, 2017-08-10 at 10:27 +0800, Jun Gao wrote: > From: Jun Gao > > Add i2c compatible for MT7622. Compare to MT8173 i2c controller, > MT7622 limits message numbers to 255, and does not support 4GB > DMA mode. > These two resend patches only modify commit message. Thanks! Jun > Signed-off-b

[PATCH 2/2] clk: uniphier: add video input subsystem clock

2017-08-10 Thread Katsuhiro Suzuki
Add a clock for video input subsystem (EXIV) on UniPhier LD11/LD20 SoCs. Signed-off-by: Katsuhiro Suzuki --- drivers/clk/uniphier/clk-uniphier-sys.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c index

[PATCH 1/2] clk: uniphier: add audio system clock

2017-08-10 Thread Katsuhiro Suzuki
Add clock for audio subsystem (AIO) and SoC internal audio codec (EVEA) on UniPhier LD11/LD20 SoCs. Signed-off-by: Katsuhiro Suzuki --- drivers/clk/uniphier/clk-uniphier-sys.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk

[PATCH 1/3] reset: uniphier: add audio systems reset control

2017-08-10 Thread Katsuhiro Suzuki
Add reset lines for audio subsystem (AIO) and SoC internal audio codec (EVEA) on UniPhier LD11/LD20 SoCs. Signed-off-by: Katsuhiro Suzuki --- drivers/reset/reset-uniphier.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c ind

Re: [linux-sunxi] [PATCH v2 3/3] arm64: allwinner: a64: add proper support for the Wi-Fi on BPi M64

2017-08-10 Thread Chen-Yu Tsai
On Tue, Jul 25, 2017 at 8:45 PM, Icenowy Zheng wrote: > BPi M64 has an AP6212 Wi-Fi/Bluetooth combo module, and the Wi-Fi SDIO > card is connected to the mmc1 controller. > > The pwrseq of the mmc1 (used to reset the card) used to missing, and the > out-of-band interrupt line of the card is not sp

[PATCH 2/3] reset: uniphier: add video input subsystem reset control

2017-08-10 Thread Katsuhiro Suzuki
Add a reset line for video input subsystem (EXIV) on UniPhier LD11/LD20 SoCs. Signed-off-by: Katsuhiro Suzuki --- drivers/reset/reset-uniphier.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index 90c52a96f775..f60c137c17cb

[PATCH 0/2] Fixup for discontiguous/sparse numa nodes

2017-08-10 Thread sathnaga
From: Satheesh Rajendran Certain systems would have sparse/discontinguous numa nodes. perf bench numa doesnt work well on such nodes. 1. It shows wrong values. 2. It can hang. 3. It can show redundant information for non-existant nodes. #numactl -H available: 2 nodes (0,8) node 0 cpus: 0 1 2 3

[PATCH 2/2] perf/bench/numa: Handle discontiguous/sparse numa nodes

2017-08-10 Thread sathnaga
From: Satheesh Rajendran Certain systems are designed to have sparse/discontiguous nodes. On such systems, perf bench numa hangs, shows wrong number of nodes and shows values for non-existent nodes. Handle this by only taking nodes that are exposed by kernel to userspace. Reviewed-by: Srikar Dro

[PATCH 1/2] perf/bench/numa: Add functions to detect sparse numa nodes

2017-08-10 Thread sathnaga
From: Satheesh Rajendran Added functions 1) to get a count of all nodes that are exposed to userspace. These nodes could be memoryless cpu nodes or cpuless memory nodes, 2) to check given node is present and 3) to check given node has cpus This information can be used to handle sparse/discontigu

Re: [PATCH 2/2] lib: add test for bitmap_parselist()

2017-08-10 Thread Rasmus Villemoes
> From be0e663b804daff0d0512e72cf94b5143270bd29 Mon Sep 17 00:00:00 2001 > From: Yury Norov > Date: Thu, 10 Aug 2017 01:25:46 +0300 > Subject: [PATCH] bitmap: introduce BITMAP_FROM_U64() and use it in test for > bitmap_parselist() > > The macro is the compile-time analogue of bitmap_from_u64() wi

[PATCH 3/3] reset: uniphier: add analog amplifiers reset control

2017-08-10 Thread Katsuhiro Suzuki
Add a reset line for analog signal amplifier core (ADAMV) on UniPhier LD11/LD20 SoCs. Signed-off-by: Katsuhiro Suzuki --- drivers/reset/reset-uniphier.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index f60c

Re: [virtio-dev] Re: [PATCH v13 4/5] mm: support reporting free page blocks

2017-08-10 Thread Wei Wang
On 08/10/2017 03:05 PM, Michal Hocko wrote: On Tue 08-08-17 14:34:25, Wei Wang wrote: On 08/08/2017 02:12 PM, Wei Wang wrote: On 08/03/2017 05:11 PM, Michal Hocko wrote: On Thu 03-08-17 14:38:18, Wei Wang wrote: This is just too ugly and wrong actually. Never provide struct page pointers outsi

[PATCH v2] net: stmmac: Use the right logging function in stmmac_mdio_register

2017-08-10 Thread Romain Perier
Currently, the function stmmac_mdio_register() is only used by stmmac_dvr_probe() from stmmac_main.c, in order to register the MDIO bus and probe information about the PHY. As this function is called before calling register_netdev(), all messages logged from stmmac_mdio_register are prefixed by "(u

RE: hotplug support for arch/arc/plat-eznps platform

2017-08-10 Thread Ofer Levi(SW)
Well, this definitely have pleased the little toy :) Thank you. I really appreciate your time and effort. If I may, one more newbie question. What do I need to do for the two patches to find their way into formal kernel code? Thanks -Ofer > -Original Message- > From: Peter Zijlstra [

Re: [PATCH] hv_set_ifconfig.sh double check before setting ip

2017-08-10 Thread Eduardo Otubo
On 08/09/2017 11:02 AM, Eduardo Otubo wrote: On 08/09/2017 06:11 AM, David Miller wrote: From: Eduardo Otubo Date: Tue, 8 Aug 2017 15:53:45 +0200 This patch fixes the behavior of the hv_set_ifconfig script when setting the interface ip. Sometimes the interface has already been configured by

Re: [PATCH 0/4] net-next: dsa: fix flow dissection

2017-08-10 Thread John Crispin
On 10/08/17 08:42, Eric Dumazet wrote: On Wed, 2017-08-09 at 22:52 -0700, David Miller wrote: From: John Crispin Date: Wed, 9 Aug 2017 14:41:15 +0200 RPS and probably other kernel features are currently broken on some if not all DSA devices. The root cause of this is that skb_hash will cal

Re: [PATCH 1/2] ARM: dts: am571x-idk: Fix GPIO polarity for MMC1 card detect

2017-08-10 Thread Kishon Vijay Abraham I
Tony, On Thursday 10 August 2017 03:38 AM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [170807 22:22]: >> The GPIO polarity for MMC1 card detect is set to '0' which means >> active-high. However the polarity should be active-low. Fix it >> here. > > Can these wait for v4.14 merge window or d

Re: [v6] wlcore: add missing nvs file name info for wilink8

2017-08-10 Thread Kalle Valo
"Reizer, Eyal" writes: >> The fact that is old does not change a thing, we still need to >> support it no matter what the data sheet and your system design >> says. A fix that breaks other things is not really a fix :) >> > > Sure, just want to make sure we are not trying to add work around just

Re: [PATCH v3 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-08-10 Thread David.Wu
Hi Chen-Yu, 在 2017/8/10 10:40, Chen-Yu Tsai 写道: Hi David, On Wed, Aug 9, 2017 at 5:38 PM, David.Wu wrote: Hello Corentin, Chen-Yu 在 2017/8/9 16:45, Corentin Labbe 写道: On Thu, Aug 03, 2017 at 07:06:33PM +0800, Chen-Yu Tsai wrote: On Thu, Aug 3, 2017 at 1:38 AM, Florian Fainelli wrote:

[PATCH v2 0/2] mm, oom: do not grant oom victims full memory reserves access

2017-08-10 Thread Michal Hocko
Hi, this is a second version of the series previously posted [1]. Tetsuo has noticed a bug I've introduced during the rebase and also pointed out reserves access changes on nommu arches which I have addressed as well. Mel had some more feedback which is hopefully addressed as well. There were no fu

[PATCH 1/2] mm, oom: do not rely on TIF_MEMDIE for memory reserves access

2017-08-10 Thread Michal Hocko
From: Michal Hocko For ages we have been relying on TIF_MEMDIE thread flag to mark OOM victims and then, among other things, to give these threads full access to memory reserves. There are few shortcomings of this implementation, though. First of all and the most serious one is that the full acc

[PATCH 2/2] mm: replace TIF_MEMDIE checks by tsk_is_oom_victim

2017-08-10 Thread Michal Hocko
From: Michal Hocko TIF_MEMDIE is set only to the tasks whick were either directly selected by the OOM killer or passed through mark_oom_victim from the allocator path. tsk_is_oom_victim is more generic and allows to identify all tasks (threads) which share the mm with the oom victim. Please note

Re: [v6] wlcore: add missing nvs file name info for wilink8

2017-08-10 Thread Julian Calaby
Hi Eyal, On Thu, Aug 10, 2017 at 4:35 PM, Reizer, Eyal wrote: >> > >> > Sorry for top posting (mobile...) >> > I have verified with system design and the data sheet that every wilink 6/7 >> chip has a mac address in fuse so probably the board you have (pretty old, >> right?) has this mac address

[PATCH 1/1] sched/topology: fix memleak in __sdt_alloc()

2017-08-10 Thread shuwang
From: Shu Wang Found this issue by kmemleak. the sg and sgc from __sdt_alloc() might be leaked as each domain holds many groups' ref. And in destroy_sched_domain(), it only declined the first group ref. Online and offline a cpu can trigger this leak, and cause OOM. reproducer for my 6 cpus machi

Re: [virtio-dev] Re: [PATCH v13 4/5] mm: support reporting free page blocks

2017-08-10 Thread Michal Hocko
On Thu 10-08-17 15:38:34, Wei Wang wrote: > On 08/10/2017 03:05 PM, Michal Hocko wrote: > >On Tue 08-08-17 14:34:25, Wei Wang wrote: > >>On 08/08/2017 02:12 PM, Wei Wang wrote: > >>>On 08/03/2017 05:11 PM, Michal Hocko wrote: > On Thu 03-08-17 14:38:18, Wei Wang wrote: > This is just too ug

RE: [v6] wlcore: add missing nvs file name info for wilink8

2017-08-10 Thread Reizer, Eyal
> > On Thu, Aug 10, 2017 at 4:35 PM, Reizer, Eyal wrote: > >> > > >> > Sorry for top posting (mobile...) > >> > I have verified with system design and the data sheet that every wilink > 6/7 > >> chip has a mac address in fuse so probably the board you have (pretty old, > >> right?) has this mac a

Re: [RFC v1 4/4] ipmi_bmc: bt-aspeed: port driver to IPMI BMC framework

2017-08-10 Thread Cédric Le Goater
On 08/10/2017 04:31 AM, Jeremy Kerr wrote: > Hi Brendan, > >> The driver was handling interaction with userspace on its own. This >> patch changes it to use the functionality of the ipmi_bmc framework >> instead. >> >> Note that this removes the ability for the BMC to set SMS_ATN by making >> an i

Re: [PATCH] mips: Fix using smp_processor_id() when preemptible

2017-08-10 Thread Marcin Nowakowski
Hi Corey, This has already been fixed here: https://git.linux-mips.org/cgit/ralf/upstream-sfr.git/commit/?id=21da5332327b6d183bd93336ecf29c70bc609b7b https://git.linux-mips.org/cgit/ralf/upstream-sfr.git/commit/?id=735302665c353d6756e7fa2a2cf41b039299f732 Marcin On 09.08.2017 23:25, miny...@ac

RE: [v6] wlcore: add missing nvs file name info for wilink8

2017-08-10 Thread Reizer, Eyal
> > >> The fact that is old does not change a thing, we still need to > >> support it no matter what the data sheet and your system design > >> says. A fix that breaks other things is not really a fix :) > >> > > > > Sure, just want to make sure we are not trying to add work around just for > > A

Re: [RESEND PATCH 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-10 Thread Yingjoe Chen
On Thu, 2017-08-10 at 15:22 +0800, Jun Gao wrote: > On Thu, 2017-08-10 at 10:27 +0800, Jun Gao wrote: > > From: Jun Gao > > > > Add i2c compatible for MT7622. Compare to MT8173 i2c controller, > > MT7622 limits message numbers to 255, and does not support 4GB > > DMA mode. > > > > These two res

[PATCH] ASoC: spear: Delete an error message for a failed memory allocation in two functions

2017-08-10 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 10 Aug 2017 09:50:51 +0200 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Si

[PATCH net-next] net: core: fix compile error inside flow_dissector due to new dsa callback

2017-08-10 Thread John Crispin
The following error was introduced by commit 43e665287f93 ("net-next: dsa: fix flow dissection") due to a missing #if guard net/core/flow_dissector.c: In function '__skb_flow_dissect': net/core/flow_dissector.c:448:18: error: 'struct net_device' has no member named 'dsa_ptr' ops = skb->dev->dsa_p

Re: [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-10 Thread Oleksandr Andrushchenko
Hi, thank you very much for valuable comments and your time! On 08/10/2017 06:14 AM, Takashi Sakamoto wrote: Hi, On Aug 7 2017 21:22, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements

Re: [PATCH 0/4] net-next: dsa: fix flow dissection

2017-08-10 Thread John Crispin
On 10/08/17 08:42, Eric Dumazet wrote: On Wed, 2017-08-09 at 22:52 -0700, David Miller wrote: From: John Crispin Date: Wed, 9 Aug 2017 14:41:15 +0200 RPS and probably other kernel features are currently broken on some if not all DSA devices. The root cause of this is that skb_hash will cal

Re: [RESEND PATCH v5] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2017-08-10 Thread Boqun Feng
On Wed, Aug 09, 2017 at 05:15:33PM +0200, Peter Zijlstra wrote: > On Wed, Aug 09, 2017 at 05:06:03PM +0200, Peter Zijlstra wrote: > > Now, ARM64 for instance plays funny games, it does something along the > > lines of: > > > > cmpxchg(ptr, old, new) > > { > > do { > > r = LL(ptr);

Re: [PATCH 4.12 004/106] scsi: sg: fix SG_DXFER_FROM_DEV transfers

2017-08-10 Thread Chris Clayton
On 09/08/17 17:51, Greg Kroah-Hartman wrote: > 4.12-stable review patch. If anyone has any objections, please let me know. > > --- I repeat my comments when the patch was queued for stable: 1. Johannes' commit message says that the transfer must have a length bigger than 0, so the code s

[PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-08-10 Thread Michal Hocko
From: Michal Hocko David has noticed that the oom killer might kill additional tasks while the exiting oom victim hasn't terminated yet because the oom_reaper marks the curent victim MMF_OOM_SKIP too early when mm->mm_users dropped down to 0. The race is as follows oom_reap_task

Re: [RESEND PATCH 1/2] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-10 Thread Honghui Zhang
On Thu, 2017-08-10 at 10:27 +0800, Jun Gao wrote: > From: Jun Gao > > Add MT7622 i2c binding to binding file. Compare to MT8173 i2c > controller, MT7622 limits message numbers to 255, and does not > support 4GB DMA mode. > > Signed-off-by: Jun Gao > --- > Documentation/devicetree/bindings/i2c/

Re: [PATCH 2/2] mm, oom: fix potential data corruption when oom_reaper races with writer

2017-08-10 Thread Michal Hocko
On Tue 08-08-17 19:48:55, Andrea Arcangeli wrote: [...] > The bug corrected by this patch 1/2 I pointed it out last week while > reviewing other oom reaper fixes so that looks fine. > > However I'd prefer to dump MMF_UNSTABLE for good instead of adding > more of it. It can be replaced with unmap_p

[RFC PATCH] PCI: rockchip: fix system hang up if activate CONFIG_DEBUG_SHIRQ

2017-08-10 Thread Shawn Lin
With CONFIG_DEBUG_SHIRQ enabled, the irq tear down routine would still access the irq handler registed as a shard irq. Per the comment within the function of __free_irq, it says "It's a shared IRQ -- the driver ought to be prepared for an IRQ event to happen even now it's being freed". However when

Re: [PATCH 3/3] ACPI / scan: Enable GPEs before scanning the namespace

2017-08-10 Thread Mika Westerberg
On Thu, Aug 10, 2017 at 07:10:16AM +0200, Lukas Wunner wrote: > On Thu, Aug 10, 2017 at 12:34:23AM +0200, Rafael J. Wysocki wrote: > > --- linux-pm.orig/drivers/acpi/scan.c > > +++ linux-pm/drivers/acpi/scan.c > > @@ -2139,6 +2139,10 @@ int __init acpi_scan_init(void) > > acpi_g

Re: [PATCH] MIPS: usercopy: Implement stack frame object validation

2017-08-10 Thread Matt Redfearn
Hi Kees, On 08/08/17 20:11, Kees Cook wrote: On Tue, Aug 8, 2017 at 5:23 AM, Matt Redfearn wrote: This implements arch_within_stack_frames() for MIPS that validates if an object is wholly contained by a kernel stack frame. With CONFIG_HARDENED_USERCOPY enabled, MIPS now passes the LKDTM test

Re: [RFC PATCH 4/6] bsg: refactor ioctl to use regular BSG-command infrastructure for SG_IO

2017-08-10 Thread Johannes Thumshirn
On Wed, Aug 09, 2017 at 04:11:18PM +0200, Benjamin Block wrote: > + return 0 == (bc->hdr.flags & BSG_FLAG_Q_AT_TAIL); return !(bc->hdr.flags & BSG_FLAG_Q_AT_TAIL); and make the function return bool? I have to admit, this is the 1st time I have seen the above construct. Thanks, Johanne

Re: [PATCH] ASoC: spear: Delete an error message for a failed memory allocation in two functions

2017-08-10 Thread Viresh Kumar
On Thu, Aug 10, 2017 at 1:37 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 10 Aug 2017 09:50:51 +0200 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Link: > http://events.linuxfoun

Re: [RFC PATCH 5/6] bsg: reduce unnecessary arguments for bsg_map_hdr()

2017-08-10 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG N

Re: [RFC PATCH 6/6] bsg: reduce unnecessary arguments for blk_complete_sgv4_hdr_rq()

2017-08-10 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG N

Re: [PATCH 05/16] mm: Protect VMA modifications using VMA sequence count

2017-08-10 Thread Laurent Dufour
On 10/08/2017 02:58, Kirill A. Shutemov wrote: > On Wed, Aug 09, 2017 at 12:43:33PM +0200, Laurent Dufour wrote: >> On 09/08/2017 12:12, Kirill A. Shutemov wrote: >>> On Tue, Aug 08, 2017 at 04:35:38PM +0200, Laurent Dufour wrote: The VMA sequence count has been introduced to allow fast detect

[PATCH] Subject: drivers:staging:media:atomisp:12c:ab1302.c fix CHECK

2017-08-10 Thread Harold Gomez
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL. remove the unnecessary paragraph Signed-off-by: Harold Gomez -

Re: [PATCH v5 2/5] lib: Add zstd modules

2017-08-10 Thread Eric Biggers
On Wed, Aug 09, 2017 at 07:35:53PM -0700, Nick Terrell wrote: > > It can compress at speeds approaching lz4, and quality approaching lzma. Well, for a very loose definition of "approaching", and certainly not at the same time. I doubt there's a use case for using the highest compression levels in

[PATCH] Subject: drivers:staging:media:atomisp:12c:ab1302.c fix CHECK

2017-08-10 Thread Harold Gomez
CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL. remove the unnecessary paragraph Signed-off-by: Harold Gomez -

Re: [PATCH] rwsem: fix missed wakeup due to reordering of load

2017-08-10 Thread Andrea Parri
On Thu, Jul 27, 2017 at 11:48:53AM -0400, Waiman Long wrote: > On 07/26/2017 04:17 PM, Prateek Sood wrote: > > If a spinner is present, there is a chance that the load of > > rwsem_has_spinner() in rwsem_wake() can be reordered with > > respect to decrement of rwsem count in __up_write() leading >

Re: [PATCH] nvme: fix directive command numd calculation

2017-08-10 Thread Christoph Hellwig
On Wed, Aug 09, 2017 at 01:23:47PM -0600, Jens Axboe wrote: > On 08/09/2017 12:26 PM, kwan.h...@ssi.samsung.com wrote: > > From: "Kwan (Hingkwan) Huen-SSI" > > > > The numd field of directive receive command takes number of dwords to > > transfer. This fix has the correct calculation for numd. >

[PATCH v3 0/3] thermal: add thermal sensor driver for Hi3660

2017-08-10 Thread Tao Wang
From: Tao Wang This series adds thermal support for Hi3660 Soc, which support all the hardware temperture sensors and two virtual sensors(one for maximum value of all and one for average value of all). Patch 1 add dt-binding document to describe how to config dt for the driver. Patch 2 introduce

[PATCH v3 3/3] arm64: dts: register Hi3660's thermal sensor

2017-08-10 Thread Tao Wang
From: Tao Wang Bind thermal sensor driver for Hi3660. Signed-off-by: Tao Wang Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi| 10 ++ include/dt-bindings/thermal/hi3660-thermal.h | 30 2 files changed, 40 insertions(+) create mode

Re: [RFC PATCH] PCI: rockchip: fix system hang up if activate CONFIG_DEBUG_SHIRQ

2017-08-10 Thread jeffy
Hi shawn, On 08/10/2017 04:21 PM, Shawn Lin wrote: With CONFIG_DEBUG_SHIRQ enabled, the irq tear down routine would still access the irq handler registed as a shard irq. Per the comment within the function of __free_irq, it says "It's a shared IRQ -- the driver ought to be prepared for an IRQ ev

[PATCH v3 1/3] dt-bindings: Document the hi3660 thermal sensor bindings

2017-08-10 Thread Tao Wang
From: Tao Wang This adds documentation of device tree bindings for the thermal sensor controller of hi3660 SoC. Signed-off-by: Tao Wang --- .../devicetree/bindings/thermal/hisi-tsensor.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicet

[PATCH v3 2/3] thermal: hisilicon: add thermal sensor driver for Hi3660

2017-08-10 Thread Tao Wang
From: Tao Wang This patch adds the support for thermal sensor of Hi3660 SoC. this will register sensors for thermal framework and use device tree to bind cooling device. Signed-off-by: Tao Wang Signed-off-by: Leo Yan --- drivers/thermal/Kconfig| 13 +++ drivers/thermal/Makefile

Re: [PATCH RFC net-next] net: Allow name change of IFF_UP interfaces

2017-08-10 Thread Vitaly Kuznetsov
Andrew Lunn writes: >> I understand the 'legacy' concern but at the same time we don't want to >> have aftificial limitations too. Name change, in particular, doesn't >> happen 'under the hood' -- someone privileged enough needs to request >> the change. >> >> Can you think of any particular rea

Re: [PATCH 2/2] nvmet: fcloop: remove ALL_OPTS define

2017-08-10 Thread Christoph Hellwig
Thanks, applied both patches to nvme-4.14.

Re: [rcu:mmap_sem.2017.08.09a 6/16] mm/internal.h:59:26: error: 'struct vm_fault' has no member named 'sequence'

2017-08-10 Thread Laurent Dufour
On 09/08/2017 23:47, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > mmap_sem.2017.08.09a > head: 39782fbd9252a3ace9b49a55f4dd2a41a6ced31f > commit: 1b801585f6b03276db9722dc725a50ca11439467 [6/16] mm: RCU free VMAs > config: i386-tinycon

Re: Switching to MQ by default may generate some bug reports

2017-08-10 Thread Mel Gorman
On Wed, Aug 09, 2017 at 11:49:17PM +0200, Paolo Valente wrote: > > This discrepancy with your results makes a little bit harder for me to > > understand how to better proceed, as I see no regression. Anyway, > > since this reader-throttling issue seems relevant, I have investigated > > it a little

[PATCH] Unifying headers for AArch64 and ARM

2017-08-10 Thread Kaushik Phatak
Hi, This patch is an attempt to unify the kernel header files for AArch64 and ARM. We have developed similar patch for glibc, which unifies the headers in sysdeps. We plan to post that separately to libc-alpha. This developed patch is similar to something that X86 does with the macros (__x86_64__)

Re: [PATCH v3 3/3] nvme: wwid_show: strip trailing 0-bytes

2017-08-10 Thread Christoph Hellwig
Thanks, applied to the nvme-4.13 tree. Note that we already merged the earlier version of your target side changes, can you respin them against the latest 4.13-rc tree?

Re: [PATCH RFC v2] Add /proc/pid/smaps_rollup

2017-08-10 Thread Michal Hocko
[CC linux-api - the patch was posted here http://lkml.kernel.org/r/20170810001557.147285-1-dan...@google.com] On Thu 10-08-17 13:38:31, Minchan Kim wrote: > On Wed, Aug 09, 2017 at 05:15:57PM -0700, Daniel Colascione wrote: > > /proc/pid/smaps_rollup is a new proc file that improves the > > perfor

Re: [PATCH] Subject: drivers:staging:media:atomisp:12c:ab1302.c fix CHECK

2017-08-10 Thread Sakari Ailus
Hi Harold, On Thu, Aug 10, 2017 at 01:58:24PM +0530, Harold Gomez wrote: > CHECK: Do not include the paragraph about writing to the Free Software > Foundation's mailing address from the sample GPL notice. > The FSF has changed addresses in the past, and may do so again. > Linux already includes a

Re: [RFC 3/5] dt-bindings: i3c: Document core bindings

2017-08-10 Thread Boris Brezillon
Hi Rob, Le Wed, 9 Aug 2017 18:43:02 -0500, Rob Herring a écrit : > On Mon, Jul 31, 2017 at 06:24:48PM +0200, Boris Brezillon wrote: > > A new I3C subsystem has been added and a generic description has been > > created to represent the I3C bus and the devices connected on it. > > > > Document th

[PATCH] Input: elan_i2c - add ELAN0608 to the ACPI table

2017-08-10 Thread Kai-Heng Feng
Similar to commit 722c5ac708b4f ("Input: elan_i2c - add ELAN0605 to the ACPI table"), ELAN0608 should be handled by elan_i2c. This touchpad can be found in Lenovo ideapad 320-14IKB. BugLink: https://bugs.launchpad.net/bugs/1708852 Signed-off-by: Kai-Heng Feng --- drivers/input/mouse/elan_i2c_c

[PATCH 2/3] ARM: sun8i: sunxi-h3-h5: add phy-is-integrated property to internal PHY

2017-08-10 Thread Corentin Labbe
This patch add the new phy-is-integrated property to the internal PHY node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index 4b599b5d26f6..54fc24

[PATCH 0/3] net: stmmac: Detect PHY location with phy-is-integrated

2017-08-10 Thread Corentin Labbe
Hello The current way to find if the phy is internal is to compare DT phy-mode and emac_variant/internal_phy. But it will negate a possible future SoC where an external PHY use the same phy mode than the internal one. This patchs series adds a new way to find if the PHY is internal, via the phy-i

[PATCH] auxdisplay: img-ascii-lcd: Only build on archs that have IOMEM

2017-08-10 Thread Thomas Meyer
This avoids the MODPOST error: ERROR: "devm_ioremap_resource" [drivers/auxdisplay/img-ascii-lcd.ko] undefined! Signed-off-by: Thomas Meyer --- drivers/auxdisplay/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig index 9ae6681c90ad

[PATCH 3/3] net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated

2017-08-10 Thread Corentin Labbe
The current way to find if the phy is internal is to compare DT phy-mode and emac_variant/internal_phy. But it will negate a possible future SoC where an external PHY use the same phy mode than the internal one. This patch adds a new way to find if the PHY is internal, via the phy-is-integrated pr

[PATCH 1/3] Documentation: bindings: Add documentation for phy-is-integrated

2017-08-10 Thread Corentin Labbe
This patch adds documentation for phy-is-integrated, a boolean property for PHY which permit to know if the PHY is integrated in the SoC. For example, Allwinner H3 embeds an internal PHY but still permit to connect an external PHY. Since it is possible in theory to have the same PHY model both int

Re: [PATCH 2/3] clk: samsung: Add CLK_SET_RATE_PARENT to some AUDSS CLK CON clocks

2017-08-10 Thread Sylwester Nawrocki
On 07/21/2017 06:36 PM, Sylwester Nawrocki wrote: This allows clk rate propagation up to the clock tree so EPLL can be reprogrammed indirectly when setting rate of the Audio Subsystem clocks. The advantage is that sound machine driver can operate only on the leaf clocks rather than explicitly re-

Re: [v2,01/20] ar5523: constify usb_device_id

2017-08-10 Thread Kalle Valo
Arvind Yadav wrote: > usb_device_id are not supposed to change at runtime. All functions > working with usb_device_id provided by work with > const usb_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav 17 patches applied to wireless-drivers-next.git, thanks.

Re: [PATCH] nvmem: Convert to using %pOF instead of full_name

2017-08-10 Thread Srinivas Kandagatla
On 09/08/17 23:14, Rob Herring wrote: On Tue, Jul 18, 2017 at 4:43 PM, Rob Herring wrote: Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring

Re: [v2,06/20] brcm80211: constify usb_device_id

2017-08-10 Thread Kalle Valo
Arvind Yadav wrote: > usb_device_id are not supposed to change at runtime. All functions > working with usb_device_id provided by work with > const usb_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Does not apply to wireless-drivers-next: error: Failed to

[PATCH] Subject:drivers:staging:media:atomisp:i2c:api1302.c

2017-08-10 Thread Harold Gomez
Fix Warning Block comments use * on subsequent lines Signed-off-by: Harold Gomez --- drivers/staging/media/atomisp/i2c/ap1302.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/atomisp/i2c/ap1302.c b/drivers/staging/media/atomisp/i2c/ap1302.c index

Re: [PATCH v4 00/06] clocksource: sh_cmt: DT binding rework V4

2017-08-10 Thread Geert Uytterhoeven
On Tue, Jul 11, 2017 at 1:56 PM, Simon Horman wrote: > On Thu, Nov 24, 2016 at 11:58:43AM +0100, Simon Horman wrote: >> On Mon, Mar 14, 2016 at 11:23:42PM +0900, Magnus Damm wrote: >> > clocksource: sh_cmt: DT binding rework V4 >> > >> > [PATCH v4 01/06] devicetree: bindings: Remove sh7372 CMT bin

Re: f_hid.c conversion to the new function interface and crash due to race

2017-08-10 Thread Felipe Balbi
Hi, (please break your lines at 80 columns) Variksla writes: >> On Aug 9, 2017, at 2:56 AM, Felipe Balbi >> wrote: > > Thanks for replying. >> >> >> Hi, >> >> noman pouigt writes: >>> Hello, >>> >>> I am currently using 3.18 linux kernel and getting below >> >> return -EKERNELTOOOLD; >>

Re: [PATCH 0/2] constify hid usb_device_id and fix space before '[' error

2017-08-10 Thread Jiri Kosina
On Wed, 9 Aug 2017, Arvind Yadav wrote: > usb_device_id are not supposed to change at runtime. All functions > working with usb_device_id provided by work with > const usb_device_id. So mark the non-const structs as const. Applied to for-4.14/upstream. -- Jiri Kosina SUSE Labs

Re: [RESEND PATCH v5] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2017-08-10 Thread Peter Zijlstra
On Thu, Aug 10, 2017 at 04:12:13PM +0800, Boqun Feng wrote: > > Or is the reason this doesn't work on PPC that its RCpc? So that :-) > Here is an example why PPC needs a sync() before the cmpxchg(): > > https://marc.info/?l=linux-kernel&m=144485396224519&w=2 > > and Paul Mckenney's detai

Re: [RFC PATCH] PCI: rockchip: fix system hang up if activate CONFIG_DEBUG_SHIRQ

2017-08-10 Thread Shawn Lin
Hi Jeffy On 2017/8/10 16:39, jeffy wrote: Hi shawn, On 08/10/2017 04:21 PM, Shawn Lin wrote: With CONFIG_DEBUG_SHIRQ enabled, the irq tear down routine would still access the irq handler registed as a shard irq. Per the comment within the function of __free_irq, it says "It's a shared IRQ -- t

[PATCH 2/2] fbdev: i810: make fb_ops const

2017-08-10 Thread Bhumika Goyal
Make the structure const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/video/fbdev/i810/i810_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/i810/i810_main.c b/drivers/video/fbdev/i810/i

[PATCH 1/2] fbdev: matrox: make fb_ops const

2017-08-10 Thread Bhumika Goyal
Make fb_ops const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/video/fbdev/matrox/matroxfb_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/matrox/matroxfb_base.c b/drivers/video/fbdev/m

[PATCH 0/2] fbdev: make fb_ops const

2017-08-10 Thread Bhumika Goyal
Make these const. Bhumika Goyal (2): fbdev: matrox: make fb_ops const fbdev: i810: make fb_ops const drivers/video/fbdev/i810/i810_main.c | 2 +- drivers/video/fbdev/matrox/matroxfb_base.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 1.9.1

[PATCH 0/2] media: ov7670: Add entity init and power operation

2017-08-10 Thread Wenyou Yang
This patch set is to add the media entity pads initialization and add the s_power operation. Wenyou Yang (2): media: ov7670: Add entity pads initialization media: ov7670: Add the s_power operation drivers/media/i2c/ov7670.c | 43 +++ 1 file changed, 3

[PATCH 1/2] media: ov7670: Add entity pads initialization

2017-08-10 Thread Wenyou Yang
Add the media entity pads initialization. Signed-off-by: Wenyou Yang --- drivers/media/i2c/ov7670.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index e88549f0e704..5c8460ee65c3 100644 --- a/drivers/med

[PATCH 2/2] media: ov7670: Add the s_power operation

2017-08-10 Thread Wenyou Yang
Add the s_power operation which is responsible for manipulating the power dowm mode through the PWDN pin and the reset operation through the RESET pin. Signed-off-by: Wenyou Yang --- drivers/media/i2c/ov7670.c | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-)

Re: hotplug support for arch/arc/plat-eznps platform

2017-08-10 Thread Peter Zijlstra
On Thu, Aug 10, 2017 at 07:40:16AM +, Ofer Levi(SW) wrote: > Well, this definitely have pleased the little toy :) > Thank you. I really appreciate your time and effort. > > If I may, one more newbie question. What do I need to do for the two patches > to find > their way into formal kernel c

Re: [PATCH v8 05/14] lockdep: Implement crossrelease feature

2017-08-10 Thread Peter Zijlstra
On Thu, Aug 10, 2017 at 10:30:54AM +0900, Byungchul Park wrote: > With a little feedback, it rather makes us a bit confused between > XHLOCK_NR and MAX_XHLOCK_NR. what about the following? > > +enum xhlock_context_t { > + XHLOCK_HARD, > + XHLOCK_SOFT, > + XHLOCK_PROC, > +

  1   2   3   4   5   6   7   8   9   10   >