[PATCH 2/4] hpsa: don't bother with vmalloc for BIG_IOCTL_Command_struct

2020-05-29 Thread Al Viro
From: Al Viro "BIG" in the name refers to the amount of data being transferred, _not_ the size of structure itself; it's 140 or 144 bytes (for 32bit and 64bit hosts resp.). IOCTL_Command_struct is 136 or 144 bytes large... No point whatsoever turning that into dynamic allocation, let alone

[PATCHES] uaccess hpsa

2020-05-29 Thread Al Viro
hpsa compat ioctl done (hopefully) saner. I really want to kill compat_alloc_user_space() off - it's always trouble and for a driver-private ioctls it's absolutely pointless. Note that this is only compile-tested - I don't have the hardware to test it on *or* userland to issue

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

2020-05-29 Thread Stephen Rothwell
Hi Paul, On Fri, 29 May 2020 07:15:01 -0700 "Paul E. McKenney" wrote: > > Given that the merge window might be opening in a couple days, my thought > is to defer these -rcu commits to my v5.9 pile, and then I resolve this > conflict in the -rcu tree when v5.8-rc1 comes out. I just now adjusted

Re: drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c:49:1: warning: no previous prototype for 'lsb_header_tail_dump'

2020-05-29 Thread Ben Skeggs
On Sat, May 30, 2020 at 7:00 AM kbuild test robot wrote: > > Hi Ben, > > FYI, the error/warning still remains. Thanks, I've got a patch in my tree. Ben. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 75caf310d16cc5e2f851c048cd597f5437013368 >

Re: drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c:2019:1: warning: no previous prototype for 'gf100_gr_dtor'

2020-05-29 Thread Ben Skeggs
On Sat, May 30, 2020 at 6:04 AM kbuild test robot wrote: > > Hi Ben, > > FYI, the error/warning still remains. Thanks, I've got a patch in my tree. Ben. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 75caf310d16cc5e2f851c048cd597f5437013368 >

Re: [PATCH 1/2] dt-bindings: chrome: Add cros-ec-typec mux props

2020-05-29 Thread Prashant Malani
Hi Rob, Thanks for reviewing the patch! Kindly see inline: On Fri, May 29, 2020 at 2:55 PM Rob Herring wrote: > > > > " Reference to a DT node for the USB Type C Multiplexer controlling the > > > data lines routing for this connector. This switch is assumed registered > > > with the Type C

[PATCH v4 4/9] ARM: at91: add atmel tcb capabilities

2020-05-29 Thread Alexandre Belloni
From: Kamel Bouhara Some atmel socs have extra tcb capabilities that allow using a generic clock source or enabling a quadrature decoder. Signed-off-by: Kamel Bouhara Signed-off-by: Alexandre Belloni --- include/soc/at91/atmel_tcb.h | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [RFC][PATCH v3 1/5] sparc64: Fix asm/percpu.h build error

2020-05-29 Thread David Miller
From: Peter Zijlstra Date: Fri, 29 May 2020 23:35:51 +0200 > ../arch/sparc/include/asm/percpu_64.h:7:24: warning: call-clobbered register > used for global register variable > register unsigned long __local_per_cpu_offset asm("g5"); The "-ffixed-g5" option on the command line tells gcc that we

[PATCH v4 1/9] dt-bindings: atmel-tcb: convert bindings to json-schema

2020-05-29 Thread Alexandre Belloni
Convert Atmel Timer Counter Blocks bindings to DT schema format using json-schema. Also move it out of mfd as it is not and has never been related to mfd. Cc: Rob Herring Signed-off-by: Alexandre Belloni --- Changes in v4: - use oneOf to describe possible clock-names list

[PATCH v4 3/9] ARM: dts: at91: sama5d2: add TCB GCLK

2020-05-29 Thread Alexandre Belloni
The sama5d2 tcbs take an extra input clock, their gclk. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sama5d2.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index

[PATCH v4 2/9] dt-bindings: microchip: atmel,at91rm9200-tcb: add sama5d2 compatible

2020-05-29 Thread Alexandre Belloni
The sama5d2 TC block TIMER_CLOCK1 is different from the at91sam9x5 one. Instead of being MCK / 2, it is the TCB GCLK. Signed-off-by: Alexandre Belloni Reviewed-by: Rob Herring --- Reviewed by tag taken from: https://lore.kernel.org/linux-arm-kernel/20200526225046.GA534667@bogus/

[PATCH 7/9] user_regset_copyout_zero(): use clear_user()

2020-05-29 Thread Al Viro
From: Al Viro that's the only caller of __clear_user() in generic code, and it's not hot enough to bother with skipping access_ok(). Signed-off-by: Al Viro --- include/linux/regset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/regset.h

[PATCH v4 9/9] clocksource/drivers/timer-atmel-tcb: add sama5d2 support

2020-05-29 Thread Alexandre Belloni
The first divisor for the sama5d2 is actually the gclk selector. Because the currently remaining divisors are fitting the use case, currently ensure it is skipped. Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-tcb.c | 11 ++- 1 file changed, 10 insertions(+), 1

