[PATCH] net/mlx5: Use PTR_ERR_OR_ZERO rather than its implementation

2019-09-02 Thread zhong jiang
PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better to use it directly. hence just replace it. Signed-off-by: zhong jiang --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/co

[BACKPORT 4.14.y 4/8] net: sctp: fix warning "NULL check before some freeing functions is not needed"

2019-09-02 Thread Baolin Wang
From: Hariprasad Kelam This patch removes NULL checks before calling kfree. fixes below issues reported by coccicheck net/sctp/sm_make_chunk.c:2586:3-8: WARNING: NULL check before some freeing functions is not needed. net/sctp/sm_make_chunk.c:2652:3-8: WARNING: NULL check before some freeing fun

Re: [PATCH 4.14] tcp: fix tcp_rtx_queue_tail in case of empty retransmit queue

2019-09-02 Thread Tim Froidcoeur
Hi, I also tried to reproduce this in a targeted way, and run into the same difficulty as you: satisfying the first condition “ (sk->sk_wmem_queued >> 1) > limit “. I will not have bandwidth the coming days to try and reproduce it in this way. Maybe simply forcing a very small send buffer using sy

[BACKPORT 4.14.y 3/8] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-02 Thread Baolin Wang
From: Waiman Long Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" warning right after a previous lockdep warning. It is likely that the previous warning turned off lock debugging causing the lockdep to have inconsistency states leading to the lock downgrade warning. Fix t

[BACKPORT 4.14.y 2/8] ip6: fix skb leak in ip6frag_expire_frag_queue()

2019-09-02 Thread Baolin Wang
From: Eric Dumazet Since ip6frag_expire_frag_queue() now pulls the head skb from frag queue, we should no longer use skb_get(), since this leads to an skb leak. Stefan Bader initially reported a problem in 4.4.stable [1] caused by the skb_get(), so this patch should also fix this issue. 296583.

RE: [PATCH net-next] r8152: modify rtl8152_set_speed function

2019-09-02 Thread Hayes Wang
Heiner Kallweit [mailto:hkallwe...@gmail.com] > Sent: Tuesday, September 03, 2019 2:45 PM [...] > > Besides, I have a question. I think I don't need rtl8152_set_speed() > > if I implement phylib. However, I need to record some information > > according to the settings of speed. For now, I do it in

RE: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding

2019-09-02 Thread Anson Huang
Hi, Oleksij > On 03.09.19 08:37, Anson Huang wrote: > > Hi, Oleksij > > > >> On 03.09.19 16:03, Anson Huang wrote: > >>> NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system > >>> controller, the system controller is in charge of system power, > >>> clock and power key event etc. ma

Re: [PATCH] dt-bindings: serial: Convert riscv,sifive-serial to json-schema

2019-09-02 Thread Pragnesh Patel
On Mon, Sep 2, 2019 at 7:09 PM Rob Herring wrote: > > On Sun, Sep 01, 2019 at 12:39:21PM +0530, Pragnesh Patel wrote: > > Convert the riscv,sifive-serial binding to DT schema using json-schema. > > > > Signed-off-by: Pragnesh Patel > > --- > > .../devicetree/bindings/serial/sifive-serial.txt |

Re: [PATCH 5/8] x86/platform/uv: Add UV Hubbed/Hubless Proc FS Files

2019-09-02 Thread Christoph Hellwig
> +extern int _is_uv_hubbed(int uvtype); > +#define is_uv_hubbed _is_uv_hubbed > +static inline int _is_uv_hubbed(int uv) { return 0; } > +#define is_uv_hubbed _is_uv_hubbed Another two instances of these weird indirections..

Re: [PATCH 2/8] x86/platform/uv: Return UV Hubless System Type

