[PATCH v2] KVM: ppc64: Enable ring-based dirty memory tracking on ppc64: enable config options and implement relevant functions

2023-07-17 Thread Kautuk Consul
- Enable CONFIG_HAVE_KVM_DIRTY_RING_ACQ_REL as ppc64 is weakly ordered. - Enable CONFIG_NEED_KVM_DIRTY_RING_WITH_BITMAP because the kvmppc_xive_native_set_attr is called in the context of an ioctl syscall and will call kvmppc_xive_native_eq_sync for setting the KVM_DEV_XIVE_EQ_SYNC attribut

Re: [PATCH v2] KVM: ppc64: Enable ring-based dirty memory tracking on ppc64: enable config options and implement relevant functions

2023-07-17 Thread Aneesh Kumar K.V
Kautuk Consul writes: > - Enable CONFIG_HAVE_KVM_DIRTY_RING_ACQ_REL as ppc64 is weakly > ordered. > - Enable CONFIG_NEED_KVM_DIRTY_RING_WITH_BITMAP because the > kvmppc_xive_native_set_attr is called in the context of an ioctl > syscall and will call kvmppc_xive_native_eq_sync for setting t

Re: [PATCH] net: Explicitly include correct DT includes

2023-07-17 Thread Jérôme Pouiller
On Friday 14 July 2023 19:48:00 CEST Rob Herring wrote: > > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other

Re: [PATCH] net: Explicitly include correct DT includes

2023-07-17 Thread Kurt Kanzenbach
On Fri Jul 14 2023, Rob Herring wrote: > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other. They also include

Re: [RFC 0/3] Asynchronous EEH recovery

2023-07-17 Thread Ganesh G R
On 6/13/23 8:06 AM, Oliver O'Halloran wrote: On Tue, Jun 13, 2023 at 11:44 AM Ganesh Goudar wrote: Hi, EEH recovery is currently serialized and these patches shorten the time taken for EEH recovery by making the recovery to run in parallel. The original author of these patches is Sam Bobroff

Re: [PATCH 0/2] eventfd: simplify signal helpers

2023-07-17 Thread Grzegorz Jaszczyk
pt., 14 lip 2023 o 09:05 Christian Brauner napisał(a): > > On Thu, Jul 13, 2023 at 11:10:54AM -0600, Alex Williamson wrote: > > On Thu, 13 Jul 2023 12:05:36 +0200 > > Christian Brauner wrote: > > > > > Hey everyone, > > > > > > This simplifies the eventfd_signal() and eventfd_signal_mask() helper

[PATCH] drivers: macintosh: add spaces required around that ':' and '?'

2023-07-17 Thread hanyu001
This patch adds spaces required around that ':' and '?'. ./drivers/macintosh/macio-adb.c:143: ERROR: spaces required around that '?' (ctx:VxW) ./drivers/macintosh/macio-adb.c:143: ERROR: spaces required around that ':' (ctx:VxW) Signed-off-by: maqimei <2433033...@qq.com> --- drivers/macintos

[PATCH] powerpc: xmon: insert space before the open parenthesis '('

2023-07-17 Thread hanyu001
Fixes checkpatch error: ./arch/powerpc/xmon/xmon.c:1052: ERROR: space required before the open parenthesis '(' Signed-off-by: ztt <1549089...@qq.com> --- arch/powerpc/xmon/xmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/x

[PATCH] drivers: macintosh: space required after that ','

2023-07-17 Thread hanyu001
This patch fixes the checkpatch.pl error: ./drivers/macintosh/adbhid.c:1091: ERROR: space required after that ',' (ctx:VxV) Signed-off-by: maqimei <2433033...@qq.com> --- drivers/macintosh/adbhid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/adbhid.c

[PATCH] powerpc: xmon: Remove space after '(' and before ')'

2023-07-17 Thread hanyu001
The patch fixes the following errors detected by checkpatch: ./arch/powerpc/xmon/xmon.c:2426: ERROR: space prohibited after that open parenthesis '(' ./arch/powerpc/xmon/xmon.c:2426: ERROR: space prohibited before that close parenthesis ')' ./arch/powerpc/xmon/xmon.c:2426: ERROR: space required

Fwd: [PATCH] drivers: macintosh: space required after that ','