[PATCH 5/9] x86: switch cp_stat64() to unsafe_put_user()

2020-05-29 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/x86/kernel/sys_ia32.c | 40 ++-- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/arch/x86/kernel/sys_ia32.c b/arch/x86/kernel/sys_ia32.c index ab03fede1422..f8d65c99feb8 100644 ---

[PATCH v4 8/9] clocksource/drivers/timer-atmel-tcb: allow selecting first divider

2020-05-29 Thread Alexandre Belloni
The divider selection algorithm never allowed to get index 0. It was also continuing to look for dividers, trying to find the slow clock selection. This is not necessary anymore. Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-tcb.c | 6 ++ 1 file changed, 2

[PATCH 9/9] bpf: make bpf_check_uarg_tail_zero() use check_zeroed_user()

2020-05-29 Thread Al Viro
From: Al Viro ... rather than open-coding it, and badly, at that. Signed-off-by: Al Viro --- kernel/bpf/syscall.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 64783da34202..41ba746ecbc2 100644

[PATCH v4 0/9] clocksource/drivers/timer-atmel-tcb: add sama5d2 support

2020-05-29 Thread Alexandre Belloni
Hello, This series mainly adds sama5d2 support where we need to avoid using clock index 0 because that clock is never enabled by the driver. There is also a rework of the 32khz clock handling so it is not used for clockevents on 32 bit counter because the increased rate improves the resolution

[PATCH 8/9] x86: kvm_hv_set_msr(): use __put_user() instead of 32bit __clear_user()

2020-05-29 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- arch/x86/kvm/hyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c index bcefa9d4e57e..b85b211d4676 100644 --- a/arch/x86/kvm/hyperv.c +++ b/arch/x86/kvm/hyperv.c @@ -1129,7 +1129,7 @@

[PATCH v4 7/9] clocksource/drivers/timer-atmel-tcb: stop using the 32kHz for clockevents

2020-05-29 Thread Alexandre Belloni
Stop using the slow clock as the clock source for 32 bit counters because even at 10MHz, they are able to handle delays up to two minutes. This provides a way better resolution. Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-tcb.c | 61 ++- 1 file

[PATCH v4 5/9] clocksource/drivers/timer-atmel-tcb: rework 32khz clock selection

2020-05-29 Thread Alexandre Belloni
On all the supported SoCs, the slow clock is always ATMEL_TC_TIMER_CLOCK5, avoid looking it up and pass it directly to setup_clkevents. Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-tcb.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git

[PATCH v4 6/9] clocksource/drivers/timer-atmel-tcb: fill tcb_config

2020-05-29 Thread Alexandre Belloni
Use the tcb_config and struct atmel_tcb_config to get the timer counter width. This is necessary because atmel_tcb_config will be extended later on. Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-tcb.c | 18 +++--- 1 file changed, 15 insertions(+), 3

[PATCH 6/9] TEST_ACCESS_OK _never_ had been checked anywhere

2020-05-29 Thread Al Viro
From: Al Viro Once upon a time the predecessor of that thing (TEST_VERIFY_AREA) used to be. However, that had been gone for years now (and the patch that introduced TEST_ACCESS_OK has not touched any ifdefs - they got gradually removed later). Just bury it... Signed-off-by: Al Viro ---

[PATCH 2/9] binfmt_elf: don't bother with __{put,copy_to}_user()

2020-05-29 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- fs/binfmt_elf.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 13f25e241ac4..782d218c3bb9 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -202,7 +202,7 @@

[PATCH 3/9] binfmt_elf_fdpic: don't use __... uaccess primitives

2020-05-29 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- fs/binfmt_elf_fdpic.c | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c index 240f3543..ab6fb117b33c 100644 --- a/fs/binfmt_elf_fdpic.c +++

[PATCH 1/9] pselect6() and friends: take handling the combined 6th/7th args into helper

2020-05-29 Thread Al Viro
From: Al Viro ... and use unsafe_get_user(), while we are at it. Signed-off-by: Al Viro --- fs/select.c | 112 ++-- 1 file changed, 64 insertions(+), 48 deletions(-) diff --git a/fs/select.c b/fs/select.c index

[PATCH 4/9] binfmt_flat: don't use __put_user()

2020-05-29 Thread Al Viro
From: Al Viro ... and check the return value Signed-off-by: Al Viro --- fs/binfmt_flat.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index 831a2b25ba79..7b663ed5247b 100644 --- a/fs/binfmt_flat.c +++

[PATCHES] uaccess misc

2020-05-29 Thread Al Viro
The stuff that doesn't fit anywhere else. Hopefully saner marshalling for weird 7-argument syscalls (pselect6()), low-hanging fruit in several binfmt, unsafe_put_user-based x86 cp_stat64(), etc. - there's really no common topic here. BTW, after that series there's no more

Re: [PATCH 0/6] nouveau/hmm: add support for mapping large pages

