[PATCH v16 13/13] powerpc: mm: Support page table check

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure On creation and clearing of a page table mapping, instrument such calls by invoking page_table_check_pte_set and page_table_check_pte_clear respectively. These calls serve as a sanity check against illegal mappings. Enable ARCH_SUPPORTS_PAGE_TABLE_CHECK for all platforms. See

[PATCH v16 12/13] powerpc: mm: Use set_pte_at_unchecked() for internal usages

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure In the new set_ptes() API, set_pte_at() (a special case of set_ptes()) is intended to be instrumented by the page table check facility. There are however several other routines that constitute the API for setting page table entries, including set_pmd_at() among others. Such rou

[PATCH v16 11/13] powerpc: mm: Implement *_user_accessible_page() for ptes

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure Page table checking depends on architectures providing an implementation of p{te,md,ud}_user_accessible_page. With refactorisations made on powerpc/mm, the pte_access_permitted() and similar methods verify whether a userland page is accessible with the required permissions. Si

[PATCH v16 10/13] powerpc: mm: Add pud_pfn() stub

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure The page table check feature requires that pud_pfn() be defined on each consuming architecture. Since only 64-bit, Book3S platforms allow for hugepages at this upper level, and since the calling code is gated by a call to pud_user_accessible_page(), which will return zero, incl

[PATCH v16 09/13] mm: Provide address parameter to p{te,md,ud}_user_accessible_page()

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure On several powerpc platforms, a page table entry may not imply whether the relevant mapping is for userspace or kernelspace. Instead, such platforms infer this by the address which is being accessed. Add an additional address argument to each of these routines in order to prov

[PATCH v16 08/13] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pte_clear()

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure This reverts commit aa232204c468 ("mm/page_table_check: remove unused parameter in [__]page_table_check_pte_clear"). Reinstate previously unused parameters for the purpose of supporting powerpc platforms, as many do not encode user/kernel ownership of the page in the pte, but

[PATCH v16 07/13] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pmd_clear()

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure This reverts commit 1831414cd729 ("mm/page_table_check: remove unused parameter in [__]page_table_check_pmd_clear"). Reinstate previously unused parameters for the purpose of supporting powerpc platforms, as many do not encode user/kernel ownership of the page in the pte, but

[PATCH v16 06/13] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pud_clear()

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure This reverts commit 931c38e16499 ("mm/page_table_check: remove unused parameter in [__]page_table_check_pud_clear"). Reinstate previously unused parameters for the purpose of supporting powerpc platforms, as many do not encode user/kernel ownership of the page in the pte, but

[PATCH v16 05/13] mm/page_table_check: Provide addr parameter to page_table_check_ptes_set()

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure To provide support for powerpc platforms, provide an addr parameter to the __page_table_check_ptes_set() and page_table_check_ptes_set() routines. This parameter is needed on some powerpc platforms which do not encode whether a mapping is for user or kernel in the pte. On such

[PATCH v16 00/13] Support page table check on PowerPC

2025-08-12 Thread Andrew Donnellan
[Andrew: as previously discussed, are we still happy to take this via mm? Maddy has acked the powerpc changes.] Support page table check on all PowerPC platforms. This works by serialising assignments, reassignments and clears of page table entries at each level in order to ensure that anonymous m

[PATCH v16 02/13] arm64/mm: Add addr parameter to __ptep_get_and_clear_anysz()

2025-08-12 Thread Andrew Donnellan
To provide support for page table check on powerpc, we need to reinstate the address parameter in several functions, including page_table_check_{pte,pmd,pud}_clear(). In preparation for this, add the addr parameter to arm64's __ptep_get_and_clear_anysz() and change its callsites accordingly. Sign

[PATCH v16 04/13] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pmd[s]_set()

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure This reverts commit a3b837130b58 ("mm/page_table_check: remove unused parameter in [__]page_table_check_pmd_set"). Reinstate previously unused parameters for the purpose of supporting powerpc platforms, as many do not encode user/kernel ownership of the page in the pte, but in

[PATCH v16 03/13] mm/page_table_check: Reinstate address parameter in [__]page_table_check_pud[s]_set()

2025-08-12 Thread Andrew Donnellan
From: Rohan McLure This reverts commit 6d144436d954 ("mm/page_table_check: remove unused parameter in [__]page_table_check_pud_set"). Reinstate previously unused parameters for the purpose of supporting powerpc platforms, as many do not encode user/kernel ownership of the page in the pte, but in

