Re: [EXT] [PATCH v8 6/6] docs: trusted-encrypted: add DCP as new trust source

2024-05-03 Thread Jarkko Sakkinen
On Tue Apr 30, 2024 at 3:03 PM EEST, David Gstir wrote: > Hi Jarkko, > > > On 30.04.2024, at 13:48, Kshitiz Varshney wrote: > > > > Hi David, > > > >> -Original Message- > >> From: David Gstir > >> Sent: Monday, April 29, 2024 5:05 PM > >> To: Kshitiz Varshney > > > >> > >> Did you

[PATCH V2] tty: hvc: hvc_opal: eliminate uses of of_node_put()

2024-05-03 Thread Lu Dai
Make use of the __free() cleanup handler to automatically free nodes when they get out of scope. Remove the need for a 'goto' as an effect. Signed-off-by: Lu Dai --- Changes since v1: Move the assignment of 'opal' to its declaration Seperate the declaration of 'np' drivers/tty/hvc/hvc_opal.c

[PATCH v4 29/29] KVM: selftests: get-reg-list: add Permission Overlay registers

2024-05-03 Thread Joey Gouly
Add new system registers: - POR_EL1 - POR_EL0 Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Marc Zyngier Cc: Oliver Upton Cc: Shuah Khan Reviewed-by: Mark Brown --- tools/testing/selftests/kvm/aarch64/get-reg-list.c | 14 ++ 1 file changed, 14

[PATCH v4 28/29] kselftest/arm64: Add test case for POR_EL0 signal frame records

2024-05-03 Thread Joey Gouly
Ensure that we get signal context for POR_EL0 if and only if POE is present on the system. Copied from the TPIDR2 test. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Brown Cc: Shuah Khan --- .../testing/selftests/arm64/signal/.gitignore | 1 +

[PATCH v4 27/29] kselftest/arm64: parse POE_MAGIC in a signal frame

2024-05-03 Thread Joey Gouly
Teach the signal frame parsing about the new POE frame, avoids warning when it is generated. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Brown Cc: Shuah Khan Reviewed-by: Mark Brown --- tools/testing/selftests/arm64/signal/testcases/testcases.c | 4 1 file

[PATCH v4 26/29] kselftest/arm64: add HWCAP test for FEAT_S1POE

2024-05-03 Thread Joey Gouly
Check that when POE is enabled, the POR_EL0 register is accessible. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Brown Cc: Shuah Khan Reviewed-by: Mark Brown --- tools/testing/selftests/arm64/abi/hwcap.c | 14 ++ 1 file changed, 14 insertions(+) diff

[PATCH v4 25/29] selftests: mm: make protection_keys test work on arm64

2024-05-03 Thread Joey Gouly
The encoding of the pkey register differs on arm64, than on x86/ppc. On those platforms, a bit in the register is used to disable permissions, for arm64, a bit enabled in the register indicates that the permission is allowed. This drops two asserts of the form: assert(read_pkey_reg() <=

[PATCH v4 24/29] selftests: mm: move fpregs printing

2024-05-03 Thread Joey Gouly
arm64's fpregs are not at a constant offset from sigcontext. Since this is not an important part of the test, don't print the fpregs pointer on arm64. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Andrew Morton Cc: Shuah Khan Cc: Dave Hansen Cc: Aneesh Kumar K.V

[PATCH v4 23/29] kselftest/arm64: move get_header()

2024-05-03 Thread Joey Gouly
Put this function in the header so that it can be used by other tests, without needing to link to testcases.c. This will be used by selftest/mm/protection_keys.c Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Andrew Morton Cc: Shuah Khan Cc: Dave Hansen Cc: Aneesh Kumar

[PATCH v4 15/29] arm64: handle PKEY/POE faults

2024-05-03 Thread Joey Gouly
If a memory fault occurs that is due to an overlay/pkey fault, report that to userspace with a SEGV_PKUERR. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/traps.h | 1 + arch/arm64/kernel/traps.c | 12 ++-- arch/arm64/mm/fault.c |

[PATCH v4 16/29] arm64: add pte_access_permitted_no_overlay()

2024-05-03 Thread Joey Gouly
We do not want take POE into account when clearing the MTE tags. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/pgtable.h | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm64/include/asm/pgtable.h

[PATCH v4 14/29] arm64: mask out POIndex when modifying a PTE

2024-05-03 Thread Joey Gouly
When a PTE is modified, the POIndex must be masked off so that it can be modified. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Catalin Marinas --- arch/arm64/include/asm/pgtable.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v4 13/29] arm64: convert protection key into vm_flags and pgprot values