2020-05-29 Thread Jason Gunthorpe
On Tue, May 26, 2020 at 10:32:48AM -0700, Ralph Campbell wrote: > > On 5/25/20 6:41 AM, Jason Gunthorpe wrote: > > On Fri, May 08, 2020 at 12:20:03PM -0700, Ralph Campbell wrote: > > > hmm_range_fault() returns an array of page frame numbers and flags for > > > how the pages are mapped in the

Re: [PATCH 1/2] objtool: Rename rela to reloc

2020-05-29 Thread Josh Poimboeuf
On Fri, May 29, 2020 at 02:01:13PM -0700, Matt Helsley wrote: > Before supporting additional relocation types rename the relevant > types and functions from "rela" to "reloc". This work be done with > the following regex: > > sed -i -e 's/struct rela/struct reloc/g' \ > -e

[PATCH blk-cgroup/for-5.8] blk-cgroup: show global disk stats in root cgroup io.stat

2020-05-29 Thread Boris Burkov
In order to improve consistency and usability in cgroup stat accounting, we would like to support the root cgroup's io.stat. Since the root cgroup has processes doing io even if the system has no explicitly created cgroups, we need to be careful to avoid overhead in that case. For that reason,

Re: [PATCH v4 0/5] Remove AER HEST table parser

2020-05-29 Thread Kuppuswamy, Sathyanarayanan
On 5/29/20 4:09 PM, Bjorn Helgaas wrote: On Tue, May 26, 2020 at 04:18:24PM -0700, sathyanarayanan.kuppusw...@linux.intel.com wrote: From: Kuppuswamy Sathyanarayanan Commit c100beb9ccfb ("PCI/AER: Use only _OSC to determine AER ownership") removed HEST dependency in determining the AER

Re: Regression with PM / wakeup: Show wakeup sources stats in sysfs"

2020-05-29 Thread Tri Vo
On Fri, May 29, 2020 at 3:37 PM Florian Fainelli wrote: > > On 5/29/20 3:28 PM, Tri Vo wrote: > > On Fri, May 29, 2020 at 9:51 AM Rafael J. Wysocki > > wrote: > >> > >> On 5/28/2020 10:46 PM, Florian Fainelli wrote: > >>> Hi, > >>> > >>> Commit c8377adfa78103be5380200eb9dab764d7ca890e ("PM /

Re: [PATCH v4 3/5] ACPI/PCI: Ignore _OSC negotiation result if pcie_ports_native is set.

2020-05-29 Thread Bjorn Helgaas
On Tue, May 26, 2020 at 04:18:27PM -0700, sathyanarayanan.kuppusw...@linux.intel.com wrote: > From: Kuppuswamy Sathyanarayanan > > pcie_ports_native is set only if user requests native handling > of PCIe capabilities via pcie_port_setup command line option. > User input takes precedence over

[PATCH] checkpatch/coding-style: Allow 100 column lines

2020-05-29 Thread Joe Perches
Change the maximum allowed line length to 100 from 80. Miscellanea: o to avoid unnecessary whitespace changes in files, checkpatch will no longer emit a warning about line length when scanning files unless --strict is also used o Add a bit to coding-style about alignment to open parenthesis

mmotm 2020-05-29-16-09 uploaded

2020-05-29 Thread akpm
The mm-of-the-moment snapshot 2020-05-29-16-09 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH v4 0/5] Remove AER HEST table parser

2020-05-29 Thread Bjorn Helgaas
On Tue, May 26, 2020 at 04:18:24PM -0700, sathyanarayanan.kuppusw...@linux.intel.com wrote: > From: Kuppuswamy Sathyanarayanan > > Commit c100beb9ccfb ("PCI/AER: Use only _OSC to determine AER ownership") > removed HEST dependency in determining the AER ownership status. The > following patch

[PATCH v2 2/2] nvmem: add ONIE NVMEM cells support

2020-05-29 Thread Vadym Kochan
ONIE is a small operating system, pre-installed on bare metal network switches, that provides an environment for automated provisioning. This system requires that NVMEM (EEPROM) device holds various system information (mac address, platform name, etc) in a special TLV layout. The driver

[PATCH v2 1/2] nvmem: core: allow to register cells for existing device

2020-05-29 Thread Vadym Kochan
Current implementation does not allow to register nvmem cells for existing device and requires that this will be done before device is registered. But there might a driver which provides only cells info which needs to be added for already registered nvmem device. Signed-off-by: Vadym Kochan ---

[PATCH v2 0/2] nvmem: add ONIE NVMEM cells provider

2020-05-29 Thread Vadym Kochan
This series adds cells provider for the ONIE TLV attributes which are stored on NVMEM device. It adds possibility to read the mac address (and other info) by other drivers. Driver needs to register NVMEM cells table for already registered NVMEM device, this requires additional change to the core

Re: [PATCH v3 7/7] watchdog: dw_wdt: Add DebugFS files

2020-05-29 Thread Guenter Roeck
On Tue, May 26, 2020 at 06:41:23PM +0300, Serge Semin wrote: > For the sake of the easier device-driver debug procedure, we added a > DebugFS file with the controller registers state. It's available only if > kernel is configured with DebugFS support. > > Signed-off-by: Serge Semin > Cc: Alexey