2023-07-17 Thread hanyu001
This patch fixes the checkpatch.pl error: ./drivers/macintosh/adbhid.c:1091: ERROR: space required after that ',' (ctx:VxV) Signed-off-by: maqimei <2433033...@qq.com> --- drivers/macintosh/adbhid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/adbhid.c

Re: [PATCH] misc: Explicitly include correct DT includes

2023-07-17 Thread Andrew Donnellan
On Fri, 2023-07-14 at 11:47 -0600, Rob Herring wrote: > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform > bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other. T

[PATCH] powerpc/64: Enable accelerated crypto algorithms in defconfig

2023-07-17 Thread Michael Ellerman
Enable all the acclerated crypto algorithms as modules in the 64-bit defconfig, to get more test coverage. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc/configs/

Re: [PATCH 2/2] ASoC: fsl_rpmsg: Add support for i.MX93 platform

2023-07-17 Thread Shengjiu Wang
On Fri, Jul 14, 2023 at 5:30 PM Chancel Liu wrote: > Add compatible string and specific soc data to support rpmsg sound card > on i.MX93 platform. > > Signed-off-by: Chancel Liu > Acked-by: Shengjiu Wang Best regards wang shengjiu > --- > sound/soc/fsl/fsl_rpmsg.c | 8 > 1 file cha

[PATCH v1] powerpc/pseries: use kfree_sensitive() in plpks_gen_password()

2023-07-17 Thread Minjie Du
password might contain private information, so better use kfree_sensitive to free it. In plpks_gen_password() use kfree_sensitive(). Signed-off-by: Minjie Du --- arch/powerpc/platforms/pseries/plpks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/