2024-05-03 Thread Joey Gouly
Modify arch_calc_vm_prot_bits() and vm_get_page_prot() such that the pkey value is set in the vm_flags and then into the pgprot value. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/mman.h | 8 +++- arch/arm64/mm/mmap.c | 9 + 2

[PATCH v4 22/29] arm64: add Permission Overlay Extension Kconfig

2024-05-03 Thread Joey Gouly
Now that support for POE and Protection Keys has been implemented, add a config to allow users to actually enable it. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH v4 11/29] arm64: re-order MTE VM_ flags

2024-05-03 Thread Joey Gouly
To make it easier to share the generic PKEYs flags, move the MTE flag. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- include/linux/mm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index

[PATCH v4 12/29] arm64: add POIndex defines

2024-05-03 Thread Joey Gouly
The 3-bit POIndex is stored in the PTE at bits 60..62. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/pgtable-hwdef.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/include/asm/pgtable-hwdef.h

[PATCH v4 21/29] arm64/ptrace: add support for FEAT_POE

2024-05-03 Thread Joey Gouly
Add a regset for POE containing POR_EL0. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Mark Brown Reviewed-by: Catalin Marinas --- arch/arm64/kernel/ptrace.c | 46 ++ include/uapi/linux/elf.h | 1 + 2 files changed, 47

[PATCH v4 10/29] arm64: enable the Permission Overlay Extension for EL0

2024-05-03 Thread Joey Gouly
Expose a HWCAP and ID_AA64MMFR3_EL1_S1POE to userspace, so they can be used to check if the CPU supports the feature. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- This takes the last bit of HWCAP2, is this fine? What can we do about more features in the future?

[PATCH v4 09/29] KVM: arm64: use `at s1e1a` for POE

2024-05-03 Thread Joey Gouly
FEAT_ATS1E1A introduces a new instruction: `at s1e1a`. This is an address translation, without permission checks. POE allows read permissions to be removed from S1 by the guest. This means that an `at` instruction could fail, and not get the IPA. Switch to using `at s1e1a` so that KVM can get

[PATCH v4 19/29] arm64: enable PKEY support for CPUs with S1POE

2024-05-03 Thread Joey Gouly
Now that PKEYs support has been implemented, enable it for CPUs that support S1POE. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Acked-by: Catalin Marinas --- arch/arm64/include/asm/pkeys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v4 20/29] arm64: enable POE and PIE to coexist

2024-05-03 Thread Joey Gouly
Set the EL0/userspace indirection encodings to be the overlay enabled variants of the permissions. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/pgtable-prot.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v4 18/29] arm64: add POE signal support

2024-05-03 Thread Joey Gouly
Add PKEY support to signals, by saving and restoring POR_EL0 from the stackframe. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Mark Brown Acked-by: Szabolcs Nagy --- arch/arm64/include/uapi/asm/sigcontext.h | 7 arch/arm64/kernel/signal.c |

[PATCH v4 17/29] arm64: implement PKEYS support

2024-05-03 Thread Joey Gouly
Implement the PKEYS interface, using the Permission Overlay Extension. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/mmu.h | 1 + arch/arm64/include/asm/mmu_context.h | 51 - arch/arm64/include/asm/pgtable.h | 22 +-

