[GIT PULL] MMC fixes for v5.11-rc5

2021-01-22 Thread Ulf Hansson
Hi Linus, Here's a PR with a couple of MMC fixes intended for v5.11-rc5. Details about the highlights are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 7c53f6b671f4aba70ff15e1b05148b10d58c2837: Linux 5.11-rc3 (2021-01-10 1

Re: [RFC PATCH] kvm: arm64: Try stage2 block mapping for host device MMIO

2021-01-22 Thread Marc Zyngier
On 2021-01-22 08:36, Keqian Zhu wrote: The MMIO region of a device maybe huge (GB level), try to use block mapping in stage2 to speedup both map and unmap. Especially for unmap, it performs TLBI right after each invalidation of PTE. If all mapping is of PAGE_SIZE, it takes much time to handle GB

[PATCH v3] f2fs: compress: support compress level

2021-01-22 Thread Chao Yu
Expand 'compress_algorithm' mount option to accept parameter as format of :, by this way, it gives a way to allow user to do more specified config on lz4 and zstd compression level, then f2fs compression can provide higher compress ratio. In order to set compress level for lz4 algorithm, it needs

Re: Fail to boot qemu xlnx-zcu102 due to lot of drivers not probing

2021-01-22 Thread Michal Simek
Hi, On 1/22/21 10:24 AM, Corentin Labbe wrote: > Hello > > With at least qemu 5.1.0 (and later), the xlnx-zcu102 machine boot lead to a > panic due to missing console. > qemu-system-aarch64 -kernel Image -nographic -machine xlnx-zcu102 -device > ide-hd,drive=lavatest -serial mon:stdio -serial n

Re: [PATCH] mmc: Assign boolean values to a bool variable

2021-01-22 Thread Ulf Hansson
On Wed, 20 Jan 2021 at 08:39, Jiapeng Zhong wrote: > > Fix the following coccicheck warnings: > > ./drivers/mmc/host/atmel-mci.c:2436:2-34: WARNING: Assignment > of 0/1 to bool variable. > > ./drivers/mmc/host/atmel-mci.c:2425:2-20: WARNING: Assignment > of 0/1 to bool variable. > > Reported-by: A

RE: [PATCH v4] Fixes: misc: rtsx: init value of aspm_enabled

2021-01-22 Thread 吳昊澄 Ricky
> -Original Message- > From: Greg KH > Sent: Friday, January 22, 2021 4:28 PM > To: 吳昊澄 Ricky > Cc: a...@arndb.de; bhelg...@google.com; vaibhavgupt...@gmail.com; > linux-kernel@vger.kernel.org; sta...@vger.kernel.org > Subject: Re: [PATCH v4] Fixes: misc: rtsx: init value of aspm_enabled

Re: [PATCH v3 00/17] KVM: x86/pmu: Add support to enable Guest PEBS via DS

2021-01-22 Thread Peter Zijlstra
On Fri, Jan 15, 2021 at 10:51:38AM -0800, Sean Christopherson wrote: > On Fri, Jan 15, 2021, Andi Kleen wrote: > > > I'm asking about ucode/hardare. Is the "guest pebs buffer write -> PEBS > > > PMI" > > > guaranteed to be atomic? > > > > Of course not. > > So there's still a window where the g

RE: [PATCH v5 3/5] ipmi: kcs: aspeed: Adapt to new LPC DTS layout

2021-01-22 Thread ChiaWei Wang
Hi Corey, Could you help to review this patch to kcs_bmc_aspeed.c? It mainly fixes the register layout/offsets of Aspeed LPC controller. Thanks, Chiawei > -Original Message- > From: Andrew Jeffery > Sent: Wednesday, January 20, 2021 1:03 PM > Subject: Re: [PATCH v5 3/5] ipmi: kcs: aspee