[PATCH v16 01/13] arm64/mm: Add addr parameter to __set_ptes_anysz()

2025-08-12 Thread Andrew Donnellan
To provide support for page table check on powerpc, we need to reinstate the address parameter in several functions, including page_table_check_{ptes,pmds,puds}_set(). In preparation for this, add the addr parameter to arm64's __set_ptes_anysz() and change its callsites accordingly. Signed-off-by

[PATCH 5/5] PCI/ERR: Remove remnants of .link_reset() callback

2025-08-12 Thread Lukas Wunner
Back in 2017, commit 2fd260f03b6a ("PCI/AER: Remove unused .link_reset() callback") removed .link_reset() from struct pci_error_handlers, but left a few code comments behind which still mention it. Remove them. The code comments in the SolarFlare Ethernet drivers point out that no .mmio_enabled()

[PATCH 4/5] PCI/ERR: Update device error_state already after reset

2025-08-12 Thread Lukas Wunner
After a Fatal Error has been reported by a device and has been recovered through a Secondary Bus Reset, AER updates the device's error_state to pci_channel_io_normal before invoking its driver's ->resume() callback. By contrast, EEH updates the error_state earlier, namely after resetting the devic

[PATCH 3/5] PCI/ERR: Notify drivers on failure to recover

2025-08-12 Thread Lukas Wunner
According to Documentation/PCI/pci-error-recovery.rst, the following shall occur on failure to recover from a PCIe Uncorrectable Error: STEP 6: Permanent Failure - A "permanent failure" has occurred, and the platform cannot recover the device. The platform will cal

[PATCH 2/5] PCI/ERR: Fix uevent on failure to recover

2025-08-12 Thread Lukas Wunner
Upon failure to recover from a PCIe error through AER, DPC or EDR, a uevent is sent to inform user space about disconnection of the bridge whose subordinate devices failed to recover. However the bridge itself is not disconnected. Instead, a uevent should be sent for each of the subordinate devic

[PATCH 1/5] PCI/AER: Allow drivers to opt in to Bus Reset on Non-Fatal Errors

2025-08-12 Thread Lukas Wunner
When Advanced Error Reporting was introduced in September 2006 by commit 6c2b374d7485 ("PCI-Express AER implemetation: AER core and aerdriver"), it sought to adhere to the recovery flow and callbacks specified in Documentation/PCI/pci-error-recovery.rst. That document had been added in January 200

[PATCH 0/5] PCI: Reduce AER / EEH deviations

2025-08-12 Thread Lukas Wunner
The kernel supports three different PCI error recovery mechanisms: * AER per PCIe r7.0 sec 6.2 (drivers/pci/pcie/aer.c + err.c) * EEH on PowerPC (arch/powerpc/kernel/eeh_driver.c) * zPCI on s390 (arch/s390/pci/pci_event.c) In theory, they should all follow Documentation/PCI/pci-error-recovery.rst

Re: [PATCH v1 1/2] mm/migrate: remove MIGRATEPAGE_UNMAP