Re: [PATCH] ASoC: SOF: Intel: byt: fix unused-function warnings

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 10:04:17PM +0200, Arnd Bergmann wrote: > Several functions in this driver are only referenced for baytrail-class > configurations and building configurations with only merrifield enabled > causes a warning: Pierre fixed this earlier today. signature.asc Description: PGP

Re: [PATCH v3 6/7] watchdog: dw_wdt: Add pre-timeouts support

2020-05-29 Thread Guenter Roeck
On Tue, May 26, 2020 at 06:41:22PM +0300, Serge Semin wrote: > DW Watchdog can rise an interrupt in case if IRQ request mode is enabled > and timer reaches the zero value. In this case the IRQ lane is left > pending until either the next watchdog kick event (watchdog restart) or > until the

Re: Lost PCIe PME after a914ff2d78ce ("PCI/ASPM: Don't select CONFIG_PCIEASPM by default")

2020-05-29 Thread Matthew Garrett
On Sat, May 30, 2020 at 12:26:17AM +0200, Heiner Kallweit wrote: > Current situation means that PME is unusable on all systems where > pcie_aspm_support_enabled() returns false, what is basically every > system except EXPERT mode is enabled and CONFIG_PCIEASPM is set. > So we definitely need to

Re: linux-next: manual merge of the akpm-current tree with the mips tree

