Re: [PATCH] PCI/IOV: update num_VFs earlier

2019-10-01 Thread Bjorn Helgaas
On Fri, Apr 26, 2019 at 10:11:54AM +0200, CREGUT Pierre IMT/OLN wrote: > I also initially thought that kobject_uevent generated the netlink event > but this is not the case. This is generated by the specific driver in use. > For the Intel i40e driver, this is the call to i40e_do_reset_safe in > i40

Re: [PATCH 1/2] x86: math-emu: check __copy_from_user result

2019-10-01 Thread Kees Cook
On Tue, Oct 01, 2019 at 04:23:34PM +0200, Arnd Bergmann wrote: > The new __must_check annotation on __copy_from_user successfully > identified some code that has lacked the check since at least > linux-2.1.73: > > arch/x86/math-emu/reg_ld_str.c:88:2: error: ignoring return value of function > dec

[PATCH V4 1/3] drm/panel: simple: Add Logic PD Type 28 display support

2019-10-01 Thread Adam Ford
Previously, there was an omap panel-dpi driver that would read generic timings from the device tree and set the display timing accordingly. This driver was removed so the screen no longer functions. This patch modifies the panel-simple file to setup the timings to the same values previously used.

Re: [PATCH v6 10/19] PM / devfreq: tegra30: Reduce unnecessary interrupts activity

2019-10-01 Thread Chanwoo Choi
Hi, On 19. 8. 12. 오전 6:23, Dmitry Osipenko wrote: > There are cases where unnecessary ACTMON interrupts could be avoided, > like when one memory client device requests higher clock rate than the > other or when clock rate is manually limited using sysfs devfreq > parameters. These cases could be a

Re: [PATCH v6 09/19] PM / devfreq: tegra30: Use kHz units uniformly in the code

2019-10-01 Thread Chanwoo Choi
On 19. 8. 12. 오전 6:23, Dmitry Osipenko wrote: > Now that all kHz-conversion related bugs are fixed, we can use the kHz > uniformly. This makes code cleaner and avoids integer divisions in the > code, which is useful in a case of Tegra30 that has Cortex A9 CPU that > doesn't support integer division

Re: [PATCH v2 5/5] MIPS: JZ4780: DTS: Add CPU nodes

2019-10-01 Thread Paul Burton
Hi Alexandre, On Tue, Oct 01, 2019 at 09:09:48PM +0200, Alexandre GRIVEAUX wrote: > The JZ4780 have 2 core, adding to DT. > > Signed-off-by: Alexandre GRIVEAUX > --- > arch/mips/boot/dts/ingenic/jz4780.dtsi | 17 + > 1 file changed, 17 insertions(+) > > diff --git a/arch/mips/b

Re: Many unexpected warnings with current sparse

2019-10-01 Thread Steve French
It may be related to the following sparse make warning: No rule to make target '/usr/include/x86_64-linux-gnu/bits/huge_val.h', needed by 'sparse-llvm.o' I don't see huge_val.h in the Ubuntu 19 version of libc6-dev Will send you the kernel config - but I am using the default one from the Ubuntu

Re: [PATCH v3 0/3] Fix typo in RWH_WRITE_LIFE_NOT_SET constant name

2019-10-01 Thread Song Liu
On Fri, Sep 20, 2019 at 8:58 AM Eugene Syromiatnikov wrote: > > Hello. > > This is a small fix of a typo (or, more specifically, some remnant of > the old patch version spelling) in RWH_WRITE_LIFE_NOT_SET constant, > which is named as RWF_WRITE_LIFE_NOT_SET currently. Since the name > with "H" is

Re: Many unexpected warnings with current sparse