[PATCH v4 07/29] KVM: arm64: Save/restore POE registers

2024-05-03 Thread Joey Gouly
Define the new system registers that POE introduces and context switch them. Signed-off-by: Joey Gouly Cc: Marc Zyngier Cc: Oliver Upton Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/kvm_host.h | 4 +++ arch/arm64/include/asm/vncr_mapping.h | 1 +

[PATCH v4 05/29] arm64: cpufeature: add Permission Overlay Extension cpucap

2024-05-03 Thread Joey Gouly
This indicates if the system supports POE. This is a CPUCAP_BOOT_CPU_FEATURE as the boot CPU will enable POE if it has it, so secondary CPUs must also have this feature. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/cpufeature.c | 9 +

[PATCH v4 06/29] arm64: context switch POR_EL0 register

2024-05-03 Thread Joey Gouly
POR_EL0 is a register that can be modified by userspace directly, so it must be context switched. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/cpufeature.h | 6 ++ arch/arm64/include/asm/processor.h | 1 + arch/arm64/include/asm/sysreg.h

[PATCH v4 08/29] KVM: arm64: make kvm_at() take an OP_AT_*

2024-05-03 Thread Joey Gouly
To allow using newer instructions that current assemblers don't know about, replace the `at` instruction with the underlying SYS instruction. Signed-off-by: Joey Gouly Cc: Marc Zyngier Cc: Oliver Upton Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/kvm_asm.h | 3 ++-

[PATCH v4 04/29] arm64: disable trapping of POR_EL0 to EL2

2024-05-03 Thread Joey Gouly
Allow EL0 or EL1 to access POR_EL0 without being trapped to EL2. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Acked-by: Catalin Marinas --- arch/arm64/include/asm/el2_setup.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH v4 03/29] mm: use ARCH_PKEY_BITS to define VM_PKEY_BITN

2024-05-03 Thread Joey Gouly
Use the new CONFIG_ARCH_PKEY_BITS to simplify setting these bits for different architectures. Signed-off-by: Joey Gouly Cc: Andrew Morton Cc: linux-fsde...@vger.kernel.org Cc: linux...@kvack.org --- fs/proc/task_mmu.c | 2 ++ include/linux/mm.h | 16 ++-- 2 files changed, 12

[PATCH v4 02/29] x86/mm: add ARCH_PKEY_BITS to Kconfig

2024-05-03 Thread Joey Gouly
The new config option specifies how many bits are in each PKEY. Signed-off-by: Joey Gouly Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: H. Peter Anvin Cc: x...@kernel.org --- arch/x86/Kconfig | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v4 00/29] arm64: Permission Overlay Extension

2024-05-03 Thread Joey Gouly
Hi all, This series implements the Permission Overlay Extension introduced in 2022 VMSA enhancements [1]. It is based on v6.9-rc5. One possible issue with this version, I took the last bit of HWCAP2. Changes since v3[2]: - Moved Kconfig to nearer the end of the series - Reworked

[PATCH v4 01/29] powerpc/mm: add ARCH_PKEY_BITS to Kconfig

2024-05-03 Thread Joey Gouly
The new config option specifies how many bits are in each PKEY. Signed-off-by: Joey Gouly Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: "Aneesh Kumar K.V" Cc: "Naveen N. Rao" Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/Kconfig | 4 1 file changed, 4

[PATCH] tty: hvc: hvc_opal: eliminate uses of of_node_put()

2024-05-03 Thread Lu Dai
Make use of the __free() cleanup handler to automatically free nodes when they get out of scope. Removes the need for a 'goto' as an effect. Signed-off-by: Lu Dai --- drivers/tty/hvc/hvc_opal.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git

Re: [PATCH v3 1/2] PCI: Add TLP Prefix reading into pcie_read_tlp_log()