2019-09-02 Thread Christoph Hellwig
> static inline bool is_early_uv_system(void) > { > return !((efi.uv_systab == EFI_INVALID_TABLE_ADDR) || !efi.uv_systab); No need for the inner braces here. But woudn't this be nicer as: return efi.uv_systab != EFI_INVALID_TABLE_ADDR && efi.uv_systab; anyway? > +#define is_uv_

RE: [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support

2019-09-02 Thread Anson Huang
Hi, Oleksij > On 03.09.19 16:03, Anson Huang wrote: > > i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller > > inside, the system controller is in charge of controlling power, clock > > and power key etc.. > > > > Adds i.MX system controller power key driver support, Linux kernel has

Re: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding

2019-09-02 Thread Oleksij Rempel
On 03.09.19 08:37, Anson Huang wrote: Hi, Oleksij On 03.09.19 16:03, Anson Huang wrote: NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and power key event etc. management, Linux kernel has to communic

Re: linux-next: manual merge of the devicetree tree with the samsung-krzk tree

2019-09-02 Thread Rob Herring
On Tue, Sep 3, 2019 at 7:32 AM Krzysztof Kozlowski wrote: > > On Tue, 3 Sep 2019 at 07:37, Stephen Rothwell wrote: > > > > Hi all, > > > > Today's linux-next merge of the devicetree tree got a conflict in: > > > > Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt > > > > between commit

Re: linux-next: build failure after merge of the regulator tree

2019-09-02 Thread Bartosz Golaszewski
wt., 3 wrz 2019 o 06:26 Stephen Rothwell napisał(a): > > Hi all, > > After merging the regulator tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > ld: drivers/ata/ahci.o:(.opd+0x150): multiple definition of > `regulator_bulk_set_supply_names'; drivers/phy/phy-core.o

Re: [PATCH net-next] r8152: modify rtl8152_set_speed function

2019-09-02 Thread Heiner Kallweit
On 03.09.2019 08:36, Hayes Wang wrote: > Heiner Kallweit [mailto:hkallwe...@gmail.com] >> Sent: Tuesday, September 03, 2019 2:14 PM > [...] Seeing all this code it might be a good idea to switch this driver to phylib, similar to what I did with r8169 some time ago. >>> >>> It is too compl

[PATCH] fs: omfs: Use kmemdup rather than duplicating its implementation in omfs_get_imap

2019-09-02 Thread zhong jiang
kmemdup contains the kmalloc + memcpy. hence it is better to use kmemdup directly. Just replace it. Signed-off-by: zhong jiang --- fs/omfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index b76ec6b..8867cef 100644 --- a/fs/omfs/i

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-09-02 Thread Daniel Lezcano
On 03/09/2019 08:31, Ming Lei wrote: > Hi Daniel, > > On Tue, Sep 03, 2019 at 07:59:39AM +0200, Daniel Lezcano wrote: >> >> Hi Ming Lei, >> >> On 03/09/2019 05:30, Ming Lei wrote: >> >> [ ... ] >> >> > 2) irq/timing doesn't cover softirq That's solvable, right? >>> >>> Yeah, we can e

RE: [PATCH net-next] r8152: modify rtl8152_set_speed function

2019-09-02 Thread Hayes Wang
Heiner Kallweit [mailto:hkallwe...@gmail.com] > Sent: Tuesday, September 03, 2019 2:14 PM [...] > >> Seeing all this code it might be a good idea to switch this driver > >> to phylib, similar to what I did with r8169 some time ago. > > > > It is too complex to be completed for me at the moment. > >

RE: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding

2019-09-02 Thread Anson Huang
Hi, Oleksij > On 03.09.19 16:03, Anson Huang wrote: > > NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system > > controller, the system controller is in charge of system power, clock > > and power key event etc. management, Linux kernel has to communicate > > with system controller

Re: [RFC 4/5] ARM: dts: omap3-n950-n9: remove opp-v1 table

2019-09-02 Thread H. Nikolaus Schaller
> Am 03.09.2019 um 08:28 schrieb Viresh Kumar : > > On 03-09-19, 08:23, H. Nikolaus Schaller wrote: >> >>> Am 03.09.2019 um 08:14 schrieb Viresh Kumar : >>> >>> On 03-09-19, 08:01, H. Nikolaus Schaller wrote: > Am 03.09.2019 um 04:36 schrieb Viresh Kumar : > > On 02-09-19, 1

Re: linux-next: manual merge of the devicetree tree with the samsung-krzk tree

2019-09-02 Thread Krzysztof Kozlowski
On Tue, 3 Sep 2019 at 07:37, Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the devicetree tree got a conflict in: > > Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt > > between commit: > > 5833f5a5daf3 ("dt-bindings: gpu: mali: Add Samsung exynos5250 compatibl

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-09-02 Thread Ming Lei
Hi Daniel, On Tue, Sep 03, 2019 at 07:59:39AM +0200, Daniel Lezcano wrote: > > Hi Ming Lei, > > On 03/09/2019 05:30, Ming Lei wrote: > > [ ... ] > > > >>> 2) irq/timing doesn't cover softirq > >> > >> That's solvable, right? > > > > Yeah, we can extend irq/timing, but ugly for irq/timing, si

Re: [PATCH V2 1/5] dt-bindings: fsl: scu: add scu power key binding

2019-09-02 Thread Oleksij Rempel
On 03.09.19 16:03, Anson Huang wrote: NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and power key event etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC

Re: [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support

2019-09-02 Thread Oleksij Rempel
Hi, On 03.09.19 16:03, Anson Huang wrote: i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and power key etc.. Adds i.MX system controller power key driver support, Linux kernel has to communicate with system

[v3,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-02 Thread Biwen Li
Add some properties for pcf85263/pcf85363 as follows: - interrupt-output-pin: string type - quartz-load-femtofarads: integer type - nxp,quartz-drive-strength: integer type - nxp,quartz-low-jitter: bool type - wakeup-source: bool type Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li

[v3,2/2] rtc: pcf85263/pcf85363: support PM, wakeup device, improve performance

2019-09-02 Thread Biwen Li
Add some features as follow: - Set quartz oscillator load capacitance by DT (generate more accuracy frequency) - Set quartz oscillator drive control by DT (reduce/increase the current consumption) - Set low jitter mode by DT (improve jitter performance) - Set wakeu

Re: [PATCH v2 6/6] powerpc: Don't flush caches when adding memory

2019-09-02 Thread Alastair D'Silva
On Tue, 2019-09-03 at 08:23 +0200, Christophe Leroy wrote: > > Le 03/09/2019 à 07:24, Alastair D'Silva a écrit : > > From: Alastair D'Silva > > > > This operation takes a significant amount of time when hotplugging > > large amounts of memory (~50 seconds with 890GB of persistent > > memory). >

Re: [RFC 4/5] ARM: dts: omap3-n950-n9: remove opp-v1 table

2019-09-02 Thread Viresh Kumar
On 03-09-19, 08:23, H. Nikolaus Schaller wrote: > > > Am 03.09.2019 um 08:14 schrieb Viresh Kumar : > > > > On 03-09-19, 08:01, H. Nikolaus Schaller wrote: > >> > >>> Am 03.09.2019 um 04:36 schrieb Viresh Kumar : > >>> > >>> On 02-09-19, 12:55, H. Nikolaus Schaller wrote: > With opp-v2 in

Re: [PATCH v2 4/6] powerpc: Chunk calls to flush_dcache_range in arch_*_memory

2019-09-02 Thread Alastair D'Silva
On Tue, 2019-09-03 at 08:19 +0200, Christophe Leroy wrote: > > Le 03/09/2019 à 07:23, Alastair D'Silva a écrit : > > From: Alastair D'Silva > > > > When presented with large amounts of memory being hotplugged > > (in my test case, ~890GB), the call to flush_dcache_range takes > > a while (~50 se

Re: [PATCH v2 6/6] powerpc: Don't flush caches when adding memory

2019-09-02 Thread Christophe Leroy
Le 03/09/2019 à 07:24, Alastair D'Silva a écrit : From: Alastair D'Silva This operation takes a significant amount of time when hotplugging large amounts of memory (~50 seconds with 890GB of persistent memory). This was orignally in commit fb5924fddf9e ("powerpc/mm: Flush cache on memory ho

Re: [RFC 4/5] ARM: dts: omap3-n950-n9: remove opp-v1 table

2019-09-02 Thread H. Nikolaus Schaller
> Am 03.09.2019 um 08:14 schrieb Viresh Kumar : > > On 03-09-19, 08:01, H. Nikolaus Schaller wrote: >> >>> Am 03.09.2019 um 04:36 schrieb Viresh Kumar : >>> >>> On 02-09-19, 12:55, H. Nikolaus Schaller wrote: With opp-v2 in omap36xx.dtsi and ti-cpufreq driver the 1GHz capability is a

Re: [PATCH 6/8] x86/platform/uv: Decode UVsystab Info

2019-09-02 Thread Greg KH
On Mon, Sep 02, 2019 at 07:18:21PM -0500, Mike Travis wrote: > Decode the hubless UVsystab passed from BIOS to the kernel saving > pertinent info in a similar manner that hubbed UVsystabs are decoded. > > Signed-off-by: Mike Travis > Reviewed-by: Steve Wahl > Reviewed-by: Dimitri Sivanich > ---

Re: [PATCH v2 5/6] powerpc: Remove 'extern' from func prototypes in cache headers

2019-09-02 Thread Christophe Leroy
Le 03/09/2019 à 07:23, Alastair D'Silva a écrit : From: Alastair D'Silva The 'extern' keyword does not value-add for function prototypes. Is it worth it ? That kind of change is nice cleanup but the drawback is to kill automatic backports of fixes. Signed-off-by: Alastair D'Silva ---

Re: [PATCH 1/1] arm64: dts: qcom: Add Lenovo Yoga C630

2019-09-02 Thread Lee Jones
On Tue, 03 Sep 2019, Lee Jones wrote: > On Mon, 02 Sep 2019, Bjorn Andersson wrote: > > > On Mon 02 Sep 06:24 PDT 2019, Lee Jones wrote: > > > > > From: Bjorn Andersson > > > > > > The Lenovo Yoga C630 is built on the SDM850 from Qualcomm, but this seem > > > to be similar enough to the SDM845

Re: [PATCH 1/1] arm64: dts: qcom: Add Lenovo Yoga C630

2019-09-02 Thread Lee Jones
On Mon, 02 Sep 2019, Bjorn Andersson wrote: > On Mon 02 Sep 06:24 PDT 2019, Lee Jones wrote: > > > From: Bjorn Andersson > > > > The Lenovo Yoga C630 is built on the SDM850 from Qualcomm, but this seem > > to be similar enough to the SDM845 that we can reuse the sdm845.dtsi. > > > > Supported

Re: [PATCH v2 4/6] powerpc: Chunk calls to flush_dcache_range in arch_*_memory

2019-09-02 Thread Christophe Leroy
Le 03/09/2019 à 07:23, Alastair D'Silva a écrit : From: Alastair D'Silva When presented with large amounts of memory being hotplugged (in my test case, ~890GB), the call to flush_dcache_range takes a while (~50 seconds), triggering RCU stalls. This patch breaks up the call into 1GB chunks,

[PATCH v3 1/1] x86/init: Noop get/set wallclock when platform doesn't support RTC

2019-09-02 Thread Rahul Tanwar
Use wallclock_init() op to detect platforms which does not support RTC and noop get/set wallclock ops for such platforms. Reported-by: kbuild test robot Fixes: 1461badd03e7 ("x86/init: Noop get/set wallclock when platform doesn't support RTC") Suggested-by: Andy Shevchenko Signed-off-by: Rahul

[PATCH v3 0/1] Add option to skip using RTC

2019-09-02 Thread Rahul Tanwar
Hi, There is a new product which does not support RTC as persistent clock source. Platform ops get/set wallclock are used to get/set timespec through kernel timekeeping read/update_persistent_clock64() routines. Presently, get/set wallclock ops always use MC146818A RTC/CMOS device to read & set

Re: [RFC 4/5] ARM: dts: omap3-n950-n9: remove opp-v1 table

2019-09-02 Thread Viresh Kumar
On 03-09-19, 08:01, H. Nikolaus Schaller wrote: > > > Am 03.09.2019 um 04:36 schrieb Viresh Kumar : > > > > On 02-09-19, 12:55, H. Nikolaus Schaller wrote: > >> With opp-v2 in omap36xx.dtsi and ti-cpufreq driver the > >> 1GHz capability is automatically detected. > >> > >> Signed-off-by: H. Niko

Re: [PATCH net-next] r8152: modify rtl8152_set_speed function

2019-09-02 Thread Heiner Kallweit
On 03.09.2019 05:16, Hayes Wang wrote: > Heiner Kallweit [mailto:hkallwe...@gmail.com] >> Sent: Tuesday, September 03, 2019 2:37 AM > [...] >> Seeing all this code it might be a good idea to switch this driver >> to phylib, similar to what I did with r8169 some time ago. > > It is too complex to b

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-09-02 Thread Ido Schimmel
On Mon, Sep 02, 2019 at 07:42:31PM +0200, Allan W. Nielsen wrote: > I have been reading through this thread several times and I still do not get > it. Allan, I kept thinking about this and I want to make sure that I correctly understand the end result. With these patches applied I assume I will

Re: [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support

2019-09-02 Thread Dmitry Torokhov
On Mon, Sep 2, 2019 at 8:11 PM Anson Huang wrote: > > Hi, Fabio > > > On Mon, Sep 2, 2019 at 11:05 PM Anson Huang > > wrote: > > > > > + ret = input_register_device(input); > > > + if (ret < 0) { > > > + dev_err(&pdev->dev, "failed to register input device\n"); > > > +

Re: [PATCH v2 3/6] powerpc: Convert flush_icache_range & friends to C

2019-09-02 Thread Christophe Leroy
Le 03/09/2019 à 07:23, Alastair D'Silva a écrit : From: Alastair D'Silva Similar to commit 22e9c88d486a ("powerpc/64: reuse PPC32 static inline flush_dcache_range()") this patch converts the following ASM symbols to C: flush_icache_range() __flush_dcache_icache() __flush_dcach

Re: [PATCHv1 1/3] arm64: dts: meson: odroid-c2: Add missing regulator linked to P5V0 regulator

2019-09-02 Thread kbuild test robot
Hi Anand, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3-rc7 next-20190902] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

[PATCH] NFS: remove the redundant check when kfree an object in nfs_netns_client_release

2019-09-02 Thread zhong jiang
kfree has taken the null check in account. hence it is unnecessary to add the null check before kfree the object. Just remove it. Signed-off-by: zhong jiang --- fs/nfs/sysfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/nfs/sysfs.c b/fs/nfs/sysfs.c index 4f3390b..c48

Re: [RFC 4/5] ARM: dts: omap3-n950-n9: remove opp-v1 table

2019-09-02 Thread H. Nikolaus Schaller
> Am 03.09.2019 um 04:36 schrieb Viresh Kumar : > > On 02-09-19, 12:55, H. Nikolaus Schaller wrote: >> With opp-v2 in omap36xx.dtsi and ti-cpufreq driver the >> 1GHz capability is automatically detected. >> >> Signed-off-by: H. Nikolaus Schaller >> --- >> arch/arm/boot/dts/omap3-n950-n9.dtsi |

RE: "fs/namei.c: keep track of nd->root refcount status" causes boot panic

2019-09-02 Thread Dexuan Cui
-next-20190902+ #2 [ 18.046528] RIP: 0010:__lock_acquire+0xa8/0x16c0 [ 18.046590] Code: 48 89 c3 44 8b 4c 24 10 0f 84 13 04 00 00 48 81 eb 80 d7 a9 ... [ 18.046782] RSP: 0018:c900043ffc10 EFLAGS: 00010803 [ 18.046828] RAX: 2e8ba2e8ba2e8ba3 RBX: 466db384fa0cbc7a RCX:

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-09-02 Thread Daniel Lezcano
Hi Ming Lei, On 03/09/2019 05:30, Ming Lei wrote: [ ... ] >>> 2) irq/timing doesn't cover softirq >> >> That's solvable, right? > > Yeah, we can extend irq/timing, but ugly for irq/timing, since irq/timing > focuses on hardirq predication, and softirq isn't involved in that > purpose. > >>

Re: [RFC 2/5] ARM: dts: add support for opp-v2 for omap34xx and omap36xx

2019-09-02 Thread H. Nikolaus Schaller
> Am 03.09.2019 um 04:38 schrieb Viresh Kumar : > > On 02-09-19, 12:55, H. Nikolaus Schaller wrote: >> +opp1-12500 { >> +opp-hz = /bits/ 64 <12500>; >> +// we currently only select the max voltage from table >> Table 3-3 of the omap353

Re: [PATCH] clocksource: atmel-st: Variable sr in at91rm9200_timer_interrupt() could be uninitialized

2019-09-02 Thread Yizhuo Zhai
In function regmap_read(), there're two places which could make the read fail. First, if "reg" and "map->reg_stride" are not aligned, then remap_read() will return -EINVAL without initialize variable "val". Second, _regmap_read() could also fail and return error code if "val" is not initialized

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-09-02 Thread Nathan Chancellor
On Thu, Aug 29, 2019 at 09:59:48AM +, David Laight wrote: > From: Nathan Chancellor > > Sent: 28 August 2019 19:45 > ... > > However, I think that -fno-builtin-* would be appropriate here because > > we are providing our own setjmp implementation, meaning clang should not > > be trying to do an

Re: [PATCH] ALSA: hda/realtek - Enable internal speaker & headset mic of ASUS UX431FL

2019-09-02 Thread Takashi Iwai
On Tue, 03 Sep 2019 07:30:04 +0200, Jian-Hong Pan wrote: > > Takashi Iwai 於 2019年9月2日 週一 下午7:41寫道: > > > > On Mon, 02 Sep 2019 12:00:56 +0200, > > Jian-Hong Pan wrote: > > > > > > Original pin node values of ASUS UX431FL with ALC294: > > > > > > 0x12 0xb7a60140 > > > 0x13 0x4000 > > > 0x14 0x

RE: "fs/namei.c: keep track of nd->root refcount status" causes boot panic

2019-09-02 Thread Dexuan Cui
l fix the > > issue. > > I believe I'm seeing the same issue with next-20190902 in a Linux VM > running on Hyper-V (next-20190830 is good). > > git-bisect points to the same commit in linux-next: > e013ec23b823 ("fs/namei.c: keep track of nd->root refcount st

Re: [PATCH 1/1] arm64: dts: qcom: Add Lenovo Yoga C630

2019-09-02 Thread Bjorn Andersson
On Mon 02 Sep 06:24 PDT 2019, Lee Jones wrote: > From: Bjorn Andersson > > The Lenovo Yoga C630 is built on the SDM850 from Qualcomm, but this seem > to be similar enough to the SDM845 that we can reuse the sdm845.dtsi. > > Supported by this patch is: keyboard, battery monitoring, UFS storage,

Re: linux-next: build failure after merge of the hmm tree

2019-09-02 Thread Stephen Rothwell
Hi Dan, On Mon, 2 Sep 2019 22:31:00 -0700 Dan Williams wrote: > > On Mon, Sep 2, 2019 at 4:45 PM Stephen Rothwell wrote: > > > > Hi Jason, > > > > On Mon, 2 Sep 2019 10:51:41 + Jason Gunthorpe > > wrote: > > > > > > On Mon, Sep 02, 2019 at 08:50:17PM +1000, Stephen Rothwell wrote: > >

Re: [PATCH] ACPI: support for NXP i2c controller

2019-09-02 Thread Oleksij Rempel
Hi, On 02.09.19 23:16, Andy Shevchenko wrote: On Mon, Sep 2, 2019 at 11:58 PM Rafael J. Wysocki wrote: On Thu, Jul 11, 2019 at 12:35 PM Chuanhua Han wrote: Enable NXP i2c controller to boot with ACPI Signed-off-by: Meenakshi Aggarwal Signed-off-by: Udit Kumar Signed-off-by: Chuanhua Han

linux-next: manual merge of the devicetree tree with the samsung-krzk tree

2019-09-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the devicetree tree got a conflict in: Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt between commit: 5833f5a5daf3 ("dt-bindings: gpu: mali: Add Samsung exynos5250 compatible") from the samsung-krzk tree and commit: 553cedf60056 ("dt-bindi

[PATCH] rtl8xxxu: add bluetooth co-existence support for single antenna

2019-09-02 Thread Chris Chiu
The RTL8723BU suffers the wifi disconnection problem while bluetooth device connected. While wifi is doing tx/rx, the bluetooth will scan without results. This is due to the wifi and bluetooth share the same single antenna for RF communication and they need to have a mechanism to collaborate. BT i

Re: [PATCH] staging: exfat: fix uninitialized variable ret

2019-09-02 Thread Nathan Chancellor
On Fri, Aug 30, 2019 at 07:46:44PM +0100, Colin King wrote: > From: Colin Ian King > > Currently there are error return paths in ffsReadFile that > exit via lable err_out that return and uninitialized error > return in variable ret. Fix this by initializing ret to zero. > > Addresses-Coverity: (

Re: linux-next: build failure after merge of the hmm tree

2019-09-02 Thread Dan Williams
On Mon, Sep 2, 2019 at 4:45 PM Stephen Rothwell wrote: > > Hi Jason, > > On Mon, 2 Sep 2019 10:51:41 + Jason Gunthorpe wrote: > > > > On Mon, Sep 02, 2019 at 08:50:17PM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > ERROR: "nd_region_provider_data" [drivers/acpi/nfit/nfit.ko] undefine

[PATCH 3/3] spi: uniphier: introduce polling mode

2019-09-02 Thread Keiji Hayashibara
Introduce new polling mode for short size transfer. Either the estimated transfer time is estimated to exceed 200us, or polling loop actually exceeds 200us, it switches to irq mode. Signed-off-by: Keiji Hayashibara --- drivers/spi/spi-uniphier.c | 81 +

[PATCH 1/3] spi: uniphier: fix wrong register overwrite

2019-09-02 Thread Keiji Hayashibara
When it changes the spi mode, the register is overwritten incorrectly. This commit fixes this register overwrite. Signed-off-by: Keiji Hayashibara --- drivers/spi/spi-uniphier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-uniphier.c b/drivers/spi/spi-uniphier.c index c1e6

[PATCH 2/3] spi: uniphier: remove unnecessary code

2019-09-02 Thread Keiji Hayashibara
This commit removed if() because priv->is_save_param is always true. Signed-off-by: Keiji Hayashibara --- drivers/spi/spi-uniphier.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-uniphier.c b/drivers/spi/spi-uniphier.c index e6ebbb1..d40ad93 100644 --- a/d

[PATCH 0/3] spi: uniphier: introduce polling mode and fix bug

2019-09-02 Thread Keiji Hayashibara
This series introduces new polling mode and fixes bug. - Introduce new polling mode for short size transfer. Either the estimated transfer time is estimated to exceed 200us, or polling loop actually exceeds 200us, it switches to irq mode. - Fix a bug of register overwrite. - Minor corrections.

Re: [PATCH] ALSA: hda/realtek - Enable internal speaker & headset mic of ASUS UX431FL

2019-09-02 Thread Jian-Hong Pan
Takashi Iwai 於 2019年9月2日 週一 下午7:41寫道: > > On Mon, 02 Sep 2019 12:00:56 +0200, > Jian-Hong Pan wrote: > > > > Original pin node values of ASUS UX431FL with ALC294: > > > > 0x12 0xb7a60140 > > 0x13 0x4000 > > 0x14 0x90170110 > > 0x15 0x41f0 > > 0x16 0x41f0 > > 0x17 0x90170111 > > 0x18 0x

Re: linux-next: build failure after merge of the iommu tree

2019-09-02 Thread Stephen Rothwell
Hi all, On Mon, 2 Sep 2019 14:26:40 + "Lendacky, Thomas" wrote: > > On 9/2/19 9:03 AM, Joerg Roedel wrote: > > > > tl;dr: And IOMMU commit introduces a new user for sme_active() in > > generic code, and commit > > > > 284e21fab2cf x86, s390/mm: Move sme_active() and sme

[PATCH v2 3/6] powerpc: Convert flush_icache_range & friends to C

2019-09-02 Thread Alastair D'Silva
From: Alastair D'Silva Similar to commit 22e9c88d486a ("powerpc/64: reuse PPC32 static inline flush_dcache_range()") this patch converts the following ASM symbols to C: flush_icache_range() __flush_dcache_icache() __flush_dcache_icache_phys() This was done as we discovered a long-sta

[PATCH v2 6/6] powerpc: Don't flush caches when adding memory

2019-09-02 Thread Alastair D'Silva
From: Alastair D'Silva This operation takes a significant amount of time when hotplugging large amounts of memory (~50 seconds with 890GB of persistent memory). This was orignally in commit fb5924fddf9e ("powerpc/mm: Flush cache on memory hot(un)plug") to support memtrace, but the flush on add i

[PATCH v2 5/6] powerpc: Remove 'extern' from func prototypes in cache headers

2019-09-02 Thread Alastair D'Silva
From: Alastair D'Silva The 'extern' keyword does not value-add for function prototypes. Signed-off-by: Alastair D'Silva --- arch/powerpc/include/asm/cache.h | 8 arch/powerpc/include/asm/cacheflush.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/

[PATCH v2 4/6] powerpc: Chunk calls to flush_dcache_range in arch_*_memory

2019-09-02 Thread Alastair D'Silva
From: Alastair D'Silva When presented with large amounts of memory being hotplugged (in my test case, ~890GB), the call to flush_dcache_range takes a while (~50 seconds), triggering RCU stalls. This patch breaks up the call into 1GB chunks, calling cond_resched() inbetween to allow the scheduler

[PATCH v2 2/6] powerpc: define helpers to get L1 icache sizes

2019-09-02 Thread Alastair D'Silva
From: Alastair D'Silva This patch adds helpers to retrieve icache sizes, and renames the existing helpers to make it clear that they are for dcache. Signed-off-by: Alastair D'Silva --- arch/powerpc/include/asm/cache.h | 29 +++ arch/powerpc/include/asm/cacheflush.h

[PATCH v2 0/6] powerpc: convert cache asm to C

2019-09-02 Thread Alastair D'Silva
From: Alastair D'Silva This series addresses a few issues discovered in how we flush caches: 1. Flushes were truncated at 4GB, so larger flushes were incorrect. 2. Flushing the dcache in arch_add_memory was unnecessary This series also converts much of the cache assembler to C, with the aim of m

[PATCH v2 1/6] powerpc: Allow flush_icache_range to work across ranges >4GB

2019-09-02 Thread Alastair D'Silva
From: Alastair D'Silva When calling flush_icache_range with a size >4GB, we were masking off the upper 32 bits, so we would incorrectly flush a range smaller than intended. This patch replaces the 32 bit shifts with 64 bit ones, so that the full size is accounted for. Signed-off-by: Alastair D'

Re: "fs/namei.c: keep track of nd->root refcount status" causes boot panic

2019-09-02 Thread Dexuan-Linux Cui
ing the same issue with next-20190902 in a Linux VM running on Hyper-V (next-20190830 is good). git-bisect points to the same commit in linux-next: e013ec23b823 ("fs/namei.c: keep track of nd->root refcount status") I can reproduce the issue every time I reboot the system. Thanks, Dexuan

Re: [PATCH v7 5/6] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-09-02 Thread Christophe Leroy
On 09/02/2019 11:53 PM, Michael Ellerman wrote: Segher Boessenkool writes: On Mon, Sep 02, 2019 at 12:03:12PM +1000, Michael Ellerman wrote: Michal Suchanek writes: On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. I think the toolchain peop

[PATCH] iio: imu: st_lsm6dsx: replace underscore with hyphen in device name

2019-09-02 Thread Martin Kepplinger
With the underscore character in the lsm9ds1_imu device name, we get the following error below, so use a dash, just like the other device names do too. [3.961399] Unable to handle kernel NULL pointer dereference at virtual address 0018 [4.010581] Mem abort info: [4.013838]

Re: [PATCH] ABI: Update dev-kmsg documentation to match current kernel behaviour

2019-09-02 Thread Sergey Senozhatsky
On (09/02/19 11:18), James Byrne wrote: > Commit 5aa068ea4082 ("printk: remove games with previous record flags") > abolished the practice of setting the log flag to 'c' for the first > continuation line and '+' for subsequent lines. Now all continuation > lines are flagged with 'c' and '+' is neve

Re: [PATCH] soc/tegra: fuse: Add clock error check in tegra_fuse_readl

2019-09-02 Thread Nagarjuna Kristam
On 02-09-2019 16:15, Jon Hunter wrote: > > On 28/08/2019 12:18, Nagarjuna Kristam wrote: >> Tegra fuse clock handle is retrieved in tegra_fuse_probe(). >> tegra_fuse_readl() is exported symbol, which can be called from drivers >> at any time. tegra_fuse_readl() enables fuse clock and reads corr

[PATCH 3/3] task: Clean house now that tasks on the runqueue are rcu protected

2019-09-02 Thread Eric W. Biederman
Use rcu_dereference instead of task_rcu_dereference. Remove task_rcu_dereference. Remove the complications of rcuwait that were in place because tasks on the runqueue were not rcu protected. It is now safe to call wake_up_process if the target was know to be on the runqueue in the current rcu

[PATCH 2/3] task: RCU protect tasks on the runqueue

2019-09-02 Thread Eric W. Biederman
In the ordinary case today the rcu grace period of a task comes when a task is reaped, well after the task has left the runqueue. This change guarantees that the rcu grace period always happens after a task has left the runqueue. As this is something that usaually happens today I do not expect

[PATCH 1/3] task: Add a count of task rcu users

2019-09-02 Thread Eric W. Biederman
Add a count of the number of rcu users (currently 1) of the task struct so that we can later add the scheduler case and get rid of the very subtle task_rcu_dereference, and just use rcu_dereference. As suggested by Oleg have the count overlap rcu_head so that no additional space in task_struct i

[PATCH 0/3] task: Making tasks on the runqueue rcu protected

2019-09-02 Thread Eric W. Biederman
I have split this work into 3 simple patches, so the code is straight forward to review and so that if any mistakes slip in it is easy to bisect them. In the process of review what it takes to remove task_rcu_dereference I found yet another user of tasks on the runqueue in rcu context; the rcuwa

Re: [PATCH v4 1/5] vsock/virtio: limit the memory used per-socket

2019-09-02 Thread Michael S. Tsirkin
On Mon, Sep 02, 2019 at 11:57:23AM +0200, Stefano Garzarella wrote: > > > > Assuming we miss nothing and buffers < 4K are broken, > > I think we need to add this to the spec, possibly with > > a feature bit to relax the requirement that all buffers > > are at least 4k in size. > > > > Okay, shou

Re: [PATCH v4 2/5] vsock/virtio: reduce credit update messages

2019-09-02 Thread Michael S. Tsirkin
On Wed, Jul 17, 2019 at 01:30:27PM +0200, Stefano Garzarella wrote: > In order to reduce the number of credit update messages, > we send them only when the space available seen by the > transmitter is less than VIRTIO_VSOCK_MAX_PKT_BUF_SIZE. > > Signed-off-by: Stefano Garzarella > --- > include/

linux-next: build failure after merge of the regulator tree

2019-09-02 Thread Stephen Rothwell
Hi all, After merging the regulator tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: ld: drivers/ata/ahci.o:(.opd+0x150): multiple definition of `regulator_bulk_set_supply_names'; drivers/phy/phy-core.o:(.opd+0x3f0): first defined here ld: drivers/ata/ahci.o: in functi

"fs/namei.c: keep track of nd->root refcount status" causes boot panic

2019-09-02 Thread Qian Cai
4.169095][T1] Read of size 4 at addr by task systemd/1 [ 104.176227][T1] [ 104.178416][T1] CPU: 166 PID: 1 Comm: systemd Not tainted 5.3.0-rc6-next-20190902 #2 [ 104.186504][T1] Hardware name: HPE Apollo 70 /C01_APACHE_MB , BIOS L50_5.13_1.11 06

[PATCH v3 1/2] uacce: Add documents for uacce

2019-09-02 Thread Zhangfei Gao
From: Kenneth Lee Uacce (Unified/User-space-access-intended Accelerator Framework) is a kernel module targets to provide Shared Virtual Addressing (SVA) between the accelerator and process. This patch add document to explain how it works. Signed-off-by: Kenneth Lee Signed-off-by: Zaibo Xu Sig

[PATCH v3 2/2] uacce: add uacce driver

2019-09-02 Thread Zhangfei Gao
From: Kenneth Lee Uacce (Unified/User-space-access-intended Accelerator Framework) targets to provide Shared Virtual Addressing (SVA) between accelerators and processes. So accelerator can access any data structure of the main cpu. This differs from the data sharing between cpu and io device, whi

[PATCH v3 0/2] Add uacce module for Accelerator

2019-09-02 Thread Zhangfei Gao
Uacce (Unified/User-space-access-intended Accelerator Framework) targets to provide Shared Virtual Addressing (SVA) between accelerators and processes. So accelerator can access any data structure of the main cpu. This differs from the data sharing between cpu and io device, which share data conten

RE: [PATCH v2 5/6] mdev: Update sysfs documentation

2019-09-02 Thread Parav Pandit
> -Original Message- > From: Cornelia Huck > Sent: Monday, September 2, 2019 8:07 PM > To: Parav Pandit > Cc: alex.william...@redhat.com; Jiri Pirko ; > kwankh...@nvidia.com; da...@davemloft.net; k...@vger.kernel.org; > linux-kernel@vger.kernel.org; net...@vger.kernel.org > Subject: Re

RE: [PATCH v2 1/6] mdev: Introduce sha1 based mdev alias

2019-09-02 Thread Parav Pandit
> -Original Message- > From: Cornelia Huck > Sent: Monday, September 2, 2019 8:16 PM > To: Parav Pandit > Cc: alex.william...@redhat.com; Jiri Pirko ; > kwankh...@nvidia.com; da...@davemloft.net; k...@vger.kernel.org; > linux-kernel@vger.kernel.org; net...@vger.kernel.org > Subject: Re

RE: [PATCH v3 01/11] PCI: designware-ep: Add multiple PFs support for DWC

2019-09-02 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年9月3日 0:26 > To: Xiaowei Bao > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > Li ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h. > Lian ; Mingkai Hu ; Roy > Zang ; jingooh...@gmail.com; > gustavo.pimen...@

[PATCH] arm64: dts: lx2160a: add tmu device node

2019-09-02 Thread Yuantian Tang
Add the TMU (Thermal Monitoring Unit) device node to enable TMU feature. Signed-off-by: Yuantian Tang --- .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 108 +++--- 1 file changed, 92 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch

[PATCH v2 0/7] Nvidia Arm SMMUv2 Implementation

2019-09-02 Thread Krishna Reddy
Changes in v2: - Prepare arm_smu_flush_ops for override. - Remove NVIDIA_SMMUv2 and use ARM_SMMUv2 model as T194 SMMU hasn't modified ARM MMU-500. - Add T194 specific compatible string - "nvidia,tegra194-smmu" - Remove tlb_sync hook added in v1 and Override arm_smmu_flush_ops->tlb_sync() from imp

[PATCH v2 3/7] dt-bindings: arm-smmu: Add binding for Tegra194 SMMU

2019-09-02 Thread Krishna Reddy
Add binding for NVIDIA's Tegra194 Soc SMMU that is based on ARM MMU-500. Signed-off-by: Krishna Reddy --- Documentation/devicetree/bindings/iommu/arm,smmu.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.txt b/Documentation/devicetree/

RE: [PATCH][usb-next] usb: cdns3: fix missing assignment of ret before error check on ret

2019-09-02 Thread Pawel Laszczak
Hi Colin >Hi Colin > >> >>From: Colin Ian King >> >>Currently the check on a non-zero return code in ret is false because >>ret has been initialized to zero. I believe that ret should be assigned >>to the return from the call to readl_poll_timeout_atomic before the >>check on ret. Since ret is

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-09-02 Thread Ming Lei
On Wed, Aug 28, 2019 at 04:07:19PM +0200, Thomas Gleixner wrote: > On Wed, 28 Aug 2019, Ming Lei wrote: > > On Wed, Aug 28, 2019 at 01:23:06PM +0200, Thomas Gleixner wrote: > > > On Wed, 28 Aug 2019, Ming Lei wrote: > > > > On Wed, Aug 28, 2019 at 01:09:44AM +0200, Thomas Gleixner wrote: > > > > >

Re: [PATCH 3/3] arm64: defconfig: Enable Qualcomm QUSB2 PHY

2019-09-02 Thread Bjorn Andersson
On Mon 02 Sep 06:07 PDT 2019, Lee Jones wrote: > Tested on the Lenovo Yoga C630 where this patch enables USB. > Without it USB devices are not enumerated. > > Signed-off-by: Lee Jones Reviewed-by: Bjorn Andersson > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) >

Re: [PATCH 2/3] arm64: defconfig: Enable the EFI Framebuffer

2019-09-02 Thread Bjorn Andersson
On Mon 02 Sep 06:07 PDT 2019, Lee Jones wrote: > Tested on the Lenovo Yoga C630 where this patch enables the > framebuffer (screen/monitor). Without it the device appears > not to boot. > > Signed-off-by: Lee Jones Reviewed-by: Bjorn Andersson > --- > arch/arm64/configs/defconfig | 1 + > 1

Re: [PATCH 1/3] arm64: defconfig: Enable Qualcomm GENI based I2C controller

2019-09-02 Thread Bjorn Andersson
On Mon 02 Sep 06:07 PDT 2019, Lee Jones wrote: > Tested on the Lenovo Yoga C630 where this patch enables the > keyboard, touchpad and touchscreen. > > Signed-off-by: Lee Jones Reviewed-by: Bjorn Andersson > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff

  1   2   3   4   5   6   7   8   9   >