2019-10-01 Thread Luc Van Oostenryck
On Tue, Oct 01, 2019 at 11:28:16AM -0500, Steve French wrote: > Updated sparse to get rid of some unneeded kernel sparse check > warnings but now get many more > > I get 100s of warnings similar to > > ./include/linux/quota.h:114:17: error: Expected ( after asm > ./include/linux/quota.h:114:17: e

Re: [PATCH] md/raid0: Fix an error message in raid0_make_request()

2019-10-01 Thread Song Liu
On Fri, Sep 20, 2019 at 11:00 PM Dan Carpenter wrote: > > The first argument to WARN() is supposed to be a condition. The > original code will just print the mdname() instead of the full warning > message. > > Fixes: c84a1372df92 ("md/raid0: avoid RAID0 data corruption due to layout > confusion.

[PATCH] ARM: dts: rockchip: Use interpolated brightness tables for veyron

2019-10-01 Thread Matthias Kaehlcke
Use interpolated brightness tables (added by commit 573fe6d1c25 ("backlight: pwm_bl: Linear interpolation between brightness-levels") for veyron, instead of specifying every single step. Another option would be to switch to a perceptual brightness curve (CIE 1931), with the caveat that it would ch

Re: [PATCH 3/3] PCI: pciehp: Add dmi table for in-band presence disabled

2019-10-01 Thread Stuart Hayes
On Tue, Oct 1, 2019 at 4:36 PM Alex G. wrote: > > > > On 10/1/19 4:14 PM, Stuart Hayes wrote: > > Some systems have in-band presence detection disabled for hot-plug PCI > > slots, > > but do not report this in the slot capabilities 2 (SLTCAP2) register. On > > these systems, presence detect can

Re: [PATCH bpf 0/2] selftests/bpf: test_progs: don't leak fd in bpf

2019-10-01 Thread Daniel Borkmann
On Tue, Oct 01, 2019 at 10:37:26AM -0700, Brian Vazquez wrote: > This patch series fixes some fd leaks in tcp_rtt and > test_sockopt_inherit bpf prof_tests. > > Brian Vazquez (2): > selftests/bpf: test_progs: don't leak server_fd in tcp_rtt > selftests/bpf: test_progs: don't leak server_fd in

RE: [PATCH 5.2 02/45] smb3: fix unmount hang in open_shroot

2019-10-01 Thread Pavel Shilovskiy
-Original Message- From: Sasha Levin Sent: Tuesday, October 1, 2019 3:49 PM > On Tue, Oct 01, 2019 at 08:41:43PM +, Pavel Shilovskiy wrote: > >Hi Greg, > > > >Are you going to apply this patch to the 5.3.y stable kernel? The patch is > >applicable there too. > > I will, yes. Thanks

Re: [RFC][PATCH] sysctl: Remove the sysctl system call

2019-10-01 Thread Eric W. Biederman
Kees Cook writes: > On Tue, Oct 01, 2019 at 01:36:32PM -0500, Eric W. Biederman wrote: >> >> This system call has been deprecated almost since it was introduced, and >> in a survey of the linux distributions I can no longer find any of them >> that enable CONFIG_SYSCTL_SYSCALL. The only indicat

[PATCH 3/7] irqchip/irq-bcm2835: Add support for 7211 interrupt controller

2019-10-01 Thread Florian Fainelli
BCM7211 has a number of similarities with BCM2836, except the register offsets are different and the bank bits are also different, account for all of these differences. Signed-off-by: Florian Fainelli --- drivers/irqchip/irq-bcm2835.c | 86 +-- 1 file changed, 72

[PATCH 7/7] irqchip/irq-bcm283x: Add registration prints

2019-10-01 Thread Florian Fainelli
With many different kind of interrupt controllers available and used on 7211, add prints to help determine which ones are registered. Signed-off-by: Florian Fainelli --- drivers/irqchip/irq-bcm2835.c | 9 + drivers/irqchip/irq-bcm2836.c | 2 ++ 2 files changed, 11 insertions(+) diff --g

[PATCH 6/7] irqchip: Build BCM283X_IRQ for ARCH_BRCMSTB

2019-10-01 Thread Florian Fainelli
Now that irq-bcm2835.c and irq-bcm2836.c have been updated to support BCM7211 which is under ARCH_BRCMSTB, build both drivers for ARCH_BRCMSTB. Signed-off-by: Florian Fainelli --- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/Kconfig

[PATCH 4/7] dt-bindings: interrupt-controller: Add brcm,bcm7211-l1-intc binding

2019-10-01 Thread Florian Fainelli
BCM7211 uses a very similar root interrupt controller than what exists on BCM2836, define a specific compatible string to key off specific behavior. Signed-off-by: Florian Fainelli --- .../bindings/interrupt-controller/brcm,bcm2836-l1-intc.txt| 4 +++- 1 file changed, 3 insertions(+), 1 dele

Re: [PATCH 5.2 02/45] smb3: fix unmount hang in open_shroot

2019-10-01 Thread Sasha Levin
On Tue, Oct 01, 2019 at 08:41:43PM +, Pavel Shilovskiy wrote: Hi Greg, Are you going to apply this patch to the 5.3.y stable kernel? The patch is applicable there too. I will, yes. -- Thanks, Sasha

[PATCH 5/7] irqchip/irq-bcm2836: Add support for the 7211 interrupt controller

2019-10-01 Thread Florian Fainelli
The root interrupt controller on 7211 is about identical to the one existing on BCM2836, except that the SMP cross call are done through the standard ARM GIC-400 interrupt controller. This interrupt controller is used for side band wake-up signals though. Signed-off-by: Florian Fainelli --- driv

[PATCH 0/7] irqchip/irq-bcm283x update for BCM7211

2019-10-01 Thread Florian Fainelli
Hi Marc, Jason, Thomas, This patch series updates the BCM2835 and BCM2836 interrupt controller drivers to support BCM7211 which can make use of those drivers in some configurations where the ARM GIC is muxed out and the legacy ARM interrupt controller is used instead. Thank you! Florian Fainelli

[PATCH 1/7] irqchip: Introduce Kconfig symbol to build irq-bcm283x.c

2019-10-01 Thread Florian Fainelli
Both irq-bcm2835.c and irq-bcm2836.c are currently used with ARCH_BCM2835 but are soon going to be used with ARCH_BRCMSTB, introduce a Kconfig symbol to make that those drivers selected/built by other platforms. Signed-off-by: Florian Fainelli --- drivers/irqchip/Kconfig | 5 + drivers/irqc

[PATCH 2/7] dt-bindings: interrupt-controller: Add brcm,bcm7211-armctrl-ic binding

2019-10-01 Thread Florian Fainelli
BCM7211 features a second level interrupt controller similar in nature to BCM2836, with a few modifications to the register offsets, document that specific compatible string. Signed-off-by: Florian Fainelli --- .../interrupt-controller/brcm,bcm2835-armctrl-ic.txt| 6 -- 1 file change

Re: [PATCH 1/3] tools/memory-model/Documentation: Fix typos in explanation.txt

2019-10-01 Thread Paul E. McKenney
On Tue, Oct 01, 2019 at 05:01:23PM -0400, Joel Fernandes wrote: > On Tue, Oct 01, 2019 at 01:39:47PM -0400, Alan Stern wrote: > > This patch fixes a few minor typos and improves word usage in a few > > places in the Linux Kernel Memory Model's explanation.txt file. > > > > Signed-off-by: Alan Ster

linux-next: Fixes tag needs some work in the sound-asoc-fixes tree

2019-10-01 Thread Stephen Rothwell
Hi all, In commit e66e52c5b742 ("ASoC: SOF: pcm: fix resource leak in hw_free") Fixes tag Fixes: c29d96c3b9b4 ("ASoC: SOF: reset DMA state in prepare") has these problem(s): - Target SHA1 does not exist Did you mean Fixes: 04c8027764bc ("ASoC: SOF: reset DMA state in prepare") -- Ch

Re: [PATCH v2 3/3] dt-bindings: watchdog: meson-gxbb-wdt: Include generic watchdog bindings

2019-10-01 Thread Rob Herring
On Fri, 20 Sep 2019 18:21:24 +0200, Krzysztof Kozlowski wrote: > Include generic watchdog DT schema bindings in Amlogic GXBB Watchdog > bindings. > > Signed-off-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml | 3 +++ > 1 file changed, 3 insertions(

Re: [PATCH v2 1/3] dt-bindings: watchdog: Convert Samsung SoC watchdog bindings to json-schema

2019-10-01 Thread Rob Herring
On Fri, Sep 20, 2019 at 06:21:22PM +0200, Krzysztof Kozlowski wrote: > Convert Samsung S3C/S5P/Exynos watchdog bindings to DT schema format > using json-schema. > > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes since v1: > 1. Indent example with four spaces (more readable), > 2. Remove

Re: [PATCH 4.19 36/63] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-10-01 Thread Sasha Levin
On Mon, Sep 30, 2019 at 10:00:35AM -0400, Waiman Long wrote: On 9/29/19 9:46 PM, Tetsuo Handa wrote: On 2019/09/30 9:28, Sasha Levin wrote: On Sun, Sep 29, 2019 at 11:43:38PM +0900, Tetsuo Handa wrote: On 2019/09/29 22:54, Greg Kroah-Hartman wrote: From: Waiman Long [ Upstream commit 513e10

Re: DVB-T2 Stick

2019-10-01 Thread Gonsolo
Hi! > Secondly there are lots of coding style issues, see: > https://www.kernel.org/doc/html/v4.10/process/coding-style.html I addressed most of these except one "#if 0" warning from checkpatch. > I'm afraid there are many problems with this patch. First of all it looks > like support was added

Re: [PATCH v2 2/2] dt-bindings: arm: fsl: Add PHYTEC i.MX6 devicetree bindings

2019-10-01 Thread Rob Herring
On Fri, 20 Sep 2019 13:52:26 +0200, Stefan Riedmueller wrote: > Add devicetree bindings for i.MX6 based phyCORE-i.MX6, phyBOARD-Mira and > phyFLEX-i.MX6. > > Signed-off-by: Stefan Riedmueller > --- > Changes in v2: > - Use seperate description for each board instead of squashing them into >t

Re: [PATCH v2 1/2] dt-bindings: arm: fsl: Add PHYTEC i.MX6 UL/ULL devicetree bindings

2019-10-01 Thread Rob Herring
On Fri, 20 Sep 2019 13:52:25 +0200, Stefan Riedmueller wrote: > Add devicetree bindings for i.MX6 UL/ULL based phyCORE-i.MX6 UL/ULL and > phyBOARD-Segin. > > Signed-off-by: Stefan Riedmueller > --- > Changes in v2: > - Use seperate description for each board instead of squashing them into >t

[PATCH] mm: thp: move deferred split queue to memcg's nodeinfo

2019-10-01 Thread Yang Shi
The commit 87eaceb3faa59b9b4d940ec9554ce251325d83fe ("mm: thp: make deferred split shrinker memcg aware") makes deferred split queue per memcg to resolve memcg pre-mature OOM problem. But, all nodes end up sharing the same queue instead of one queue per-node before the commit. It is not a big deal

Re: [PATCH 2/3] KVM: x86: always expose VIRT_SSBD to guests

2019-10-01 Thread Eduardo Habkost
On Wed, Aug 21, 2019 at 10:26:41AM +0200, Paolo Bonzini wrote: > Even though it is preferrable to use SPEC_CTRL (represented by > X86_FEATURE_AMD_SSBD) instead of VIRT_SPEC, VIRT_SPEC is always > supported anyway because otherwise it would be impossible to > migrate from old to new CPUs. Make this

Re: [PATCH 1/3] dt-bindings: power: add Amlogic secure power domains bindings

2019-10-01 Thread Rob Herring
On Thu, Sep 19, 2019 at 08:11:02AM -0400, Jianxin Pan wrote: > Add the bindings for the Amlogic Secure power domains, controlling the > secure power domains. > > The bindings targets the Amlogic A1 and C1 compatible SoCs, in which the > power domain registers are in secure world. > > Signed-off-b

Re: [PATCH 1/4] dt-bindings: thermal: Introduce monitor-falling parameter to thermal trip point binding

2019-10-01 Thread Rob Herring
On Wed, Sep 18, 2019 at 10:18:20PM -0400, Thara Gopinath wrote: > Introduce a new binding parameter to thermal trip point description > to indicate whether the temperature level specified by the trip point > is monitored for a rise or fall in temperature. What if it is both? When do you need this

Re: [PATCH] dt-bindings: display: imx: fix native-mode setting

2019-10-01 Thread Rob Herring
On Wed, Sep 18, 2019 at 09:38:53PM +0200, Martin Kaiser wrote: > According to > Documentation/devicetree/bindings/display/panel/display-timing.txt, > native-mode is a property of the display-timings node. > > If it's located outside of display-timings, the native-mode setting is > ignored and the

Re: [PATCH 1/2] dt-bindings: ptp: Add binding doc for IDT ClockMatrix based PTP clock

2019-10-01 Thread Rob Herring
On Wed, Sep 18, 2019 at 04:06:37PM -0400, vincent.cheng...@renesas.com wrote: > From: Vincent Cheng > > Add device tree binding doc for the IDT ClockMatrix PTP clock driver. Bindings are for h/w, not drivers... > > Signed-off-by: Vincent Cheng > --- > Documentation/devicetree/bindings/ptp/pt

Re: [PATCH] of: Add of_get_memory_prop()

2019-10-01 Thread Rob Herring
On Wed, Sep 18, 2019 at 03:32:14PM -0700, rana...@codeaurora.org wrote: > On 2019-09-18 13:13, Rob Herring wrote: > > On Wed, Sep 18, 2019 at 1:47 PM Raghavendra Rao Ananta > > wrote: > > > > > > On some embedded systems, the '/memory' dt-property gets updated > > > by the bootloader (for example

[PATCH] Input: psxpad-spi - switch to using polled mode of input devices

2019-10-01 Thread Dmitry Torokhov
We have added polled mode to the normal input devices with the intent of retiring input_polled_dev. This converts psxpad-spi driver to use the polling mode of standard input devices and removes dependency on INPUT_POLLDEV. Signed-off-by: Dmitry Torokhov --- drivers/input/joystick/Kconfig |

My name is Mrs Munasalem Mustapha from France,

2019-10-01 Thread munasale mmustapha
My name is Mrs Munasalem Mustapha from France, I know that this message might come to you as surprise because we don't know each other nor have we ever met before but accept it with an open and positive mind. I have a Very important request that made me to contact you; I was diagnosed with ovarian

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-10-01 Thread Russell King - ARM Linux admin
On Tue, Oct 01, 2019 at 02:32:54PM -0700, Nick Desaulniers wrote: > On Tue, Oct 1, 2019 at 2:26 PM Russell King - ARM Linux admin > wrote: > > > > On Tue, Oct 01, 2019 at 09:59:38PM +0100, Russell King - ARM Linux admin > > wrote: > > > On Tue, Oct 01, 2019 at 01:21:44PM -0700, Nick Desaulniers w

Re: [patch for-5.3 0/4] revert immediate fallback to remote hugepages

2019-10-01 Thread Vlastimil Babka
On 10/1/19 10:31 PM, David Rientjes wrote: > On Tue, 1 Oct 2019, Vlastimil Babka wrote: > >> diff --git a/mm/mempolicy.c b/mm/mempolicy.c >> index 4ae967bcf954..2c48146f3ee2 100644 >> --- a/mm/mempolicy.c >> +++ b/mm/mempolicy.c >> @@ -2129,18 +2129,20 @@ alloc_pages_vma(gfp_t gfp, int order, stru

[PATCH v2] staging: speakup: document sysfs attributes

2019-10-01 Thread Okash Khawaja
Speakup exposes a set of sysfs attributes under /sys/accessibility/speakup/ for user-space to interact with and configure speakup's kernel modules. This patch describes those attributes. Some attributes either lack a description or contain incomplete description. They are marked wit TODO. Authored

[PATCH v2 03/36] MIPS: barrier: Add __SYNC() infrastructure

2019-10-01 Thread Paul Burton
Introduce an asm/sync.h header which provides infrastructure that can be used to generate sync instructions of various types, and for various reasons. For example if we need a sync instruction that provides a full completion barrier but only on systems which have weak memory ordering, we can genera

[PATCH v2 18/36] MIPS: bitops: Use MIPS_ISA_REV, not #ifdefs

2019-10-01 Thread Paul Burton
Rather than #ifdef on CONFIG_CPU_* to determine whether the ins instruction is supported we can simply check MIPS_ISA_REV to discover whether we're targeting MIPSr2 or higher. Do so in order to clean up the code. Signed-off-by: Paul Burton --- Changes in v2: None arch/mips/include/asm/bitops.h

[PATCH v2 07/36] MIPS: barrier: Clean up __sync() definition

2019-10-01 Thread Paul Burton
Implement __sync() using the new __SYNC() infrastructure, which will take care of not emitting an instruction for old R3k CPUs that don't support it. The only behavioral difference is that __sync() will now provide a compiler barrier on these old CPUs, but that seems like reasonable behavior anyway

[PATCH v2 09/36] MIPS: atomic: Fix whitespace in ATOMIC_OP macros

2019-10-01 Thread Paul Burton
We define macros in asm/atomic.h which end each line with space characters before a backslash to continue on the next line. Remove the space characters leaving tabs as the whitespace used for conformity with coding convention. Signed-off-by: Paul Burton --- Changes in v2: None arch/mips/includ

[PATCH v2 05/36] MIPS: barrier: Clean up __smp_mb() definition

2019-10-01 Thread Paul Burton
We #ifdef on Cavium Octeon CPUs, but emit the same sync instruction in both cases. Remove the #ifdef & simply expand to the __sync() macro. Whilst here indent the strong ordering case definitions to match the indentation of the weak ordering ones, helping readability. Signed-off-by: Paul Burton

[PATCH v2 02/36] MIPS: Use compact branch for LL/SC loops on MIPSr6+

2019-10-01 Thread Paul Burton
When targeting MIPSr6 or higher make use of a compact branch in LL/SC loops, preventing the insertion of a delay slot nop that only serves to waste space. Signed-off-by: Paul Burton --- Changes in v2: None arch/mips/include/asm/llsc.h | 4 1 file changed, 4 insertions(+) diff --git a/arc

[PATCH v2 15/36] MIPS: atomic: Deduplicate 32b & 64b read, set, xchg, cmpxchg

2019-10-01 Thread Paul Burton
Remove the remaining duplication between 32b & 64b in asm/atomic.h by making use of an ATOMIC_OPS() macro to generate: - atomic_read()/atomic64_read() - atomic_set()/atomic64_set() - atomic_cmpxchg()/atomic64_cmpxchg() - atomic_xchg()/atomic64_xchg() This is consistent with the way all ot

[PATCH v2 10/36] MIPS: atomic: Handle !kernel_uses_llsc first

2019-10-01 Thread Paul Burton
Handle the !kernel_uses_llsc path first in our ATOMIC_OP(), ATOMIC_OP_RETURN() & ATOMIC_FETCH_OP() macros & return from within the block. This allows us to de-indent the kernel_uses_llsc path by one level which will be useful when making further changes. Signed-off-by: Paul Burton --- Changes in

[PATCH v2 23/36] MIPS: bitops: Avoid redundant zero-comparison for non-LLSC

2019-10-01 Thread Paul Burton
The IRQ-disabling non-LLSC fallbacks for bitops on UP systems already return a zero or one, so there's no need to perform another comparison against zero. Move these comparisons into the LLSC paths to avoid the redundant work. Signed-off-by: Paul Burton --- Changes in v2: None arch/mips/includ

[PATCH v2 32/36] MIPS: barrier: Remove loongson_llsc_mb()

2019-10-01 Thread Paul Burton
The loongson_llsc_mb() macro is no longer used - instead barriers are emitted as part of inline asm using the __SYNC() macro. Remove the now-defunct loongson_llsc_mb() macro. Signed-off-by: Paul Burton --- Changes in v2: None arch/mips/include/asm/barrier.h | 40 ---

[PATCH v2 30/36] MIPS: futex: Emit Loongson3 sync workarounds within asm

2019-10-01 Thread Paul Burton
Generate the sync instructions required to workaround Loongson3 LL/SC errata within inline asm blocks, which feels a little safer than doing it from C where strictly speaking the compiler would be well within its rights to insert a memory access between the separate asm statements we previously had

Re: [PATCH 2/2] x86: math-emu: limit MATH_EMULATION to 486SX compatibles

2019-10-01 Thread Kees Cook
On Tue, Oct 01, 2019 at 04:23:35PM +0200, Arnd Bergmann wrote: > The fpu emulation code is old and fragile in places, try to limit its > use to builds for CPUs that actually use it. As far as I can tell, > this is only true for i486sx compatibles, including the Cyrix 486SLC, > AMD Am486SX and ÉLAN

[PATCH v2 36/36] MIPS: Check Loongson3 LL/SC errata workaround correctness

2019-10-01 Thread Paul Burton
When Loongson3 LL/SC errata workarounds are enabled (ie. CONFIG_CPU_LOONGSON3_WORKAROUNDS=y) run a tool to scan through the compiled kernel & ensure that the workaround is applied correctly. That is, ensure that: - Every LL or LLD instruction is preceded by a sync instruction. - Any branches

[PATCH v2 21/36] MIPS: bitops: Allow immediates in test_and_{set,clear,change}_bit

2019-10-01 Thread Paul Burton
The logical operations or & xor used in the test_and_set_bit_lock(), test_and_clear_bit() & test_and_change_bit() functions currently force the value 1< --- Changes in v2: None arch/mips/include/asm/bitops.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/mi

[PATCH v2 31/36] MIPS: syscall: Emit Loongson3 sync workarounds within asm

2019-10-01 Thread Paul Burton
Generate the sync instructions required to workaround Loongson3 LL/SC errata within inline asm blocks, which feels a little safer than doing it from C where strictly speaking the compiler would be well within its rights to insert a memory access between the separate asm statements we previously had

[PATCH v2 16/36] MIPS: bitops: Handle !kernel_uses_llsc first

2019-10-01 Thread Paul Burton
Reorder conditions in our various bitops functions that check kernel_uses_llsc such that they handle the !kernel_uses_llsc case first. This allows us to avoid the need to duplicate the kernel_uses_llsc check in all the other cases. For functions that don't involve barriers common to the various imp

[PATCH v2 27/36] MIPS: bitops: Use smp_mb__before_atomic in test_* ops

2019-10-01 Thread Paul Burton
Use smp_mb__before_atomic() rather than smp_mb__before_llsc() in test_and_set_bit(), test_and_clear_bit() & test_and_change_bit(). The _atomic() versions make semantic sense in these cases, and will allow a later patch to omit redundant barriers for Loongson3 systems that already include a barrier

[PATCH v2 33/36] MIPS: barrier: Make __smp_mb__before_atomic() a no-op for Loongson3

2019-10-01 Thread Paul Burton
Loongson3 systems with CONFIG_CPU_LOONGSON3_WORKAROUNDS enabled already emit a full completion barrier as part of the inline assembly containing LL/SC loops for atomic operations. As such the barrier emitted by __smp_mb__before_atomic() is redundant, and we can remove it. Signed-off-by: Paul Burto

[PATCH v2 26/36] MIPS: bitops: Emit Loongson3 sync workarounds within asm

2019-10-01 Thread Paul Burton
Generate the sync instructions required to workaround Loongson3 LL/SC errata within inline asm blocks, which feels a little safer than doing it from C where strictly speaking the compiler would be well within its rights to insert a memory access between the separate asm statements we previously had

[PATCH v2 17/36] MIPS: bitops: Only use ins for bit 16 or higher

2019-10-01 Thread Paul Burton
set_bit() can set bits 0-15 using an ori instruction, rather than loading the value -1 into a register & then using an ins instruction. That is, rather than the following: li t0, -1 ll t1, 0(t2) ins t1, t0, 4, 1 sc t1, 0(t2) We can have the simpler: ll t1, 0(t2) ori t1, t1

[PATCH v2 25/36] MIPS: bitops: Use BIT_WORD() & BITS_PER_LONG

2019-10-01 Thread Paul Burton
Rather than using custom SZLONG_LOG & SZLONG_MASK macros to shift & mask a bit index to form word & bit offsets respectively, make use of the standard BIT_WORD() & BITS_PER_LONG macros for the same purpose. volatile is added to the definition of pointers to the long-sized word we'll operate on, in

[PATCH v2 34/36] MIPS: genex: Add Loongson3 LL/SC workaround to ejtag_debug_handler

2019-10-01 Thread Paul Burton
In ejtag_debug_handler we use LL & SC instructions to acquire & release an open-coded spinlock. For Loongson3 systems affected by LL/SC errata this requires that we insert a sync instruction prior to the LL in order to ensure correct behavior of the LL/SC loop. Signed-off-by: Paul Burton --- Cha

[PATCH v2 22/36] MIPS: bitops: Use the BIT() macro

2019-10-01 Thread Paul Burton
Use the BIT() macro in asm/bitops.h rather than open-coding its equivalent. Signed-off-by: Paul Burton --- Changes in v2: None arch/mips/include/asm/bitops.h | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/arch/mips/include/asm/bitops.h b/a

[PATCH v2 24/36] MIPS: bitops: Abstract LL/SC loops

2019-10-01 Thread Paul Burton
Introduce __bit_op() & __test_bit_op() macros which abstract away the implementation of LL/SC loops. This cuts down on a lot of duplicate boilerplate code, and also allows R1_LLSC_WAR to be handled outside of the individual bitop functions. Signed-off-by: Paul Burton --- Changes in v2: None

[PATCH v2 29/36] MIPS: cmpxchg: Omit redundant barriers for Loongson3

2019-10-01 Thread Paul Burton
When building a kernel configured to support Loongson3 LL/SC workarounds (ie. CONFIG_CPU_LOONGSON3_WORKAROUNDS=y) the inline assembly in __xchg_asm() & __cmpxchg_asm() already emits completion barriers, and as such we don't need to emit extra barriers from the xchg() or cmpxchg() macros. Add compil

[PATCH v2 28/36] MIPS: cmpxchg: Emit Loongson3 sync workarounds within asm

2019-10-01 Thread Paul Burton
Generate the sync instructions required to workaround Loongson3 LL/SC errata within inline asm blocks, which feels a little safer than doing it from C where strictly speaking the compiler would be well within its rights to insert a memory access between the separate asm statements we previously had

[PATCH v2 20/36] MIPS: bitops: Implement test_and_set_bit() in terms of _lock variant

2019-10-01 Thread Paul Burton
The only difference between test_and_set_bit() & test_and_set_bit_lock() is memory ordering barrier semantics - the former provides a full barrier whilst the latter only provides acquire semantics. We can therefore implement test_and_set_bit() in terms of test_and_set_bit_lock() with the addition

[PATCH v2 35/36] MIPS: genex: Don't reload address unnecessarily

2019-10-01 Thread Paul Burton
In ejtag_debug_handler() we must reload the address of ejtag_debug_buffer_spinlock if an sc fails, since the address in k0 will have been clobbered by the result of the sc instruction. In the case where we simply load a non-zero value (ie. there's contention for the lock) the address will not be cl

[PATCH v2 12/36] MIPS: atomic: Emit Loongson3 sync workarounds within asm

2019-10-01 Thread Paul Burton
Generate the sync instructions required to workaround Loongson3 LL/SC errata within inline asm blocks, which feels a little safer than doing it from C where strictly speaking the compiler would be well within its rights to insert a memory access between the separate asm statements we previously had

[PATCH v2 13/36] MIPS: atomic: Use _atomic barriers in atomic_sub_if_positive()

2019-10-01 Thread Paul Burton
Use smp_mb__before_atomic() & smp_mb__after_atomic() in atomic_sub_if_positive() rather than the equivalent smp_mb__before_llsc() & smp_llsc_mb(). The former are more standard & this preps us for avoiding redundant duplicate barriers on Loongson3 in a later patch. Signed-off-by: Paul Burton ---

[PATCH v2 19/36] MIPS: bitops: ins start position is always an immediate

2019-10-01 Thread Paul Burton
The start position for an ins instruction is always encoded as an immediate, so allowing registers to be used by the inline asm makes no sense. It should never happen anyway since a bit index should always be small enough to be treated as an immediate, but remove the nonsensical "r" for sanity. Si

[PATCH v2 08/36] MIPS: barrier: Clean up sync_ginv()

2019-10-01 Thread Paul Burton
Use the new __SYNC() infrastructure to implement sync_ginv(), for consistency with much of the rest of the asm/barrier.h. Signed-off-by: Paul Burton --- Changes in v2: None arch/mips/include/asm/barrier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm

[PATCH v2 14/36] MIPS: atomic: Unify 32b & 64b sub_if_positive

2019-10-01 Thread Paul Burton
Unify the definitions of atomic_sub_if_positive() & atomic64_sub_if_positive() using a macro like we do for most other atomic functions. This allows us to share the implementation ensuring consistency between the two. Notably this provides the appropriate loongson3_war barriers in the atomic64_sub_

[PATCH v2 04/36] MIPS: barrier: Clean up rmb() & wmb() definitions

2019-10-01 Thread Paul Burton
Simplify our definitions of rmb() & wmb() using the new __SYNC() infrastructure. The fast_rmb() & fast_wmb() macros are removed, since they only provided a level of indirection that made the code less readable & weren't directly used anywhere in the kernel tree. The Octeon #ifdef'ery is removed,

[PATCH v2 11/36] MIPS: atomic: Use one macro to generate 32b & 64b functions

2019-10-01 Thread Paul Burton
Cut down on duplication by generalizing the ATOMIC_OP(), ATOMIC_OP_RETURN() & ATOMIC_FETCH_OP() macros to work for both 32b & 64b atomics, and removing the ATOMIC64_ variants. This ensures consistency between our atomic_* & atomic64_* functions. Signed-off-by: Paul Burton --- Changes in v2: None

[PATCH v2 01/36] MIPS: Unify sc beqz definition

2019-10-01 Thread Paul Burton
We currently duplicate the definition of __scbeqz in asm/atomic.h & asm/cmpxchg.h. Move it to asm/llsc.h & rename it to __SC_BEQZ to fit better with the existing __SC macro provided there. We include a tab in the string in order to avoid the need for users to indent code any further to include whi

[PATCH v2 00/36] MIPS: barriers & atomics cleanups

2019-10-01 Thread Paul Burton
This series consists of a bunch of cleanups to the way we handle memory barriers (though no changes to the sync instructions we use to implement them) & atomic memory accesses. One major goal was to ensure the Loongson3 LL/SC errata workarounds are applied in a safe manner from within inline-asm &

[PATCH v2 06/36] MIPS: barrier: Remove fast_mb() Octeon #ifdef'ery

2019-10-01 Thread Paul Burton
The definition of fast_mb() is the same in both the Octeon & non-Octeon cases, so remove the duplication & define it only once. Signed-off-by: Paul Burton --- Changes in v2: None arch/mips/include/asm/barrier.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/i

Re: [PATCH] ARM: drivers/amba: release the resource to allow for deferred probe

2019-10-01 Thread Russell King - ARM Linux admin
On Tue, Oct 01, 2019 at 04:40:26PM -0500, Dinh Nguyen wrote: > With commit "79bdcb202a35 ARM: 8906/1: drivers/amba: add reset control to > amba bus probe", the amba bus driver needs to be deferred probe because the > reset driver is probed later than the amba bus. However with a deferred > probe, t

Re: [PATCH] PCI:cadence:Driver refactored to use as a core library.

2019-10-01 Thread Bjorn Helgaas
On Tue, Oct 01, 2019 at 11:07:28AM +0100, Andrew Murray wrote: > Hi Tom, > > Thanks for the patch. > > I'd suggest that you rename the subject of this series to "PCI: cadence: ..." > to be consistent with the existing commit history, e.g. git log > --oneline drivers/pci/controller/pcie-cadence*

[PATCH] ARM: drivers/amba: release the resource to allow for deferred probe

2019-10-01 Thread Dinh Nguyen
With commit "79bdcb202a35 ARM: 8906/1: drivers/amba: add reset control to amba bus probe", the amba bus driver needs to be deferred probe because the reset driver is probed later than the amba bus. However with a deferred probe, the call to request_resource() in the driver returns -EBUSY. The reaso

Re: [PATCH 3/3] PCI: pciehp: Add dmi table for in-band presence disabled

2019-10-01 Thread Alex G.
On 10/1/19 4:14 PM, Stuart Hayes wrote: Some systems have in-band presence detection disabled for hot-plug PCI slots, but do not report this in the slot capabilities 2 (SLTCAP2) register. On these systems, presence detect can become active well after the link is reported to be active, which c

My name is Mrs Munasalem Mustapha from France,

2019-10-01 Thread munasale mmustapha
My name is Mrs Munasalem Mustapha from France, I know that this message might come to you as surprise because we don't know each other nor have we ever met before but accept it with an open and positive mind. I have a Very important request that made me to contact you; I was diagnosed with ovarian

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-10-01 Thread Nick Desaulniers
On Tue, Oct 1, 2019 at 2:26 PM Russell King - ARM Linux admin wrote: > > On Tue, Oct 01, 2019 at 09:59:38PM +0100, Russell King - ARM Linux admin > wrote: > > On Tue, Oct 01, 2019 at 01:21:44PM -0700, Nick Desaulniers wrote: > > > On Tue, Oct 1, 2019 at 11:14 AM Russell King - ARM Linux admin > >

Re: [PATCH] PM / devfreq: exynos-ppmu: remove useless assignment

2019-10-01 Thread Chanwoo Choi
Hi, On 19. 10. 1. 오후 9:46, Marek Szyprowski wrote: > The error code is propagated to the caller, so there is no need to keep > it additionally in the unused variable. > > Signed-off-by: Marek Szyprowski > --- > drivers/devfreq/event/exynos-ppmu.c | 1 - > 1 file changed, 1 deletion(-) > > diff

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-10-01 Thread Russell King - ARM Linux admin
On Tue, Oct 01, 2019 at 09:59:38PM +0100, Russell King - ARM Linux admin wrote: > On Tue, Oct 01, 2019 at 01:21:44PM -0700, Nick Desaulniers wrote: > > On Tue, Oct 1, 2019 at 11:14 AM Russell King - ARM Linux admin > > wrote: > > > > > > On Tue, Oct 01, 2019 at 11:00:11AM -0700, Nick Desaulniers w

Re: [PATCH] clk: Don't cache errors from clk_ops::get_phase()

2019-10-01 Thread Doug Anderson
Hi, On Tue, Oct 1, 2019 at 10:44 AM Stephen Boyd wrote: > > We don't check for errors from clk_ops::get_phase() before storing away > the result into the clk_core::phase member. This can lead to some fairly > confusing debugfs information if these ops do return an error. Let's > skip the store wh

Re: Kernel Concurrency Sanitizer (KCSAN)

2019-10-01 Thread Joel Fernandes
On Fri, Sep 20, 2019 at 04:18:57PM +0200, Marco Elver wrote: > Hi all, > > We would like to share a new data-race detector for the Linux kernel: > Kernel Concurrency Sanitizer (KCSAN) -- > https://github.com/google/ktsan/wiki/KCSAN (Details: > https://github.com/google/ktsan/blob/kcsan/Documentat

Re: [PATCH 1/2] can: D_CAN: perform a sofware reset on open

2019-10-01 Thread Jeroen Hofstee
Hello Marc, On 10/1/19 4:32 PM, Marc Kleine-Budde wrote: > On 9/26/19 10:50 AM, Jeroen Hofstee wrote: >> When the C_CAN interface is closed it is put in power down mode, but >> does not reset the error counters / state. So reset the D_CAN on open, >> so the reported state and the actual state matc

Re: [PATCH 1/5] leds: Kconfig: Be consistent with the usage of "LED"

2019-10-01 Thread Jacek Anaszewski
Dan, On 10/1/19 8:04 PM, Dan Murphy wrote: > Update the Kconfig to be consistent in the case of using > "LED" in the Kconfig. LED is an acronym and should be > capitalized. > > Signed-off-by: Dan Murphy > --- > drivers/leds/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >

[PATCH 3/3] PCI: pciehp: Add dmi table for in-band presence disabled

2019-10-01 Thread Stuart Hayes
Some systems have in-band presence detection disabled for hot-plug PCI slots, but do not report this in the slot capabilities 2 (SLTCAP2) register. On these systems, presence detect can become active well after the link is reported to be active, which can cause the slots to be disabled after a dev

[PATCH 0/3] PCI: pciehp: Do not turn off slot if presence comes up after link

2019-10-01 Thread Stuart Hayes
In older PCIe specs, PDS (presence detect) would come up when the "in-band" presence detect pin connected, and would be up before DLLLA (link active). In PCIe 4.0 (as an ECN) and in PCIe 5.0, there is a new bit to show if in-band presence detection can be disabled for the slot, and another bit tha

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-10-01 Thread Nick Desaulniers
On Tue, Oct 1, 2019 at 2:06 PM Miguel Ojeda wrote: > > On Tue, Oct 1, 2019 at 10:53 PM Arnd Bergmann wrote: > > > > 1. is clearly the most common case, but there is also > > > > 4. Some compiler version (possibly long gone, possibly still current) > > makes bad inlining decisions that result in h

[PATCH 2/3] PCI: pciehp: Wait for PDS if in-band presence is disabled

2019-10-01 Thread Stuart Hayes
When inband presence is disabled, PDS may come up at any time, or not at all. PDS being low may indicate that the card is still mating, and we could expect contact bounce to bring down the link as well. It is reasonable to assume that most cards will mate in a hotplug slot in about a second. Thus,

[PATCH 1/3] PCI: pciehp: Add support for disabling in-band presence

2019-10-01 Thread Stuart Hayes
The presence detect state (PDS) is normally a logical or of in-band and out-of-band presence. As of PCIe 4.0, there is the option to disable in-band presence so that the PDS bit always reflects the state of the out-of-band presence. The recommendation of the PCIe spec is to disable in-band presenc

Re: [PATCH v6 00/19] More improvements for Tegra30 devfreq driver

2019-10-01 Thread Dmitry Osipenko
12.08.2019 00:22, Dmitry Osipenko пишет: > Hello, > > This series addresses some additional review comments that were made by > Thierry Reding to [1], makes several important changes to the driver, > fixing excessive interrupts activity, and adds new features. In the end > I'm proposing myself as

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