2024-05-03 Thread Bjorn Helgaas
On Fri, Apr 12, 2024 at 04:36:34PM +0300, Ilpo Järvinen wrote: > pcie_read_tlp_log() handles only 4 TLP Header Log DWORDs but TLP Prefix > Log (PCIe r6.1 secs 7.8.4.12 & 7.9.14.13) may also be present. > > Generalize pcie_read_tlp_log() and struct pcie_tlp_log to handle also > TLP Prefix Log. The

Re: [PATCH 1/3] powerpc/mm: Align memory_limit value specified using mem= kernel parameter

2024-05-03 Thread Joel Savitz
On Thu, May 2, 2024 at 10:20 PM Michael Ellerman wrote: > > Joel Savitz writes: > > On Wed, Apr 17, 2024 at 10:36 AM Joel Savitz wrote: > >> > >> Acked-by: Joel Savitz > >> > > > > Hi, > > > > What is the status of this? This patch fixes a bug where a powerpc > > machine hangs at boot when

Re: [RFC PATCH v2 0/6] powerpc: pSeries: vfio: iommu: Re-enable support for SPAPR TCE VFIO

2024-05-03 Thread Shivaprasad G Bhat
On 5/2/24 06:59, Alexey Kardashevskiy wrote: On 2/5/24 00:09, Jason Gunthorpe wrote: On Tue, Apr 30, 2024 at 03:05:34PM -0500, Shivaprasad G Bhat wrote: RFC v1 was posted here [1]. As I was testing more and fixing the issues, I realized its clean to have the table_group_ops implemented the

[PATCH v3 0/3] KVM: Set vcpu->preempted/ready iff scheduled out while running

2024-05-03 Thread David Matlack
This series changes KVM to mark a vCPU as preempted/ready if-and-only-if it's scheduled out while running. i.e. Do not mark a vCPU preempted/ready if it's scheduled out during a non-KVM_RUN ioctl() or when userspace is doing KVM_RUN with immediate_exit=true. This is a logical extension of commit

[PATCH v3 1/3] KVM: Introduce vcpu->wants_to_run

2024-05-03 Thread David Matlack
Introduce vcpu->wants_to_run to indicate when a vCPU is in its core run loop, i.e. when the vCPU is running the KVM_RUN ioctl and immediate_exit was not set. Replace all references to vcpu->run->immediate_exit with !vcpu->wants_to_run to avoid TOCTOU races with userspace. For example, a malicious

[PATCH v3 2/3] KVM: Ensure new code that references immediate_exit gets extra scrutiny

2024-05-03 Thread David Matlack
Ensure that any new KVM code that references immediate_exit gets extra scrutiny by renaming it to immediate_exit__unsafe in kernel code. All fields in struct kvm_run are subject to TOCTOU races since they are mapped into userspace, which may be malicious or buggy. To protect KVM, this commit

[PATCH v3 3/3] KVM: Mark a vCPU as preempted/ready iff it's scheduled out while running

