Re: [PATCH v2 09/18] riscv: vdso: Switch to generic storage implementation

2025-01-14 Thread Thomas Weißschuh
On Mon, Jan 13, 2025 at 07:48:15PM +, Conor Dooley wrote: > On Fri, Jan 10, 2025 at 04:23:48PM +0100, Thomas Weißschuh wrote: > > The generic storage implementation provides the same features as the > > custom one. However it can be shared between architectures, making > > maintenance easier. >

[PATCH 1/2] ASoC: fsl_micfil: Add i.MX943 platform support

2025-01-14 Thread Shengjiu Wang
On i.MX943, the FIFO data address is changed to 0x20~0x3c, compared to previous version, there is a minus 4 offset, so add a new regmap configuration for it. And the bit width of CICOSR is changed to 5 bits, from bit 16th to 20th in REG_MICFIL_CTRL2 register, so update its definition header file.

[PATCH 2/2] ASoC: dt-bindings: fsl,micfil: Add compatible string for i.MX943 platform

2025-01-14 Thread Shengjiu Wang
Add compatible string "fsl,imx943-micfil" for i.MX943 platform. The definition of register map and some register bit map is different on the i.MX943 platform. Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/fsl,micfil.yaml | 1 + 1 file changed, 1 insertion(+) diff --gi

[PATCH 0/2] ASoC: fsl: Support micfil on i.MX943

2025-01-14 Thread Shengjiu Wang
On i.MX943, the FIFO data address is changed and the bit width of CICOSR is changed. Add a new compatible string and update driver for these changes. Shengjiu Wang (2): ASoC: fsl_micfil: Add i.MX943 platform support ASoC: dt-bindings: fsl,micfil: Add compatible string for i.MX943 platform

Re: [PATCH v2 1/7] powerpc: properly negate error in syscall_set_return_value()

2025-01-14 Thread Alexey Gladkov
On Mon, Jan 13, 2025 at 07:10:54PM +0200, Dmitry V. Levin wrote: > Bring syscall_set_return_value() in sync with syscall_get_error(), > and let upcoming ptrace/set_syscall_info selftest pass on powerpc. > > This reverts commit 1b1a3702a65c ("powerpc: Don't negate error in > syscall_set_return_valu

[powerpc:merge] BUILD SUCCESS 9295162062634a11f4cf8c700da9265b0747ad04

2025-01-14 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git merge branch HEAD: 9295162062634a11f4cf8c700da9265b0747ad04 Automatic merge of 'next' into merge (2025-01-13 18:04) elapsed time: 1443m configs tested: 121 configs skipped: 3 The following configs have been built s

[PATCH] cpufreq: Use str_enable_disable-like helpers

2025-01-14 Thread Krzysztof Kozlowski
Replace ternary (condition ? "enable" : "disable") syntax with helpers from string_choices.h because: 1. Simple function call with one argument is easier to read. Ternary operator has three arguments and with wrapping might lead to quite long code. 2. Is slightly shorter thus also easier to

Re: [PATCH v4 1/6] elf: Define note name macros

2025-01-14 Thread Dave Martin
Hi, On Sat, Jan 11, 2025 at 02:48:44PM +0900, Akihiko Odaki wrote: > elf.h had a comment saying: > > Notes used in ET_CORE. Architectures export some of the arch register > > sets using the corresponding note types via the PTRACE_GETREGSET and > > PTRACE_SETREGSET requests. > > The note name for t

Re: [PATCH v4 3/6] powerpc: Use note name macros

2025-01-14 Thread Dave Martin
Hi, On Sat, Jan 11, 2025 at 02:48:46PM +0900, Akihiko Odaki wrote: > Use note name macros to match with the userspace's expectation. Note, there seems to be some manual encoding of some arch-specific notes in arch/powerpc/boot/addnote.c, but since this is all hard-coded and the note types are not

Re: [PATCH v4 2/6] binfmt_elf: Use note name macros

2025-01-14 Thread Dave Martin
On Sat, Jan 11, 2025 at 02:48:45PM +0900, Akihiko Odaki wrote: > Use note name macros to match with the userspace's expectation. > > Signed-off-by: Akihiko Odaki > Acked-by: Baoquan He Reviewed-by: Dave Martin > --- > fs/binfmt_elf.c | 21 ++--- > fs/binfmt_elf_fdpic.c

Re: [PATCH v4 4/6] crash: Use note name macros

2025-01-14 Thread Dave Martin
On Sat, Jan 11, 2025 at 02:48:47PM +0900, Akihiko Odaki wrote: > Use note name macros to match with the userspace's expectation. > > Signed-off-by: Akihiko Odaki > Acked-by: Baoquan He Reviewed-by: Dave Martin > --- > fs/proc/kcore.c | 12 ++-- > include/linux/vmcore_info

Re: [PATCH v4 5/6] s390/crash: Use note name macros

2025-01-14 Thread Dave Martin
Hi, On Sat, Jan 11, 2025 at 02:48:48PM +0900, Akihiko Odaki wrote: > Use note name macros to match with the userspace's expectation. > > Signed-off-by: Akihiko Odaki > Acked-by: Heiko Carstens Reviewed-by: Dave Martin (I'm not in a position to test this, though.) > --- > arch/s390/kernel/c