2020-05-29 Thread Stephen Rothwell
Hi Andrew, On Fri, 29 May 2020 14:15:46 -0700 Andrew Morton wrote: > > On Thu, 28 May 2020 19:29:43 +1000 Stephen Rothwell > wrote: > > > > --- a/mm/memory.c > > +++ b/mm/memory.c > > @@@ -2752,9 -2748,6 +2749,8 @@@ static vm_fault_t wp_page_copy(struct v > > /* Free the old

Re: [PATCH v3 3/7] dt-bindings: watchdog: dw-wdt: Add watchdog TOPs array property

2020-05-29 Thread Guenter Roeck
On Tue, May 26, 2020 at 06:41:19PM +0300, Serge Semin wrote: > In case if DW Watchdog IP core is built with WDT_USE_FIX_TOP == false, > a custom timeout periods are used to preset the timer counter. In > this case that periods should be specified in a new "snps,watchdog-tops" > property of the DW

Re: [PATCH v3 1/7] dt-bindings: watchdog: Convert DW WDT binding to DT schema

2020-05-29 Thread Guenter Roeck
On Tue, May 26, 2020 at 06:41:17PM +0300, Serge Semin wrote: > Modern device tree bindings are supposed to be created as YAML-files > in accordance with dt-schema. This commit replaces the DW Watchdog > legacy bare text bindings with YAML file. As before the binding states > that the corresponding

Re: [PATCH v3 2/7] dt-bindings: watchdog: dw-wdt: Support devices with asynch clocks

2020-05-29 Thread Guenter Roeck
On Tue, May 26, 2020 at 06:41:18PM +0300, Serge Semin wrote: > DW Watchdog IP core can be synthesised with asynchronous timer/APB > clocks support (WDT_ASYNC_CLK_MODE_ENABLE == 1). In this case > separate clock signals are supposed to be used to feed watchdog timer > and APB interface of the

[PATCH] perf libdw: Fix off-by 1 relative directory includes

2020-05-29 Thread Ian Rogers
This is currently working due to extra include paths in the build. Before: $ cd tools/perf/arch/arm64/util $ ls -la ../../util/unwind-libdw.h ls: cannot access '../../util/unwind-libdw.h': No such file or directory After: $ ls -la ../../../util/unwind-libdw.h -rw-r- 1 irogers irogers 553 Apr

Re: [PATCH v3 5/7] watchdog: dw_wdt: Support devices with asynch clocks

2020-05-29 Thread Guenter Roeck
On Tue, May 26, 2020 at 06:41:21PM +0300, Serge Semin wrote: > DW Watchdog IP core can be synthesised with asynchronous timer/APB > clocks support (WDT_ASYNC_CLK_MODE_ENABLE == 1). In this case > separate clock signals are supposed to be used to feed watchdog timer > and APB interface of the

Re: [PATCH v3 4/7] watchdog: dw_wdt: Support devices with non-fixed TOP values

2020-05-29 Thread Guenter Roeck
On Tue, May 26, 2020 at 06:41:20PM +0300, Serge Semin wrote: > In case if the DW Watchdog IP core is synthesised with > WDT_USE_FIX_TOP == false, the TOP interval indexes make the device > to load a custom periods to the counter. These periods are hardwired > at the IP synthesis stage and can be

Re: [PATCH V2] dt-bindings: regulator: Convert anatop regulator to json-schema

2020-05-29 Thread Mark Brown
On Fri, 29 May 2020 09:59:11 +0800, Anson Huang wrote: > Convert the anatop regulator binding to DT schema format using json-schema. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] dt-bindings: regulator: Convert anatop regulator to

Re: general protection fault in inet_unhash

2020-05-29 Thread Andrii Nakryiko
On 5/29/20 10:32 AM, Eric Dumazet wrote: On 5/28/20 11:32 PM, Andrii Nakryiko wrote: On 5/28/20 11:23 PM, Dmitry Vyukov wrote: On Thu, May 28, 2020 at 11:01 PM 'Andrii Nakryiko' via syzkaller-bugs wrote: On 5/28/20 9:44 AM, syzbot wrote: Hello, syzbot found the following crash on: HEAD

Re: [PATCH v2] blkdev: Replace blksize_bits() with ilog2()

2020-05-29 Thread Jens Axboe
On 5/29/20 4:27 PM, Bart Van Assche wrote: > On 2020-05-29 13:27, Matthew Wilcox wrote: >> On Fri, May 29, 2020 at 10:11:00PM +0800, Kaitao Cheng wrote: >>> There is a function named ilog2() exist which can replace blksize. >>> The generated code will be shorter and more efficient on some >>>

Re: Regression with PM / wakeup: Show wakeup sources stats in sysfs"

2020-05-29 Thread Florian Fainelli
On 5/29/20 3:28 PM, Tri Vo wrote: > On Fri, May 29, 2020 at 9:51 AM Rafael J. Wysocki > wrote: >> >> On 5/28/2020 10:46 PM, Florian Fainelli wrote: >>> Hi, >>> >>> Commit c8377adfa78103be5380200eb9dab764d7ca890e ("PM / wakeup: Show >>> wakeup sources stats in sysfs") is causing some of our tests

Re: [PATCH v2 2/3] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-05-29 Thread Sargun Dhillon
On Fri, May 29, 2020 at 6:31 AM Christian Brauner wrote: > > > > + /* Check if we were woken up by a addfd message */ > > > + addfd = list_first_entry_or_null(, > > > +struct seccomp_kaddfd, list); > > > + if (addfd &&

Re: [PATCH 13/14] lockdep: Prepare for NMI IRQ state tracking

2020-05-29 Thread Peter Zijlstra
On Sat, May 30, 2020 at 12:25:05AM +0200, Peter Zijlstra wrote: > On Fri, May 29, 2020 at 06:14:01PM -0400, Steven Rostedt wrote: > > On Fri, 29 May 2020 23:27:41 +0200 > > Peter Zijlstra wrote: > > > > > There is no reason not to always, accurately, track IRQ state. > > > > > > This change

Re: [PATCH] Revert "f2fs: fix quota_sync failure due to f2fs_lock_op"

2020-05-29 Thread Jaegeuk Kim
On 05/29, Chao Yu wrote: > Under heavy fsstress, we may triggle panic while issuing discard, > because __check_sit_bitmap() detects that discard command may earse > valid data blocks, the root cause is as below race stack described, > since we removed lock when flushing quota data, quota data

Re: [PATCH v3 0/2] dtc: Improve checks for i2c reg properties

2020-05-29 Thread Rob Herring
On Thu, May 28, 2020 at 2:57 AM Joel Stanley wrote: > > This is to fix a build warning in the Linux kernel caused by dtc > incorrectly warning about I2C_OWN_SLAVE_ADDRESS. > > v3 fixes the 10 bit size check > v2 contains a second patch to check for 10 bit vs 7 bit addresses. > > Joel Stanley (2):

Re: Regression with PM / wakeup: Show wakeup sources stats in sysfs"

2020-05-29 Thread Tri Vo
On Fri, May 29, 2020 at 9:51 AM Rafael J. Wysocki wrote: > > On 5/28/2020 10:46 PM, Florian Fainelli wrote: > > Hi, > > > > Commit c8377adfa78103be5380200eb9dab764d7ca890e ("PM / wakeup: Show > > wakeup sources stats in sysfs") is causing some of our tests to fail > > because

Re: [RFC PATCH 2/2] drm: xlnx: driver for Xilinx DSI TX Subsystem

2020-05-29 Thread Hyun Kwon
Hi Laurent, On Wed, 2020-05-27 at 15:45:24 -0700, Laurent Pinchart wrote: > Hi Hyun, > > On Wed, May 27, 2020 at 10:54:35AM -0700, Hyun Kwon wrote: > > On Sat, 2020-05-23 at 20:08:13 -0700, Laurent Pinchart wrote: > > > On Mon, May 04, 2020 at 11:43:48AM -0700, Hyun Kwon wrote: > > >> On Mon,

Re: [PATCH 13/14] lockdep: Prepare for NMI IRQ state tracking

2020-05-29 Thread Steven Rostedt
On Sat, 30 May 2020 00:25:05 +0200 Peter Zijlstra wrote: > > > + if (DEBUG_LOCKS_WARN_ON(current->lockdep_recursion & > > > LOCKDEP_RECURSION_MASK)) > > > return; > > ^^ there's your regular recursion check. Yes, but this is more of a "bug if it happens" than just "ignore it". --

Re: [PATCH v2] blkdev: Replace blksize_bits() with ilog2()

2020-05-29 Thread Bart Van Assche
On 2020-05-29 13:27, Matthew Wilcox wrote: > On Fri, May 29, 2020 at 10:11:00PM +0800, Kaitao Cheng wrote: >> There is a function named ilog2() exist which can replace blksize. >> The generated code will be shorter and more efficient on some >> architecture, such as arm64. And ilog2() can be

donation

2020-05-29 Thread Anastasia McDonald
You have a sum donation for Catholic Charities Foundation, kindly contact the Program Coordinator through her email anastasia.mc...@gmail.com for details of claim. Regard Sir. Angelo Tony.

Re: Lost PCIe PME after a914ff2d78ce ("PCI/ASPM: Don't select CONFIG_PCIEASPM by default")

2020-05-29 Thread Heiner Kallweit
On 29.05.2020 22:59, Matthew Garrett wrote: > On Fri, May 29, 2020 at 03:21:35PM -0500, Bjorn Helgaas wrote: > >> Yeah, that makes sense. I can't remember the details, but I'm pretty >> sure there's a reason why we ask for the whole set of things. Seems >> like it solved some problem. I think

Re: [PATCH 13/14] lockdep: Prepare for NMI IRQ state tracking

2020-05-29 Thread Peter Zijlstra
On Fri, May 29, 2020 at 06:14:01PM -0400, Steven Rostedt wrote: > On Fri, 29 May 2020 23:27:41 +0200 > Peter Zijlstra wrote: > > > There is no reason not to always, accurately, track IRQ state. > > > > This change also makes IRQ state tracking ignore lockdep_off(). > > > > Signed-off-by: Peter

[GIT PULL] ARM: SoC fixes for v5.7

2020-05-29 Thread Arnd Bergmann
The following changes since commit b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce: Linux 5.7-rc6 (2020-05-17 16:48:37 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git tags/armsoc-fixes-v5.7 for you to fetch changes up to

[ANNOUNCE] 5.4.43-rt25

2020-05-29 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 5.4.43-rt25 stable release. This release is just an update to the new stable 5.4.43 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [PATCH v2 2/4] dt-bindings: pinctrl: Document optional BCM7211 wake-up interrupts

2020-05-29 Thread Rob Herring
On Fri, 29 May 2020 12:15:20 -0700, Florian Fainelli wrote: > BCM7211 supports wake-up interrupts in the form of optional interrupt > lines, one per bank, plus the "all banks" interrupt line. > > Signed-off-by: Florian Fainelli > --- > .../devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt

Re: [PATCH] dt-bindings: Merge gpio-usb-b-connector with usb-connector

2020-05-29 Thread Rob Herring
On Fri, 29 May 2020 20:06:31 +0200, Thierry Reding wrote: > From: Thierry Reding > > The binding for usb-connector is a superset of gpio-usb-b-connector. One > major difference is that gpio-usb-b-connector requires at least one of > the vbus-gpios and id-gpios properties to be specified. Merge

Re: [PATCH v6 00/16] spi: dw: Add generic DW DMA controller support

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 03:22:26PM -0600, Rob Herring wrote: > On Fri, May 29, 2020 at 06:33:25PM +0100, Mark Brown wrote: > > Please rebase. TBH I'd not noticed Rob's review so I just left it > > waiting for that, there's such a huge backlog there it didn't occur to > > me that it might've been

Re: [PATCH v3] regmap: fix alignment issue

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 09:25:38PM +0200, Jens Thoms Toerring wrote: > The assembly and disassembly of data to be sent to or received from a > device invoke functions (regmap_format_XXX() and regmap_parse_XXX()) > that extract or insert data items from or into a buffer, using > assignments. In

Re: [PATCH] vfio/mdev: Fix reference count leak in add_mdev_supported_type.

2020-05-29 Thread Alex Williamson
On Wed, 27 May 2020 21:01:09 -0500 wu000...@umn.edu wrote: > From: Qiushi Wu > > kobject_init_and_add() takes reference even when it fails. > If this function returns an error, kobject_put() must be called to > properly clean up the memory associated with the object. Thus, > replace kfree() by

Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro

2020-05-29 Thread Andy Shevchenko
On Sat, May 30, 2020 at 1:11 AM Syed Nayyar Waris wrote: > On Sat, May 30, 2020 at 3:13 AM Andy Shevchenko > wrote: > > On Fri, May 29, 2020 at 11:07 PM Syed Nayyar Waris > > wrote: > > > On Sat, May 30, 2020 at 12:08 AM Andy Shevchenko > > > wrote: > > > > On Fri, May 29, 2020 at 11:38:18PM

Re: [PATCH v12 3/4] dt-bindings: power: Add the bindings for the bq2515x family of chargers.

2020-05-29 Thread Rob Herring
On Thu, May 28, 2020 at 05:53:49PM -0500, Ricardo Rivera-Matos wrote: > The BQ2515X family of devices are highly integrated battery management > ICs that integrate the most common functions for wearable devices > namely a charger, an output voltage rail, ADC for battery and system > monitoring,

Re: [PATCH v12 2/4] dt-bindings: power: Convert battery.txt to battery.yaml

2020-05-29 Thread Rob Herring
On Thu, May 28, 2020 at 05:53:48PM -0500, Ricardo Rivera-Matos wrote: > From: Dan Murphy > > Convert the battery.txt file to yaml and fix up the examples. > > Signed-off-by: Dan Murphy > --- > .../bindings/power/supply/battery.txt | 82 +- >

Re: [PATCH v2 00/33] iommu: Move iommu_group setup to IOMMU core code

2020-05-29 Thread Jerry Snitselaar
On Tue Apr 14 20, Joerg Roedel wrote: Hi, here is the second version of this patch-set. The first version with some more introductory text can be found here: https://lore.kernel.org/lkml/20200407183742.4344-1-j...@8bytes.org/ Changes v1->v2: * Rebased to v5.7-rc1 *

Re: [PATCH 13/14] lockdep: Prepare for NMI IRQ state tracking

2020-05-29 Thread Steven Rostedt
On Fri, 29 May 2020 23:27:41 +0200 Peter Zijlstra wrote: > There is no reason not to always, accurately, track IRQ state. > > This change also makes IRQ state tracking ignore lockdep_off(). > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/locking/lockdep.c | 33

Re: [PATCH v3] regmap: fix alignment issue

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 09:25:38PM +0200, Jens Thoms Toerring wrote: > pointers with odd addresses. On architectures with strict alignment > requirements this results in a kernel crash for u16 and u32 values. Which architectures out of interest? signature.asc Description: PGP signature

Re: [PATCH] refperf: work around 64-bit division

2020-05-29 Thread Randy Dunlap
On 5/29/20 1:15 PM, Arnd Bergmann wrote: > A 64-bit division was introduced in refperf, breaking compilation > on all 32-bit architectures: > > kernel/rcu/refperf.o: in function `main_func': > refperf.c:(.text+0x57c): undefined reference to `__aeabi_uldivmod' > > Work it by using div_u64 to mark

Re: [PATCH] [v2] ARM: omap2: fix omap5_realtime_timer_init definition

2020-05-29 Thread Tony Lindgren
* Arnd Bergmann [200529 22:01]: > There is one more regression introduced by the last build fix: > > arch/arm/mach-omap2/timer.c:170:6: error: attribute declaration must precede > definition [-Werror,-Wignored-attributes] > void __init omap5_realtime_timer_init(void) > ^ >

Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro

2020-05-29 Thread Syed Nayyar Waris
On Sat, May 30, 2020 at 3:13 AM Andy Shevchenko wrote: > > On Fri, May 29, 2020 at 11:07 PM Syed Nayyar Waris > wrote: > > On Sat, May 30, 2020 at 12:08 AM Andy Shevchenko > > wrote: > > > On Fri, May 29, 2020 at 11:38:18PM +0530, Syed Nayyar Waris wrote: > > > > On Sun, May 24, 2020 at 8:15

drivers/usb/cdns3/gadget.c:1188:29: sparse: sparse: incorrect type in assignment (different base types)

2020-05-29 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 75caf310d16cc5e2f851c048cd597f5437013368 commit: 70d8b9e5e63d212019ba3f6823c8ec3d2df87645 usb: cdns3: make signed 1 bit bitfields unsigned date: 9 weeks ago config: i386-randconfig-s031-20200529 (attached

Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro

2020-05-29 Thread Andy Shevchenko
On Sat, May 30, 2020 at 12:42 AM Andy Shevchenko wrote: > On Fri, May 29, 2020 at 11:07 PM Syed Nayyar Waris > wrote: > > On Sat, May 30, 2020 at 12:08 AM Andy Shevchenko > > wrote: ... > > Explanation: > > Actually when nbits (clump size) is 64 (BITS_PER_LONG is 64 on my computer), > >

[PATCH 25/27] afs: Don't use probe running state to make decisions outside probe code

2020-05-29 Thread David Howells
Don't use the running state for fileserver probes to make decisions about which server to use as the state is cleared at the start of a probe and also intermediate values might be misleading. Instead, add a separate 'latest known' rtt in the afs_server struct and a flag to indicate if the server

[PATCH 24/27] afs: Fix afs_statfs() to not let the values go below zero

2020-05-29 Thread David Howells
Fix afs_statfs() so that the value for f_bavail and f_bfree don't go "negative" if the number of blocks in use by a volume exceeds the max quota for that volume. Signed-off-by: David Howells --- fs/afs/super.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH 23/27] afs: Fix the by-UUID server tree to allow servers with the same UUID

2020-05-29 Thread David Howells
Whilst it shouldn't happen, it is possible for multiple fileservers to share a UUID, particularly if an entire cell has been duplicated, UUIDs and all. In such a case, it's not necessarily possible to map the effect of the CB.InitCallBackState3 incoming RPC to a specific server unambiguously by

[PATCH 26/27] afs: Show more a bit more server state in /proc/net/afs/servers

2020-05-29 Thread David Howells
Display more information about the state of a server record, including the flags, rtt and break counter plus the probe state for each server in /proc/net/afs/servers. Rearrange the server flags a bit to make them easier to read at a glance in the proc file. Signed-off-by: David Howells ---

[PATCH 27/27] afs: Adjust the fileserver rotation algorithm to reprobe/retry more quickly

2020-05-29 Thread David Howells
Adjust the fileserver rotation algorithm so that if we've tried all the addresses on a server (cumulatively over multiple operations) until we've run out of untried addresses, immediately reprobe all that server's interfaces and retry the op at least once before we move onto the next server.

[PATCH 22/27] afs: Reorganise volume and server trees to be rooted on the cell

2020-05-29 Thread David Howells
Reorganise afs_volume objects such that they're in a tree keyed on volume ID, rooted at on an afs_cell object rather than being in multiple trees, each of which is rooted on an afs_server object. afs_server structs become per-cell and acquire a pointer to the cell. The process of breaking a

Re: clean up kernel_{read,write} & friends v2

2020-05-29 Thread Casey Schaufler
On 5/29/2020 12:19 PM, Linus Torvalds wrote: > On Fri, May 29, 2020 at 6:08 AM David Laight wrote: >> A wide monitor is for looking at lots of files. > Not necessarily. > > Excessive line breaks are BAD. They cause real and every-day problems. > > They cause problems for things like "grep" both

[PATCH 20/27] afs: Detect cell aliases 3 - YFS Cells with a canonical cell name op

2020-05-29 Thread David Howells
YFS Volume Location servers have an operation by which the cell name may be queried. Use this to find out what a YFS server thinks the canonical cell name should be. Signed-off-by: David Howells --- fs/afs/vl_alias.c | 60

[PATCH 18/27] afs: Detect cell aliases 1 - Cells with root volumes

2020-05-29 Thread David Howells
Put in the first phase of cell alias detection. This part handles alias detection for cells that have root.cell volumes (which is expected to be likely). When a cell becomes newly active, it is probed for its root.cell volume, and if it has one, this volume is compared against other root.cell

[PATCH 16/27] afs: Retain more of the VLDB record for alias detection

2020-05-29 Thread David Howells
Save more bits from the volume location database record obtained for a server so that we can use this information in cell alias detection. Signed-off-by: David Howells --- fs/afs/internal.h|3 ++- fs/afs/server_list.c |3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff

[PATCH 17/27] afs: Implement client support for the YFSVL.GetCellName RPC op

2020-05-29 Thread David Howells
Implement client support for the YFSVL.GetCellName RPC operation by which YFS permits the canonical cell name to be queried from a VL server. Signed-off-by: David Howells --- fs/afs/afs.h |2 - fs/afs/afs_vl.h|1 fs/afs/internal.h |2 +

[PATCH 21/27] afs: Add a tracepoint to track the lifetime of the afs_volume struct

2020-05-29 Thread David Howells
Add a tracepoint to track the lifetime of the afs_volume struct. Signed-off-by: David Howells --- fs/afs/cell.c |2 +- fs/afs/fs_operation.c |4 ++- fs/afs/internal.h | 10 ++-- fs/afs/super.c | 10 +--- fs/afs/vl_alias.c |

[PATCH 19/27] afs: Detect cell aliases 2 - Cells with no root volumes

2020-05-29 Thread David Howells
Implement the second phase of cell alias detection. This part handles alias detection for cells that don't have root.cell volumes and so we have to find some other volume or fileserver to query. We take the first volume from each such cell and attempt to look it up in the new cell. If found, we

[PATCH 15/27] afs: Fix handling of CB.ProbeUuid cache manager op

2020-05-29 Thread David Howells
The AFS filesystem driver is handling the CB.ProbeUuid request incorrectly. The UUID presented in the request is that of the cache manager, not the fileserver, so afs_deliver_cb_probe_uuid() shouldn't be using that UUID to look up the server. Fix this by looking up the server by address instead.

[PATCH 14/27] afs: Don't get epoch from a server because it may be ambiguous

2020-05-29 Thread David Howells
Don't get the epoch from a server, particularly one that we're looking up by UUID, as UUIDs may be ambiguous and may map to more than one server - so we can't draw any conclusions from it. Reported-by: Jeffrey Altman Signed-off-by: David Howells --- fs/afs/cmservice.c | 49

[PATCH 12/27] afs: Rename struct afs_fs_cursor to afs_operation

2020-05-29 Thread David Howells
As a prelude to implementing asynchronous fileserver operations in the afs filesystem, rename struct afs_fs_cursor to afs_operation. This struct is going to form the core of the operation management and is going to acquire more members in later. Signed-off-by: David Howells --- fs/afs/dir.c

[PATCH 08/27] afs: Show more information in /proc/net/afs/servers

2020-05-29 Thread David Howells
Show more information in /proc/net/afs/servers to make it easier to see what's going on with the server probing. Signed-off-by: David Howells --- fs/afs/proc.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/fs/afs/proc.c b/fs/afs/proc.c index

<    1   2   3   4   5   6   7   8   9   10   >