2025-08-12 Thread Lance Yang
On Mon, Aug 11, 2025 at 10:47 PM David Hildenbrand wrote: > [...] > +++ b/mm/migrate.c > @@ -1176,16 +1176,6 @@ static int migrate_folio_unmap(new_folio_t > get_new_folio, > bool locked = false; > bool dst_locked = false; > > - if (folio_ref_count(src) == 1) { > -

Re: [PATCH v1 2/2] treewide: remove MIGRATEPAGE_SUCCESS

2025-08-12 Thread Byungchul Park
On Mon, Aug 11, 2025 at 04:39:48PM +0200, David Hildenbrand wrote: > At this point MIGRATEPAGE_SUCCESS is misnamed for all folio users, > and now that we remove MIGRATEPAGE_UNMAP, it's really the only "success" > return value that the code uses and expects. > > Let's just get rid of MIGRATEPAGE_SU

[PATCH 3/4] soc: fsl: qe: Add support of IRQ in QE GPIO

2025-08-12 Thread Christophe Leroy
In the QE, a few GPIOs are IRQ capable. Similarly to commit 726bd223105c ("powerpc/8xx: Adding support of IRQ in MPC8xx GPIO"), add IRQ support to QE GPIO. Add property 'fsl,qe-gpio-irq-mask' similar to 'fsl,cpm1-gpio-irq-mask' that define which of the GPIOs have IRQs. Here is an exemple for port

[PATCH v2 4/4] ASoc: fsl: fsl_qmc_audio: Drop struct qmc_dai_chan

2025-08-12 Thread Christophe Leroy
prtd_tx and prtd_rx members are not used anymore and only qmc_chan member remains so struct qmc_dai_chan has become pointless. Use qmc_chan directly and drop struct qmc_dai_chan. Signed-off-by: Christophe Leroy --- v2: New --- sound/soc/fsl/fsl_qmc_audio.c | 50 +

[PATCH v2 9/9] powerpc/pseries: HVPIPE changes to support migration

2025-08-12 Thread Haren Myneni
The hypervisor assigns one pipe per partition for all sources and assigns new pipe after migration. Also the partition ID that is used by source as its target ID may be changed after the migration. So disable hvpipe during SUSPEND event with ‘hvpipe enable’ system parameter value = 0 and enable it

[PATCH v2 7/9] powerpc/pseries: Enable HVPIPE event message interrupt

2025-08-12 Thread Haren Myneni
The hypervisor signals the OS via a Hypervisor Pipe Event external interrupt when data is available to be received from the pipe. Then the OS should call RTAS check-exception and provide the input Event Mask as defined for the ‘ibm,hvpipe-msg-events’. In response, check-exception will return an ev

[PATCH v2 8/9] powerpc/pseries: Enable hvpipe with ibm,set-system-parameter RTAS

2025-08-12 Thread Haren Myneni
The partition uses “Hypervisor Pipe OS Enablement Notification” system parameter token (value = 64) to enable / disable hvpipe in the hypervisor. Once hvpipe is enabled, the hypervisor notifies OS if the payload is pending for that partition from any source. This system parameter token takes 1 byte

[PATCH v2 6/9] powerpc/pseries: Wakeup hvpipe FD when the payload is pending

2025-08-12 Thread Haren Myneni
The user space polls on the wait_queue for the payload from the specific source. The hypervisor interrupts the OS when the pipe status for the specific source is changed such as payload is available for the partition or pipe to the source is closed. The OS retrieves the HVPIPE event message with ch

[PATCH v2 5/9] powerpc/pseries: Receive payload with ibm,receive-hvpipe-msg RTAS

2025-08-12 Thread Haren Myneni
ibm,receive-hvpipe-msg RTAS call is used to receive data from the source (Ex: Hardware Management Console) over the hypervisor pipe. The hypervisor will signal the OS via a Hypervisor Pipe Event external interrupt when data is available to be received from the pipe and the event message has the sou

[PATCH v2 4/9] powerpc/pseries: Send payload with ibm,send-hvpipe-msg RTAS

2025-08-12 Thread Haren Myneni
ibm,send-hvpipe-msg RTAS call is used to send data to the source (Ex: Hardware Management Console) over the hypervisor pipe. The maximum data length of 4048 bytes is supported with this RTAS call right now. The user space uses write() to send this payload which invokes this RTAS. Then the write ret

[PATCH v2 1/9] powerpc/pseries: Define papr-hvpipe ioctl

2025-08-12 Thread Haren Myneni
PowerPC FW introduced HVPIPE RTAS calls such as ibm,send-hvpipe-msg and ibm,receive-hvpipe-msg for the user space to exchange information with different sources such as Hardware Management Consoles (HMC). HVPIPE_IOC_CREATE_HANDLE is defined to use /dev/papr-hvpipe interface for ibm,send-hvpipe-msg

[PATCH v2 3/9] powerpc/pseries: Add papr-hvpipe char driver for HVPIPE interfaces

2025-08-12 Thread Haren Myneni
The hypervisor provides ibm,send-hvpipe-msg and ibm,receive-hvpipe-msg RTAS calls which can be used by the partition to communicate through an inband hypervisor channel with different external sources such as Hardware Management Console (HMC). The information exchanged, whether it be messages, raw

[PATCH v2 2/9] powerpc/pseries: Define HVPIPE specific macros

2025-08-12 Thread Haren Myneni
Define HVPIPE specific macros which are needed to support ibm,send-hvpipe-msg and ibm,receive-hvpipe-msg RTAS calls and used to handle HVPIPE message events. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/rtas.h | 9 + arch/powerpc/kernel/rtas.c | 24 +

[PATCH v2 0/9] powerpc/pseries: Add hypervisor pipe (HVPIPE) suport

2025-08-12 Thread Haren Myneni
On powerPC systems, the Hardware Management Console (HMC) is used to create and manage logical partitions (LPAR) and both HMC and LPARs exchange information over Ethernet which can expose security implications. Hence the current method of communication is not viable for secure boot configuration.

Re: [PATCH v3 05/11] mm/huge_memory: mark PMD mappings of the huge zero folio special

2025-08-12 Thread Lorenzo Stoakes
On Mon, Aug 11, 2025 at 01:26:25PM +0200, David Hildenbrand wrote: > The huge zero folio is refcounted (+mapcounted -- is that a word?) > differently than "normal" folios, similarly (but different) to the ordinary > shared zeropage. > > For this reason, we special-case these pages in > vm_normal_pa

Re: [PATCH v3 11/11] mm: rename vm_ops->find_special_page() to vm_ops->find_normal_page()

2025-08-12 Thread Lorenzo Stoakes
On Mon, Aug 11, 2025 at 01:26:31PM +0200, David Hildenbrand wrote: > ... and hide it behind a kconfig option. There is really no need for > any !xen code to perform this check. > > The naming is a bit off: we want to find the "normal" page when a PTE > was marked "special". So it's really not "find

Re: [PATCH 1/6] KVM: s390/vfio-ap: Use kvm_is_gpa_in_memslot() instead of open coded equivalent

2025-08-12 Thread Anthony Krowiak
On 7/29/25 1:42 PM, Sean Christopherson wrote: Use kvm_is_gpa_in_memslot() to check the validity of the notification indicator byte address instead of open coding equivalent logic in the VFIO AP driver. Opportunistically use a dedicated wrapper that exists and is exported expressly for the VF

Re: [PATCH v3 10/11] mm: introduce and use vm_normal_page_pud()

2025-08-12 Thread Lorenzo Stoakes
On Mon, Aug 11, 2025 at 01:26:30PM +0200, David Hildenbrand wrote: > Let's introduce vm_normal_page_pud(), which ends up being fairly simple > because of our new common helpers and there not being a PUD-sized zero > folio. > > Use vm_normal_page_pud() in folio_walk_start() to resolve a TODO, > stru

Re: [PATCH v3 09/11] mm/memory: factor out common code from vm_normal_page_*()

2025-08-12 Thread Lorenzo Stoakes
On Mon, Aug 11, 2025 at 01:26:29PM +0200, David Hildenbrand wrote: > Let's reduce the code duplication and factor out the non-pte/pmd related > magic into __vm_normal_page(). > > To keep it simpler, check the pfn against both zero folios, which > shouldn't really make a difference. > > It's a good

Re: [PATCH v3 06/11] powerpc/ptdump: rename "struct pgtable_level" to "struct ptdump_pglevel"

2025-08-12 Thread Lorenzo Stoakes
On Tue, Aug 12, 2025 at 08:39:36PM +0200, Christophe Leroy wrote: > Hi Lorenzo, > > Le 12/08/2025 à 20:23, Lorenzo Stoakes a écrit : > > On Mon, Aug 11, 2025 at 01:26:26PM +0200, David Hildenbrand wrote: > > > We want to make use of "pgtable_level" for an enum in core-mm. Other > > > architectures

Re: [PATCH v3 06/11] powerpc/ptdump: rename "struct pgtable_level" to "struct ptdump_pglevel"

2025-08-12 Thread Christophe Leroy
Hi Lorenzo, Le 12/08/2025 à 20:23, Lorenzo Stoakes a écrit : On Mon, Aug 11, 2025 at 01:26:26PM +0200, David Hildenbrand wrote: We want to make use of "pgtable_level" for an enum in core-mm. Other architectures seem to call "struct pgtable_level" either: * "struct pg_level" when not exposed in

[PATCH 4/4] dt-bindings: soc: fsl: qe: Add an interrupt controller for QUICC Engine Ports

2025-08-12 Thread Christophe Leroy
The QUICC Engine provides interrupts for a few I/O ports. This is handled via a separate interrupt ID and managed via a triplet of dedicated registers hosted by the SoC. Implement an interrupt driver for it for that those IRQs can then be linked to the related GPIOs. Signed-off-by: Christophe Ler

[PATCH 1/4] soc: fsl: qe: Add an interrupt controller for QUICC Engine Ports

2025-08-12 Thread Christophe Leroy
The QUICC Engine provides interrupts for a few I/O ports. This is handled via a separate interrupt ID and managed via a triplet of dedicated registers hosted by the SoC. Implement an interrupt driver for it for that those IRQs can then be linked to the related GPIOs. The number of ports for which

Re: [PATCH v3 08/11] mm/memory: convert print_bad_pte() to print_bad_page_map()

2025-08-12 Thread Lorenzo Stoakes
On Mon, Aug 11, 2025 at 01:26:28PM +0200, David Hildenbrand wrote: > print_bad_pte() looks like something that should actually be a WARN > or similar, but historically it apparently has proven to be useful to > detect corruption of page tables even on production systems -- report > the issue and ke

Re: [RFC v2 6/9] sched/core: Push current task out if CPU is marked as avoid

2025-08-12 Thread Shrikanth Hegde
Sorry for the delay in response to bloat-o-meter report. Since stop_one_cpu_nowait needs protection against race, need to add a field in rq. So ifdef check of CONFIG_PARAVIRT makes sense. Since the task is running, need to use the stopper class to push the task out. Use __balance_push_cpu_s

Re: [PATCH v3 07/11] mm/rmap: convert "enum rmap_level" to "enum pgtable_level"

2025-08-12 Thread Lorenzo Stoakes
On Mon, Aug 11, 2025 at 01:26:27PM +0200, David Hildenbrand wrote: > Let's factor it out, and convert all checks for unsupported levels to > BUILD_BUG(). The code is written in a way such that force-inlining will > optimize out the levels. > > Signed-off-by: David Hildenbrand Nice cleanup! This L

Re: [PATCH v3 06/11] powerpc/ptdump: rename "struct pgtable_level" to "struct ptdump_pglevel"

2025-08-12 Thread Lorenzo Stoakes
On Mon, Aug 11, 2025 at 01:26:26PM +0200, David Hildenbrand wrote: > We want to make use of "pgtable_level" for an enum in core-mm. Other > architectures seem to call "struct pgtable_level" either: > * "struct pg_level" when not exposed in a header (riscv, arm) > * "struct ptdump_pg_level" when exp

Re: [PATCH v2 1/1] sched: preempt: Move dynamic keys into kernel/sched

2025-08-12 Thread Shrikanth Hegde
On 7/16/25 15:17, Shrikanth Hegde wrote: Dynamic preemption can be static key or static call based. Static key is used to check kernel preemption depending on the current preemption model. i.e enable for lazy, full. Code is currently spread across entry/common.c, arm64 and latest being powerp

Re: [PATCH 4/4] dt-bindings: soc: fsl: qe: Add an interrupt controller for QUICC Engine Ports

2025-08-12 Thread Rob Herring
On Tue, Aug 12, 2025 at 10:23 AM Krzysztof Kozlowski wrote: > > On 12/08/2025 13:02, Christophe Leroy wrote: > > The QUICC Engine provides interrupts for a few I/O ports. This is > > handled via a separate interrupt ID and managed via a triplet of > > dedicated registers hosted by the SoC. > > > >

Re: [PATCH 3/4] soc: fsl: qe: Add support of IRQ in QE GPIO

2025-08-12 Thread Krzysztof Kozlowski
On 12/08/2025 13:02, Christophe Leroy wrote: > > qe_gc = kzalloc(sizeof(*qe_gc), GFP_KERNEL); > if (!qe_gc) { > @@ -313,6 +324,14 @@ static int qe_gpio_probe(struct platform_device *ofdev) > > spin_lock_init(&qe_gc->lock); > > + if (!of_property_read_u32(np, "fsl,qe-gpio

Re: [PATCH 4/4] dt-bindings: soc: fsl: qe: Add an interrupt controller for QUICC Engine Ports

2025-08-12 Thread Krzysztof Kozlowski
On 12/08/2025 13:02, Christophe Leroy wrote: > The QUICC Engine provides interrupts for a few I/O ports. This is > handled via a separate interrupt ID and managed via a triplet of > dedicated registers hosted by the SoC. > > Implement an interrupt driver for it for that those IRQs can then > be li

[PATCH 2/4] soc: fsl: qe: Change GPIO driver to a proper platform driver

2025-08-12 Thread Christophe Leroy
In order to be able to add interrupts to the GPIOs, first change the QE GPIO driver to the proper platform driver in order to allow initialisation to be done in the right order, otherwise the GPIOs get added before the interrupts are registered. Signed-off-by: Christophe Leroy --- drivers/soc/fs

[PATCH 0/4] Add support of IRQs to QUICC ENGINE GPIOs

2025-08-12 Thread Christophe Leroy
The QUICC Engine provides interrupts for a few I/O ports. This is handled via a separate interrupt ID and managed via a triplet of dedicated registers hosted by the SoC. Implement an interrupt driver for those IRQs then add IRQs capability to the QUICC ENGINE GPIOs. The number of GPIOs for which

Re: [PATCH 4/4] dt-bindings: soc: fsl: qe: Add an interrupt controller for QUICC Engine Ports

2025-08-12 Thread Rob Herring (Arm)
On Tue, 12 Aug 2025 13:02:54 +0200, Christophe Leroy wrote: > The QUICC Engine provides interrupts for a few I/O ports. This is > handled via a separate interrupt ID and managed via a triplet of > dedicated registers hosted by the SoC. > > Implement an interrupt driver for it for that those IRQs

Re: [PATCH 3/4] soc: fsl: qe: Add support of IRQ in QE GPIO

2025-08-12 Thread Bartosz Golaszewski
On Tue, 12 Aug 2025 13:02:53 +0200, Christophe Leroy said: > In the QE, a few GPIOs are IRQ capable. Similarly to > commit 726bd223105c ("powerpc/8xx: Adding support of IRQ in MPC8xx > GPIO"), add IRQ support to QE GPIO. > > Add property 'fsl,qe-gpio-irq-mask' similar to > 'fsl,cpm1-gpio-irq-mask'

[PATCH v2 3/4] ASoC: fsl: fsl_qmc_audio: Only request completion on last channel

2025-08-12 Thread Christophe Leroy
In non-interleaved mode, several QMC channels are used in sync. More details can be found in commit 188d9cae5438 ("ASoC: fsl: fsl_qmc_audio: Add support for non-interleaved mode.") At the time being, an interrupt is requested on each channel to perform capture/playback completion, allthough the com

[PATCH v2 1/4] soc: fsl: qmc: Only set completion interrupt when needed

2025-08-12 Thread Christophe Leroy
When no post-completion processing is expected, don't waste time handling useless interrupts. Only set QMC_BD_[R/T]X_I when a completion function is passed in, and perform seamless completion on submit for interruptless buffers. Signed-off-by: Christophe Leroy --- v2: Keep the UB flag to mark no

Re: [PATCH 2/4] soc: fsl: qe: Change GPIO driver to a proper platform driver

2025-08-12 Thread Bartosz Golaszewski
On Tue, 12 Aug 2025 13:02:52 +0200, Christophe Leroy said: > In order to be able to add interrupts to the GPIOs, first change the > QE GPIO driver to the proper platform driver in order to allow > initialisation to be done in the right order, otherwise the GPIOs > get added before the interrupts a

Re: [PATCH 2/4] soc: fsl: qe: Change GPIO driver to a proper platform driver

2025-08-12 Thread Bartosz Golaszewski
On Tue, 12 Aug 2025 13:02:52 +0200, Christophe Leroy said: > In order to be able to add interrupts to the GPIOs, first change the > QE GPIO driver to the proper platform driver in order to allow > initialisation to be done in the right order, otherwise the GPIOs > get added before the interrupts a

Re: [PATCH v2 00/12] mm/kasan: make kasan=on|off work for all three modes

2025-08-12 Thread Baoquan He
Forgot adding related ARCH mailing list or people to CC, add them. On 08/12/25 at 08:49pm, Baoquan He wrote: > Currently only hw_tags mode of kasan can be enabled or disabled with > kernel parameter kasan=on|off for built kernel. For kasan generic and > sw_tags mode, there's no way to disable them

[PATCH 4/4] mm/kasan: remove kasan_arch_is_ready()

2025-08-12 Thread Baoquan He
Now there's no any place where kasan_arch_is_ready() is needed, remove all its invocations. Signed-off-by: Baoquan He --- mm/kasan/common.c | 9 +++-- mm/kasan/generic.c | 9 - mm/kasan/kasan.h | 6 -- mm/kasan/shadow.c | 18 -- 4 files changed, 3 insertion

[PATCH 3/4] arch/um: remove kasan_arch_is_ready()

2025-08-12 Thread Baoquan He
From: Sabyrzhan Tasbolatov With the help of static key kasan_flag_enabled, kasan_arch_is_ready() is not needed any more. So reomve the unneeded kasan_arch_is_ready() and the relevant codes. And also error out if both CONFIG_STATIC_LINK and CONFIG_KASAN_INLINE are set at the same time as UML supp

[PATCH 2/4] arch/powerpc: remove kasan_arch_is_ready()

2025-08-12 Thread Baoquan He
From: Sabyrzhan Tasbolatov With the help of static key kasan_flag_enabled, kasan_arch_is_ready() is not needed any more. So reomve the unneeded kasan_arch_is_ready() and the relevant codes. Signed-off-by: Sabyrzhan Tasbolatov Signed-off-by: Baoquan He --- arch/powerpc/include/asm/kasan.h

[PATCH 1/4] arch/loongarch: remove kasan_arch_is_ready()

2025-08-12 Thread Baoquan He
From: Sabyrzhan Tasbolatov With the help of static key kasan_flag_enabled, kasan_arch_is_ready() is not needed any more. So reomve the unneeded kasan_arch_is_ready() and the relevant codes. Here, move kasan_flag_enabled enabling before populating shadow of liner mapping regions so that kasan_mem

[PATCH 0/4] mm/kasan: remove kasan_arch_is_ready()

2025-08-12 Thread Baoquan He
These are made on top of below patchset in which all functional functions will be skipped if kasan is disabled by checking kasan_enabled(). With the changes, kasan_arch_is_ready() can be easily cleaned up to simplify code. [PATCH v2 00/12] mm/kasan: make kasan=on|off work for all three modes https

[PATCH v2 0/4] ASoC: fsl: fsl_qmc_audio: Reduce amount of interrupts

2025-08-12 Thread Christophe Leroy
This series reduces significantly the amount of interrupts on fsl_qmc_audio device. Patches 1 and 2 are preparatory patches. Patch 3 is the main change Patch 4 is a cleanup which is enabled by previous patch Changes in v2: - Don't remove UB bit (Patch 1, comment from Herve Codina) - Make sure aud

[PATCH v2 2/4] ASoc: fsl: fsl_qmc_audio: Ensure audio channels are ordered in TDM bus

2025-08-12 Thread Christophe Leroy
To reduce complexity of interrupt handling in following patch, ensure audio channels are configured in the same order as timeslots on the TDM bus. If we need a given ordering of audio sources in the audio frame, it is possible to re-order codecs on the TDM bus, no need to mix up timeslots in channe

Re: [PATCH v4 00/24] vdso: Reject absolute relocations during build

2025-08-12 Thread Miguel Ojeda
On Tue, Aug 12, 2025 at 7:44 AM Thomas Weißschuh wrote: > > Kbuild and Rust folks: This contains custom definitions of hostprog > bindgen and rust library commands. > These are currently only defined inside the subsystem directory. > Let me know if they should go into scripts/Makefile.host. Glad

Re: [PATCH] ASoC: fsl_sai: replace regmap_write with regmap_update_bits

2025-08-12 Thread Mark Brown
On Thu, 07 Aug 2025 10:03:18 +0800, Shengjiu Wang wrote: > Use the regmap_write() for software reset in fsl_sai_config_disable would > cause the FSL_SAI_CSR_BCE bit to be cleared. Refer to > commit 197c53c8ecb34 ("ASoC: fsl_sai: Don't disable bitclock for i.MX8MP") > FSL_SAI_CSR_BCE should not be c

Re: [PATCH] dt-bindings: powerpc: Drop duplicate fsl/mpic.txt

2025-08-12 Thread Crystal Wood
On Thu, Aug 07, 2025 at 04:44:30PM -0500, Rob Herring (Arm) wrote: > The chrp,open-pic binding schema already supports the "fsl,mpic" > compatible. A couple of properties are missing, so add them and remove > fsl/mpic.txt. > > Signed-off-by: Rob Herring (Arm) What about the 4-cell interrupt spec

Re: [PATCH v1 2/2] treewide: remove MIGRATEPAGE_SUCCESS

2025-08-12 Thread David Sterba
On Mon, Aug 11, 2025 at 04:39:48PM +0200, David Hildenbrand wrote: > At this point MIGRATEPAGE_SUCCESS is misnamed for all folio users, > and now that we remove MIGRATEPAGE_UNMAP, it's really the only "success" > return value that the code uses and expects. > > Let's just get rid of MIGRATEPAGE_SU