Re: [PATCH v4 6/6] crash: Remove KEXEC_CORE_NOTE_NAME

2025-01-14 Thread Dave Martin
Hi, On Sat, Jan 11, 2025 at 02:48:49PM +0900, Akihiko Odaki wrote: > KEXEC_CORE_NOTE_NAME is no longer used. > > Signed-off-by: Akihiko Odaki > Acked-by: Baoquan He Reviewed-by: Dave Martin > --- > include/linux/kexec.h | 2 -- > include/linux/vmcore_info.h | 1 - > 2 files changed, 3

Re: [PATCH v2 09/18] riscv: vdso: Switch to generic storage implementation

2025-01-14 Thread Conor Dooley
On Tue, Jan 14, 2025 at 09:40:11AM +0100, Thomas Weißschuh wrote: > On Mon, Jan 13, 2025 at 07:48:15PM +, Conor Dooley wrote: > > On Fri, Jan 10, 2025 at 04:23:48PM +0100, Thomas Weißschuh wrote: > > > The generic storage implementation provides the same features as the > > > custom one. Howeve

Re: [PATCH v6 12/26] mm/memory: Enhance insert_page_into_pte_locked() to create writable mappings

2025-01-14 Thread David Hildenbrand
On 10.01.25 07:00, Alistair Popple wrote: In preparation for using insert_page() for DAX, enhance insert_page_into_pte_locked() to handle establishing writable mappings. Recall that DAX returns VM_FAULT_NOPAGE after installing a PTE which bypasses the typical set_pte_range() in finish_fault. Si

Re: [PATCH v6 13/26] mm/memory: Add vmf_insert_page_mkwrite()

2025-01-14 Thread David Hildenbrand
On 10.01.25 07:00, Alistair Popple wrote: Currently to map a DAX page the DAX driver calls vmf_insert_pfn. This creates a special devmap PTE entry for the pfn but does not take a reference on the underlying struct page for the mapping. This is because DAX page refcounts are treated specially, as

Re: [PATCH v6 15/26] huge_memory: Add vmf_insert_folio_pud()

2025-01-14 Thread David Hildenbrand
On 10.01.25 07:00, Alistair Popple wrote: Currently DAX folio/page reference counts are managed differently to normal pages. To allow these to be managed the same as normal pages introduce vmf_insert_folio_pud. This will map the entire PUD-sized folio and take references as it would for a normall

Re: [PATCH v6 16/26] huge_memory: Add vmf_insert_folio_pmd()