Re: [PATCH v4] gpiolib: Bind gpio_device to a driver to enable fw_devlink=on by default

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 12:40 AM Saravana Kannan wrote: > > There are multiple instances of GPIO device tree nodes of the form: > > foo { > compatible = "acme,foo"; > ... > > gpio0: gpio0@ { > compatible = "acme,bar"; > ... >

Re: rcu-torture: Internal error: Oops: 96000006

2021-01-22 Thread Naresh Kamboju
On Fri, 22 Jan 2021 at 03:13, Paul E. McKenney wrote: > > On Thu, Jan 21, 2021 at 09:31:10PM +, Will Deacon wrote: > > On Thu, Jan 21, 2021 at 10:55:21AM -0800, Paul E. McKenney wrote: > > > On Thu, Jan 21, 2021 at 10:37:21PM +0530, Naresh Kamboju wrote: > > > > While running rcu-torture test

Re: [PATCH v2 1/2] pinctrl: Add driver for Awinic AW9523/B I2C GPIO Expander

2021-01-22 Thread Linus Walleij
On Mon, Jan 18, 2021 at 3:38 PM AngeloGioacchino Del Regno wrote: > By the way, this is really LEVEL irq, not EDGE... To avoid any > misunderstanding, I think that the best way to show you what I > am seeing is to just copy-paste the relevant piece from the > datasheet for this hardware (it's not

Re: [PATCH] drm/panfrost: Add governor data with pre-defined thresholds

2021-01-22 Thread Lukasz Luba
On 1/22/21 8:21 AM, Steven Price wrote: On 21/01/2021 17:04, Lukasz Luba wrote: The simple_ondemand devfreq governor uses two thresholds to decide about the frequency change: upthreshold, downdifferential. These two tunable change the behavior of the governor decision, e.g. how fast to increa

Re: bisected regression in v5.11-rc1 snd-usb-audio

2021-01-22 Thread Jamie Heilman
Takashi Iwai wrote: > You seem hitting a firmware bug, and it doesn't look like the only > case. Interestingly, the backport of 5.11 USB-audio stuff on 5.3 > kernel on openSUSE Leap 15.2 caused a similar bug on Steinberg device, > while it worked with 5.11-rc. So I thought this specific with the

[PATCH v2 02/14] NOT TO BE MERGED - Squash of patches 2-7 of v6 series "powerpc: interrupt wrappers"

2021-01-22 Thread Christophe Leroy
powerpc/32s: move DABR match out of handle_page_fault handle_page_fault() has some code dedicated to book3s/32 to call do_break() when the DSI is a DABR match. On other platforms, do_break() is handled separately. Do the same for book3s/32, do it earlier in the process of DSI. This change also

[PATCH v2 00/14] powerpc/32: Reduce head complexity and re-activate MMU earlier

2021-01-22 Thread Christophe Leroy
This series is a first step on the way to C syscall/exception entry/exit. This series aims at reducing exception/syscall prologs complexity. It also brings earlier MMU re-activation. This series is based on Nick's v6 series "powerpc: interrupt wrappers". It takes benefit of the removal of traps a

[PATCH v2 01/14] powerpc/32s: Only build hash code when CONFIG_PPC_BOOK3S_604 is selected

2021-01-22 Thread Christophe Leroy
It is now possible to only build book3s/32 kernel for CPUs without hash table. Opt out hash related code when CONFIG_PPC_BOOK3S_604 is not selected. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_book3s_32.S | 12 arch/powerpc/mm/book3s32/Makefile| 4 +++- 2 file

Re: 5.11-rc4+git: Shortest NUMA path spans too many nodes

2021-01-22 Thread Dietmar Eggemann
On 21/01/2021 22:17, Song Bao Hua (Barry Song) wrote: > > >> -Original Message- >> From: Dietmar Eggemann [mailto:dietmar.eggem...@arm.com] >> Sent: Friday, January 22, 2021 7:54 AM >> To: Valentin Schneider ; Meelis Roos >> ; LKML >> Cc: Peter Zijlstra ; Vincent Guittot >> ; Song Bao Hu

Re: [PATCH] drm/panfrost: Add governor data with pre-defined thresholds

2021-01-22 Thread Lukasz Luba
On 1/21/21 5:15 PM, Daniel Lezcano wrote: On 21/01/2021 18:04, Lukasz Luba wrote: The simple_ondemand devfreq governor uses two thresholds to decide about the frequency change: upthreshold, downdifferential. These two tunable change the behavior of the governor decision, e.g. how fast to incr

[PATCH v2 03/14] powerpc/40x: Don't use SPRN_SPRG_SCRATCH0/1 in TLB miss handlers

2021-01-22 Thread Christophe Leroy
SPRN_SPRG_SCRATCH5 is used to save SPRN_PID. SPRN_SPRG_SCRATCH6 is already available. SPRN_PID is only 8 bits. We have r12 that contains CR. We only need to preserve CR0, so we have space available in r12 to save PID. Keep PID in r12 and free up SPRN_SPRG_SCRATCH5. Then In TLB miss handlers, ins

RE: [PATCH 2/3] dt-bindings: fpga: Add binding doc for versal fpga manager

2021-01-22 Thread Nava kishore Manne
Hi Michal, Thanks for the review. Please find my response inline. > -Original Message- > From: Michal Simek > Sent: Monday, January 18, 2021 2:22 PM > To: Nava kishore Manne ; m...@kernel.org; > t...@redhat.com; robh...@kernel.org; Michal Simek ; > linux-f...@vger.kernel.org; dev

Re: [PATCH] MIPS: mm: abort uaccess retries upon fatal signal

2021-01-22 Thread Mark Rutland
On Thu, Jan 21, 2021 at 05:04:16PM +0100, Thomas Bogendoerfer wrote: > When there's a fatal signal pending, MIPS's do_page_fault() > implementation returns. The intent is that we'll return to the > faulting userspace instruction, delivering the signal on the way. > > However, if we take a fatal si

[PATCH v7] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-22 Thread Bill Wendling
From: Sami Tolvanen Enable the use of clang's Profile-Guided Optimization[1]. To generate a profile, the kernel is instrumented with PGO counters, a representative workload is run, and the raw profile data is collected from /sys/kernel/debug/pgo/profraw. The raw profile data must be processed by

Re: [PATCH] arch/arm/mm/mmu.c: Remove duplicate header

2021-01-22 Thread Linus Walleij
On Tue, Jan 19, 2021 at 2:34 PM Hailong liu wrote: > From: Hailong Liu > > Remove asm/fixmap.h which is included more than once. > > Signed-off-by: Hailong Liu Reviewed-by: Linus Walleij Please put this into Russell's patch tracker so he can merge it. Yours, Linus Walleij

[PATCH v2 10/14] powerpc/32: Use LOAD_REG_IMMEDIATE() to load MSR values

2021-01-22 Thread Christophe Leroy
40x MSR value doesn't fit on 15 bits. LOAD_REG_IMMEDIATE() in places that will be used also with 40x in the next patch. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/head_32.h b/arch/

[PATCH v2 12/14] powerpc/32: Enable instruction translation at the same time as data translation

2021-01-22 Thread Christophe Leroy
On 40x and 8xx, kernel text is pinned. On book3s/32, kernel text is mapped by BATs. Enable instruction translation at the same time as data translation, it makes things simpler. In syscall handler, MSR_RI can also be set at the same time because srr0/srr1 are already saved and r1 is set properly.

[PATCH v2 13/14] powerpc/32: Remove msr argument in EXC_XFER_TEMPLATE()

2021-01-22 Thread Christophe Leroy
msr argument is not used anymore, remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.h | 8 +++- arch/powerpc/kernel/head_40x.S | 5 + 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/kernel/head_32.h b/arch/powerpc/kernel/head_32.h ind

[PATCH v2 11/14] powerpc/32: Always enable data translation in exception prolog

2021-01-22 Thread Christophe Leroy
If the code can use a stack in vm area, it can also use a stack in linear space. Simplify code by removing old non VMAP stack code on PPC32. That means the data translation is now re-enabled early in exception prolog in all cases, not only when using VMAP stacks. Signed-off-by: Christophe Leroy

Re: [PATCH v2 2/2] counter: add GPIO based pulse counters

2021-01-22 Thread Ahmad Fatoum
Hello Oleksij, On 22.01.21 10:33, Oleksij Rempel wrote: > Add simple GPIO base pulse counter. This device is used to measure > rotation speed of some agricultural devices, so no high frequency on the > counter pin is expected. > > The maximal measurement frequency depends on the CPU and system lo

[PATCH v2 14/14] powerpc/32: Use fast instructions to change MSR EE/RI when available

2021-01-22 Thread Christophe Leroy
Booke and 40x have wrtee and wrteei to quickly change MSR EE. 8xx has registers SPRN_NRI, SPRN_EID and SPRN_EIE for changing MSR EE and RI. Use them in syscall and exception handler when possible. On an 8xx, it reduces the null_syscall test by 6 cycles (Two instances are changed in this patch, m

[PATCH v2 08/14] powerpc/40x: Prepare normal exception handler for enabling MMU early

2021-01-22 Thread Christophe Leroy
Ensure normal exception handler are able to manage stuff with MMU enabled. For that we use CONFIG_VMAP_STACK related code allthough there is no intention to really activate CONFIG_VMAP_STACK on powerpc 40x for the moment. 40x uses SPRN_DEAR instead of SPRN_DAR and SPRN_ESR instead of SPRN_DSISR. T

[PATCH v2 05/14] powerpc/40x: Save SRR0/SRR1 and r10/r11 earlier in critical exception

2021-01-22 Thread Christophe Leroy
In order to be able to switch MMU on in exception prolog, save SRR0 and SRR1 earlier. Also save r10 and r11 into stack earlier to better match with the normal exception prolog. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 9 - arch/powerpc/kernel/head_40x.S | 8 +

[PATCH v2 09/14] powerpc/32: Preserve cr1 in exception prolog stack check

2021-01-22 Thread Christophe Leroy
THREAD_ALIGN_SHIFT = THREAD_SHIFT + 1 = PAGE_SHIFT + 1 Maximum PAGE_SHIFT is 18 for 256k pages so THREAD_ALIGN_SHIFT is 19 at the maximum. No need to clobber cr1, it can be preserved when moving r1 into CR when we check stack overflow. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/hea

[PATCH v2 07/14] powerpc/40x: Prepare for enabling MMU in critical exception prolog

2021-01-22 Thread Christophe Leroy
In order the enable MMU early in exception prolog, implement CONFIG_VMAP_STACK principles in critical exception prolog. There is no intention to use CONFIG_VMAP_STACK on 40x, but related code will be used to enable MMU early in exception in a later patch. Also address (critirq_ctx-PAGE_OFFSET) di

[PATCH v2 06/14] powerpc/40x: Reorder a few instructions in critical exception prolog

2021-01-22 Thread Christophe Leroy
In order to ease preparation for CONFIG_VMAP_STACK, reorder a few instruction, especially save r1 into stack frame earlier. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_40x.S | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/head_40x.

Re: [PATCH v2] PCI: Re-enable downstream port LTR if it was previously enabled

2021-01-22 Thread Mika Westerberg
Hi, On Fri, Jan 22, 2021 at 03:03:11PM +0800, Mingchuang Qiao wrote: > On Thu, 2021-01-21 at 16:31 -0600, Bjorn Helgaas wrote: > > [+cc Alex and Mingchuang et al from > > https://lore.kernel.org/r/20210112072739.31624-1-mingchuang.q...@mediatek.com] > > > > On Tue, Jan 19, 2021 at 04:14:10PM +030

Re: [PATCH v4] Fixes: misc: rtsx: init value of aspm_enabled

2021-01-22 Thread Greg KH
On Fri, Jan 22, 2021 at 09:55:44AM +, 吳昊澄 Ricky wrote: > > -Original Message- > > From: Greg KH > > Sent: Friday, January 22, 2021 4:28 PM > > To: 吳昊澄 Ricky > > Cc: a...@arndb.de; bhelg...@google.com; vaibhavgupt...@gmail.com; > > linux-kernel@vger.kernel.org; sta...@vger.kernel.org >

[PATCH v2 04/14] powerpc/40x: Change CRITICAL_EXCEPTION_PROLOG macro to a gas macro

2021-01-22 Thread Christophe Leroy
Change CRITICAL_EXCEPTION_PROLOG macro to a gas macro to remove the ugly ; and \ on each line. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_40x.S | 71 +- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/arch/powerpc/kernel/head_40x.

Re: [PATCH net-next 2/2] drivers: net: dsa: mt7530: MT7530 optional GPIO support

2021-01-22 Thread Linus Walleij
On Tue, Jan 19, 2021 at 4:20 AM DENG Qingfang wrote: > On Mon, Jan 18, 2021 at 10:55 PM Linus Walleij > wrote: > > > > So for offset 0..14 this becomes bits > > 0, 1, 2, 4, 5, 6, 8, 9, 10, 12 ... 18 > > > > What is the logic in this and is it what you intend? > > Yes. Bit 0..2 are phy 0's LED 0

Re: rcu-torture: Internal error: Oops: 96000006

2021-01-22 Thread Mark Rutland
On Thu, Jan 21, 2021 at 01:43:14PM -0800, Paul E. McKenney wrote: > On Thu, Jan 21, 2021 at 09:31:10PM +, Will Deacon wrote: > > On Thu, Jan 21, 2021 at 10:55:21AM -0800, Paul E. McKenney wrote: > > > On Thu, Jan 21, 2021 at 10:37:21PM +0530, Naresh Kamboju wrote: > > > > While running rcu-tort

Re: [PATCH v4] drm/virtio: Track total GPU memory for virtio driver

2021-01-22 Thread Daniel Vetter
On Thu, Jan 21, 2021 at 11:58:22PM -0800, Yiwei Zhang wrote: > On Thu, Jan 21, 2021 at 9:40 PM Yiwei Zhang wrote: > > > > On the success of virtio_gpu_object_create, add size of newly allocated > > bo to the tracked total_mem. In drm_gem_object_funcs.free, after the gem > > bo loses its last refco

net/wireless/reg.c:144 suspicious rcu_dereference_check() usage!

2021-01-22 Thread Borislav Petkov
Hi, this triggers is on 5.11-rc3 + tip/x86/urgent (shouldn't matter tho), 32-bit kernel: [ 10.019444] rtl8192ce: Chip Version ID: B_CHIP_88C [ 10.042810] rtl8192ce: Using firmware rtlwifi/rtl8192cfw.bin [ 10.044258] = [ 10.044337] WARNING: suspicious RCU usage

Re: [PATCH] drm/panfrost: Add governor data with pre-defined thresholds

2021-01-22 Thread Steven Price
On 22/01/2021 10:11, Lukasz Luba wrote: On 1/21/21 5:15 PM, Daniel Lezcano wrote: On 21/01/2021 18:04, Lukasz Luba wrote: The simple_ondemand devfreq governor uses two thresholds to decide about the frequency change: upthreshold, downdifferential. These two tunable change the behavior of the

Re: [PATCH v2 3/5] arm64: dts: renesas: r8a779a0: Add Ethernet-AVB support

2021-01-22 Thread Geert Uytterhoeven
On Thu, Jan 21, 2021 at 11:06 AM Wolfram Sang wrote: > From: Tho Vu > > Define the generic parts of Ethernet-AVB device nodes. Only AVB0 was > tested because it was the only port with a PHY on current hardware. > > Signed-off-by: Tho Vu > [wsa: double checked, rebased, added "internal-delay" pro

Re: Re: [PATCH v2 0/2] Make it possible to reserve memory on 64bit platform

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 03:36:19PM +0800, zhaowei1...@thundersoft.com wrote: > On 18.01.21 04:51, zhaowei1...@thundersoft.com wrote: > > > On Sat, Jan 16, 2021 at 2:43 AM Wesley Zhao > > > wrote: > > Dan's point is that you should look into using "memmap=" instead of > > "reserve=". > Oh~

[PATCH v2] kdb: Make memory allocations more robust

2021-01-22 Thread Sumit Garg
Currently kdb uses in_interrupt() to determine whether it's library code has been called from the kgdb trap handler or from a saner calling context such as driver init. This approach is broken because in_interrupt() alone isn't able to determine kgdb trap handler entry via normal task context such

Re: [PATCH] kdb: Make memory allocations more robust

2021-01-22 Thread Sumit Garg
On Fri, 22 Jan 2021 at 15:18, Daniel Thompson wrote: > > On Fri, Jan 22, 2021 at 03:08:31PM +0530, Sumit Garg wrote: > > Currently kdb uses in_interrupt() to determine whether it's library > > code has been called from the kgdb trap handler or from a saner calling > > context such as driver init.

Re: [PATCH v2 2/5] clk: renesas: r8a779a0: add clocks for RAVB

2021-01-22 Thread Geert Uytterhoeven
On Thu, Jan 21, 2021 at 11:06 AM Wolfram Sang wrote: > Signed-off-by: Wolfram Sang > --- > > Change since v1: > * use S3D2 as parent clock Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-clk-for-v5.12. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- Ther

[RFC PATCH v4 2/2] KVM: arm64: Filter out the case of only changing permissions from stage-2 map path

2021-01-22 Thread Yanan Wang
(1) During running time of a a VM with numbers of vCPUs, if some vCPUs access the same GPA almost at the same time and the stage-2 mapping of the GPA has not been built yet, as a result they will all cause translation faults. The first vCPU builds the mapping, and the followed ones end up updating

[RFC PATCH v4 0/2] Some optimization for stage-2 translation

2021-01-22 Thread Yanan Wang
Hi, Will, Marc, Is there any further comment on the v3 series I post previously? If they are not fine to you, then I think maybe we should just turn back to the original solution in v1, where I suggestted to filter out the case of only updating access permissions in the map handler and handle it ri

Re: [PATCH] kdb: Make memory allocations more robust

2021-01-22 Thread Daniel Thompson
On Fri, Jan 22, 2021 at 03:08:31PM +0530, Sumit Garg wrote: > Currently kdb uses in_interrupt() to determine whether it's library > code has been called from the kgdb trap handler or from a saner calling > context such as driver init. This approach is broken because > in_interrupt() alone isn't abl

[RFC PATCH v4 1/2] KVM: arm64: Adjust partial code of hyp stage-1 map and guest stage-2 map

2021-01-22 Thread Yanan Wang
Procedures of hyp stage-1 map and guest stage-2 map are quite different, but they are tied closely by function kvm_set_valid_leaf_pte(). So adjust the relative code for ease of code maintenance in the future. Signed-off-by: Yanan Wang --- arch/arm64/kvm/hyp/pgtable.c | 54 ++-

Re: [PATCH v5 0/7] cpufreq-qcom-hw: Implement full OSM programming

2021-01-22 Thread Viresh Kumar
On 21-01-21, 20:52, AngeloGioacchino Del Regno wrote: > ** > ** NOTE: To "view the full picture", please look at the following > ** patch series: > ** https://patchwork.kernel.org/project/linux-arm-msm/list/?series=413355 > ** This is a subset of that series. > ** > > Chan

[PATCH v2 1/2] dt-bindings: counter: add gpio-pulse-counter binding

2021-01-22 Thread Oleksij Rempel
Add binding for GPIO based pulse counter node Signed-off-by: Oleksij Rempel --- .../bindings/counter/gpio-pulse-counter.yaml | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/counter/gpio-pulse-counter.yaml diff --git a/Documentat

[PATCH v2 2/2] counter: add GPIO based pulse counters

2021-01-22 Thread Oleksij Rempel
Add simple GPIO base pulse counter. This device is used to measure rotation speed of some agricultural devices, so no high frequency on the counter pin is expected. The maximal measurement frequency depends on the CPU and system load. On the idle iMX6S I was able to measure up to 20kHz without cou

Re: [PATCH] diffconfig: use python3 instead of python in Shebang line

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 12:07 AM Masahiro Yamada wrote: > On Fri, Jan 22, 2021 at 5:35 AM Andy Shevchenko > wrote: > > On Thu, Jan 21, 2021 at 10:31 PM Andy Shevchenko > > wrote: ... > > For the record, you seems haven't noticed: > > https://lkml.org/lkml/2020/12/9/446 > > > Ohh, I missed it.

[PATCH] bridge: Use PTR_ERR_OR_ZERO instead if(IS_ERR(...)) + PTR_ERR

2021-01-22 Thread Jiapeng Zhong
coccicheck suggested using PTR_ERR_OR_ZERO() and looking at the code. Fix the following coccicheck warnings: ./net/bridge/br_multicast.c:1295:7-13: WARNING: PTR_ERR_OR_ZERO can be used. Reported-by: Abaci Signed-off-by: Jiapeng Zhong --- net/bridge/br_multicast.c | 2 +- 1 file changed, 1 ins

[PATCH v2 0/2] add support for GPIO based counter

2021-01-22 Thread Oleksij Rempel
changes v2: - add commas - avoid possible unhandled interrupts in the enable path - do not use of_ specific gpio functions Add support for GPIO based pulse counter. For now it can only count pulses. With counter char device support, we will be able to attach timestamps and measure actual pulse fre

Re: [PATCH v3 0/5] Scan for an idle sibling in a single pass

2021-01-22 Thread Vincent Guittot
Hi Mel, On Tue, 19 Jan 2021 at 13:02, Mel Gorman wrote: > > On Tue, Jan 19, 2021 at 12:33:04PM +0100, Vincent Guittot wrote: > > On Tue, 19 Jan 2021 at 12:22, Mel Gorman > > wrote: > > > > > > Changelog since v2 > > > o Remove unnecessary parameters > > > o Update nr during scan only when scann

Re: [PATCH v2 4/5] arm64: dts: renesas: falcon: Add Ethernet-AVB0 support

2021-01-22 Thread Geert Uytterhoeven
On Thu, Jan 21, 2021 at 11:06 AM Wolfram Sang wrote: > Signed-off-by: Wolfram Sang > --- > Change since v1: > > * removed avb1-5 which couldn't be tested > * added alias for avb0 so firmware can add MAC address > * added custom tx-internal-delay-ps > * dropped '_tx' suffix from 'pins_mii' config

Re: [Linux-stm32] [PATCH] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-22 Thread Fabrice Gasnier
On 1/21/21 7:02 PM, Ahmad Fatoum wrote: > For non-DMA usage, we have an easy way to associate a timestamp with a > sample: iio_pollfunc_store_time stores a timestamp in the primary > trigger IRQ handler and stm32_adc_trigger_handler runs in the IRQ thread > to push out the buffer along with the tim

Re: [PATCH] drm/i915/selftest: Fix potential memory leak

2021-01-22 Thread Chris Wilson
Quoting Pan Bian (2021-01-22 01:56:40) > Object out is not released on path that no VMA instance found. The root > cause is jumping to an unexpected label on the error path. Wouldn't the root cause be whatever caused the allocation to fail? Language notwithstanding, Reviewed-by: Chris Wilson -Ch

Re: [PATCH v2 05/15] drm/vc4: hdmi: Restore cec physical address on reconnect

2021-01-22 Thread Dave Stevenson
Hi Maxime Sorry for the slow reply on these patches. On Mon, 11 Jan 2021 at 14:23, Maxime Ripard wrote: > > From: Dom Cobley > > Currently we call cec_phys_addr_invalidate on a hotplug deassert. > That may be due to a TV power cycling, or an AVR being switched > on (and switching edid). > > Thi

Re: [PATCH v2 5/5] WIP! arm64: dts: renesas: falcon: Add Ethernet-AVB1-5 support

2021-01-22 Thread Geert Uytterhoeven
Hi Wolfram, On Thu, Jan 21, 2021 at 11:06 AM Wolfram Sang wrote: > PHYs on the subboard could not be reached via remote access. But this is > the latest DTS snipplet with some fixes suggested by Geert as a starting > point. Not for upstream yet! > > Signed-off-by: Wolfram Sang > --- > Change sin

Re: [PATCH v2] kdb: Make memory allocations more robust

2021-01-22 Thread Daniel Thompson
On Fri, Jan 22, 2021 at 03:50:50PM +0530, Sumit Garg wrote: > Currently kdb uses in_interrupt() to determine whether it's library Looks like a good change just a few nitpicks with the description: s/it's/its/ > code has been called from the kgdb trap handler or from a saner calling > context suc

RE: [PATCH 3/3] fpga: versal-fpga: Add versal fpga manager driver

2021-01-22 Thread Nava kishore Manne
Hi Moritz, Thanks for the review. Please find my response inline. > -Original Message- > From: Moritz Fischer > Sent: Tuesday, January 19, 2021 6:03 AM > To: Nava kishore Manne > Cc: m...@kernel.org; t...@redhat.com; robh...@kernel.org; Michal Simek > ; linux-f...@vger.kernel.or

Re: [PATCH] gpio: uapi: fix line info flags description

2021-01-22 Thread Bartosz Golaszewski
On Tue, Jan 19, 2021 at 2:58 PM Kent Gibson wrote: > > The description of the flags field of the struct gpio_v2_line_info > mentions "the GPIO lines" while the info only applies to an individual > GPIO line. This was accidentally changed from "the GPIO line" during > formatting improvements. > >

Re: [PATCH V3 1/3] mm/memory_hotplug: Prevalidate the address range being added with platform

2021-01-22 Thread Anshuman Khandual
On 1/22/21 2:48 PM, David Hildenbrand wrote: > >> +/* >> + * Platforms should define arch_get_mappable_range() that provides >> + * maximum possible addressable physical memory range for which the >> + * linear mapping could be created. The platform returned address >> + * range must adhere to t

Re: [PATCH 06/12] arm64: dts: zynqmp: Add label for zynqmp_ipi

2021-01-22 Thread Michal Simek
Hi, On 1/21/21 11:29 PM, Laurent Pinchart wrote: > Hi Michal, > > I've just realized I forgot to reply to this e-mail, sorry. > > On Tue, Dec 08, 2020 at 08:26:41AM +0100, Michal Simek wrote: >> On 07. 12. 20 23:16, Laurent Pinchart wrote: >>> On Mon, Dec 07, 2020 at 10:39:25AM +0100, Michal Sim

Re: [PATCH v3 0/5] Scan for an idle sibling in a single pass

2021-01-22 Thread Mel Gorman
On Fri, Jan 22, 2021 at 10:30:52AM +0100, Vincent Guittot wrote: > Hi Mel, > > On Tue, 19 Jan 2021 at 13:02, Mel Gorman wrote: > > > > On Tue, Jan 19, 2021 at 12:33:04PM +0100, Vincent Guittot wrote: > > > On Tue, 19 Jan 2021 at 12:22, Mel Gorman > > > wrote: > > > > > > > > Changelog since v2

Re: [PATCH V3 1/3] mm/memory_hotplug: Prevalidate the address range being added with platform

2021-01-22 Thread David Hildenbrand
On 22.01.21 11:41, Anshuman Khandual wrote: > > On 1/22/21 2:48 PM, David Hildenbrand wrote: >> >>> +/* >>> + * Platforms should define arch_get_mappable_range() that provides >>> + * maximum possible addressable physical memory range for which the >>> + * linear mapping could be created. The plat

Re: [PATCH] drm/panfrost: Add governor data with pre-defined thresholds

2021-01-22 Thread Steven Price
On 22/01/2021 10:00, Lukasz Luba wrote: On 1/22/21 8:21 AM, Steven Price wrote: On 21/01/2021 17:04, Lukasz Luba wrote: The simple_ondemand devfreq governor uses two thresholds to decide about the frequency change: upthreshold, downdifferential. These two tunable change the behavior of the go

Re: [PATCH 1/5] gpio: remove zte zx driver

2021-01-22 Thread Bartosz Golaszewski
On Wed, Jan 20, 2021 at 2:20 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > The zte zx platform is getting removed, so this driver is no > longer needed. > > Cc: Jun Nie > Cc: Shawn Guo > Signed-off-by: Arnd Bergmann Applied, thanks! Bartosz

Re: [PATCH V3 1/3] mm/memory_hotplug: Prevalidate the address range being added with platform

2021-01-22 Thread David Hildenbrand
On 22.01.21 11:42, David Hildenbrand wrote: > On 22.01.21 11:41, Anshuman Khandual wrote: >> >> On 1/22/21 2:48 PM, David Hildenbrand wrote: >>> +/* + * Platforms should define arch_get_mappable_range() that provides + * maximum possible addressable physical memory range for which th

Re: [PATCH v2 5/5] WIP! arm64: dts: renesas: falcon: Add Ethernet-AVB1-5 support

2021-01-22 Thread Wolfram Sang
> > .../boot/dts/renesas/r8a779a0-falcon-cpu.dtsi | 160 ++ > > New file r8a779a0-falcon-ether.dtsi? Makes sense. > > > + ins_mii { > > pins_mii Now, how did that happen? Thanks! signature.asc Description: PGP signature

Re: [PATCH v5 00/10] sunxi: Support IRQ wakeup from deep sleep

2021-01-22 Thread Maxime Ripard
On Thu, Jan 21, 2021 at 07:33:54PM -0600, Samuel Holland wrote: > On 1/21/21 2:35 PM, Marc Zyngier wrote: > > On Sun, 17 Jan 2021 23:50:30 -0600, Samuel Holland wrote: > >> Allwinner sun6i/sun8i/sun50i SoCs (A31 and newer) have two interrupt > >> controllers: GIC and R_INTC. GIC does not support wa

Re: [PATCH v27 12/12] landlock: Add user and kernel documentation

2021-01-22 Thread Mickaël Salaün
On 22/01/2021 09:33, Michael Kerrisk (man-pages) wrote: > Hello Mickaël, Hi Michael, > > It would be great to have some manual pages for these system calls > before release... Can you prepare something? Yes, I will start some pages based on the current documentation, but it will be some time

[PATCH v6 3/7] Bluetooth: advmon offload MSFT remove monitor

2021-01-22 Thread Archie Pusaka
From: Archie Pusaka Implements the monitor removal functionality for advertising monitor offloading to MSFT controllers. Supply handle = 0 to remove all monitors. Signed-off-by: Archie Pusaka Reviewed-by: Miao-chen Chou Reviewed-by: Yun-Hao Chung Reported-by: kernel test robot Reported-by: D

[PATCH v6 2/7] Bluetooth: advmon offload MSFT add monitor

2021-01-22 Thread Archie Pusaka
From: Archie Pusaka Enables advertising monitor offloading to the controller, if MSFT extension is supported. The kernel won't adjust the monitor parameters to match what the controller supports - that is the user space's responsibility. This patch only manages the addition of monitors. Monitor

Re: [PATCH 5/5] Add manpage for fsconfig(2)

2021-01-22 Thread Michael Kerrisk (man-pages)
Hello David, Ping! Thanks, Michael On Mon, 24 Aug 2020 at 14:25, David Howells wrote: > > Add a manual page to document the fsconfig() system call. > > Signed-off-by: David Howells > --- > > man2/fsconfig.2 | 277 > +++ > 1 file changed,

[PATCH V6 1/6] scripts: dtc: Fetch fdtoverlay.c from external DTC project

2021-01-22 Thread Viresh Kumar
We will start building overlays for platforms soon in the kernel and would need fdtoverlay tool going forward. Lets start fetching it. Signed-off-by: Viresh Kumar --- scripts/dtc/update-dtc-source.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/dtc/update-dtc-sou

Re: net/wireless/reg.c:144 suspicious rcu_dereference_check() usage!

2021-01-22 Thread Borislav Petkov
On Fri, Jan 22, 2021 at 11:11:24AM +0100, Borislav Petkov wrote: > Hi, > > this triggers is on 5.11-rc3 + tip/x86/urgent (shouldn't matter tho), > 32-bit kernel: This looks like a multiple wireless drivers issue, this is on another 32-bit machine with ath5k this time: [ 23.810222] ath5k :0

[PATCH V6 6/6] of: unittest: Statically apply overlays using fdtoverlay

2021-01-22 Thread Viresh Kumar
Now that fdtoverlay is part of the kernel build, start using it to test the unitest overlays we have by applying them statically. Create a new base file static_base.dts which includes other .dtsi files. Some unittest overlays deliberately contain errors that unittest checks for. These overlays wil

[PATCH V6 4/6] kbuild: Add support to build overlays (%.dtbo)

2021-01-22 Thread Viresh Kumar
Add support for building DT overlays (%.dtbo). The overlay's source file will have the usual extension, i.e. .dts, though the blob will have .dtbo extension to distinguish it from normal blobs. Signed-off-by: Viresh Kumar --- .gitignore | 1 + Makefile | 5 - sc

[PATCH V6 3/6] scripts: dtc: Remove the unused fdtdump.c file

2021-01-22 Thread Viresh Kumar
This was copied from external DTC repository long back and isn't used anymore. Over that the dtc tool can be used to generate the dts source back from the dtb. Remove the unused fdtdump.c file. Signed-off-by: Viresh Kumar --- scripts/dtc/fdtdump.c | 163 --

[PATCH] PCI: endpoint: remove set but not used parameter in pci-epf-ntb.c

2021-01-22 Thread Ye Bin
Fix follow warnings: drivers/pci/endpoint/functions/pci-epf-ntb.c: In function ‘epf_ntb_peer_spad_bar_set’: drivers/pci/endpoint/functions/pci-epf-ntb.c:763:18: warning: variable ‘epc’ set but not used [-Wunused-but-set-variable] 763 | struct pci_epc *epc; | ^~~ drivers/

[PATCH V6 5/6] of: unittest: Create overlay_common.dtsi and testcases_common.dtsi

2021-01-22 Thread Viresh Kumar
In order to build-test the same unit-test files using fdtoverlay tool, move the device nodes from the existing overlay_base.dts and testcases_common.dts files to .dtsi files. The .dts files now include the new .dtsi files, resulting in exactly the same behavior as earlier. The .dtsi files can now

[PATCH V6 0/6] dt: build overlays

2021-01-22 Thread Viresh Kumar
Hi Frank/Rob, This patchset makes necessary changes to the kernel to add support for building overlays (%.dtbo) and the required fdtoverlay tool. This also builds static_test.dtb using most of the existing overlay tests present in drivers/of/unittest-data/ for better test coverage. Note that in o

[PATCH 08/14] dt-bindings: reset: add IDs for SCMI reset domains on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI reset domains for secure resources. This change defines the SCMI reset domain identifiers used by SCMI agents and servers. Stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware in

[PATCH 00/14] Introduce STM32MP1 RCC in secured mode

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clocks and IP resets can relate as secure resources. These resources are moved from a RCC clock/reset handle to a SCMI clock/reset_domain handle. The RCC clock driver is now dependant of the SCMI driver, then we ha

[PATCH 01/14] clk: stm32mp1: merge 'clk-hsi-div' and 'ck_hsi' into one clock

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 10 +- 1 file changed, 5 insertions(+), 5 del

[PATCH 07/14] dt-bindings: clock: add IDs for SCMI clocks on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware interfaces. This change defines the SCMI clock identifiers used by SCMI agents and servers. Server SCMI0 exposes clocks and reset controllers for resources under RCC[TZE

[PATCH 05/14] clk: stm32mp1: move RCC reset controller into RCC clock driver

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez RCC clock and reset controller shared same memory mapping. As RCC clock driver is now a module, the best way to register clock and reset controller is to do it in same driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 157

[PATCH 02/14] clk: stm32mp1: merge 'ck_hse_rtc' and 'ck_rtc' into one clock

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez 'ck_rtc' has multiple clocks as input (ck_hsi, ck_lsi, and ck_hse). A divider is available only on the specific rtc input for ck_hse. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez --- driver

[PATCH 09/14] dt-bindings: reset: add MCU HOLD BOOT ID for SCMI reset domains on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Add ID to SCMI0 to exposes reset controller for the MCU HOLD BOOT resource. Signed-off-by: Arnaud Pouliquen Signed-off-by: Gabriel Fernandez --- include/dt-bindings/reset/stm32mp1-resets.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/reset/

[PATCH 04/14] clk: stm32mp1: convert to module driver

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Adds support for probe deferral in way to prepare integration of the security in RCC clock and reset drivers. Some kernel clocks will be provided by the SCMI drivers. Since RCC clock driver create clocks which parents are SCMI clocks, RCC clock driver probe can be deferre

[PATCH 06/14] reset: stm32mp1: remove stm32mp1 reset

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez st32mp1 RCC reset driver was moved into stm32mp1 RCC clock driver. Signed-off-by: Gabriel Fernandez --- drivers/reset/Kconfig | 6 -- drivers/reset/Makefile | 1 - drivers/reset/reset-stm32mp1.c | 115 - 3 files chang

[PATCH 03/14] clk: stm32mp1: remove intermediate pll clocks

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. Integrate the mux clock into pll clock will facilitate to have a more coherent clock tree in no trusted / trusted mode. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 65 +++

[PATCH 10/14] clk: stm32mp1: new compatible for secure RCC support

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clock resources cannot be accessed by Linux kernel when executing in non-secure state of the CPU(s). In such configuration, the RCC clock driver must not register clocks it cannot access. They are expected to be reg

[PATCH 13/14] dt-bindings: clock: stm32mp1 new compatible for secure rcc

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Introduce new compatible string "st,stm32mp1-rcc-secure" for stm32mp1 clock driver when the device is configured with RCC security support hardened. Signed-off-by: Etienne Carriere Signed-off-by: Gabriel Fernandez --- Documentation/devicetree/bindings/clock/st,stm32mp1

[PATCH 14/14] ARM: dts: stm32: introduce basic boot include on stm32mp15x board

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Include this .dtsi file to be backward compatible with old basic bootchain. For example add: #include "stm32mp15-no-scmi.dtsi" in a stm32mp157c*.dts file. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32mp15-no-scmi.dtsi | 158 +++ 1 fil

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