Re: [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter

2023-07-17 Thread Shengjiu Wang
On Wed, Jul 12, 2023 at 8:53 PM Matus Gajdos wrote: > Otherwise bit clock remains running writing invalid data to the DAC. > > Signed-off-by: Matus Gajdos > Acked-by: Shengjiu Wang Best regards Wang Shengjiu > --- > sound/soc/fsl/fsl_sai.c | 2 +- > sound/soc/fsl/fsl_sai.h | 1 + > 2 files

Re: [PATCH v10 4/4] arm64: support batched/deferred tlb shootdown during page reclamation/migration

2023-07-17 Thread Yicong Yang
On 2023/7/16 23:11, Catalin Marinas wrote: > On Mon, Jul 10, 2023 at 04:39:14PM +0800, Yicong Yang wrote: >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig >> index 7856c3a3e35a..f0ce8208c57f 100644 >> --- a/arch/arm64/Kconfig >> +++ b/arch/arm64/Kconfig >> @@ -96,6 +96,7 @@ config ARM64 >>

Re: [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter

2023-07-17 Thread Fabio Estevam
On Wed, Jul 12, 2023 at 9:53 AM Matus Gajdos wrote: > > Otherwise bit clock remains running writing invalid data to the DAC. > > Signed-off-by: Matus Gajdos Should this contain a Fixes tag so that it could be backported to stable kernels?

Re: [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter

2023-07-17 Thread Mark Brown
On Mon, Jul 17, 2023 at 09:31:38AM -0300, Fabio Estevam wrote: > On Wed, Jul 12, 2023 at 9:53 AM Matus Gajdos wrote: > > > > Otherwise bit clock remains running writing invalid data to the DAC. > > > > Signed-off-by: Matus Gajdos > > Should this contain a Fixes tag so that it could be backported

Re: [PATCH] ASoC: fsl_sai: Disable bit clock with transmitter

2023-07-17 Thread Fabio Estevam
On Mon, Jul 17, 2023 at 9:55 AM Mark Brown wrote: > I'll just put a non-specific Cc stable tag on it, that should be enough > to get it backported. Sounds good. Thanks, Mark.

[PATCH v11 0/4] arm64: support batched/deferred tlb shootdown during page reclamation/migration

2023-07-17 Thread Yicong Yang
From: Yicong Yang Though ARM64 has the hardware to do tlb shootdown, the hardware broadcasting is not free. A simplest micro benchmark shows even on snapdragon 888 with only 8 cores, the overhead for ptep_clear_flush is huge even for paging out one page mapped by only one process: 5.36% a.out

[PATCH v11 2/4] mm/tlbbatch: Rename and extend some functions

2023-07-17 Thread Yicong Yang
From: Barry Song This patch does some preparation works to extend batched TLB flush to arm64. Including: - Extend set_tlb_ubc_flush_pending() and arch_tlbbatch_add_mm() to accept an additional argument for address, architectures like arm64 may need this for tlbi. - Rename arch_tlbbatch_add_mm

[PATCH v11 3/4] mm/tlbbatch: Introduce arch_flush_tlb_batched_pending()

2023-07-17 Thread Yicong Yang
From: Yicong Yang Currently we'll flush the mm in flush_tlb_batched_pending() to avoid race between reclaim unmaps pages by batched TLB flush and mprotect/munmap/etc. Other architectures like arm64 may only need a synchronization barrier(dsb) here rather than a full mm flush. So add arch_flush_tl

[PATCH v11 4/4] arm64: support batched/deferred tlb shootdown during page reclamation/migration

2023-07-17 Thread Yicong Yang
From: Barry Song on x86, batched and deferred tlb shootdown has lead to 90% performance increase on tlb shootdown. on arm64, HW can do tlb shootdown without software IPI. But sync tlbi is still quite expensive. Even running a simplest program which requires swapout can prove this is true, #incl

[PATCH v11 1/4] mm/tlbbatch: Introduce arch_tlbbatch_should_defer()

2023-07-17 Thread Yicong Yang
From: Anshuman Khandual The entire scheme of deferred TLB flush in reclaim path rests on the fact that the cost to refill TLB entries is less than flushing out individual entries by sending IPI to remote CPUs. But architecture can have different ways to evaluate that. Hence apart from checking TT

Re: [PATCH v2 1/2] powerpc/tpm: Create linux,sml-base/size as big endian

2023-07-17 Thread Jarkko Sakkinen
On Wed Jul 12, 2023 at 12:39 PM UTC, Michael Ellerman wrote: > Jarkko Sakkinen writes: > > On Tue, 2023-07-11 at 08:47 -0400, Stefan Berger wrote: > >> On 7/10/23 17:23, Jarkko Sakkinen wrote: > >> > On Thu, 2023-06-15 at 22:37 +1000, Michael Ellerman wrote: > >> > > There's code in prom_instantia

Re: [RFC][PATCH] sched: Rename DIE domain

2023-07-17 Thread Vincent Guittot
On Wed, 12 Jul 2023 at 16:11, Peter Zijlstra wrote: > > Hi > > Thomas just tripped over the x86 topology setup creating a 'DIE' domain > for the package mask :-) May be a link to the change that triggers this patch could be useful > > Since these names are SCHED_DEBUG only, rename them. > I don'

Re: [PATCH 1/2] PCI: layerscape: Add support for Link down notification

2023-07-17 Thread Frank Li
O Thu, Jun 15, 2023 at 12:41:11PM -0400, Frank Li wrote: > Add support to pass Link down notification to Endpoint function driver > so that the LINK_DOWN event can be processed by the function. > > Signed-off-by: Frank Li > --- @Lorenzo: No comment over 1 months. Just change layerscape

Re: [PATCH 2/2] PCI: layerscape: Add the workaround for lost link capablities during reset

2023-07-17 Thread Frank Li
On Thu, Jun 15, 2023 at 12:41:12PM -0400, Frank Li wrote: > From: Xiaowei Bao > > A workaround for the issue where the PCI Express Endpoint (EP) controller > loses the values of the Maximum Link Width and Supported Link Speed from > the Link Capabilities Register, which initially configured by th

Re: [PATCH] char: Explicitly include correct DT includes

2023-07-17 Thread Jarkko Sakkinen
On Fri Jul 14, 2023 at 5:43 PM UTC, Rob Herring wrote: > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other. Th

Re: [RFC][PATCH] sched: Rename DIE domain

2023-07-17 Thread Peter Zijlstra
On Mon, Jul 17, 2023 at 03:51:25PM +0200, Vincent Guittot wrote: > On Wed, 12 Jul 2023 at 16:11, Peter Zijlstra wrote: > > > > Hi > > > > Thomas just tripped over the x86 topology setup creating a 'DIE' domain > > for the package mask :-) > > May be a link to the change that triggers this patch c

Re: [PATCH 2/2] PCI: layerscape: Add the workaround for lost link capablities during reset

2023-07-17 Thread Rob Herring
On Thu, Jun 15, 2023 at 10:41 AM Frank Li wrote: > > From: Xiaowei Bao > > A workaround for the issue where the PCI Express Endpoint (EP) controller > loses the values of the Maximum Link Width and Supported Link Speed from > the Link Capabilities Register, which initially configured by the Reset

Kernel Crash Dump (kdump) broken with 6.5

2023-07-17 Thread Sachin Sant
Kdump seems to be broken with 6.5 for ppc64le. [ 14.200412] systemd[1]: Starting dracut pre-pivot and cleanup hook... [[0;32m OK [0m] Started dracut pre-pivot and cleanup hook. Starting Kdump Vmcore Save Service... [ 14.231669] systemd[1]: Started dracut pre-pivot and cleanup hook. [ 14.231801] sy

Re: [PATCH 2/2] PCI: layerscape: Add the workaround for lost link capablities during reset

2023-07-17 Thread Frank Li
On Mon, Jul 17, 2023 at 08:45:14AM -0600, Rob Herring wrote: > On Thu, Jun 15, 2023 at 10:41 AM Frank Li wrote: > > > > From: Xiaowei Bao > > > > A workaround for the issue where the PCI Express Endpoint (EP) controller > > loses the values of the Maximum Link Width and Supported Link Speed from

Re: [PATCH v5] Revert "powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm goto"

2023-07-17 Thread Christophe Leroy
Le 17/07/2023 à 07:01, Michael Ellerman a écrit : > Christophe Leroy writes: >> Le 12/07/2023 à 15:45, Michael Ellerman a écrit : >>> From: Christophe Leroy >>> >>> This partly reverts commit 1e688dd2a3d6759d416616ff07afc4bb836c4213. >>> >>> That commit aimed at optimising the code around gener

Re: [PATCH] dmaengine: Explicitly include correct DT includes

2023-07-17 Thread Rob Herring
On Fri, Jul 14, 2023 at 11:44 AM Rob Herring wrote: > > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other. Th

Re: Kernel Crash Dump (kdump) broken with 6.5

2023-07-17 Thread Mahesh J Salgaonkar
On 2023-07-17 20:15:53 Mon, Sachin Sant wrote: > Kdump seems to be broken with 6.5 for ppc64le. > > [ 14.200412] systemd[1]: Starting dracut pre-pivot and cleanup hook... > [[0;32m OK [0m] Started dracut pre-pivot and cleanup hook. > Starting Kdump Vmcore Save Service... > [ 14.231669] systemd[1]:

Re: [PATCH v2 02/12] mm: introduce execmem_text_alloc() and jit_text_alloc()

2023-07-17 Thread Andy Lutomirski
On Mon, Jun 26, 2023, at 10:48 AM, Song Liu wrote: > On Mon, Jun 26, 2023 at 5:31 AM Mark Rutland wrote: >> > [...] >> > >> > So the idea was that jit_text_alloc() will have a cache of large pages >> > mapped ROX, will allocate memory from those caches and there will be >> > jit_update() that u

Re: [PATCH] usb: Explicitly include correct DT includes

2023-07-17 Thread Rob Herring
On Fri, Jul 14, 2023 at 11:50 AM Rob Herring wrote: > > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other. Th

Re: [PATCH] misc: Explicitly include correct DT includes

2023-07-17 Thread Rob Herring
On Fri, Jul 14, 2023 at 11:47 AM Rob Herring wrote: > > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other. Th

Re: [PATCH 2/2] PCI: layerscape: Add the workaround for lost link capablities during reset

2023-07-17 Thread Frank Li
On Mon, Jul 17, 2023 at 09:29:10PM +0530, Manivannan Sadhasivam wrote: > On Thu, Jun 15, 2023 at 12:41:12PM -0400, Frank Li wrote: > > From: Xiaowei Bao > > > > A workaround for the issue where the PCI Express Endpoint (EP) controller > > loses the values of the Maximum Link Width and Supported L

Re: [PATCH] powerpc/build: vdso linker warning for orphan sections

2023-07-17 Thread John Ogness
Hi Nicholas, On 2023-06-09, Nicholas Piggin wrote: > Add --orphan-handlin for vdsos, and adjust vdso linker scripts to deal > with orphan sections. I'm reporting that I am getting a linker warning with 6.5-rc2. The warning message is: ld: warning: discarding dynamic section .rela.opd and bisec

[PATCH 1/1] sound:soc: fix return value check in imx_audmux_resume

2023-07-17 Thread Yuanjun Gong
check the return value of clk_prepare_enable, and if clk_prepare_enable got an unexpected return value, imx_audmux_resume should return the error value. Signed-off-by: Yuanjun Gong --- sound/soc/fsl/imx-audmux.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/fs

[PATCH 1/1] sound:soc: fix return value check in imx_audmux_suspend

2023-07-17 Thread Yuanjun Gong
check the return value of clk_prepare_enable, and if clk_prepare_enable got an unexpected return value, imx_audmux_suspend should return the error value. Signed-off-by: Yuanjun Gong --- sound/soc/fsl/imx-audmux.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/f

Re: [PATCH 1/2] PCI: layerscape: Add support for Link down notification

2023-07-17 Thread Manivannan Sadhasivam
On Thu, Jun 15, 2023 at 12:41:11PM -0400, Frank Li wrote: > Add support to pass Link down notification to Endpoint function driver > so that the LINK_DOWN event can be processed by the function. > > Signed-off-by: Frank Li One nit below. With that, Acked-by: Manivannan Sadhasivam > --- > dri

Re: [PATCH v9 01/42] mm: Rename arch pte_mkwrite()'s to pte_mkwrite_novma()

2023-07-17 Thread Edgecombe, Rick P
On Fri, 2023-07-14 at 23:57 +0100, Mark Brown wrote: > On Mon, Jun 12, 2023 at 05:10:27PM -0700, Rick Edgecombe wrote: > > The x86 Shadow stack feature includes a new type of memory called > > shadow > > stack. This shadow stack memory has some unusual properties, which > > requires > > some core m

Re: [PATCH 2/2] PCI: layerscape: Add the workaround for lost link capablities during reset

2023-07-17 Thread Manivannan Sadhasivam
On Thu, Jun 15, 2023 at 12:41:12PM -0400, Frank Li wrote: > From: Xiaowei Bao > > A workaround for the issue where the PCI Express Endpoint (EP) controller > loses the values of the Maximum Link Width and Supported Link Speed from > the Link Capabilities Register, which initially configured by th

Re: [PATCH v9 01/42] mm: Rename arch pte_mkwrite()'s to pte_mkwrite_novma()

2023-07-17 Thread Mark Brown
On Mon, Jul 17, 2023 at 03:55:50PM +, Edgecombe, Rick P wrote: > On Fri, 2023-07-14 at 23:57 +0100, Mark Brown wrote: > > The same issue seems to apply with the version that was in -next > > based > > on v6.4-rc4 too. > The version in your branch is not the same as the version in tip (which >

Re: [PATCH 0/2] eventfd: simplify signal helpers

2023-07-17 Thread Alex Williamson
On Mon, 17 Jul 2023 10:29:34 +0200 Grzegorz Jaszczyk wrote: > pt., 14 lip 2023 o 09:05 Christian Brauner napisał(a): > > > > On Thu, Jul 13, 2023 at 11:10:54AM -0600, Alex Williamson wrote: > > > On Thu, 13 Jul 2023 12:05:36 +0200 > > > Christian Brauner wrote: > > > > > > > Hey everyone, >

Re: [PATCH 0/2] Add support for rpmsg sound card on i.MX93 platform

2023-07-17 Thread Mark Brown
On Fri, 14 Jul 2023 17:29:11 +0800, Chancel Liu wrote: > Support rpmsg sound card on i.MX93 platform. > > Chancel Liu (2): > ASoC: dt-bindings: fsl_rpmsg: Add compatible string for i.MX93 > ASoC: fsl_rpmsg: Add support for i.MX93 platform > > Documentation/devicetree/bindings/sound/fsl,rpmsg

Re: [PATCH 0/2] eventfd: simplify signal helpers

2023-07-17 Thread Jason Gunthorpe
On Mon, Jul 17, 2023 at 01:08:31PM -0600, Alex Williamson wrote: > What would that mechanism be? We've been iterating on getting the > serialization and buffering correct, but I don't know of another means > that combines the notification with a value, so we'd likely end up with > an eventfd only

Re: [PATCH 0/2] eventfd: simplify signal helpers

2023-07-17 Thread Alex Williamson
On Mon, 17 Jul 2023 19:12:16 -0300 Jason Gunthorpe wrote: > On Mon, Jul 17, 2023 at 01:08:31PM -0600, Alex Williamson wrote: > > > What would that mechanism be? We've been iterating on getting the > > serialization and buffering correct, but I don't know of another means > > that combines the n

Re: linux-next: Tree for Jul 13 (drivers/video/fbdev/ps3fb.c)

2023-07-17 Thread Randy Dunlap
Hi Thomas, On 7/14/23 13:46, Randy Dunlap wrote: > Thomas, > > On 7/13/23 09:11, Randy Dunlap wrote: >> >> >> On 7/12/23 19:37, Stephen Rothwell wrote: >>> Hi all, >>> > > I still see this build error on linux-next 20230714. I still see this

[PATCH] ALSA: ps3: Fix errors in snd_ps3.h

2023-07-17 Thread shijie001
The following checkpatch errors are removed: ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Jie Shi --- sound/ppc/snd_ps3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/ppc/snd_ps3.h b/sound/ppc/snd_ps3.h index 8b554a79bc14..63bdb8ee3953 100644 --- a/s

[PATCH v5 01/13] mm/hugepage pud: Allow arch-specific helper function to check huge page pud support

2023-07-17 Thread Aneesh Kumar K.V
Architectures like powerpc would like to enable transparent huge page pud support only with radix translation. To support that add has_transparent_pud_hugepage() helper that architectures can override. Reviewed-by: Christophe Leroy Signed-off-by: Aneesh Kumar K.V --- drivers/nvdimm/pfn_devs.c |

[PATCH v5 00/13] Add support for DAX vmemmap optimization for ppc64

2023-07-17 Thread Aneesh Kumar K.V
This patch series implements changes required to support DAX vmemmap optimization for ppc64. The vmemmap optimization is only enabled with radix MMU translation and 1GB PUD mapping with 64K page size. The patch series also split hugetlb vmemmap optimization as a separate Kconfig variable so that ar

[PATCH v5 02/13] mm: Change pudp_huge_get_and_clear_full take vm_area_struct as arg

2023-07-17 Thread Aneesh Kumar K.V
We will use this in a later patch to do tlb flush when clearing pud entries on powerpc. This is similar to commit 93a98695f2f9 ("mm: change pmdp_huge_get_and_clear_full take vm_area_struct as arg") Reviewed-by: Christophe Leroy Signed-off-by: Aneesh Kumar K.V --- include/linux/pgtable.h | 4 ++-

[PATCH v5 03/13] mm/vmemmap: Improve vmemmap_can_optimize and allow architectures to override

2023-07-17 Thread Aneesh Kumar K.V
dax vmemmap optimization requires a minimum of 2 PAGE_SIZE area within vmemmap such that tail page mapping can point to the second PAGE_SIZE area. Enforce that in vmemmap_can_optimize() function. Architectures like powerpc also want to enable vmemmap optimization conditionally (only with radix MMU

[PATCH v5 04/13] mm/vmemmap: Allow architectures to override how vmemmap optimization works

2023-07-17 Thread Aneesh Kumar K.V
Architectures like powerpc will like to use different page table allocators and mapping mechanisms to implement vmemmap optimization. Similar to vmemmap_populate allow architectures to implement vmemap_populate_compound_pages Signed-off-by: Aneesh Kumar K.V --- mm/sparse-vmemmap.c | 3 +++ 1 fil

[PATCH v5 05/13] mm: Add pud_same similar to __HAVE_ARCH_P4D_SAME

2023-07-17 Thread Aneesh Kumar K.V
This helps architectures to override pmd_same and pud_same independently. Signed-off-by: Aneesh Kumar K.V --- include/linux/pgtable.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 6fd9b2831338..ca67ecbd9a66 100644 --- a/include/lin

[PATCH v5 06/13] mm/huge pud: Use transparent huge pud helpers only with CONFIG_TRANSPARENT_HUGEPAGE

2023-07-17 Thread Aneesh Kumar K.V
pudp_set_wrprotect and move_huge_pud helpers are only used when CONFIG_TRANSPARENT_HUGEPAGE is enabled. Similar to pmdp_set_wrprotect and move_huge_pmd_helpers use architecture override only if CONFIG_TRANSPARENT_HUGEPAGE is set Reviewed-by: Christophe Leroy Signed-off-by: Aneesh Kumar K.V ---

[PATCH v5 07/13] mm/vmemmap optimization: Split hugetlb and devdax vmemmap optimization

2023-07-17 Thread Aneesh Kumar K.V
Arm disabled hugetlb vmemmap optimization [1] because hugetlb vmemmap optimization includes an update of both the permissions (writeable to read-only) and the output address (pfn) of the vmemmap ptes. That is not supported without unmapping of pte(marking it invalid) by some architectures. With DA

[PATCH v5 08/13] powerpc/mm/trace: Convert trace event to trace event class

2023-07-17 Thread Aneesh Kumar K.V
A follow-up patch will add a pud variant for this same event. Using event class makes that addition simpler. No functional change in this patch. Reviewed-by: Christophe Leroy Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/book3s64/hash_pgtable.c | 2 +- arch/powerpc/mm/book3s64/radix_pg

[PATCH v5 09/13] powerpc/book3s64/mm: Enable transparent pud hugepage

2023-07-17 Thread Aneesh Kumar K.V
This is enabled only with radix translation and 1G hugepage size. This will be used with devdax device memory with a namespace alignment of 1G. Anon transparent hugepage is not supported even though we do have helpers checking pud_trans_huge(). We should never find that return true. The only expec

[PATCH v5 10/13] powerpc/book3s64/vmemmap: Switch radix to use a different vmemmap handling function

2023-07-17 Thread Aneesh Kumar K.V
This is in preparation to update radix to implement vmemmap optimization for devdax. Below are the rules w.r.t radix vmemmap mapping 1. First try to map things using PMD (2M) 2. With altmap if altmap cross-boundary check returns true, fall back to PAGE_SIZE 3. If we can't allocate PMD_SIZE back

[PATCH v5 12/13] powerpc/book3s64/radix: Remove mmu_vmemmap_psize

2023-07-17 Thread Aneesh Kumar K.V
This is not used by radix anymore. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/book3s64/radix_pgtable.c | 11 --- arch/powerpc/mm/init_64.c| 21 ++--- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/arch/powerpc/mm/book3s64/radix_p

[PATCH v5 11/13] powerpc/book3s64/radix: Add support for vmemmap optimization for radix

2023-07-17 Thread Aneesh Kumar K.V
With 2M PMD-level mapping, we require 32 struct pages and a single vmemmap page can contain 1024 struct pages (PAGE_SIZE/sizeof(struct page)). Hence with 64K page size, we don't use vmemmap deduplication for PMD-level mapping. Signed-off-by: Aneesh Kumar K.V --- Documentation/mm/vmemmap_dedup.rs

[PATCH v5 13/13] powerpc/book3s64/radix: Add debug message to give more details of vmemmap allocation

2023-07-17 Thread Aneesh Kumar K.V
Add some extra vmemmap pr_debug message that will indicate the type of vmemmap allocations. For ex: with DAX vmemmap optimization we can find the below details: [ 187.166580] radix-mmu: PAGE_SIZE vmemmap mapping [ 187.166587] radix-mmu: PAGE_SIZE vmemmap mapping [ 187.166591] radix-mmu: Tail pa

[PATCH v4 0/6] Add support for memmap on memory feature on ppc64

2023-07-17 Thread Aneesh Kumar K.V
This patch series update memmap on memory feature to fall back to memmap allocation outside the memory block if the alignment rules are not met. This makes the feature more useful on architectures like ppc64 where alignment rules are different with 64K page size. This patch series is dependent on

[PATCH v4 1/6] mm/hotplug: Simplify ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE kconfig

2023-07-17 Thread Aneesh Kumar K.V
Instead of adding menu entry with all supported architectures, add mm/Kconfig variable and select the same from supported architectures. No functional change in this patch. Acked-by: David Hildenbrand Signed-off-by: Aneesh Kumar K.V --- arch/arm64/Kconfig | 4 +--- arch/x86/Kconfig | 4 +---

[PATCH v4 2/6] mm/hotplug: Allow memmap on memory hotplug request to fallback

2023-07-17 Thread Aneesh Kumar K.V
If not supported, fallback to not using memap on memmory. This avoids the need for callers to do the fallback. Signed-off-by: Aneesh Kumar K.V --- drivers/acpi/acpi_memhotplug.c | 3 +-- include/linux/memory_hotplug.h | 3 ++- mm/memory_hotplug.c| 13 ++--- 3 files changed,

[PATCH v4 3/6] mm/hotplug: Allow architecture to override memmap on memory support check

2023-07-17 Thread Aneesh Kumar K.V
Some architectures would want different restrictions. Hence add an architecture-specific override. Both the PMD_SIZE check and pageblock alignment check are moved there. Signed-off-by: Aneesh Kumar K.V --- mm/memory_hotplug.c | 22 +++--- 1 file changed, 19 insertions(+), 3 dele

[PATCH v4 4/6] mm/hotplug: Allow pageblock alignment via altmap reservation

2023-07-17 Thread Aneesh Kumar K.V
Add a new kconfig option that can be selected if we want to allow pageblock alignment by reserving pages in the vmemmap altmap area. This implies we will be reserving some pages for every memoryblock This also allows the memmap on memory feature to be widely useful with different memory block size

[PATCH v4 5/6] powerpc/book3s64/memhotplug: Enable memmap on memory for radix

2023-07-17 Thread Aneesh Kumar K.V
Radix vmemmap mapping can map things correctly at the PMD level or PTE level based on different device boundary checks. Hence we skip the restrictions w.r.t vmemmap size to be multiple of PMD_SIZE. This also makes the feature widely useful because to use PMD_SIZE vmemmap area we require a memory bl

[PATCH v4 6/6] mm/hotplug: Embed vmem_altmap details in memory block

2023-07-17 Thread Aneesh Kumar K.V
With memmap on memory, some architecture needs more details w.r.t altmap such as base_pfn, end_pfn, etc to unmap vmemmap memory. Instead of computing them again when we remove a memory block embed vmem_altmap details in struct memory_block if we are using memmap on memory block feature. No functio

Re: [PATCH 4/4] powerpc/64s/radix: combine final TLB flush and lazy tlb mm shootdown IPIs

2023-07-17 Thread Michael Ellerman
Nicholas Piggin writes: > This performs lazy tlb mm shootdown when doing the exit TLB flush when > all mm users go away and user mappings are removed, which avoids having > to do the lazy tlb mm shootdown IPIs on the final mmput when all kernel > references disappear. > > powerpc/64s uses a broadc

[powerpc:next-test] BUILD SUCCESS b059dfc41139ee194c9127b89dbea02afa409443

2023-07-17 Thread kernel test robot
powerpc ppc40x_defconfig gcc powerpc ps3_defconfig gcc powerpc randconfig-r023-20230717 gcc powerpc randconfig-r026-20230717 gcc sh lboxre2_defconfig gcc sh

[powerpc:merge] BUILD SUCCESS 7c5878b16f9cd959e232169b967be5b2a0897afa

2023-07-17 Thread kernel test robot
gcc arc defconfig gcc archsdk_defconfig gcc arc randconfig-r012-20230717 gcc arc randconfig-r043-20230717 gcc arm allmodconfig

[powerpc:fixes-test] BUILD SUCCESS ccb381e1af1ace292153c88eb1fffa5683d16a20

2023-07-17 Thread kernel test robot
ps3_defconfig gcc powerpc randconfig-r026-20230717 gcc riscvallmodconfig gcc riscv allnoconfig gcc riscvallyesconfig gcc riscv defconfig gcc

Re: linux-next: Tree for Jul 13 (drivers/video/fbdev/ps3fb.c)

2023-07-17 Thread Bagas Sanjaya
On Thu, Jul 13, 2023 at 09:11:10AM -0700, Randy Dunlap wrote: > > > On 7/12/23 19:37, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20230712: > > > > on ppc64: > > In file included from ../include/linux/device.h:15, > from ../arch/powerpc/include/asm/io.h:22, >

Re: [PATCH 2/2] PCI: layerscape: Add the workaround for lost link capablities during reset

2023-07-17 Thread Manivannan Sadhasivam
On Mon, Jul 17, 2023 at 02:45:23PM -0400, Frank Li wrote: > On Mon, Jul 17, 2023 at 09:29:10PM +0530, Manivannan Sadhasivam wrote: > > On Thu, Jun 15, 2023 at 12:41:12PM -0400, Frank Li wrote: > > > From: Xiaowei Bao > > > > > > A workaround for the issue where the PCI Express Endpoint (EP) contr

Re: [PATCH] usb: Explicitly include correct DT includes

2023-07-17 Thread Herve Codina
Hi Rob, On Fri, 14 Jul 2023 11:50:23 -0600 Rob Herring wrote: > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each