Re: Since 6.10 - kernel oops/panics on G4 macmini due to change in drivers/ata/pata_macio.c

2024-08-12 Thread Jonáš Vidra
On Tue 13. Aug 2024 0:32:37 CEST, Kolbjørn Barmen wrote: Ever since 6.10, my macmini G4 behaved unstable when dealing with lots of I/O activity, such as sync'ing of Gentoo portage tree, unpacking kernel source tarball, building large software packages (or kernel) etc. After a bit of testing, and

Re: [PATCH v2] Document/kexec: Generalize crash hotplug description

2024-08-12 Thread Sourabh Jain
Hello Baoquan, On 13/08/24 10:34, Baoquan He wrote: On 08/12/24 at 09:46am, Sourabh Jain wrote: .. --- Changelog: Since v1: https://lore.kernel.org/all/20240805050829.297171-1-sourabhj...@linux.ibm.com/ - Update crash_hotplug sysfs document as suggested by Petr T - Update an error

Re: linux-next: duplicate patch in the powerpc-fixes tree

2024-08-12 Thread Andrew Morton
On Tue, 13 Aug 2024 09:32:07 +1000 Stephen Rothwell wrote: > Hi all, > > The following commit is also in the mm-hotfixes tree as a different commit > (but the same patch): > > e7a9af8c93aa ("powerpc/mm: Fix size of allocated PGDIR") > > This is commit > > 6cd04a440f57 ("powerpc/mm: fix s

[powerpc:merge] BUILD SUCCESS ddf9a4c1797f6a35c8bc241a08fe00cb18f3a674

2024-08-12 Thread kernel test robot
cc-12 i386 allnoconfig clang-18 i386 allnoconfig gcc-12 i386 allyesconfig clang-18 i386 allyesconfig gcc-12 i386 buildonly-randconfig-001-20240812 clang-18 i386 buildonly-randconfig-001-20240813 g

[powerpc:fixes-test] BUILD SUCCESS e7e846dc6c73fbc94ae8b4ec20d05627646416f2

2024-08-12 Thread kernel test robot
allnoconfig clang-18 i386 allnoconfig gcc-12 i386 allyesconfig clang-18 i386 allyesconfig gcc-12 i386 buildonly-randconfig-001-20240812 clang-18 i386 buildonly-randconfig-001

linux-next: duplicate patch in the powerpc-fixes tree

2024-08-12 Thread Stephen Rothwell
Hi all, The following commit is also in the mm-hotfixes tree as a different commit (but the same patch): e7a9af8c93aa ("powerpc/mm: Fix size of allocated PGDIR") This is commit 6cd04a440f57 ("powerpc/mm: fix size of allocated PGDIR") in the mm-hot-fixes-unstable branch of the mm-hotfixes t

Since 6.10 - kernel oops/panics on G4 macmini due to change in drivers/ata/pata_macio.c

2024-08-12 Thread Kolbjørn Barmen
Ever since 6.10, my macmini G4 behaved unstable when dealing with lots of I/O activity, such as sync'ing of Gentoo portage tree, unpacking kernel source tarball, building large software packages (or kernel) etc. After a bit of testing, and patient kernel rebuilding (while crashing) I found the c

Re: [PATCH] dt-bindings: fsl: fsl,rcpm: fix unevaluated fsl,rcpm-wakeup property

2024-08-12 Thread Rob Herring (Arm)
On Sun, 11 Aug 2024 17:35:07 +0200, Krzysztof Kozlowski wrote: > Drop the RCPM consumer example from the binding (LPUART device node), > because: > 1. Using phandles is typical syntax, thus explaining it is not needed in >the provider binding, > 2. It has 'fsl,rcpm-wakeup' property which is n

Re: [PATCH v2 1/4] mm: Add optional close() to struct vm_special_mapping

2024-08-12 Thread Liam R. Howlett
* Michael Ellerman [240812 04:26]: > Add an optional close() callback to struct vm_special_mapping. It will > be used, by powerpc at least, to handle unmapping of the VDSO. > > Although support for unmapping the VDSO was initially added > for CRIU[1], it is not desirable to guard that support beh

Re: OVERFLOW_KUNIT_TEST fails with BUG: KASAN: stack-out-of-bounds in string_nocheck+0x168/0x1c8 (kernel 6.11-rc2, PowerMac G4 DP)

2024-08-12 Thread Kees Cook
On Fri, Aug 09, 2024 at 11:15:37PM +0200, Erhard Furtner wrote: > Greetings! > > When KASAN is enabled the Overflow KUnit test fails: > > [...] > ok 16 shift_nonsense_test > # overflow_allocation_test: 11 allocation overflow tests finished > ===

[PATCH v5 7/7] mm/mprotect: fix dax pud handlings

2024-08-12 Thread Peter Xu
This is only relevant to the two archs that support PUD dax, aka, x86_64 and ppc64. PUD THPs do not yet exist elsewhere, and hugetlb PUDs do not count in this case. DAX have had PUD mappings for years, but change protection path never worked. When the path is triggered in any form (a simple test

[PATCH v5 6/7] mm/x86: Add missing pud helpers

2024-08-12 Thread Peter Xu
Some new helpers will be needed for pud entry updates soon. Introduce these helpers by referencing the pmd ones. Namely: - pudp_invalidate(): this helper invalidates a huge pud before a split happens, so that the invalidated pud entry will make sure no race will happen (either with softwar

[PATCH v5 5/7] mm/x86: Implement arch_check_zapped_pud()

2024-08-12 Thread Peter Xu
Introduce arch_check_zapped_pud() to sanity check shadow stack on PUD zaps. It has the same logic as the PMD helper. One thing to mention is, it might be a good idea to use page_table_check in the future for trapping wrong setups of shadow stack pgtable entries [1]. That is left for the future as

[PATCH v5 4/7] mm/x86: Make pud_leaf() only care about PSE bit

2024-08-12 Thread Peter Xu
When working on mprotect() on 1G dax entries, I hit an zap bad pud error when zapping a huge pud that is with PROT_NONE permission. Here the problem is x86's pud_leaf() requires both PRESENT and PSE bits set to report a pud entry as a leaf, but that doesn't look right, as it's not following the pX

[PATCH v5 3/7] mm/powerpc: Add missing pud helpers

2024-08-12 Thread Peter Xu
Some new helpers will be needed for pud entry updates soon. Introduce these helpers by referencing the pmd ones. Namely: - pudp_invalidate(): this helper invalidates a huge pud before a split happens, so that the invalidated pud entry will make sure no race will happen (either with softwar

[PATCH v5 2/7] mm/mprotect: Push mmu notifier to PUDs

2024-08-12 Thread Peter Xu
mprotect() does mmu notifiers in PMD levels. It's there since 2014 of commit a5338093bfb4 ("mm: move mmu notifier call from change_protection to change_pmd_range"). At that time, the issue was that NUMA balancing can be applied on a huge range of VM memory, even if nothing was populated. The not

[PATCH v5 1/7] mm/dax: Dump start address in fault handler

2024-08-12 Thread Peter Xu
Currently the dax fault handler dumps the vma range when dynamic debugging enabled. That's mostly not useful. Dump the (aligned) address instead with the order info. Acked-by: David Hildenbrand Signed-off-by: Peter Xu --- drivers/dax/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 del

[PATCH v5 0/7] mm/mprotect: Fix dax puds

2024-08-12 Thread Peter Xu
[Based on mm-unstable, commit 98808d08fc0f, Aug 7th. NOTE: it is intentional to not have rebased to latest mm-unstable, as this is to replace the queued v4] v5 Changelog: - Rename patch subject "mm/x86: arch_check_zapped_pud()", add "Implement" [tglx] - Mostly rewrote commit messages for the x86

Re: [PATCH 1/1] dt-bindings: soc: fsl: cpm_qe: convert network.txt to yaml

2024-08-12 Thread Frank Li
On Mon, Aug 12, 2024 at 12:50:35PM -0400, Frank Li wrote: > Convert binding doc newwork.txt to yaml format. > > HDLC part: > - Convert to "fsl,ucc-hdlc.yaml". > - Add missed reg and interrupt property. > - Update example to pass build. > > ethernet part: > - Convert to net/fsl,cpm-enet.yaml > - Add

[PATCH 1/1] dt-bindings: soc: fsl: cpm_qe: convert network.txt to yaml

2024-08-12 Thread Frank Li
Convert binding doc newwork.txt to yaml format. HDLC part: - Convert to "fsl,ucc-hdlc.yaml". - Add missed reg and interrupt property. - Update example to pass build. ethernet part: - Convert to net/fsl,cpm-enet.yaml - Add 0x in example, which should be hex value - Add ref to ethernet-controller.y

Re: [PATCH] dt-bindings: fsl: fsl,rcpm: fix unevaluated fsl,rcpm-wakeup property

2024-08-12 Thread Conor Dooley
On Sun, Aug 11, 2024 at 05:35:07PM +0200, Krzysztof Kozlowski wrote: > Drop the RCPM consumer example from the binding (LPUART device node), > because: > 1. Using phandles is typical syntax, thus explaining it is not needed in >the provider binding, > 2. It has 'fsl,rcpm-wakeup' property which

Re: List change - munging for From addresses

2024-08-12 Thread Konstantin Ryabitsev
On Mon, Aug 12, 2024 at 04:19:13PM GMT, Stephen Rothwell wrote: > > For the subscribers, to see how to manage you subscription, you will be > > able to end an email to for > > instructions. Hopefully you all won't find it too restrictive. > > > > Please report any problems with the list after th

Re: [RFC PATCH 1/6] ALSA: compress: add Sample Rate Converter codec support

2024-08-12 Thread Pierre-Louis Bossart
On 8/12/24 15:31, Jaroslav Kysela wrote: > On 12. 08. 24 12:24, Shengjiu Wang wrote: >> On Fri, Aug 9, 2024 at 10:01 PM Jaroslav Kysela wrote: >>> >>> On 09. 08. 24 14:52, Pierre-Louis Bossart wrote: >>> > And metadata > ioctl can be called many times which can meet the ratio modifier >

Re: [RFC PATCH 1/6] ALSA: compress: add Sample Rate Converter codec support

2024-08-12 Thread Jaroslav Kysela
On 12. 08. 24 12:24, Shengjiu Wang wrote: On Fri, Aug 9, 2024 at 10:01 PM Jaroslav Kysela wrote: On 09. 08. 24 14:52, Pierre-Louis Bossart wrote: And metadata ioctl can be called many times which can meet the ratio modifier requirement (ratio may be drift on the fly) Interesting, that's ye

Re: [PATCH] powerpc/476: Drop explicit initialization of struct i2c_device_id::driver_data to 0

2024-08-12 Thread Michael Ellerman
On Sun, 04 Aug 2024 13:20:31 +0200, Uwe Kleine-König wrote: > This driver doesn't use the driver_data member of struct i2c_device_id, > so don't explicitly initialize this member. > > This prepares putting driver_data in an anonymous union which requires > either no initialization or named designa

Re: [PATCH 0/2] arch: powerpc: Use backlight power constants

2024-08-12 Thread Michael Ellerman
On Wed, 31 Jul 2024 15:06:13 +0200, Thomas Zimmermann wrote: > Commit a1cacb8a8e70 ("backlight: Add BACKLIGHT_POWER_ constants for > power states") introduced dedicated constants for backlight power states. > Convert PowerPC code to the new constants. > > The new constants replace the fbdev consta

Re: [PATCH -next v2] powerpc: Remove useless config comment in asm/percpu.h

2024-08-12 Thread Michael Ellerman
On Wed, 07 Aug 2024 10:56:04 +0800, Jinjie Ruan wrote: > commit 0db880fc865f ("powerpc: Avoid nmi_enter/nmi_exit in real mode > interrupt.") has a config comment typo, and the #if/#else/#endif section > is small and doesn't nest additional #ifdefs so the comment is useless > and should be removed c

Re: [PATCH] powerpc: Use of_property_present()

2024-08-12 Thread Michael Ellerman
On Wed, 31 Jul 2024 13:12:47 -0600, Rob Herring (Arm) wrote: > Use of_property_present() to test for property presence rather than > of_get_property(). This is part of a larger effort to remove callers > of of_get_property() and similar functions. of_get_property() leaks > the DT property data poin

Re: [PATCH] soc/fsl/qbman: remove unused struct 'cgr_comp'

2024-08-12 Thread Michael Ellerman
On Wed, 29 May 2024 00:11:23 +0100, li...@treblig.org wrote: > 'cgr_comp' has been unused since > commit 96f413f47677 ("soc/fsl/qbman: fix issue in > qman_delete_cgr_safe()"). > > Remove it. > > > [...] Applied to powerpc/fixes. [1/1] soc/fsl/qbman: remove unused struct 'cgr_comp' https:

Re: [PATCH] powerpc/mm: Fix size of allocated PGDIR

2024-08-12 Thread Michael Ellerman
On Thu, 08 Aug 2024 11:32:47 +0200, Christophe Leroy wrote: > Commit 6b0e82791bd0 ("powerpc/e500: switch to 64 bits PGD on 85xx > (32 bits)") increased the size of PGD entries but failed to increase > the PGD directory. > > Use the size of pgd_t instead of the size of pointers to calculate > the a

Re: [PATCH] powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL

2024-08-12 Thread Michael Ellerman
On Thu, 08 Aug 2024 09:05:08 +0200, Christophe Leroy wrote: > Booting with CONFIG_DEBUG_VIRTUAL leads to following warning when > passing hugepage reservation on command line: > > Kernel command line: hugepagesz=1g hugepages=1 hugepagesz=64m hugepages=1 > hugepagesz=256m hugepages=1 noreboot >

Re: [PATCH v6 RESED 1/2] dma: replace zone_dma_bits by zone_dma_limit

2024-08-12 Thread Catalin Marinas
On Sun, Aug 11, 2024 at 10:09:35AM +0300, Baruch Siach wrote: > From: Catalin Marinas > > Hardware DMA limit might not be power of 2. When RAM range starts above > 0, say 4GB, DMA limit of 30 bits should end at 5GB. A single high bit > can not encode this limit. > > Use plain address for DMA zon

Re: [RFC PATCH 1/6] ALSA: compress: add Sample Rate Converter codec support

2024-08-12 Thread Shengjiu Wang
On Fri, Aug 9, 2024 at 10:01 PM Jaroslav Kysela wrote: > > On 09. 08. 24 14:52, Pierre-Louis Bossart wrote: > > >> And metadata > >> ioctl can be called many times which can meet the ratio modifier > >> requirement (ratio may be drift on the fly) > > > > Interesting, that's yet another way of hand

[PATCH v2] selftest/powerpc/benchmark: remove requirement libc-dev

2024-08-12 Thread Madhavan Srinivasan
Currently exec-target.c file is linked as static and this post a requirement to install libc dev package to build. Without it, build-break when compiling selftest/powerpc/benchmark. CC exec_target /usr/bin/ld: cannot find -lc: No such file or directory collect2: error: ld returned 1 exit s

[PATCH v2 4/4] powerpc/vdso: Refactor error handling

2024-08-12 Thread Michael Ellerman
Linus noticed that the error handling in __arch_setup_additional_pages() fails to clear the mm VDSO pointer if _install_special_mapping() fails. In practice there should be no actual bug, because if there's an error the VDSO pointer is cleared later in arch_setup_additional_pages(). However it's n

[PATCH v2 3/4] mm: Remove arch_unmap()

2024-08-12 Thread Michael Ellerman
Now that powerpc no longer uses arch_unmap() to handle VDSO unmapping, there are no meaningful implementions left. Drop support for it entirely, and update comments which refer to it. Suggested-by: Linus Torvalds Signed-off-by: Michael Ellerman Acked-by: David Hildenbrand Reviewed-by: Thomas Gl

[PATCH v2 2/4] powerpc/mm: Handle VDSO unmapping via close() rather than arch_unmap()

2024-08-12 Thread Michael Ellerman
Add a close() callback to the VDSO special mapping to handle unmapping of the VDSO. That will make it possible to remove the arch_unmap() hook entirely in a subsequent patch. Suggested-by: Linus Torvalds Signed-off-by: Michael Ellerman Reviewed-by: David Hildenbrand --- arch/powerpc/include/as

[PATCH v2 1/4] mm: Add optional close() to struct vm_special_mapping

2024-08-12 Thread Michael Ellerman
Add an optional close() callback to struct vm_special_mapping. It will be used, by powerpc at least, to handle unmapping of the VDSO. Although support for unmapping the VDSO was initially added for CRIU[1], it is not desirable to guard that support behind CONFIG_CHECKPOINT_RESTORE. There are othe

Re: [PATCH 1/4] mm: Add optional close() to struct vm_special_mapping

2024-08-12 Thread Michael Ellerman
David Hildenbrand writes: > On 07.08.24 14:41, Michael Ellerman wrote: >> Add an optional close() callback to struct vm_special_mapping. It will >> be used, by powerpc at least, to handle unmapping of the VDSO. >> >> Suggested-by: Linus Torvalds >> Signed-off-by: Michael Ellerman >> --- >> in

Re: [PATCH 1/4] mm: Add optional close() to struct vm_special_mapping

2024-08-12 Thread Michael Ellerman
"Liam R. Howlett" writes: > * Michael Ellerman [240807 08:41]: >> Add an optional close() callback to struct vm_special_mapping. It will >> be used, by powerpc at least, to handle unmapping of the VDSO. >> >> Suggested-by: Linus Torvalds >> Signed-off-by: Michael Ellerman >> --- >> include/li

[PATCH 1/1] soc/fsl/qbman: Use iommu_paging_domain_alloc()

2024-08-12 Thread Lu Baolu
An iommu domain is allocated in portal_set_cpu() and is attached to pcfg->dev in the same function. Use iommu_paging_domain_alloc() to make it explicit. Signed-off-by: Lu Baolu Reviewed-by: Jason Gunthorpe Link: https://lore.kernel.org/r/2024061008.88197-14-baolu...@linux.intel.com --- dri