2025-01-14 Thread David Hildenbrand
+vm_fault_t vmf_insert_folio_pmd(struct vm_fault *vmf, struct folio *folio, bool write) +{ + struct vm_area_struct *vma = vmf->vma; + unsigned long addr = vmf->address & PMD_MASK; + struct mm_struct *mm = vma->vm_mm; + spinlock_t *ptl; + pgtable_t pgtable = NULL; + +

Re: [PATCH v6 19/26] proc/task_mmu: Mark devdax and fsdax pages as always unpinned

2025-01-14 Thread David Hildenbrand
On 14.01.25 03:28, Dan Williams wrote: Alistair Popple wrote: The procfs mmu files such as smaps and pagemap currently ignore devdax and fsdax pages because these pages are considered special. A future change will start treating these as normal pages, meaning they can be exposed via smaps and pa

[PATCH v9 0/8] PCI: Consolidate TLP Log reading and printing

2025-01-14 Thread Ilpo Järvinen
This series has the remaining patches of the AER & DPC TLP Log handling consolidation and now includes a few minor improvements to the earlier accepted TLP Logging code. v9: - Added patch to define header logging register sizes. v8: - Added missing parameter to kerneldoc. - Dropped last patch due

[PATCH v9 2/8] PCI: Move TLP Log handling to own file

2025-01-14 Thread Ilpo Järvinen
TLP Log is PCIe feature and is processed only by AER and DPC. Configwise, DPC depends AER being enabled. In lack of better place, the TLP Log handling code was initially placed into pci.c but it can be easily placed in a separate file. Move TLP Log handling code to own file under pcie/ subdirector

[PATCH v9 7/8] PCI: Add TLP Prefix reading into pcie_read_tlp_log()

2025-01-14 Thread Ilpo Järvinen
pcie_read_tlp_log() handles only 4 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 relevant registers are formatted identically in AER and DPC Capability, but h

[PATCH v9 4/8] PCI: Make pcie_read_tlp_log() signature same

2025-01-14 Thread Ilpo Järvinen
pcie_read_tlp_log()'s prototype and function signature diverged due to changes made while applying. Make the parameters of pcie_read_tlp_log() named identically. Signed-off-by: Ilpo Järvinen Reviewed-by: Jonathan Cameron Reviewed-by: Yazen Ghannam --- drivers/pci/pcie/tlp.c | 11 +--

[PATCH v9 3/8] PCI: Add defines for TLP Header/Prefix log sizes

2025-01-14 Thread Ilpo Järvinen
Add defines for AER and DPC capabilities TLP Header Logging register sizes (PCIe r6.2, sec 7.8.4 / 7.9.14) and replace literals with them. Suggested-by: Yazen Ghannam Signed-off-by: Ilpo Järvinen --- drivers/pci/pcie/dpc.c | 10 ++ drivers/pci/pcie/tlp.c | 2 +- drivers/pci/quirks.c

[PATCH v9 5/8] PCI: Use unsigned int i in pcie_read_tlp_log()

2025-01-14 Thread Ilpo Järvinen
Loop variable i counting from 0 upwards does not need to be signed so make it unsigned int. Signed-off-by: Ilpo Järvinen Reviewed-by: Jonathan Cameron --- drivers/pci/pcie/tlp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pcie/tlp.c b/drivers/pci/pcie/tlp.c

[PATCH v9 6/8] PCI: Store # of supported End-End TLP Prefixes

2025-01-14 Thread Ilpo Järvinen
eetlp_prefix_path in the struct pci_dev tells if End-End TLP Prefixes are supported by the path or not, the value is only calculated if CONFIG_PCI_PASID is set. The Max End-End TLP Prefixes field in the Device Capabilities Register 2 also tells how many (1-4) End-End TLP Prefixes are supported (PC

[PATCH v9 8/8] PCI: Create helper to print TLP Header and Prefix Log

2025-01-14 Thread Ilpo Järvinen
Add pcie_print_tlp_log() helper to print TLP Header and Prefix Log. Print End-End Prefixes only if they are non-zero. Consolidate the few places which currently print TLP using custom formatting. The first attempt used pr_cont() instead of building a string first but it turns out pr_cont() is not

Re: [PATCH v2 1/7] powerpc: properly negate error in syscall_set_return_value()

2025-01-14 Thread Dmitry V. Levin
On Mon, Jan 13, 2025 at 06:34:44PM +0100, Christophe Leroy wrote: > Le 13/01/2025 à 18:10, Dmitry V. Levin a écrit : > > Bring syscall_set_return_value() in sync with syscall_get_error(), > > and let upcoming ptrace/set_syscall_info selftest pass on powerpc. > > > > This reverts commit 1b1a3702a65

Re: [kvm-unit-tests PATCH v1 1/5] configure: Document that the architecture name 'aarch64' is also supported

2025-01-14 Thread Alexandru Elisei
Hi Drew, On Mon, Jan 13, 2025 at 04:01:58PM +0100, Andrew Jones wrote: > On Fri, Jan 10, 2025 at 01:58:44PM +, Alexandru Elisei wrote: > > $arch, on arm64, defaults to 'aarch64', and later in the script is replaced > > by 'arm64'. Intentional or not, document that the name 'aarch64' is also >

[PATCH v9 1/8] PCI: Don't expose pcie_read_tlp_log() outside of PCI subsystem

2025-01-14 Thread Ilpo Järvinen
pcie_read_tlp_log() was exposed by the commit 0a5a46a6a61b ("PCI/AER: Generalize TLP Header Log reading") but this is now considered a mistake. No drivers outside of PCI subsystem should build their own diagnostic logging but should rely on PCI core doing it for them. There's currently one driver

Re: [PATCH v2 1/7] powerpc: properly negate error in syscall_set_return_value()

2025-01-14 Thread Dmitry V. Levin
On Tue, Jan 14, 2025 at 02:00:16PM +0100, Alexey Gladkov wrote: > On Mon, Jan 13, 2025 at 07:10:54PM +0200, Dmitry V. Levin wrote: > > Bring syscall_set_return_value() in sync with syscall_get_error(), > > and let upcoming ptrace/set_syscall_info selftest pass on powerpc. > > > > This reverts comm

Re: [PATCH v6 10/26] mm/mm_init: Move p2pdma page refcount initialisation to p2pdma

2025-01-14 Thread David Hildenbrand
On 10.01.25 07:00, Alistair Popple wrote: Currently ZONE_DEVICE page reference counts are initialised by core memory management code in __init_zone_device_page() as part of the memremap() call which driver modules make to obtain ZONE_DEVICE pages. This initialises page refcounts to 1 before retur

Re: [PATCH v2 1/7] powerpc: properly negate error in syscall_set_return_value()

2025-01-14 Thread Alexey Gladkov
On Tue, Jan 14, 2025 at 03:48:44PM +0200, Dmitry V. Levin wrote: > On Tue, Jan 14, 2025 at 02:00:16PM +0100, Alexey Gladkov wrote: > > On Mon, Jan 13, 2025 at 07:10:54PM +0200, Dmitry V. Levin wrote: > > > Bring syscall_set_return_value() in sync with syscall_get_error(), > > > and let upcoming ptr

Re: [PATCH v6 08/26] fs/dax: Remove PAGE_MAPPING_DAX_SHARED mapping flag

2025-01-14 Thread David Hildenbrand
On 10.01.25 07:00, Alistair Popple wrote: PAGE_MAPPING_DAX_SHARED is the same as PAGE_MAPPING_ANON. This isn't currently a problem because FS DAX pages are treated specially. However a future change will make FS DAX pages more like normal pages, so folio_test_anon() must not return true for a FS

Re: [PATCH v6 11/26] mm: Allow compound zone device pages

2025-01-14 Thread David Hildenbrand
On 10.01.25 07:00, Alistair Popple wrote: Zone device pages are used to represent various type of device memory managed by device drivers. Currently compound zone device pages are not supported. This is because MEMORY_DEVICE_FS_DAX pages are the only user of higher order zone device pages and hav

[PATCH] selftests: livepatch: handle PRINTK_CALLER in check_result()

2025-01-14 Thread Madhavan Srinivasan
Some arch configs (like ppc64) enable CONFIG_PRINTK_CALLER, which adds the caller id as part of the dmesg. Due to this, even though the expected vs observed are same, end testcase results are failed. -% insmod test_modules/test_klp_livepatch.ko -livepatch: enabling patch 'test_klp_livepatch' -l

Re: [kvm-unit-tests PATCH v1 2/5] configure: Display the default processor for arm and arm64

2025-01-14 Thread Alexandru Elisei
Hi Drew, On Mon, Jan 13, 2025 at 04:11:06PM +0100, Andrew Jones wrote: > On Fri, Jan 10, 2025 at 01:58:45PM +, Alexandru Elisei wrote: > > The help text for the --processor option displays the architecture name as > > the default processor type. But the default for arm is cortex-a15, and for >

Re: [PATCH v6 16/26] huge_memory: Add vmf_insert_folio_pmd()

2025-01-14 Thread Dan Williams
David Hildenbrand wrote: > > +vm_fault_t vmf_insert_folio_pmd(struct vm_fault *vmf, struct folio *folio, > > bool write) > > +{ > > + struct vm_area_struct *vma = vmf->vma; > > + unsigned long addr = vmf->address & PMD_MASK; > > + struct mm_struct *mm = vma->vm_mm; > > + spinlock_t *ptl; >

Re: [kvm-unit-tests PATCH v1 4/5] arm/arm64: Add support for --processor=max

2025-01-14 Thread Alexandru Elisei
Hi Drew, On Mon, Jan 13, 2025 at 04:21:45PM +0100, Andrew Jones wrote: > On Fri, Jan 10, 2025 at 01:58:47PM +, Alexandru Elisei wrote: > > For arm64, newer architecture features are supported only on newer CPUs. > > Instead of expecting the user to know which CPU model supports which > > featu

Re: [PATCH 0/2] ASoC: fsl: Support micfil on i.MX943

2025-01-14 Thread Mark Brown
On Tue, 14 Jan 2025 18:27:18 +0800, Shengjiu Wang wrote: > On i.MX943, the FIFO data address is changed and the bit width > of CICOSR is changed. > Add a new compatible string and update driver for these changes. > > Shengjiu Wang (2): > ASoC: fsl_micfil: Add i.MX943 platform support > ASoC: d

Re: [kvm-unit-tests PATCH v1 5/5] configure: arm64: Make 'max' the default for --processor

2025-01-14 Thread Alexandru Elisei
Hi Drew, On Mon, Jan 13, 2025 at 04:29:21PM +0100, Andrew Jones wrote: > On Fri, Jan 10, 2025 at 01:58:48PM +, Alexandru Elisei wrote: > > Newer architecture features are supported by qemu TCG on newer CPUs. When > > writing a test for such architecture features, it is necessary to pass the >

Re: [RFC PATCH 0/2] sched/fair: introduce new scheduler group type group_parked

2025-01-14 Thread Tobias Huschle
On 10/12/2024 21:24, Shrikanth Hegde wrote: On 12/9/24 13:35, Tobias Huschle wrote: [...] It was happening with 100% stress-ng case. I was wondering since i dont have no-hz full enabled. I found out the reason why and one way to do is to trigger active load balance if there are any parked

Re: [kvm-unit-tests PATCH v1 1/5] configure: Document that the architecture name 'aarch64' is also supported

2025-01-14 Thread Andrew Jones
On Tue, Jan 14, 2025 at 05:03:20PM +, Alexandru Elisei wrote: ... > diff --git a/configure b/configure > index 86cf1da36467..1362b68dd68b 100755 > --- a/configure > +++ b/configure > @@ -15,8 +15,8 @@ objdump=objdump > readelf=readelf > ar=ar > addr2line=addr2line > -arch=$(uname -m | sed -e

Re: [PATCH] cpufreq: Use str_enable_disable-like helpers

2025-01-14 Thread Krzysztof Kozlowski
On 14/01/2025 11:56, Krzysztof Kozlowski wrote: > if (cpufreq_boost_trigger_state(enable)) { > pr_err("%s: Cannot %s BOOST!\n", > -__func__, enable ? "enable" : "disable"); > +__func__, str_enable_disable(enable)); > return -

Re: [PATCH v9 0/8] PCI: Consolidate TLP Log reading and printing

2025-01-14 Thread Bjorn Helgaas
On Tue, Jan 14, 2025 at 07:08:32PM +0200, Ilpo Järvinen wrote: > This series has the remaining patches of the AER & DPC TLP Log handling > consolidation and now includes a few minor improvements to the earlier > accepted TLP Logging code. > > v9: > - Added patch to define header logging register s

Re: [PATCH v6 08/26] fs/dax: Remove PAGE_MAPPING_DAX_SHARED mapping flag

2025-01-14 Thread Alistair Popple
On Mon, Jan 13, 2025 at 04:52:34PM -0800, Dan Williams wrote: > Alistair Popple wrote: > > PAGE_MAPPING_DAX_SHARED is the same as PAGE_MAPPING_ANON. > > I think a bit a bit more detail is warranted, how about? > > The page ->mapping pointer can have magic values like > PAGE_MAPPING_DAX_SHARED an

Re: [PATCH v6 13/26] mm/memory: Add vmf_insert_page_mkwrite()

2025-01-14 Thread Alistair Popple
On Tue, Jan 14, 2025 at 05:15:54PM +0100, David Hildenbrand wrote: > On 10.01.25 07:00, Alistair Popple wrote: > > Currently to map a DAX page the DAX driver calls vmf_insert_pfn. This > > creates a special devmap PTE entry for the pfn but does not take a > > reference on the underlying struct page

Re: [PATCH v6 15/26] huge_memory: Add vmf_insert_folio_pud()

2025-01-14 Thread Alistair Popple
On Tue, Jan 14, 2025 at 05:22:15PM +0100, David Hildenbrand wrote: > On 10.01.25 07:00, Alistair Popple wrote: > > Currently DAX folio/page reference counts are managed differently to > > normal pages. To allow these to be managed the same as normal pages > > introduce vmf_insert_folio_pud. This wi

[PATCH v5 6/6] crash: Remove KEXEC_CORE_NOTE_NAME

2025-01-14 Thread Akihiko Odaki
KEXEC_CORE_NOTE_NAME is no longer used. Signed-off-by: Akihiko Odaki Acked-by: Baoquan He Reviewed-by: Dave Martin --- include/linux/kexec.h | 2 -- include/linux/vmcore_info.h | 1 - 2 files changed, 3 deletions(-) diff --git a/include/linux/kexec.h b/include/linux/kexec.h index f0e9f8

Re: [PATCH v6 12/26] mm/memory: Enhance insert_page_into_pte_locked() to create writable mappings

2025-01-14 Thread Alistair Popple
On Mon, Jan 13, 2025 at 05:08:31PM -0800, Dan Williams wrote: > Alistair Popple wrote: > > In preparation for using insert_page() for DAX, enhance > > insert_page_into_pte_locked() to handle establishing writable > > mappings. Recall that DAX returns VM_FAULT_NOPAGE after installing a > > PTE whic

Re: [PATCH v6 08/26] fs/dax: Remove PAGE_MAPPING_DAX_SHARED mapping flag

2025-01-14 Thread Dan Williams
Alistair Popple wrote: [..] > > How does this case happen? I don't think any page would ever enter with > > both ->mapping and ->share set, right? > > Sigh. You're right - it can't. This patch series is getting a litte bit large > and unweildy with all the prerequisite bugfixes and cleanups. Obvio

[PATCH v5 1/6] elf: Define note name macros

2025-01-14 Thread Akihiko Odaki
elf.h had a comment saying: > Notes used in ET_CORE. Architectures export some of the arch register > sets using the corresponding note types via the PTRACE_GETREGSET and > PTRACE_SETREGSET requests. > The note name for these types is "LINUX", except NT_PRFPREG that is > named "CORE". However, NT_

[PATCH v5 0/6] elf: Define note name macros

2025-01-14 Thread Akihiko Odaki
elf.h had a comment saying: > Notes used in ET_CORE. Architectures export some of the arch register > sets using the corresponding note types via the PTRACE_GETREGSET and > PTRACE_SETREGSET requests. > The note name for these types is "LINUX", except NT_PRFPREG that is > named "CORE". However, NT_

[PATCH v5 2/6] binfmt_elf: Use note name macros

2025-01-14 Thread Akihiko Odaki
Use note name macros to match with the userspace's expectation. Signed-off-by: Akihiko Odaki Acked-by: Baoquan He Reviewed-by: Dave Martin --- fs/binfmt_elf.c | 21 ++--- fs/binfmt_elf_fdpic.c | 8 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a

[PATCH v5 5/6] s390/crash: Use note name macros

2025-01-14 Thread Akihiko Odaki
Use note name macros to match with the userspace's expectation. Signed-off-by: Akihiko Odaki Acked-by: Heiko Carstens Reviewed-by: Dave Martin --- arch/s390/kernel/crash_dump.c | 62 --- 1 file changed, 23 insertions(+), 39 deletions(-) diff --git a/arc

[PATCH v5 4/6] crash: Use note name macros

2025-01-14 Thread Akihiko Odaki
Use note name macros to match with the userspace's expectation. Signed-off-by: Akihiko Odaki Acked-by: Baoquan He Reviewed-by: Dave Martin --- fs/proc/kcore.c | 12 ++-- include/linux/vmcore_info.h | 2 +- kernel/crash_core.c | 2 +- 3 files changed, 8 insertions(

[PATCH v5 3/6] powerpc: Use note name macros

2025-01-14 Thread Akihiko Odaki
Use note name macros to match with the userspace's expectation. Signed-off-by: Akihiko Odaki Acked-by: Baoquan He Reviewed-by: Dave Martin --- arch/powerpc/kernel/fadump.c | 2 +- arch/powerpc/platforms/powernv/opal-core.c | 8 2 files changed, 5 insertions(+), 5 deletio

Re: [PATCH v13 5/5] rust: Use gendwarfksyms + extended modversions for CONFIG_MODVERSIONS

2025-01-14 Thread Sami Tolvanen
On Tue, Jan 14, 2025 at 10:22:15AM +0900, Masahiro Yamada wrote: > On Tue, Jan 14, 2025 at 5:04 AM Sami Tolvanen wrote: > > > > Hi Masahiro, > > > > On Fri, Jan 10, 2025 at 6:26 PM Masahiro Yamada > > wrote: > > > > > > On Sat, Jan 4, 2025 at 2:37 AM Matthew Maurer wrote: > > > > > > > > From:

[PATCH v2] cpufreq: Use str_enable_disable-like helpers

2025-01-14 Thread Krzysztof Kozlowski
Replace ternary (condition ? "enable" : "disable") syntax with helpers from string_choices.h because: 1. Simple function call with one argument is easier to read. Ternary operator has three arguments and with wrapping might lead to quite long code. 2. Is slightly shorter thus also easier to

RE: [PATCH 2/2] PCI: dwc: layerscape: Use syscon_regmap_lookup_by_phandle_args

2025-01-14 Thread Roy Zang
> From: Krzysztof Kozlowski > Use syscon_regmap_lookup_by_phandle_args() which is a wrapper over > syscon_regmap_lookup_by_phandle() combined with getting the syscon > argument. Except simpler code this annotates within one line that given > phandle has arguments, so grepping for code would be

Re: [PATCH 06/14] cpumask: re-introduce cpumask_next{,_and}_wrap()

2025-01-14 Thread Yury Norov
On Tue, Jan 07, 2025 at 02:28:31PM +0100, Alexander Gordeev wrote: > On Sat, Dec 28, 2024 at 10:49:38AM -0800, Yury Norov wrote: > > Hi Yury, > > > cpumask_next_wrap_old() has two additional parameters, comparing to it's > > analogue in linux/find.h find_next_bit_wrap(). The reason for that is >

Re: [PATCH 06/14] cpumask: re-introduce cpumask_next{,_and}_wrap()

2025-01-14 Thread Yury Norov
On Fri, Jan 03, 2025 at 11:44:32AM -0600, Bjorn Helgaas wrote: > On Sat, Dec 28, 2024 at 10:49:38AM -0800, Yury Norov wrote: > > cpumask_next_wrap_old() has two additional parameters, comparing to it's > > analogue in linux/find.h find_next_bit_wrap(). The reason for that is > > historical. > > s/

Re: [PATCH v6 16/26] huge_memory: Add vmf_insert_folio_pmd()

2025-01-14 Thread Alistair Popple
On Tue, Jan 14, 2025 at 09:22:00AM -0800, Dan Williams wrote: > David Hildenbrand wrote: > > > +vm_fault_t vmf_insert_folio_pmd(struct vm_fault *vmf, struct folio > > > *folio, bool write) > > > +{ > > > + struct vm_area_struct *vma = vmf->vma; > > > + unsigned long addr = vmf->address & PMD_MASK;

Re: [PATCH v2] cpufreq: Use str_enable_disable-like helpers

2025-01-14 Thread Viresh Kumar
On 14-01-25, 20:06, Krzysztof Kozlowski wrote: > Replace ternary (condition ? "enable" : "disable") syntax with helpers > from string_choices.h because: > 1. Simple function call with one argument is easier to read. Ternary >operator has three arguments and with wrapping might lead to quite >

Re: [PATCH v6 23/26] mm: Remove pXX_devmap callers

2025-01-14 Thread Alistair Popple
On Tue, Jan 14, 2025 at 10:50:49AM -0800, Dan Williams wrote: > Alistair Popple wrote: > > The devmap PTE special bit was used to detect mappings of FS DAX > > pages. This tracking was required to ensure the generic mm did not > > manipulate the page reference counts as FS DAX implemented it's own

Re: [PATCH v6 23/26] mm: Remove pXX_devmap callers

2025-01-14 Thread Dan Williams
Alistair Popple wrote: > The devmap PTE special bit was used to detect mappings of FS DAX > pages. This tracking was required to ensure the generic mm did not > manipulate the page reference counts as FS DAX implemented it's own > reference counting scheme. > > Now that FS DAX pages have their ref

Re: [kvm-unit-tests PATCH v1 2/5] configure: Display the default processor for arm and arm64

2025-01-14 Thread Andrew Jones
On Tue, Jan 14, 2025 at 05:17:28PM +, Alexandru Elisei wrote: ... > > > +# $arch will have changed when cross-compiling. > > > +[ -z "$processor" ] && processor=$(get_default_processor $arch) > > > > The fact that $arch and $processor are wrong until they've had a chance to > > $processor is

Re: [PATCH v9 3/8] PCI: Add defines for TLP Header/Prefix log sizes

2025-01-14 Thread Jonathan Cameron
On Tue, 14 Jan 2025 19:08:35 +0200 Ilpo Järvinen wrote: > Add defines for AER and DPC capabilities TLP Header Logging register > sizes (PCIe r6.2, sec 7.8.4 / 7.9.14) and replace literals with them. > > Suggested-by: Yazen Ghannam > Signed-off-by: Ilpo Järvinen Hi Ilpo, Where it is simply th

Re: [PATCH] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-01-14 Thread Darrick J. Wong
On Thu, Jan 09, 2025 at 06:45:40PM +0100, Andrey Albershteyn wrote: > From: Andrey Albershteyn > > Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode > extended attributes/flags. The syscalls take parent directory FD and > path to the child together with struct fsxattr. > > Thi

Re: [PATCH v6 24/26] mm: Remove devmap related functions and page table bits

2025-01-14 Thread Dan Williams
Alistair Popple wrote: > 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. >

Re: [PATCH v6 25/26] Revert "riscv: mm: Add support for ZONE_DEVICE"

2025-01-14 Thread Dan Williams
Alistair Popple wrote: > DEVMAP PTEs are no longer required to support ZONE_DEVICE so remove > them. > > Signed-off-by: Alistair Popple > Suggested-by: Chunyan Zhang > Reviewed-by: Björn Töpel This and the next are candidates to squash into the previous remove patch, right? ...and I am not sur