2024-05-03 Thread David Matlack
Mark a vCPU as preempted/ready if-and-only-if it's scheduled out while running. i.e. Do not mark a vCPU preempted/ready if it's scheduled out during a non-KVM_RUN ioctl() or when userspace is doing KVM_RUN with immediate_exit. Commit 54aa83c90198 ("KVM: x86: do not set st->preempted when going

Re: [PATCH v4 03/29] mm: use ARCH_PKEY_BITS to define VM_PKEY_BITN

2024-05-03 Thread Dave Hansen
On 5/3/24 06:01, Joey Gouly wrote: > #ifdef CONFIG_ARCH_HAS_PKEYS > -# define VM_PKEY_SHIFT VM_HIGH_ARCH_BIT_0 > -# define VM_PKEY_BIT0VM_HIGH_ARCH_0 /* A protection key is a 4-bit > value */ > -# define VM_PKEY_BIT1VM_HIGH_ARCH_1 /* on x86 and 5-bit value on > ppc64

Re: [PATCH v4 02/29] x86/mm: add ARCH_PKEY_BITS to Kconfig

2024-05-03 Thread Dave Hansen
On 5/3/24 06:01, Joey Gouly wrote: > The new config option specifies how many bits are in each PKEY. Acked-by: Dave Hansen

Re: [PATCH] [RFC] scsi: Convert from tasklet to BH workqueue

2024-05-03 Thread Allen Pais
> On May 2, 2024, at 7:03 PM, Michael Ellerman wrote: > > Allen Pais writes: >> The only generic interface to execute asynchronously in the BH context is >> tasklet; however, it's marked deprecated and has some design flaws. To >> replace tasklets, BH workqueue support was recently added. A

Re: [PATCH v3 0/3] arch: Remove fbdev dependency from video helpers

2024-05-03 Thread Thomas Zimmermann
Am 03.05.24 um 17:29 schrieb Arnd Bergmann: On Fri, Apr 5, 2024, at 11:04, Thomas Zimmermann wrote: Hi, if there are no further comments, can this series be merged through asm-generic? Sorry for the delay, I've merged these for asm-generic now. Thank you so much! Arnd -- --

Re: [PATCH v3 0/3] arch: Remove fbdev dependency from video helpers

2024-05-03 Thread Arnd Bergmann
On Fri, Apr 5, 2024, at 11:04, Thomas Zimmermann wrote: > Hi, > > if there are no further comments, can this series be merged through > asm-generic? Sorry for the delay, I've merged these for asm-generic now. Arnd

Re: [PATCH v3 00/11] sysctl: treewide: constify ctl_table argument of sysctl handlers

2024-05-03 Thread Thomas Weißschuh
Hey Joel, On 2024-05-03 11:03:32+, Joel Granados wrote: > Here is my feedback for your outstanding constification patches [1] and [2]. Thanks! > # You need to split the patch > The answer that you got from Jakub in the network subsystem is very clear and > baring a change of heart from the

Re: [PATCH V2] tty: hvc: hvc_opal: eliminate uses of of_node_put()

2024-05-03 Thread Greg KH
On Fri, May 03, 2024 at 04:52:15PM +0300, Lu Dai wrote: > Make use of the __free() cleanup handler to automatically free nodes > when they get out of scope. > > Remove the need for a 'goto' as an effect. > > Signed-off-by: Lu Dai > --- > Changes since v1: > Move the assignment of 'opal' to its

Re: [PATCH] tty: hvc: hvc_opal: eliminate uses of of_node_put()

2024-05-03 Thread Greg KH
On Fri, May 03, 2024 at 02:43:30PM +0300, Lu Dai wrote: > Make use of the __free() cleanup handler to automatically free nodes > when they get out of scope. > > Removes the need for a 'goto' as an effect. > > Signed-off-by: Lu Dai > --- > drivers/tty/hvc/hvc_opal.c | 9 +++-- > 1 file

[powerpc:next] BUILD SUCCESS 1fcd254733371cfa5a3602bab5ae2c9dc4bf69e6

2024-05-03 Thread kernel test robot
allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20240503 gcc arc randconfig-002-20240503 gcc arm

Re: [PATCH] tty: hvc: hvc_opal: eliminate uses of of_node_put()

2024-05-03 Thread Javier Carrasco
On 5/3/24 13:43, Lu Dai wrote: > Make use of the __free() cleanup handler to automatically free nodes > when they get out of scope. > > Removes the need for a 'goto' as an effect. > > Signed-off-by: Lu Dai > --- > drivers/tty/hvc/hvc_opal.c | 9 +++-- > 1 file changed, 3 insertions(+), 6

RE: [PATCH v3 1/3] PCI/AER: Store UNCOR_STATUS bits that might be ANFE in aer_err_info

2024-05-03 Thread Duan, Zhenzhong
>-Original Message- >From: Jonathan Cameron >Subject: Re: [PATCH v3 1/3] PCI/AER: Store UNCOR_STATUS bits that might >be ANFE in aer_err_info > >On Sun, 28 Apr 2024 03:31:11 + >"Duan, Zhenzhong" wrote: > >> Hi Jonathan, >> >> >-Original Message- >> >From: Jonathan Cameron

Re: [PATCH] Fix the address of the linuxppc-dev mailing list

2024-05-03 Thread Michael Ellerman
Stephen Rothwell writes: > This list was moved many years ago. > > Signed-off-by: Stephen Rothwell > --- > Documentation/ABI/testing/sysfs-devices-system-cpu | 14 +++--- > .../ABI/testing/sysfs-firmware-opal-powercap | 4 ++-- > Documentation/ABI/testing/sysfs-firmware-opal-psr

Re: [PATCH v4] powerpc/pseries: make max polling consistent for longer H_CALLs

2024-05-03 Thread Michael Ellerman
On Wed, 17 Apr 2024 23:12:30 -0400, Nayna Jain wrote: > Currently, plpks_confirm_object_flushed() function polls for 5msec in > total instead of 5sec. > > Keep max polling time consistent for all the H_CALLs, which take longer > than expected, to be 5sec. Also, make use of fsleep() everywhere to

Re: [PATCH v2] powerpc/pseries/iommu: LPAR panics during boot up with a frozen PE

2024-05-03 Thread Michael Ellerman
On Mon, 22 Apr 2024 15:51:41 -0500, Gaurav Batra wrote: > At the time of LPAR boot up, partition firmware provides Open Firmware > property ibm,dma-window for the PE. This property is provided on the PCI > bus the PE is attached to. > > There are execptions where the partition firmware might not

Re: [PATCH v2 0/2] powerpc/pseries: Fixes for lparstat boot reports

2024-05-03 Thread Michael Ellerman
On Fri, 12 Apr 2024 14:50:45 +0530, Shrikanth Hegde wrote: > Currently lparstat reports which shows since LPAR boot are wrong for > some fields. There is a need for storing the PIC(Pool Idle Count) at > boot for accurate reporting. PATCH 1 Does that. > > While there, it was noticed that hcall

Re: [PATCH v10 0/3] powerpc: make fadump resilient with memory add/remove events

2024-05-03 Thread Michael Ellerman
On Tue, 23 Apr 2024 01:29:29 +0530, Sourabh Jain wrote: > Problem: > > Due to changes in memory resources caused by either memory hotplug or > online/offline events, the elfcorehdr, which describes the cpus and > memory of the crashed kernel to the kernel that collects the dump (known >

Re: [PATCH linux-next] macintosh/macio-adb: replace of_node_put() with __free

2024-05-03 Thread Michael Ellerman
On Wed, 24 Apr 2024 20:37:18 +0530, sundar wrote: > use the new cleanup magic to replace of_node_put() with > __free(device_node) marking to auto release when they get out of scope. > > Applied to powerpc/next. [1/1] macintosh/macio-adb: replace of_node_put() with __free

Re: [PATCH] powerpc/pseries: Enforce hcall result buffer validity and size

2024-05-03 Thread Michael Ellerman
On Mon, 08 Apr 2024 09:08:31 -0500, Nathan Lynch wrote: > plpar_hcall(), plpar_hcall9(), and related functions expect callers to > provide valid result buffers of certain minimum size. Currently this > is communicated only through comments in the code and the compiler has > no idea. > > For

Re: [PATCH v2 1/2] selftests/powerpc: Convert pmu Makefile to for loop style

2024-05-03 Thread Michael Ellerman
On Mon, 22 Apr 2024 23:34:52 +1000, Michael Ellerman wrote: > The pmu Makefile has grown more sub directories over the years. Rather > than open coding the rules for each subdir, use for loops. > > Applied to powerpc/next. [1/2] selftests/powerpc: Convert pmu Makefile to for loop style

Re: [PATCH] powerpc: Mark memory_limit as initdata

2024-05-03 Thread Michael Ellerman
On Mon, 22 Apr 2024 21:52:31 +1000, Michael Ellerman wrote: > The `memory_limit` variable should only be used during boot, enforce > that by marking it initdata. > > Applied to powerpc/next. [1/1] powerpc: Mark memory_limit as initdata

Re: [PATCH] powerpc/dart: Drop unnecessary call to kmemleak_no_scan()

2024-05-03 Thread Michael Ellerman
On Fri, 19 Apr 2024 21:59:13 +1000, Michael Ellerman wrote: > Erhard reported that kmemleak was showing a warning at boot: > > kmemleak: Not scanning unknown object at 0xc0007f00 > CPU: 0 PID: 0 Comm: swapper Not tainted 5.19.0-rc3-PMacG5+ #2 > Call Trace: >

Re: [PATCH] MAINTAINERS: powerpc: Remove Aneesh

2024-05-03 Thread Michael Ellerman
On Tue, 30 Apr 2024 14:42:28 +1000, Michael Ellerman wrote: > Aneesh is stepping down from powerpc maintenance. > > Applied to powerpc/next. [1/1] MAINTAINERS: powerpc: Remove Aneesh https://git.kernel.org/powerpc/c/6a3e640b5dcf56fb44d66d525e01ea08633c6b8b cheers

Re: [PATCH] MAINTAINERS: MMU GATHER: Update Aneesh's address

2024-05-03 Thread Michael Ellerman
On Tue, 30 Apr 2024 14:43:27 +1000, Michael Ellerman wrote: > Aneesh's IBM address no longer works, switch to his preferred kernel.org > address. > > Applied to powerpc/next. [1/1] MAINTAINERS: MMU GATHER: Update Aneesh's address

Re: [PATCH 1/3] selftest/powerpc: Re-order *FLAGS to follow lib.mk

2024-05-03 Thread Michael Ellerman
On Thu, 29 Feb 2024 15:07:09 +0530, Madhavan Srinivasan wrote: > In some powerpc/ sub-folder Makefiles, CFLAGS are > defined before lib.mk include. Clean it up by > re-ordering it to follow after the mk include. > This is needed to support sub-folders in powerpc/ > buildable on its own. > > >

Re: [PATCH v2] powerpc/pseries: remove returning ENODEV when uevent is triggered

2024-05-03 Thread Michael Ellerman
On Thu, 11 Apr 2024 10:04:50 +0800, Lidong Zhong wrote: > We noticed the following nuisance messages during boot process > > [7.120610][ T1060] vio vio: uevent: failed to send synthetic uevent > [7.122281][ T1060] vio 4000: uevent: failed to send synthetic uevent > [7.122304][ T1060]

Re: [PATCH v2] powerpc/eeh: Permanently disable the removed device

2024-05-03 Thread Michael Ellerman
On Mon, 22 Apr 2024 13:27:37 +0530, Ganesh Goudar wrote: > When a device is hot removed on powernv, the hotplug driver clears > the device's state. However, on pseries, if a device is removed by > phyp after reaching the error threshold, the kernel remains unaware, > leading to the device not

Re: [PATCH 1/3] powerpc/mm: Align memory_limit value specified using mem= kernel parameter

2024-05-03 Thread Michael Ellerman
On Wed, 03 Apr 2024 14:06:09 +0530, Aneesh Kumar K.V (IBM) wrote: > The value specified for the memory limit is used to set a restriction on > memory usage. It is important to ensure that this restriction is within > the linear map kernel address space range. The hash page table > translation uses

[powerpc:next-test] BUILD SUCCESS cebb0005e8e4bc482151a261af649ab1a73edffd

2024-05-03 Thread kernel test robot
gcc arc allnoconfig gcc arc allyesconfig gcc arc axs103_defconfig gcc arc defconfig gcc arc randconfig-001-20240503 gcc arc

Re: [PATCH v7 00/16] mm: jit/text allocator

2024-05-03 Thread Liviu Dudau
On Fri, May 03, 2024 at 09:28:25AM +0300, Mike Rapoport wrote: > On Fri, May 03, 2024 at 01:23:30AM +0100, Liviu Dudau wrote: > > On Thu, May 02, 2024 at 04:07:05PM -0700, Luis Chamberlain wrote: > > > On Thu, May 02, 2024 at 11:50:36PM +0100, Liviu Dudau wrote: > > > > On Mon, Apr 29, 2024 at

Re: [PATCH 2/2] MAINTAINERS: Make cxl obsolete

2024-05-03 Thread Michael Ellerman
Andrew Donnellan writes: > On Fri, 2024-05-03 at 13:15 +1000, Andrew Donnellan wrote: >> This doesn't seem quite right to me, I don't think we can just >> redefine >> CONFIG_CXL as a bool, but I'll do something like this. Probably won't >> bother for CXLFLASH since they'll see it for CXL anyway,

Re: [PATCH v3 00/11] sysctl: treewide: constify ctl_table argument of sysctl handlers

2024-05-03 Thread Joel Granados
Hey Thomas Here is my feedback for your outstanding constification patches [1] and [2]. # You need to split the patch The answer that you got from Jakub in the network subsystem is very clear and baring a change of heart from the network folks, this will go in as but as a split patchset. Please

Re: [PATCH v15 00/16] Add audio support in v4l2 framework

2024-05-03 Thread Mauro Carvalho Chehab
Em Fri, 3 May 2024 10:47:19 +0900 Mark Brown escreveu: > On Thu, May 02, 2024 at 10:26:43AM +0100, Mauro Carvalho Chehab wrote: > > Mauro Carvalho Chehab escreveu: > > > > There are still time control associated with it, as audio and video > > > needs to be in sync. This is done by

[PATCH v2 1/2] powerpc/io: Avoid clang null pointer arithmetic warnings

2024-05-03 Thread Michael Ellerman
With -Wextra clang warns about pointer arithmetic using a null pointer. When building with CONFIG_PCI=n, that triggers a warning in the IO accessors, eg: In file included from linux/arch/powerpc/include/asm/io.h:672: linux/arch/powerpc/include/asm/io-defs.h:23:1: warning: performing pointer

[PATCH v2 2/2] powerpc/64: Set _IO_BASE to POISON_POINTER_DELTA not 0 for CONFIG_PCI=n

2024-05-03 Thread Michael Ellerman
There is code that builds with calls to IO accessors even when CONFIG_PCI=n, but the actual calls are guarded by runtime checks. If not those calls would be faulting, because the page at virtual address zero is (usually) not mapped into the kernel. As Arnd pointed out, it is possible a large port

Re: [PATCH 2/2] MAINTAINERS: Make cxl obsolete

2024-05-03 Thread Andrew Donnellan
On Fri, 2024-05-03 at 13:15 +1000, Andrew Donnellan wrote: > This doesn't seem quite right to me, I don't think we can just > redefine > CONFIG_CXL as a bool, but I'll do something like this. Probably won't > bother for CXLFLASH since they'll see it for CXL anyway, but I might > add a warning

Re: [PATCH v7 00/16] mm: jit/text allocator

2024-05-03 Thread Mike Rapoport
On Fri, May 03, 2024 at 01:23:30AM +0100, Liviu Dudau wrote: > On Thu, May 02, 2024 at 04:07:05PM -0700, Luis Chamberlain wrote: > > On Thu, May 02, 2024 at 11:50:36PM +0100, Liviu Dudau wrote: > > > On Mon, Apr 29, 2024 at 09:29:20AM -0700, Luis Chamberlain wrote: > > > > On Mon, Apr 29, 2024 at