[PATCH 12/12] mm/memremap: Remove unused devmap_managed_key

2025-05-28 Thread Alistair Popple
It's no longer used so remove it. Signed-off-by: Alistair Popple --- mm/memremap.c | 27 --- 1 file changed, 27 deletions(-) diff --git a/mm/memremap.c b/mm/memremap.c index 2ea5322..5deb181 100644 --- a/mm/memremap.c +++ b/mm/memremap.c @@ -38,30 +38,6 @@ unsigned long

[PATCH 11/12] mm: Remove callers of pfn_t functionality

2025-05-28 Thread Alistair Popple
All PFN_* pfn_t flags have been removed. Therefore there is no longer a need for the pfn_t type and all uses can be replaced with normal pfns. Signed-off-by: Alistair Popple Reviewed-by: Christoph Hellwig --- arch/x86/mm/pat/memtype.c| 6 +- drivers/dax/device.c

[PATCH 07/12] mm: Remove redundant pXd_devmap calls

2025-05-28 Thread Alistair Popple
DAX was the only thing that created pmd_devmap and pud_devmap entries however it no longer does as DAX pages are now refcounted normally and pXd_trans_huge() returns true for those. Therefore checking both pXd_devmap and pXd_trans_huge() is redundant and the former can be removed without changing b

[PATCH 10/12] mm: Remove devmap related functions and page table bits

2025-05-28 Thread Alistair Popple
Now that DAX and all other reference counts to ZONE_DEVICE pages are managed normally there is no need for the special devmap PTE/PMD/PUD page table bits. So drop all references to these, freeing up a software defined page table bit on architectures supporting it. Signed-off-by: Alistair Popple A

[PATCH 09/12] powerpc: Remove checks for devmap pages and PMDs/PUDs

2025-05-28 Thread Alistair Popple
PFN_DEV no longer exists. This means no devmap PMDs or PUDs will be created, so checking for them is redundant. Instead mappings of pages that would have previously returned true for pXd_devmap() will return true for pXd_trans_huge() Signed-off-by: Alistair Popple --- arch/powerpc/mm/book3s64/ha

[PATCH 08/12] mm/khugepaged: Remove redundant pmd_devmap() check

2025-05-28 Thread Alistair Popple
The only users of pmd_devmap were device dax and fs dax. The check for pmd_devmap() in check_pmd_state() is therefore redundant as callers explicitly check for is_zone_device_page(), so this check can be dropped. Signed-off-by: Alistair Popple --- mm/khugepaged.c | 2 -- 1 file changed, 2 deleti

[PATCH 02/12] mm: Convert pXd_devmap checks to vma_is_dax

2025-05-28 Thread Alistair Popple
Currently dax is the only user of pmd and pud mapped ZONE_DEVICE pages. Therefore page walkers that want to exclude DAX pages can check pmd_devmap or pud_devmap. However soon dax will no longer set PFN_DEV, meaning dax pages are mapped as normal pages. Ensure page walkers that currently use pXd_de

[PATCH 06/12] mm/gup: Remove pXX_devmap usage from get_user_pages()

2025-05-28 Thread Alistair Popple
GUP uses pXX_devmap() calls to see if it needs to a get a reference on the associated pgmap data structure to ensure the pages won't go away. However it's a driver responsibility to ensure that if pages are mapped (ie. discoverable by GUP) that they are not offlined or removed from the memmap so th

[PATCH 04/12] mm: Convert vmf_insert_mixed() from using pte_devmap to pte_special

2025-05-28 Thread Alistair Popple
DAX no longer requires device PTEs as it always has a ZONE_DEVICE page associated with the PTE that can be reference counted normally. Other users of pte_devmap are drivers that set PFN_DEV when calling vmf_insert_mixed() which ensures vm_normal_page() returns NULL for these entries. There is no r

[PATCH 00/12] mm: Remove pXX_devmap page table bit and pfn_t type

2025-05-28 Thread Alistair Popple
Changes from v2 of the RFC[1]: - My ZONE_DEVICE refcount series has been merged as commit 7851bf649d42 (Patch series "fs/dax: Fix ZONE_DEVICE page reference counts", v9.) which is included in v6.15 so have rebased on top of that. - No major changes required for the rebase other than fixi

[PATCH 03/12] mm/pagewalk: Skip dax pages in pagewalk

2025-05-28 Thread Alistair Popple
Previously dax pages were skipped by the pagewalk code as pud_special() or vm_normal_page{_pmd}() would be false for DAX pages. Now that dax pages are refcounted normally that is no longer the case, so add explicit checks to skip them. Signed-off-by: Alistair Popple --- include/linux/memremap.h

[PATCH 01/12] mm: Remove PFN_MAP, PFN_SG_CHAIN and PFN_SG_LAST

2025-05-28 Thread Alistair Popple
The PFN_MAP flag is no longer used for anything, so remove it. The PFN_SG_CHAIN and PFN_SG_LAST flags never appear to have been used so also remove them. Signed-off-by: Alistair Popple Reviewed-by: Christoph Hellwig --- include/linux/pfn_t.h | 31 +++ mm/

Re: WARNING: CPU: 12 PID: 44394 at arch/powerpc/kernel/process.c:437 giveup_all+0x90/0x1d0 (v6.14.8, Talos II)

2025-05-28 Thread Srikar Dronamraju
* Erhard Furtner [2025-05-27 20:47:28]: > On Tue, 27 May 2025 14:19:13 +0530 > Srikar Dronamraju wrote: > > > > Getting these from time to time when I run the machine for longer periods > > > building: > > > > > > [...] > > > [ cut here ] > > > WARNING: CPU: 12 PID: 44

Re: [PATCH v5 3/4] tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC

2025-05-28 Thread Qunqin Zhao
在 2025/5/14 下午9:46, Stefano Garzarella 写道: From: Stefano Garzarella This driver does not support interrupts, and receiving the response is synchronous with sending the command. Enable synchronous send() with TPM_CHIP_FLAG_SYNC, which implies that ->send() already fills the provided buffer wi

Re: [PATCH v4 4/5] PCI: host-common: Add link down handling for host bridges

2025-05-28 Thread Bjorn Helgaas
On Thu, May 08, 2025 at 12:40:33PM +0530, Manivannan Sadhasivam wrote: > The PCI link, when down, needs to be recovered to bring it back. But that > cannot be done in a generic way as link recovery procedure is specific to > host bridges. So add a new API pci_host_handle_link_down() that could be >

[PATCH 2/2] powerpc/fprobe: fix updated fprobe for function-graph tracer

2025-05-28 Thread Aditya Bodkhe
From: Hari Bathini Since commit 4346ba160409 ("fprobe: Rewrite fprobe on function-graph tracer"), FPROBE depends on HAVE_FUNCTION_GRAPH_FREGS. With previous patch adding HAVE_FUNCTION_GRAPH_FREGS for powerpc, FPROBE can be enabled on powerpc. But with the commit b5fa903b7f7c ("fprobe: Add fprobe_

[PATCH 1/2] powerpc/ftrace: support CONFIG_FUNCTION_GRAPH_RETVAL

2025-05-28 Thread Aditya Bodkhe
From: Aditya Bodkhe commit a1be9ccc57f0 ("function_graph: Support recording and printing the return value of function") introduced support for function graph return value tracing. Additionally, commit a3ed4157b7d8 ("fgraph: Replace fgraph_ret_regs with ftrace_regs") further refactored and optimi

[PATCH 8/8] ASoC: codecs: wcd939x: Drop unused 'struct wcd939x_priv' fields

2025-05-28 Thread Krzysztof Kozlowski
'wcd_regmap_irq_chip' and 'jack' in 'struct wcd939x_priv' are not used at all. Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/wcd939x.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/codecs/wcd939x.c b/sound/soc/codecs/wcd939x.c index 067d23c7ecf90ae06da1ad6cc89d273fb7f

[PATCH 7/8] ASoC: codecs: wcd938x: Drop unused variant field

2025-05-28 Thread Krzysztof Kozlowski
Member wcd938x_priv.variant is assigned in probe() function and used immediately thereafter, thus it can be just a local variable for less variables stored in 'struct wcd938x_priv' device-wide state. Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/wcd938x.c | 14 +++--- 1 file ch

[PATCH 6/8] ASoC: codecs: wcd938x: Drop unused 'struct wcd938x_priv' fields

2025-05-28 Thread Krzysztof Kozlowski
'wcd_regmap_irq_chip' and 'jack' in 'struct wcd938x_priv' are not used at all. Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/wcd938x.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 342d1f7d5dee3ac2d703e5b5602aef9ca29

[PATCH 5/8] ASoC: codecs: wcd937x: Drop unused 'struct wcd937x_priv' fields

2025-05-28 Thread Krzysztof Kozlowski
'wcd_regmap_irq_chip' and 'jack' in 'struct wcd937x_priv' are not used at all. Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/wcd937x.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/codecs/wcd937x.c b/sound/soc/codecs/wcd937x.c index b9df58b86ce953427e01ffb8c7eb7e52f9c

[PATCH 4/8] ASoC: codecs: wcd934x: Drop unused num_rx_port/num_tx_port fields

2025-05-28 Thread Krzysztof Kozlowski
Members wcd934x_codec.num_rx_port and num_tx_port are not read anywhere after assignment, so they can be safely dropped. Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/wcd934x.c | 4 1 file changed, 4 deletions(-) diff --git a/sound/soc/codecs/wcd934x.c b/sound/soc/codecs/wcd934x.

[PATCH 3/8] ASoC: codecs: wcd9335: Drop unused sido_input_src field

2025-05-28 Thread Krzysztof Kozlowski
Member wcd9335_codec.sido_input_src is not read anywhere after assignment, so it can be safely dropped. Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/wcd9335.c | 5 - 1 file changed, 5 deletions(-) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index 5e19e81

[PATCH 2/8] ASoC: fsl: Constify reg_default array

2025-05-28 Thread Krzysztof Kozlowski
Static 'struct reg_default' array is not modified so can be changed to const for more safety. Signed-off-by: Krzysztof Kozlowski --- sound/soc/fsl/fsl_asrc.c | 2 +- sound/soc/fsl/fsl_sai.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound

[PATCH 1/8] ASoC: codecs: Constify regmap configuration static variables

2025-05-28 Thread Krzysztof Kozlowski
Static arrays/structs for regmap configuration like 'struct reg_default', 'struct reg_sequence' and others are not modified so can be changed to const for more safety. Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/cs35l36.c| 2 +- sound/soc/codecs/da7218.c | 2 +- sound

[PATCH 0/8] ASoC: codecs: More const and unused member cleanups

2025-05-28 Thread Krzysztof Kozlowski
| 4 ++-- 24 files changed, 31 insertions(+), 46 deletions(-) --- base-commit: 22d449bcd69e66f25fe847b678738950dcf9301e change-id: 20250528-asoc-const-unused-1e39b434e427 prerequisite-change-id: 20250526-b4-b4-asoc-wcd9395-vdd-px-fixes-0ce64398f9cc:v1 prerequisite-patch-id: 104000f725

Re: [PATCH v2 2/6] ASoC: aoa: Use helper function for_each_child_of_node_scoped()

2025-05-28 Thread Dmitry Baryshkov
On Mon, May 26, 2025 at 04:20:37PM +0800, Ai Chao wrote: > > Hi Johannes: > > > Hi Johannes: > > > > > > > > "simplifies the code" is no need to callof_node_put() . > > > > Fair. Except that's not what you _actually_ changed here. Like I said, > > > > either it's buggy before or after. > > > > >

[PATCH v2 1/1] dt-bindings: soc: Add fsl,imx23-digctl.yaml for i.MX23 and i.MX28

2025-05-28 Thread Frank Li
Add fsl,imx23-digctl.yaml for i.MX23 and i.MX28 to fix below CHECK_DTB warning: arch/arm/boot/dts/nxp/mxs/imx23-sansa.dtb: /apb@8000/apbh-bus@8000/digctl@8001c000: failed to match any schema with compatible: ['fsl,imx23-digctl'] Signed-off-by: Frank Li --- change in v2 - add more de

[PATCH v7 5/5] drivers/base/node: Rename __register_one_node() to register_one_node()

2025-05-28 Thread Donet Tom
The register_one_node() function was a simple wrapper around __register_one_node(). To simplify the code, register_one_node() has been removed, and __register_one_node() has been renamed to register_one_node(). Acked-by: David Hildenbrand Signed-off-by: Donet Tom --- v6 -> v7 No change v6 - h

[PATCH v7 4/5] drivers/base/node: Rename register_memory_blocks_under_node() and remove context argument

2025-05-28 Thread Donet Tom
The function register_memory_blocks_under_node() is now only called from the memory hotplug path, as register_memory_blocks_under_node_early() handles registration during early boot. Therefore, the context argument used to differentiate between early boot and hotplug is no longer needed and was rem

[PATCH v7 2/5] drivers/base/node: remove register_mem_block_under_node_early()

2025-05-28 Thread Donet Tom
The function register_mem_block_under_node_early() is no longer used, as register_memory_blocks_under_node_early() now handles memory block registration during early boot. Removed register_mem_block_under_node_early() and get_nid_for_pfn(), the latter was only used by the former. Acked-by: Oscar

[PATCH v7 3/5] drivers/base/node: Remove register_memory_blocks_under_node() function call from register_one_node

2025-05-28 Thread Donet Tom
register_one_node() is now only called via cpu_up() → __try_online_node() during CPU hotplug operations to online a node. At this stage, the node has not yet had any memory added. As a result, there are no memory blocks to walk or register, so calling register_memory_blocks_under_node() is unneces

[PATCH v7 1/5] drivers/base/node: Optimize memory block registration to reduce boot time

2025-05-28 Thread Donet Tom
During node device initialization, `memory blocks` are registered under each NUMA node. The `memory blocks` to be registered are identified using the node’s start and end PFNs, which are obtained from the node's pg_data However, not all PFNs within this range necessarily belong to the same node—so

Re: [PATCH 1/1] dt-bindings: soc: add vf610 reset controller

2025-05-28 Thread Frank Li
On Mon, May 26, 2025 at 04:54:30PM +0100, Conor Dooley wrote: > On Thu, May 22, 2025 at 05:39:50PM -0400, Frank Li wrote: > > Add vf610 reset controller, which used to reboot system to fix below > > CHECK_DTB warnings: > > > > arch/arm/boot/dts/nxp/vf/vf610-bk4.dtb: /soc/bus@4000/src@4006e000:

Re: [PATCH v3] docs: powerpc: Add htm.rst to table of contents

2025-05-28 Thread Athira Rajeev
> On 28 May 2025, at 11:11 AM, Brigham Campbell > wrote: > > Fix the following documentation build error, which was introduced when > Documentation/arch/powerpc/htm.rst was added to the repository without > any reference to the document. > > Documentation/arch/powerpc/htm.rst: WARNING: docum

Re: [PATCH v8 13/20] PCI/ERR: Add printk level to pcie_print_tlp_log()

2025-05-28 Thread Ilpo Järvinen
On Wed, 28 May 2025, Lukas Wunner wrote: > On Thu, May 22, 2025 at 06:21:19PM -0500, Bjorn Helgaas wrote: > > @@ -130,6 +132,6 @@ void pcie_print_tlp_log(const struct pci_dev *dev, > > } > > } > > > > - pci_err(dev, "%sTLP Header%s: %s\n", pfx, > > + dev_printk(level, &dev->d

Re: [PATCH v3 6/6] ASoC: qcom: Use helper function for_each_child_of_node_scoped()

2025-05-28 Thread Dmitry Baryshkov
On Tue, May 27, 2025 at 04:24:46PM +0800, Ai Chao wrote: > The for_each_child_of_node_scoped() helper provides a scope-based > clean-up functionality to put the device_node automatically. There are no calls to put the node. In the patched files the nodes are already automatically put by the loopin

Re: [PATCH] powerpc: Fixing typo in comment

2025-05-28 Thread Mukesh Kumar Chaurasiya
On Wed, May 28, 2025 at 01:30:52PM +0530, Mukesh Kumar Chaurasiya wrote: > fixing a typo where iff is supposed to be if. > I just realized its if and only if. Please ignore. > Signed-off-by: Mukesh Kumar Chaurasiya > --- > arch/powerpc/kernel/exceptions-64s.S | 2 +- > 1 file changed, 1 insertion

[PATCH] powerpc: Fixing typo in comment

2025-05-28 Thread Mukesh Kumar Chaurasiya
fixing a typo where iff is supposed to be if. Signed-off-by: Mukesh Kumar Chaurasiya --- arch/powerpc/kernel/exceptions-64s.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index b7229430ca94..53667

Re: [PATCH v3 2/6] ALSA: aoa: Use helper function for_each_child_of_node_scoped()

2025-05-28 Thread Geert Uytterhoeven
Hi Ai, On Tue, 27 May 2025 at 12:52, Ai Chao wrote: > The for_each_child_of_node_scoped() helper provides a scope-based > clean-up functionality to put the device_node automatically. > > Signed-off-by: Ai Chao Thanks for your patch! > --- a/sound/aoa/soundbus/i2sbus/core.c > +++ b/sound/aoa/so