Re: [PATCH] ASoC: fsl-asoc-card: Set .owner attribute when registering card.

2021-05-31 Thread Shengjiu Wang
On Fri, May 28, 2021 at 12:35 AM Nicolas Cavallari wrote: > > Otherwise, when compiled as module, a WARN_ON is triggered: > > WARNING: CPU: 0 PID: 5 at sound/core/init.c:208 snd_card_new+0x310/0x39c [snd] > [...] > CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.10.39 #1 > Hardware name: Freescale i

Re: [PATCH -next] ASoC: imx-rpmsg: fix platform_no_drv_owner.cocci warnings

2021-05-31 Thread Shengjiu Wang
On Thu, May 27, 2021 at 6:48 PM Zou Wei wrote: > > ./sound/soc/fsl/imx-rpmsg.c:140:3-8: No need to set .owner here. The core > will do it. > > Remove .owner field if calls are used which set it automatically > > Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci > > Reported-by: Hu

Re: [PATCH v2] lockdown,selinux: avoid bogus SELinux lockdown permission checks

2021-05-31 Thread Daniel Borkmann
On 5/29/21 8:48 PM, Paul Moore wrote: [...] Daniel's patch side steps that worry by just doing the lockdown permission check when the BPF program is loaded, but that isn't a great solution if the policy changes afterward. I was hoping there might be some way to perform the permission check as ne

Re: [PATCH v2] mm: generalize ZONE_[DMA|DMA32]

2021-05-31 Thread Michal Simek
On 5/28/21 9:45 AM, Kefeng Wang wrote: > ZONE_[DMA|DMA32] configs have duplicate definitions on platforms > that subscribe them. Instead, just make them generic options which > can be selected on applicable platforms. > > Also only x86/arm64 architectures could enable both ZONE_DMA and > ZONE_D

[PATCH] Documentation PCI: Fix typo in pci-error-recovery.rst

2021-05-31 Thread Wesley Sheng
Replace "It" with "If", since it is a conditional statement. Signed-off-by: Wesley Sheng --- Documentation/PCI/pci-error-recovery.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/PCI/pci-error-recovery.rst b/Documentation/PCI/pci-error-recovery.rst index 84c

Re: [PATCH] Documentation PCI: Fix typo in pci-error-recovery.rst

2021-05-31 Thread Linas Vepstas
Signed-off-by: Linas Vepstas On Mon, May 31, 2021 at 3:12 AM Wesley Sheng wrote: > Replace "It" with "If", since it is a conditional statement. > > Signed-off-by: Wesley Sheng > --- > Documentation/PCI/pci-error-recovery.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --g

[PATCH] powerpc/fadump: register for fadump as early as possible

2021-05-31 Thread Hari Bathini
Crash recovery (fadump) is setup in the userspace by some service. This service rebuilds initrd with dump capture capability, if it is not already dump capture capable and then initiates registration for firmware assisted dump (echo 1 > /sys/kernel/fadump/registered). But registration for fadump ca

Re: [PATCH] Documentation PCI: Fix typo in pci-error-recovery.rst

2021-05-31 Thread Krzysztof Wilczyński
Hi Wesley, > Replace "It" with "If", since it is a conditional statement. > [...] Nice catch! > -cycle) and then call slot_reset() again. It the device still can't > +cycle) and then call slot_reset() again. If the device still can't [...] Thank you! Reviewed-by: Krzysztof Wilczyński

Re: [PATCH v7 01/15] swiotlb: Refactor swiotlb init functions

2021-05-31 Thread Claire Chang
On Fri, May 28, 2021 at 12:32 AM Tom Lendacky wrote: > > On 5/27/21 9:41 AM, Tom Lendacky wrote: > > On 5/27/21 8:02 AM, Christoph Hellwig wrote: > >> On Wed, May 19, 2021 at 11:50:07AM -0700, Florian Fainelli wrote: > >>> You convert this call site with swiotlb_init_io_tlb_mem() which did not > >

Re: [PATCH] Revert "powerpc/kernel/iommu: Align size for IOMMU_PAGE_SIZE() to save TCEs"

2021-05-31 Thread Michael Ellerman
Frederic Barrat writes: > On 27/05/2021 04:13, Alexey Kardashevskiy wrote: >> On 27/05/2021 00:45, Frederic Barrat wrote: >>> This reverts commit 3c0468d4451eb6b4f6604370639f163f9637a479. >>> >>> That commit was breaking alignment guarantees for the DMA address when >>> allocating coherent mapping

Re: [PATCH v2] mm: generalize ZONE_[DMA|DMA32]

2021-05-31 Thread Michael Ellerman
Kefeng Wang writes: > ZONE_[DMA|DMA32] configs have duplicate definitions on platforms > that subscribe them. Instead, just make them generic options which > can be selected on applicable platforms. > > Also only x86/arm64 architectures could enable both ZONE_DMA and > ZONE_DMA32 if EXPERT, add AR

[PATCH v3 0/4] shoot lazy tlbs

2021-05-31 Thread Nicholas Piggin
There haven't been objections to the series since last posting, this is just a rebase and tidies up a few comments minor patch rearranging. Thanks, Nick Nicholas Piggin (4): lazy tlb: introduce lazy mm refcount helper functions lazy tlb: allow lazy tlb mm switching to be configurable lazy t

[PATCH v3 1/4] lazy tlb: introduce lazy mm refcount helper functions

2021-05-31 Thread Nicholas Piggin
Add explicit _lazy_tlb annotated functions for lazy mm refcounting. This makes lazy mm references more obvious, and allows explicit refcounting to be removed if it is not used. Signed-off-by: Nicholas Piggin --- arch/arm/mach-rpc/ecard.c| 2 +- arch/powerpc/kernel/smp.c|

[PATCH v3 2/4] lazy tlb: allow lazy tlb mm switching to be configurable

2021-05-31 Thread Nicholas Piggin
Add CONFIG_MMU_LAZY_TLB which can be configured out to disable the lazy tlb mechanism entirely, and switches to init_mm when switching to a kernel thread. NOMMU systems could easily go without this and save a bit of code and the refcount atomics, because their mm switch is a no-op. They have not b

[PATCH v3 3/4] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2021-05-31 Thread Nicholas Piggin
On big systems, the mm refcount can become highly contented when doing a lot of context switching with threaded applications (particularly switching between the idle thread and an application thread). Abandoning lazy tlb slows switching down quite a bit in the important user->idle->user cases, so

[PATCH v3 4/4] powerpc/64s: enable MMU_LAZY_TLB_SHOOTDOWN

2021-05-31 Thread Nicholas Piggin
On a 16-socket 192-core POWER8 system, a context switching benchmark with as many software threads as CPUs (so each switch will go in and out of idle), upstream can achieve a rate of about 1 million context switches per second. After this patch it goes up to 118 million. Signed-off-by: Nicholas Pi

[PATCH] selftests/powerpc: Remove the repeated declaration

2021-05-31 Thread Shaokun Zhang
Function 'event_ebb_init' and 'event_leader_ebb_init' are declared twice in the header file, so remove the repeated declaration. Cc: Michael Ellerman Signed-off-by: Shaokun Zhang --- tools/testing/selftests/powerpc/pmu/ebb/ebb.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing