RE: [PATCH 3/3] KVM:SVM: Enable INVPCID feature on AMD

2020-06-15 Thread Babu Moger
> -Original Message- > From: Paolo Bonzini > Sent: Monday, June 15, 2020 8:47 AM > To: Jim Mattson ; Moger, Babu > > Cc: Wanpeng Li ; Joerg Roedel ; > the arch/x86 maintainers ; Sean Christopherson > ; Ingo Molnar ; > Borislav Petkov ; H . Peter Anvin ; Vitaly > Kuznetsov ; Thomas Glei

Re: [PATCH]: arch: arm64: vdso: export the symbols for time()

2020-06-15 Thread kernel test robot
Hi Mark, Thank you for the patch! Yet something to improve: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on soc/for-next linus/master v5.8-rc1 next-20200615] [cannot apply to linux/master] [if your patch is applied to the wrong git tree, please drop us a note to help

Re: [PATCH 5/5] LSM: Define workqueue for measuring security module state

2020-06-15 Thread Mimi Zohar
On Mon, 2020-06-15 at 09:33 -0400, Stephen Smalley wrote: > On Fri, Jun 12, 2020 at 10:42 PM Lakshmi Ramasubramanian > wrote: > > > > The data maintained by the security modules could be tampered with by > > malware. The LSM needs to periodically query the state of > > the security modules and mea

Re: [PATCH] spi: uapi: spidev: Use TABs for alignment

2020-06-15 Thread Geert Uytterhoeven
Hi Mark, On Mon, Jun 15, 2020 at 4:42 PM Mark Brown wrote: > On Sat, Jun 13, 2020 at 09:37:54AM +0200, Geert Uytterhoeven wrote: > > The UAPI uses TABs for alignment. > > Convert the recently introduced spaces to TABs to restore consistency. > > > > Fixes: f30e8cbdf8ee1a43 ("spi: tools: Add macr

Re: [PATCH v2 1/3] spi: spi-fsl-dspi: Fix external abort on interrupt in exit paths

2020-06-15 Thread Vladimir Oltean
On Mon, 15 Jun 2020 at 17:57, Krzysztof Kozlowski wrote: > > On Mon, Jun 15, 2020 at 05:23:28PM +0300, Vladimir Oltean wrote: > > On Mon, 15 Jun 2020 at 16:41, Krzysztof Kozlowski wrote: > > > > > > On Mon, Jun 15, 2020 at 04:12:28PM +0300, Vladimir Oltean wrote: > > > > On Mon, 15 Jun 2020 at 16

Re: [PATCH] scsi: target/sbp: remove firewire SBP target driver

2020-06-15 Thread Chris Boot
On 15/06/2020 00:28, Finn Thain wrote: > On Sun, 14 Jun 2020, Chris Boot wrote: > >> I expect that if someone finds this useful it can stick around (but >> that's not my call). > > Who's call is that? If the patch had said "From: Martin K. Petersen" and > "This driver is being removed because i

Re: [PATCH] mm: memcontrol: handle div0 crash race condition in memory.low

2020-06-15 Thread Michal Hocko
On Mon 15-06-20 10:06:58, Johannes Weiner wrote: > Tejun reports seeing rare div0 crashes in memory.low stress testing: > > [37228.504582] RIP: 0010:mem_cgroup_calculate_protection+0xed/0x150 > [37228.505059] Code: 0f 46 d1 4c 39 d8 72 57 f6 05 16 d6 42 01 40 74 1f 4c 39 > d8 76 1a 4c 39 d1 76 15

Re: [PATCH 0/2] MCA and EDAC updates for AMD Family 17h, Model 60h

2020-06-15 Thread Guenter Roeck
On 6/15/20 4:59 AM, Borislav Petkov wrote: > + Yazen and linux-hwmon. > > On Sun, Jun 07, 2020 at 12:37:07PM +0800, Jacky Hu wrote: >> This patchset adds MCA and EDAC support for AMD Family 17h, Model 60h. >> >> Also k10temp works with 4800h >> >> k10temp-pci-00c3 >> Adapter: PCI adapter >> Vcore:

Re: [PATCH] ath10k: Wait until copy complete is actually done before completing

2020-06-15 Thread Doug Anderson
Hi, On Mon, Jun 15, 2020 at 7:56 AM Kalle Valo wrote: > > Doug Anderson writes: > > > On Mon, Jun 15, 2020 at 7:32 AM Kalle Valo wrote: > >> > >> Douglas Anderson wrote: > >> > >> > On wcn3990 we have "per_ce_irq = true". That makes the > >> > ath10k_ce_interrupt_summary() function always ret

Re: [PATCH v10 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286

2020-06-15 Thread Rob Herring
On Sat, Jun 13, 2020 at 6:28 AM Jacopo Mondi wrote: > > Hi Rob, > > On Fri, Jun 12, 2020 at 04:10:03PM -0600, Rob Herring wrote: > > On Fri, 12 Jun 2020 15:47:10 +0100, Kieran Bingham wrote: > > > From: Laurent Pinchart > > > > > > The MAX9286 deserializes video data received on up to 4 Gigabit >

Re: [PATCH -tip v3 1/2] kcov: Make runtime functions noinstr-compatible

2020-06-15 Thread Peter Zijlstra
On Mon, Jun 15, 2020 at 04:53:36PM +0200, Marco Elver wrote: > On Mon, 15 Jun 2020, Peter Zijlstra wrote: > > > On Mon, Jun 15, 2020 at 09:53:06AM +0200, Marco Elver wrote: > > > > > > Disabling KCOV for smp_processor_id now moves the crash elsewhere. In > > > the case of KASAN into its 'memcpy'

Re: [PATCH v2 0/4][RESEND] cancel all reqs of an exiting task

2020-06-15 Thread Jens Axboe
On 6/15/20 1:24 AM, Pavel Begunkov wrote: > io_uring_flush() { > ... > if (fatal_signal_pending(current) || (current->flags & PF_EXITING)) > io_wq_cancel_pid(ctx->io_wq, task_pid_vnr(current)); > } > > This cancels only the first matched request. The pathset is main

Re: [PATCH 0/2] don't use pid for request cancellation

2020-06-15 Thread Jens Axboe
On 6/15/20 1:33 AM, Pavel Begunkov wrote: > Cancel requests of an extiting task based on ->task address. As > reported by Eric W. Biederman, using pid for this purpose is not > right. > > note: rebased on top of "cancel all" patches Looks good, and I had the same thought of not grabbing a ref to

[tip:master] BUILD SUCCESS 83cdaef93988a6bc6875623781de571b2694fe02

2020-06-15 Thread kernel test robot
ig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a006-20200615 i386 randconfig-a002-20200615 i386 randconfig-a001-20200615 i386 randconfig-a00

Re: [PATCH v1] regualtor: pfuze100: correct sw1a/sw2 on pfuze3000

2020-06-15 Thread Mark Brown
On Mon, 15 Jun 2020 05:54:08 +0800, Robin Gong wrote: > PFUZE100_SWB_REG is not proper for sw1a/sw2, because enable_mask/enable_reg > is not correct. On PFUZE3000, sw1a/sw2 should be the same as sw1a/sw2 on > pfuze100 except that voltages are not linear, so add new PFUZE3000_SW_REG > and pfuze3000_

Re: [RFC PATCH] tick/sched: update full_nohz status after SCHED dep is cleared

2020-06-15 Thread Juri Lelli
Hi, On 21/05/20 19:00, Juri Lelli wrote: > On 21/05/20 02:44, Frederic Weisbecker wrote: > > On Wed, May 20, 2020 at 08:47:10PM +0200, Juri Lelli wrote: > > > On 20/05/20 19:02, Frederic Weisbecker wrote: > > > > On Wed, May 20, 2020 at 06:49:25PM +0200, Juri Lelli wrote: > > > > > On 20/05/20 18:

Re: [PATCH 1/2] ASoc: q6afe: add support to get port direction

2020-06-15 Thread Mark Brown
On Fri, 12 Jun 2020 13:37:10 +0100, Srinivas Kandagatla wrote: > This patch adds support to q6afe_is_rx_port() to get direction > of DSP BE dai port, this is useful for setting dailink > directions correctly. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Re: [PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP

2020-06-15 Thread Mark Brown
On Fri, 12 Jun 2020 18:50:48 +0800, Brent Lu wrote: > Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading > WP") from legacy HDA driver to fix the get response timeout issue. > Current SOF driver does not suffer from this issue because sync write > is enabled in hda_init. The iss

Re: [PATCH] spi: uapi: spidev: Use TABs for alignment

2020-06-15 Thread Mark Brown
On Sat, 13 Jun 2020 09:37:54 +0200, Geert Uytterhoeven wrote: > The UAPI uses TABs for alignment. > Convert the recently introduced spaces to TABs to restore consistency. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: uapi: spidev: Use

Re: [PATCH 0/8] x86/entry: KCSAN/KASAN/UBSAN vs noinstr

2020-06-15 Thread Peter Zijlstra
On Mon, Jun 15, 2020 at 10:57:18AM -0400, Qian Cai wrote: > On Mon, Jun 15, 2020 at 12:07:34PM +0200, 'Marco Elver' via kasan-dev wrote: > > On Thu, 4 Jun 2020 at 13:01, Marco Elver wrote: > > > > > > On Thu, 4 Jun 2020 at 12:25, Peter Zijlstra wrote: > > > > > > > > Hai, > > > > > > > > Here's t

[PATCH v2 2/2] mfd: madera: Improve handling of regulator unbinding

2020-06-15 Thread Charles Keepax
The current unbinding process for Madera has some issues. The trouble is runtime PM is disabled as the first step of the process, but some of the drivers release IRQs causing regmap IRQ to issue a runtime get which fails. To allow runtime PM to remain enabled during mfd_remove_devices, the DCVDD re

[PATCH v2 1/2] mfd: mfd-core: Add mechanism for removal of a subset of children

2020-06-15 Thread Charles Keepax
Currently, the only way to remove MFD children is with a call to mfd_remove_devices, which will remove all the children. Under some circumstances it is useful to remove only a subset of the child devices. For example if some additional clean up is required between removal of certain child devices.

Re: [PATCH] mm: memcontrol: handle div0 crash race condition in memory.low

2020-06-15 Thread Chris Down
Johannes Weiner writes: Tejun reports seeing rare div0 crashes in memory.low stress testing: [37228.504582] RIP: 0010:mem_cgroup_calculate_protection+0xed/0x150 [37228.505059] Code: 0f 46 d1 4c 39 d8 72 57 f6 05 16 d6 42 01 40 74 1f 4c 39 d8 76 1a 4c 39 d1 76 15 4c 29 d1 4c 29 d8 4d 29 d9 31 d2

Re: [PATCH] mfd: sprd: get subdevices from DT instead for SC27XX SPI

2020-06-15 Thread Orson Zhai
On Mon, Jun 15, 2020 at 10:12 PM Baolin Wang wrote: > > On Mon, Jun 15, 2020 at 11:47 AM Chunyan Zhang wrote: > > > > From: Chunyan Zhang > > > > SC27XX-SPI added subdevices according to a pre-defined mfd_cell array, > > no matter these devices were really included on board. So with this > > pat

Re: [PATCH 2/6] exec: simplify the compat syscall handling

2020-06-15 Thread Christoph Hellwig
On Mon, Jun 15, 2020 at 04:46:15PM +0200, Arnd Bergmann wrote: > How about this one: > > diff --git a/arch/x86/entry/syscall_x32.c b/arch/x86/entry/syscall_x32.c > index 3d8d70d3896c..0ce15807cf54 100644 > --- a/arch/x86/entry/syscall_x32.c > +++ b/arch/x86/entry/syscall_x32.c > @@ -16,6 +16,9 @@

Re: [PATCH] sched/fair: Optimize dequeue_task_fair()

2020-06-15 Thread Vincent Guittot
On Mon, 15 Jun 2020 at 16:20, Peng Wang wrote: > > While looking at enqueue_task_fair and dequeue_task_fair, it occurred > to me that dequeue_task_fair can also be optimized as Vincent described > in commit 7d148be69e3a ("sched/fair: Optimize enqueue_task_fair()"). good point > > dequeue_throttl

Re: [PATCH 2/2] mtd: rawnand: brcmnand: Ecc error handling on EDU transfers

2020-06-15 Thread Kamal Dasu
On Mon, Jun 15, 2020 at 3:19 AM Miquel Raynal wrote: > > Hi Kamal, > > Kamal Dasu wrote on Fri, 12 Jun 2020 12:34:22 > -0400: > > > On Fri, Jun 12, 2020 at 3:07 AM Miquel Raynal > > wrote: > > > > > > Hi Kamal, > > > > > > Kamal Dasu wrote on Thu, 11 Jun 2020 12:04:29 > > > -0400: > > > > > >

Re: [PATCH] tracing/probe: fix memleak in fetch_op_data operations

2020-06-15 Thread Markus Elfring
… > Post parse_probe_arg(), the FETCH_OP_DATA operation type is overwritten > to FETCH_OP_ST_STRING, as a result memory is never freed … How do you think about to use the term “memory leak” in the patch subject? Will the tag “Fixes” become helpful for the commit message? Regards, Markus

Re: [PATCH v2 13/24] dyndbg: combine flags & mask into a struct, use that

2020-06-15 Thread Petr Mladek
On Sat 2020-06-13 09:57:27, Jim Cromie wrote: > combine flags & mask into a struct, and replace those 2 parameters in > 3 functions: ddebug_change, ddebug_parse_flags, ddebug_read_flags, > altering the derefs in them accordingly. > > This simplifies the 3 function sigs, preparing for more changes.

Re: [PATCH 2/2] pwm: iqs620a: Use 64-bit division

2020-06-15 Thread Uwe Kleine-König
On Mon, Jun 15, 2020 at 04:16:06PM +0200, Thierry Reding wrote: > The PWM framework is going to change the PWM period and duty cycles to > be 64-bit unsigned integers. To avoid build errors on platforms that do > not natively support 64-bit division, use explicity 64-bit division. > > Signed-off-b

Re: [PATCH v10 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286

2020-06-15 Thread Jacopo Mondi
Hi Rob, On Mon, Jun 15, 2020 at 09:02:28AM -0600, Rob Herring wrote: > On Sat, Jun 13, 2020 at 6:28 AM Jacopo Mondi wrote: > > > > Hi Rob, > > > > On Fri, Jun 12, 2020 at 04:10:03PM -0600, Rob Herring wrote: > > > On Fri, 12 Jun 2020 15:47:10 +0100, Kieran Bingham wrote: > > > > From: Laurent Pin

Re: [PATCH v2 14/24] dyndbg: add filter parameter to ddebug_parse_flags

2020-06-15 Thread Petr Mladek
On Sat 2020-06-13 09:57:28, Jim Cromie wrote: > Add a new local *filter variable to ddebug_exec_query(), pass it into > ddebug_parse_flags(), which fills it, communicating optional filter > flags back to its caller. Then caller passes same to ddebug_change() > to effect the changes. > > Also, dde

Re: [PATCH 1/2] video: ssd1307fb: Print PWM period using 64-bit format specifier

2020-06-15 Thread Uwe Kleine-König
Hello, On Mon, Jun 15, 2020 at 04:16:05PM +0200, Thierry Reding wrote: > The PWM core will soon change the duty cycle and period of PWMs to 64 > bits to allow for a broader range of values. Use a 64-bit format > specifier to avoid a warning when that change is made. > > Signed-off-by: Thierry Red

Re: [PATCH -tip v3 1/2] kcov: Make runtime functions noinstr-compatible

2020-06-15 Thread Peter Zijlstra
On Mon, Jun 15, 2020 at 05:03:27PM +0200, Peter Zijlstra wrote: > Yes, I think so. x86_64 needs lib/memcpy_64.S in .noinstr.text then. For > i386 it's an __always_inline inline-asm thing. Bah, I tried writing it without memcpy, but clang inserts memcpy anyway :/ --- diff --git a/arch/x86/kernel/

Re: [PATCH] ARM: dts: am5729: beaglebone-ai: fix rgmii phy-mode

2020-06-15 Thread Grygorii Strashko
On 15/06/2020 15:45, Drew Fustini wrote: On Mon, Jun 15, 2020 at 12:34:57PM +0300, Grygorii Strashko wrote: On 12/06/2020 01:09, Drew Fustini wrote: Since commit cd28d1d6e52e ("net: phy: at803x: Disable phy delay for RGMII mode") the networking is broken on the BeagleBone AI which has the

Re: [mm/vmalloc] 0acd9a0ded: kernel_BUG_at_mm/vmalloc.c

2020-06-15 Thread Uladzislau Rezki
Hello, Ingo. > > Greeting, > > > > FYI, we noticed the following commit (built with gcc-9): > > > > commit: 0acd9a0ded80c986ccc9588ba2703436769ead74 ("Revert "mm/vmalloc: > > modify struct vmap_area to reduce its size"") > > https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git WIP.fixes > >

Re: drivers/reset/reset-intel-gw.c:18:9: warning: 'REG_OFFSET' macro redefined

2020-06-15 Thread Dejin Zheng
entation of the regmap_read_poll_timeout() macro > date: 8 weeks ago > config: arm-randconfig-r022-20200615 (attached as .config) > compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project > 3d8149c2a1228609fd7d7c91a04681304a2f0ca9) > reproduce (this is a W=1 b

Re: [PATCH] powerpc/fsl_booke/32: fix build with CONFIG_RANDOMIZE_BASE

2020-06-15 Thread Scott Wood
On Sat, 2020-06-13 at 23:28 +0700, Arseny Solokha wrote: > Building the current 5.8 kernel for a e500 machine with > CONFIG_RANDOMIZE_BASE set yields the following failure: > > arch/powerpc/mm/nohash/kaslr_booke.c: In function 'kaslr_early_init': > arch/powerpc/mm/nohash/kaslr_booke.c:387:2: e

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-15 Thread Peter Zijlstra
On Wed, Jun 03, 2020 at 09:46:00AM -0700, Paul E. McKenney wrote: > > // RCU is now watching. Better not be in an extended quiescent state! > > rcu_dynticks_task_trace_exit(); // After ->dynticks update! > > WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && > > !(seq

Re: [PATCH 2/6] exec: simplify the compat syscall handling

2020-06-15 Thread Brian Gerst
On Mon, Jun 15, 2020 at 11:10 AM Christoph Hellwig wrote: > > On Mon, Jun 15, 2020 at 04:46:15PM +0200, Arnd Bergmann wrote: > > How about this one: > > > > diff --git a/arch/x86/entry/syscall_x32.c b/arch/x86/entry/syscall_x32.c > > index 3d8d70d3896c..0ce15807cf54 100644 > > --- a/arch/x86/entry

Re: [PATCH v2 2/2] regulator: Add support for sync_state() callbacks

2020-06-15 Thread Ulf Hansson
On Mon, 15 Jun 2020 at 13:49, Mark Brown wrote: > > On Mon, Jun 15, 2020 at 12:27:23PM +0200, Ulf Hansson wrote: > > > eMMC is not only about voltage levels, but also about enable/disable > > of the regulator(s). > > > More precisely, one needs to follow the steps specified in the eMMC > > spec, w

Re: [PATCH v2 15/24] dyndbg: extend ddebug_parse_flags to accept optional leading filter-flags

2020-06-15 Thread Petr Mladek
On Sat 2020-06-13 09:57:29, Jim Cromie wrote: > change ddebug_parse_flags to accept optional filterflags before OP. > this now sets the parameter added in ~1 What is "~1", please? > --- > .../admin-guide/dynamic-debug-howto.rst | 18 +++ > lib/dynamic_debug.c

Re: power-off delay/hang due to commit 6d25be57 (mainline)

2020-06-15 Thread Stephen Berman
On Mon, 15 Jun 2020 16:51:30 +0200 Sebastian Andrzej Siewior wrote: > On 2020-06-15 09:58:00 [+0200], Stephen Berman wrote: >> Ok, sorry, I had misunderstood, but now I've looked at the >> documentation. I had in fact already done `echo t > >> /proc/sysrq-trigger' in an xterm (as root) and ther

[PATCH] macsec: Support 32bit PN netlink attribute for XPN links

2020-06-15 Thread Era Mayflower
Allow using 32bit netlink attribute for packet number when creating or updating SA in an XPN link. Now utilities like iproute2's `ip` do not have to know the link type (XPN or not) when setting the packet number field of an SA. Signed-off-by: Era Mayflower --- drivers/net/macsec.c | 95 +

Re: [PATCH] coccinelle: api: add device_attr_show script

2020-06-15 Thread Julia Lawall
On Mon, 15 Jun 2020, Markus Elfring wrote: > > +// Confidence: High > > Would you like to add any suggestion for a possible patch message? > > > … > > +virtual report > > +virtual org > > +virtual context > > +virtual patch > > +virtual report, org, context, patch > > Is such a SmPL code variant

Re: 5.8-rc1: new warnings in ext4_mb_new_blocks?

2020-06-15 Thread Pavel Machek
On Mon 2020-06-15 16:57:48, Ritesh Harjani wrote: > > > On 6/15/20 1:07 PM, Pavel Machek wrote: > > Hi! > > > > Booting 5.8-rc1 on x220, I get scary warnings: > > > > [7.089941] EXT4-fs (sdb2): mounted filesystem with ordered data mode. > > Opts: errors=remount-ro > > [7.343231] BUG: u

Re: [PATCH v2 3/4] nsproxy: attach to namespaces via pidfds

2020-06-15 Thread Christian Brauner
On June 15, 2020 1:13:37 PM GMT+02:00, "Michael Kerrisk (man-pages)" wrote: >Hello Christian, > >Looking at this patch, and commit 303cc571d107b that landed in >5.8-rc1, time namespaces were omitted. I assume this was an accident, >since the commit message makes no statement about excluding time

Re: [PATCH] f2fs: fix use-after-free when accessing bio->bi_crypt_context

2020-06-15 Thread Eric Biggers
On Mon, Jun 15, 2020 at 03:23:16PM +0530, Sahitya Tummala wrote: > > > > Should I fold this change into the original patch? Or keep it as a > > separate patch when I send out the fscrypt/f2fs inline encryption > > patches? > > It may be good to keep it seperate as we already have the base FBE pat

Re: [PATCH 5/5] LSM: Define workqueue for measuring security module state

2020-06-15 Thread Stephen Smalley
On Mon, Jun 15, 2020 at 10:59 AM Mimi Zohar wrote: > > On Mon, 2020-06-15 at 09:33 -0400, Stephen Smalley wrote: > > On Fri, Jun 12, 2020 at 10:42 PM Lakshmi Ramasubramanian > > wrote: > > > > > > The data maintained by the security modules could be tampered with by > > > malware. The LSM needs t

[PATCH 1/5] Huawei BMA: Adding Huawei BMA driver: host_edma_drv

2020-06-15 Thread yunaixin03610
From: yunaixin The BMA software is a system management software offered by Huawei. It supports the status monitoring, performance monitoring, and event monitoring of various components, including server CPUs, memory, hard disks, NICs, IB cards, PCIe cards, RAID controller cards, and optical mo

[PATCH 3/5] Huawei BMA: Adding Huawei BMA driver: host_veth_drv

2020-06-15 Thread yunaixin03610
From: yunaixin The BMA software is a system management software offered by Huawei. It supports the status monitoring, performance monitoring, and event monitoring of various components, including server CPUs, memory, hard disks, NICs, IB cards, PCIe cards, RAID controller cards, and optical mo

Re: [PATCH v2 12/12] x86/traps: Fix up invalid PASID

2020-06-15 Thread Fenghua Yu
Hi, Peter, On Mon, Jun 15, 2020 at 09:56:49AM +0200, Peter Zijlstra wrote: > On Fri, Jun 12, 2020 at 05:41:33PM -0700, Fenghua Yu wrote: > > +/* > > + * Apply some heuristics to see if the #GP fault was caused by a thread > > + * that hasn't had the IA32_PASID MSR initialized. If it looks like tha

[PATCH v2] net: alx: fix race condition in alx_remove

2020-06-15 Thread Zekun Shen
There is a race condition exist during termination. The path is alx_stop and then alx_remove. An alx_schedule_link_check could be called before alx_stop by interrupt handler and invoke alx_link_check later. Alx_stop frees the napis, and alx_remove cancels any pending works. If any of the work is sc

Re: [PATCH 3/5] Huawei BMA: Adding Huawei BMA driver: host_veth_drv

2020-06-15 Thread Randy Dunlap
On 6/15/20 7:56 AM, yunaixin03...@163.com wrote: > diff --git a/drivers/net/ethernet/huawei/bma/Kconfig > b/drivers/net/ethernet/huawei/bma/Kconfig > index 12979128fa9d..21e9f7ee5be6 100644 > --- a/drivers/net/ethernet/huawei/bma/Kconfig > +++ b/drivers/net/ethernet/huawei/bma/Kconfig > @@ -1,2 +1

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-15 Thread Peter Zijlstra
On Wed, Jun 03, 2020 at 01:40:16PM +0200, Peter Zijlstra wrote: > A KCSAN build revealed we have explicit annoations through atomic_*() > usage, switch to arch_atomic_*() for the respective functions. > > vmlinux.o: warning: objtool: rcu_nmi_exit()+0x4d: call to > __kcsan_check_access() leaves .n

[PATCH] staging: rtl8712: Remove unnecesary else after return statement.

2020-06-15 Thread Sebastian Arriola
This patch fixes the checkpatch.pl warning: WARNING: else is not generally useful after a break or return 490: FILE: drivers/staging/rtl8712/rtl8712_recv.c:490: return false; else Signed-off-by: Sebastian Arriola --- drivers/staging/rtl8712/rtl8712_recv.c

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-15 Thread Paul E. McKenney
On Mon, Jun 15, 2020 at 05:30:52PM +0200, Peter Zijlstra wrote: > On Wed, Jun 03, 2020 at 09:46:00AM -0700, Paul E. McKenney wrote: > > > > // RCU is now watching. Better not be in an extended quiescent state! > > > rcu_dynticks_task_trace_exit(); // After ->dynticks update! > > > WARN_ON_

Re: [PATCH 2/2] soc: mediatek: devapc: add devapc-mt6873 driver

2020-06-15 Thread Chun-Kuang Hu
Hi, Neal: Neal Liu 於 2020年6月9日 週二 下午6:25寫道: > > MT6873 bus frabric provides TrustZone security support and data > protection to prevent slaves from being accessed by unexpected > masters. > The security violations are logged and sent to the processor for > further analysis or countermeasures. > >

[PATCH v2] mtd: set master partition panic write flag

2020-06-15 Thread Kamal Dasu
Check and set master panic write flag so that low level drivers can use it to take required action to ensure oops data gets written to assigned mtdoops device partition. Fixes: 9f897bfdd89f ("mtd: Add flag to indicate panic_write") Signed-off-by: Kamal Dasu --- drivers/mtd/mtdcore.c | 4 ++-- 1

Re: [PATCH v2 2/2] media: vimc: Add a control to show test pattern colors' order

2020-06-15 Thread Kieran Bingham
Hi Kaaira, On 15/06/2020 15:17, Kaaira Gupta wrote: > On Mon, Jun 15, 2020 at 12:48:20PM +0100, Kieran Bingham wrote: >> Hi Kaaira, >> >> On 14/06/2020 21:02, Kaaira Gupta wrote: >>> Add a control in VIMC to show the correct order of the colors for a >>> given test pattern. >>> The control can be

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-15 Thread Peter Zijlstra
On Mon, Jun 15, 2020 at 05:49:05PM +0200, Peter Zijlstra wrote: > @@ -983,13 +993,17 @@ noinstr void rcu_nmi_enter(void) > if (!in_nmi()) > rcu_cleanup_after_idle(); > > + instrumentation_begin(); > + // instrumentation for the noinstr

[PATCH] ovl: inode reference leak in "ovl_is_inuse" true case.

2020-06-15 Thread youngjun
When "ovl_is_inuse" true case, trap inode reference not put. Signed-off-by: youngjun --- fs/overlayfs/super.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 91476bc422f9..8837fc1ec3be 100644 --- a/fs/overlayfs/super.c +++

[PATCH V2] ARM: dts: am5729: beaglebone-ai: fix rgmii phy-mode

2020-06-15 Thread Drew Fustini
Since commit cd28d1d6e52e ("net: phy: at803x: Disable phy delay for RGMII mode") the networking is broken on the BeagleBone AI which has the AR8035 PHY for Gigabit Ethernet [0]. The fix is to switch from phy-mode = "rgmii" to phy-mode = "rgmii-rxid". Note: Grygorii made a similar DT fix for other

Re: [PATCH v2] drm/etnaviv: fix ref count leak via pm_runtime_get_sync

2020-06-15 Thread Markus Elfring
… > In case of failure, decrement the ref count before returning. Can it be nicer to use the term “reference count” here? Will the tag “Fixes” become helpful for the commit message? … > +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c … > @@ -1326,6 +1331,7 @@ struct dma_fence *etnaviv_gpu_submit(s

Maintainers / Kernel Summit 2020 submissions

2020-06-15 Thread Theodore Y. Ts'o
So far, we have received 5 techinical topic submissions for the Kernel Summit; thanks to those who have submitted. If you have some additional ideas of technical topics you'd like to discuss at the Kernel Summit, please submit them this week. For details on how to proposal a topic for the Kernel

Re: power-off delay/hang due to commit 6d25be57 (mainline)

2020-06-15 Thread Sebastian Andrzej Siewior
On 2020-06-15 17:41:06 [+0200], Stephen Berman wrote: > > If you do this "t" then there should be a lot of output on your console. > > If you do this from an xterm then you can see the output after typing > > "dmesg". The output should appear also in your system log. > > Ah, ok, I do see it in the

Re: [PATCH 0/2] don't use pid for request cancellation

2020-06-15 Thread Pavel Begunkov
On 15/06/2020 18:04, Jens Axboe wrote: > On 6/15/20 1:33 AM, Pavel Begunkov wrote: >> Cancel requests of an extiting task based on ->task address. As >> reported by Eric W. Biederman, using pid for this purpose is not >> right. >> >> note: rebased on top of "cancel all" patches > > Looks good, and

Re: [PATCH] : fix kernel-doc notation & warning

2020-06-15 Thread Eric W. Biederman
Randy Dunlap writes: > From: Randy Dunlap > > Fix a kernel-doc warning due to missing a beginning '*' on the > comment line. > > ../include/linux/rculist.h:515: warning: bad line: > [@right ][node2 ... ] > Acked-by: "Eric W. Biederman" > Fixes: 35fc0e3b0bd5 ("rculis

Re: [PATCH 1/2] i2c: designware: Only check the first byte for SMBus block read length

2020-06-15 Thread Sultan Alsawaf
On Mon, Jun 15, 2020 at 12:40:19PM +0300, Andy Shevchenko wrote: > On Sun, Jun 14, 2020 at 02:02:54PM -0700, Sultan Alsawaf wrote: > > From: Sultan Alsawaf > > > > SMBus block reads can be broken because the read function will just skip > > over bytes it doesn't like until reaching a byte that co

Re: decruft the early init / initrd / initramfs code

2020-06-15 Thread Randy Dunlap
On 6/15/20 5:53 AM, Christoph Hellwig wrote: > Hi all, > > this series starts to move the early init code away from requiring > KERNEL_DS to be implicitly set during early startup. It does so by > first removing legacy unused cruft, and the switches away the code > from struct file based APIs to

Re: [PATCH 6/6] smp: Cleanup smp_call_function*()

2020-06-15 Thread Daniel Thompson
On Mon, Jun 15, 2020 at 02:57:00PM +0200, Peter Zijlstra wrote: > Get rid of the __call_single_node union and cleanup the API a little > to avoid external code relying on the structure layout as much. > > Signed-off-by: Peter Zijlstra (Intel) For kgdb, Acked-by: Daniel Thompson Daniel. > --

Re: [PATCH v2 12/12] x86/traps: Fix up invalid PASID

2020-06-15 Thread Peter Zijlstra
On Mon, Jun 15, 2020 at 08:48:54AM -0700, Fenghua Yu wrote: > Hi, Peter, > On Mon, Jun 15, 2020 at 09:56:49AM +0200, Peter Zijlstra wrote: > > On Fri, Jun 12, 2020 at 05:41:33PM -0700, Fenghua Yu wrote: > > > +/* > > > + * Apply some heuristics to see if the #GP fault was caused by a thread > > > +

Re: [PATCH RFC v7 03/14] vhost: use batched get_vq_desc version

2020-06-15 Thread Eugenio Pérez
On Thu, 2020-06-11 at 07:30 -0400, Michael S. Tsirkin wrote: > On Wed, Jun 10, 2020 at 06:18:32PM +0200, Eugenio Perez Martin wrote: > > On Wed, Jun 10, 2020 at 5:13 PM Michael S. Tsirkin wrote: > > > On Wed, Jun 10, 2020 at 02:37:50PM +0200, Eugenio Perez Martin wrote: > > > > > +/* This function

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-15 Thread Peter Zijlstra
On Mon, Jun 15, 2020 at 08:52:20AM -0700, Paul E. McKenney wrote: > On Mon, Jun 15, 2020 at 05:30:52PM +0200, Peter Zijlstra wrote: > > What shall we do with this patch? > > I plan to submit it to the v5.9 merge window. Do you need it to get > to mainline earlier? Yeah, we need it this round, to

Re: [PATCH 1/2] i2c: designware: Only check the first byte for SMBus block read length

2020-06-15 Thread Andy Shevchenko
On Mon, Jun 15, 2020 at 7:06 PM Sultan Alsawaf wrote: > On Mon, Jun 15, 2020 at 12:40:19PM +0300, Andy Shevchenko wrote: > > On Sun, Jun 14, 2020 at 02:02:54PM -0700, Sultan Alsawaf wrote: > > > From: Sultan Alsawaf > > > > > > SMBus block reads can be broken because the read function will just s

Re: [PATCH RFC v8 03/11] vhost/net: pass net specific struct pointer

2020-06-15 Thread Eugenio Perez Martin
On Thu, Jun 11, 2020 at 1:34 PM Michael S. Tsirkin wrote: > > In preparation for further cleanup, pass net specific pointer > to ubuf callbacks so we can move net specific fields > out to net structures. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/vhost/net.c | 14 +++--- > 1 f

Re: [PATCH v16 1/1] dt-bindings: display: mediatek: convert the dpi bindings to yaml

2020-06-15 Thread Rob Herring
On Sun, 14 Jun 2020 15:30:36 +0800, Jitao Shi wrote: > Convert display/mediatek/mediatek,dpi.txt to > display/mediatek/mediatek,dpi.yaml > and remove the old text bindings. > > Signed-off-by: Jitao Shi > --- > .../display/mediatek/mediatek,dpi.txt | 42 > .../display/mediatek/m

Re: [PATCH] dt-bindings: irqchip: renesas-rza1-irqc: Convert to json-schema

2020-06-15 Thread Rob Herring
On Thu, 28 May 2020 15:28:53 +0200, Geert Uytterhoeven wrote: > Convert the Renesas RZ/A1 Interrupt Controller Device Tree binding > documentation to json-schema. > > Signed-off-by: Geert Uytterhoeven > --- > Validation depends on "[PATCH dt-schema] Fix interrupt controllers with > interrupt-map"

Re: [PATCH] KVM: async_pf: change kvm_setup_async_pf()/kvm_arch_setup_async_pf() return type to bool

2020-06-15 Thread Vivek Goyal
On Mon, Jun 15, 2020 at 02:13:34PM +0200, Vitaly Kuznetsov wrote: > Unlike normal 'int' functions returning '0' on success, kvm_setup_async_pf()/ > kvm_arch_setup_async_pf() return '1' when a job to handle page fault > asynchronously was scheduled and '0' otherwise. To avoid the confusion > change

Re: [PATCH 5/5] LSM: Define workqueue for measuring security module state

2020-06-15 Thread Mimi Zohar
On Mon, 2020-06-15 at 11:47 -0400, Stephen Smalley wrote: > On Mon, Jun 15, 2020 at 10:59 AM Mimi Zohar wrote: > > > > On Mon, 2020-06-15 at 09:33 -0400, Stephen Smalley wrote: > > > On Fri, Jun 12, 2020 at 10:42 PM Lakshmi Ramasubramanian > > > wrote: > > > > > > > > The data maintained by the s

[PATCH v1] mfd: intel-lpss: Add Intel Emmitsburg PCH PCI IDs

2020-06-15 Thread Andy Shevchenko
Intel Emmitsburg PCH has the same LPSS than Intel Ice Lake. Add the new IDs to the list of supported devices. Signed-off-by: Andy Shevchenko --- drivers/mfd/intel-lpss-pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/intel-lpss-pci.c b/drivers/mfd/intel-lpss-pci.c index c

Re: [PATCH RFC v8 05/11] vhost: format-independent API for used buffers

2020-06-15 Thread Eugenio Perez Martin
On Thu, Jun 11, 2020 at 1:34 PM Michael S. Tsirkin wrote: > > Add a new API that doesn't assume used ring, heads, etc. > For now, we keep the old APIs around to make it easier > to convert drivers. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/vhost/vhost.c | 73 +

Re: [PATCH] KVM: VMX: Add helpers to identify interrupt type from intr_info

2020-06-15 Thread Paolo Bonzini
On 09/06/20 03:45, Sean Christopherson wrote: > Add is_intr_type() and is_intr_type_n() to consolidate the boilerplate > code for querying a specific type of interrupt given an encoded value > from VMCS.VM_{ENTER,EXIT}_INTR_INFO, with and without an associated > vector respectively. > > Signed-off

[PATCH] rtc: max77686: Do not allow interrupt to fire before system resume

2020-06-15 Thread Krzysztof Kozlowski
The rtc-max77686 device shares the main interrupt line with parent MFD device (max77686 driver). During the system suspend, the parent MFD device disables this IRQ to prevent an early event happening before resuming I2C bus controller. The same should be done by rtc-max77686 driver because otherw

Re: [PATCH v3 1/2] dt-bindings: remoteproc: k3-dsp: Update bindings for C71x DSPs

2020-06-15 Thread Rob Herring
On Fri, 12 Jun 2020 17:53:56 -0500, Suman Anna wrote: > Some Texas Instruments K3 family of SoCs have one of more newer > generation TMS320C71x CorePac processor subsystem in addition to > the existing TMS320C66x CorePac processor subsystems. Update the > device tree bindings document for the C71x

RE: [RESEND PATCH v10 10/10] arm64: dts: Add node for ufs exynos7

2020-06-15 Thread Alim Akhtar
> On Sat, Jun 13, 2020 at 08:17:06AM +0530, Alim Akhtar wrote: > > Adding dt node foe UFS and UFS-PHY for exynos7 SoC. > > > > Signed-off-by: Alim Akhtar > > Tested-by: Paweł Chmiel > > --- > > .../boot/dts/exynos/exynos7-espresso.dts | 4 ++ > > arch/arm64/boot/dts/exynos/exynos7.dtsi

[PATCH 1/6] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-06-15 Thread Amelie Delaunay
Power operation mode may depends on hardware design, so, add the optional property power-opmode for usb-c connector to select the power operation mode capability. Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/connector/usb-connector.yaml | 11 +++ 1 file changed, 11 inserti

[PATCH 3/6] dt-bindings: usb: Add DT bindings for STUSB160x Type-C controller

2020-06-15 Thread Amelie Delaunay
Add binding documentation for the STMicroelectronics STUSB160x Type-C port controller. Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/usb/st,stusb160x.yaml | 85 +++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/st,stusb160

[PATCH 0/6] Add STUSB160x Type-C port controller support

2020-06-15 Thread Amelie Delaunay
This series adds support for STMicroelectronics STUSB160x Type-C port controllers [1]. STUSB160x driver requires to get power operation mode via device tree, that's why this series also adds the optional DT property power-opmode for usb-c-connector to select the power operation mode capability and

[PATCH 4/6] usb: typec: add support for STUSB160x Type-C controller family

2020-06-15 Thread Amelie Delaunay
STMicroelectronics USB Type-C port controllers use I2C interface to configure, control and read the operation status of the device. All ST USB Type-C port controllers are based on the same I2C register map. That's why this driver can be used with all ST USB Type-C ICs. Some ST USB Type-C port contr

[PATCH 2/6] usb: typec: add typec_find_pwr_opmode

2020-06-15 Thread Amelie Delaunay
This patch adds a function that converts power operation mode string into power operation mode value. It is useful to configure power operation mode through device tree property, as power capabilities may be linked to hardware design. Signed-off-by: Amelie Delaunay --- drivers/usb/typec/class.c

[PATCH 6/6] ARM: multi_v7_defconfig: enable STUSB160X Type-C port controller support

2020-06-15 Thread Amelie Delaunay
Enable support for the STMicroelectronics STUSB160X USB Type-C port controller driver by turning on CONFIG_TYPEC and CONFIG_TYPEC_STUSB160X as modules. Signed-off-by: Amelie Delaunay --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/mu

Re: [RESEND PATCH] dt-bindings: property-units: Add picoseconds type

2020-06-15 Thread Rob Herring
On Tue, 02 Jun 2020 11:42:19 -0500, Dan Murphy wrote: > Add the '-ps' picosecond unit suffix for property names. > > Signed-off-by: Dan Murphy > --- > Documentation/devicetree/bindings/property-units.txt | 1 + > 1 file changed, 1 insertion(+) > Applied, thanks!

[PATCH 5/6] ARM: dts: stm32: add STUSB1600 Type-C using I2C4 on stm32mp15xx-dkx

2020-06-15 Thread Amelie Delaunay
This patch adds support for STUSB1600 USB Type-C port controller, used on I2C4 on stm32mp15xx-dkx. The default configuration on this board, on Type-C connector, is: - Dual Power Role (DRP), so set power-role to "dual"; - Vbus limited to 500mA, so set power-opmode to "default" (it means 500mA in U

Re: [PATCH V5] dt-bindings: thermal: Convert qoriq to json-schema

2020-06-15 Thread Rob Herring
On Thu, 04 Jun 2020 09:30:16 +0800, Anson Huang wrote: > Convert the qoriq thermal binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Changes since V4: > - add "additionalProperties: false" > --- > .../devicetree/bindings/thermal/qoriq-thermal.txt | 71 -

Re: net/sched/sch_fq.c:966:12: warning: stack frame size of 1400 bytes in function 'fq_dump'

2020-06-15 Thread Eric Dumazet
On Sun, Jun 14, 2020 at 11:26 PM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 96144c58abe7ff767e754b5b80995f7b8846d49b > commit: 39d010504e6b4485d7ceee167743620dd33f4417 net_sched: sch_fq: add > horizon attribute > dat

Re: [patch V6 00/37] x86/entry: Rework leftovers and merge plan

2020-06-15 Thread Peter Zijlstra
On Sat, May 23, 2020 at 03:08:36PM +0200, Peter Zijlstra wrote: > On Sat, May 23, 2020 at 10:52:24AM +0800, Lai Jiangshan wrote: > > > Hello, > > > > I, who don't know how does the objtool handle it, am just curious. > > _begin() and _end() are symmetrical, which means if _end() (without nop) > >

Re: [PATCH 20/22] docs: move remaining stuff under Documentation/*.txt to Documentation/staging

2020-06-15 Thread Mathieu Poirier
Hi Mauro, On Mon, 15 Jun 2020 at 00:51, Mauro Carvalho Chehab wrote: > > There are several files that I was unable to find a proper place > for them, and 3 ones that are still in plain old text format. > > Let's place those stuff behind the carpet, as we'd like to keep the > root directory clean.

Re: [PATCH v2] Input: bma150: fix ref count leak in bma150_open

2020-06-15 Thread Markus Elfring
> in bma150_open, … * Can the term “reference count” become relevant also for this commit message besides other possible adjustments? * Would you like to add the tag “Fixes”? … > +++ b/drivers/input/misc/bma150.c … > @@ -357,10 +357,13 @@ static int bma150_open(struct input_dev *input) >

Re: [PATCH V2] dt-bindings: clock: Convert imx7ulp clock to json-schema

2020-06-15 Thread Rob Herring
On Thu, 04 Jun 2020 09:33:07 +0800, Anson Huang wrote: > Convert the i.MX7ULP clock binding to DT schema format using json-schema, > the original binding doc is actually for two clock modules(SCG and PCC), > so split it to two binding docs, and the MPLL(mipi PLL) is NOT supposed > to be in clock mo

<    3   4   5   6   7   8   9   10   11   12   >