Re: [PATCH v7 7/7] powerpc: mm: Support page table check

2023-02-14 Thread Christophe Leroy
Le 15/02/2023 à 03:01, Rohan McLure a écrit : > 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

Re: [PATCH v7 6/7] powerpc: mm: Add p{te,md,ud}_user_accessible_page helpers

2023-02-14 Thread Christophe Leroy
Le 15/02/2023 à 03:01, Rohan McLure a écrit : > Add the following helpers for detecting whether a page table entry > is a leaf and is accessible to user space. > > * pte_user_accessible_page > * pmd_user_accessible_page > * pud_user_accessible_page > > Also implement missing pud_user

Re: [PATCH v7 4/7] powerpc: mm: Implement p{m,u,4}d_leaf on all platforms

2023-02-14 Thread Christophe Leroy
Le 15/02/2023 à 03:01, Rohan McLure a écrit : > The check that a higher-level entry in multi-level pages contains a page > translation entry (pte) is performed by p{m,u,4}d_leaf stubs, which may > be specialised for each choice of mmu. In a prior commit, we replace > uses to the catch-all stubs,

Re: [PATCH v7 3/7] powerpc: mm: Replace p{u,m,4}d_is_leaf with p{u,m,4}_leaf

2023-02-14 Thread Christophe Leroy
Le 15/02/2023 à 03:01, Rohan McLure a écrit : > Replace occurrences of p{u,m,4}d_is_leaf with p{u,m,4}_leaf, as the > latter is the name given to checking that a higher-level entry in > multi-level paging contains a page translation entry (pte) throughout > all other archs. > > A future patch

Re: [PATCH v7 1/7] powerpc: mm: Separate set_pte, set_pte_at for internal, external use

2023-02-14 Thread Christophe Leroy
Le 15/02/2023 à 03:01, Rohan McLure a écrit : > Produce separate symbols for set_pte, which is to be used in > arch/powerpc for reassignment of pte's, and set_pte_at, used in generic > code. > > The reason for this distinction is to support the Page Table Check > sanitiser. Having this

Re: [PATCH v3 09/24] powerpc: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Michael Ellerman
Alexandre Ghiti writes: > From: Palmer Dabbelt > > As far as I can tell this is not used by userspace and thus should not > be part of the user-visible API. > > Signed-off-by: Palmer Dabbelt > --- > arch/powerpc/include/asm/setup.h | 2 +- > arch/powerpc/include/uapi/asm/setup.h | 2 -- >

Re: [PATCH 13/19] arch/riscv: rename internal name __xchg to __arch_xchg

2023-02-14 Thread Palmer Dabbelt
On Thu, 22 Dec 2022 03:46:29 PST (-0800), andrzej.ha...@intel.com wrote: __xchg will be used for non-atomic xchg macro. Signed-off-by: Andrzej Hajda --- arch/riscv/include/asm/atomic.h | 2 +- arch/riscv/include/asm/cmpxchg.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff

Re: [PATCH] mm: remove zap_page_range and create zap_vma_pages

2023-02-14 Thread Palmer Dabbelt
On Tue, 03 Jan 2023 16:27:32 PST (-0800), mike.krav...@oracle.com wrote: zap_page_range was originally designed to unmap pages within an address range that could span multiple vmas. While working on [1], it was discovered that all callers of zap_page_range pass a range entirely within a single

[PATCH v7 6/7] powerpc: mm: Add p{te,md,ud}_user_accessible_page helpers

2023-02-14 Thread Rohan McLure
Add the following helpers for detecting whether a page table entry is a leaf and is accessible to user space. * pte_user_accessible_page * pmd_user_accessible_page * pud_user_accessible_page Also implement missing pud_user definitions for both Book3S/nohash 64-bit systems, and pmd_user for

[PATCH v7 7/7] powerpc: mm: Support page table check

2023-02-14 Thread 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. Use set_pte internally,

[PATCH v7 5/7] powerpc: mm: Add common pud_pfn stub for all platforms

2023-02-14 Thread Rohan McLure
Prior to this commit, pud_pfn was implemented with BUILD_BUG as the inline function for 64-bit Book3S systems but is never included, as its invocations in generic code are guarded by calls to pud_devmap which return zero on such systems. A future patch will provide support for page table checks,

[PATCH v7 0/7] Support page table check

2023-02-14 Thread Rohan McLure
Support the page table check sanitiser on all PowerPC platforms. This sanitiser works by serialising assignments, reassignments and clears of page table entries at each level in order to ensure that anonymous mappings have at most one writable consumer, and likewise that file-backed mappings are

[PATCH v7 4/7] powerpc: mm: Implement p{m,u,4}d_leaf on all platforms

2023-02-14 Thread Rohan McLure
The check that a higher-level entry in multi-level pages contains a page translation entry (pte) is performed by p{m,u,4}d_leaf stubs, which may be specialised for each choice of mmu. In a prior commit, we replace uses to the catch-all stubs, p{m,u,4}d_is_leaf with p{m,u,4}d_leaf. Replace the

[PATCH v7 2/7] powerpc/64s: mm: Introduce __pmdp_collapse_flush with mm_struct argument

2023-02-14 Thread Rohan McLure
pmdp_collapse_flush has references in generic code with just three parameters, due to the choice of mm context being implied by the vm_area context parameter. Define __pmdp_collapse_flush to accept an additional mm_struct * parameter, with pmdp_collapse_flush an inline function that unpacks the

[PATCH v7 1/7] powerpc: mm: Separate set_pte, set_pte_at for internal, external use

2023-02-14 Thread Rohan McLure
Produce separate symbols for set_pte, which is to be used in arch/powerpc for reassignment of pte's, and set_pte_at, used in generic code. The reason for this distinction is to support the Page Table Check sanitiser. Having this distinction allows for set_pte_at to instrumented, but set_pte not

[PATCH v7 3/7] powerpc: mm: Replace p{u,m,4}d_is_leaf with p{u,m,4}_leaf

2023-02-14 Thread Rohan McLure
Replace occurrences of p{u,m,4}d_is_leaf with p{u,m,4}_leaf, as the latter is the name given to checking that a higher-level entry in multi-level paging contains a page translation entry (pte) throughout all other archs. A future patch will implement p{u,m,4}_leaf stubs on all platforms so that

Re: [PATCH v6 2/7] powerpc/64s: mm: Introduce __pmdp_collapse_flush with mm_struct argument

2023-02-14 Thread Rohan McLure
> On 15 Feb 2023, at 11:17 am, Rohan McLure wrote: > >> On 14 Feb 2023, at 5:02 pm, Christophe Leroy >> wrote: >> >> >> >> Le 14/02/2023 à 02:59, Rohan McLure a écrit : >>> pmdp_collapse_flush has references in generic code with just three >>> parameters, due to the choice of mm context

Re: [PATCH v6 2/7] powerpc/64s: mm: Introduce __pmdp_collapse_flush with mm_struct argument

2023-02-14 Thread Rohan McLure
> On 14 Feb 2023, at 5:02 pm, Christophe Leroy > wrote: > > > > Le 14/02/2023 à 02:59, Rohan McLure a écrit : >> pmdp_collapse_flush has references in generic code with just three >> parameters, due to the choice of mm context being implied by the vm_area >> context parameter. >> >> Define

Re: [PATCH RFC] PCI/AER: Enable internal AER errors by default

2023-02-14 Thread Ira Weiny
Bjorn Helgaas wrote: > On Fri, Feb 10, 2023 at 02:33:23PM -0800, Ira Weiny wrote: > > The CXL driver expects internal error reporting to be enabled via > > pci_enable_pcie_error_reporting(). It is likely other drivers expect the > > same. > > Dave submitted a patch to enable the CXL side[1] but

Re: [PATCH] tools/perf/tests: Add system wide check for perf bench workload in all metric test

2023-02-14 Thread Ian Rogers
On Tue, Feb 7, 2023 at 7:45 PM kajoljain wrote: > > > > On 2/6/23 10:10, Athira Rajeev wrote: > > > > > >> On 02-Feb-2023, at 10:14 PM, Kajol Jain wrote: > >> > >> Testcase stat_all_metrics.sh fails in powerpc: > >> > >> 92: perf all metrics test : FAILED! > >> > >> Logs with verbose: > >> > >>

Re: (subset) [PATCH 00/35] Documentation: correct lots of spelling errors (series 1)

2023-02-14 Thread Martin K. Petersen
On Thu, 26 Jan 2023 22:39:30 -0800, Randy Dunlap wrote: > Correct many spelling errors in Documentation/ as reported by codespell. > > Maintainers of specific kernel subsystems are only Cc-ed on their > respective patches, not the entire series. [if all goes well] > > These patches are based on

Re: [PATCH v2 03/24] arm/cpu: Make sure arch_cpu_idle_dead() doesn't return

2023-02-14 Thread Russell King (Oracle)
On Tue, Feb 14, 2023 at 10:39:26AM -0800, Josh Poimboeuf wrote: > On Tue, Feb 14, 2023 at 11:15:23AM +, Russell King (Oracle) wrote: > > On Mon, Feb 13, 2023 at 11:05:37PM -0800, Josh Poimboeuf wrote: > > > arch_cpu_idle_dead() doesn't return. Make that more explicit with a > > > BUG(). > > >

RE: [EXT] Re: [PATCH 1/1] PCI: layerscape: Set 64-bit DMA mask

2023-02-14 Thread Frank Li
> > > > + /* set 64-bit DMA mask and coherent DMA mask */ > > + if (dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64))) > > + dev_warn(dev, "Failed to set 64-bit DMA mask.\n"); > > Isn't this mandatory? Why not dev_err_probe and return the error? I don't think it is mandatory.

Re: [PATCH v2 19/24] xtensa/cpu: Make sure cpu_die() doesn't return

2023-02-14 Thread Josh Poimboeuf
On Tue, Feb 14, 2023 at 11:48:41AM -0800, Max Filippov wrote: > On Tue, Feb 14, 2023 at 10:23 AM Josh Poimboeuf wrote: > > On Tue, Feb 14, 2023 at 08:55:32AM +0100, Philippe Mathieu-Daudé wrote: > > > Can you update the documentation along? Currently we have: > > > > > > /* > > >* Called

Re: [PATCH v2 19/24] xtensa/cpu: Make sure cpu_die() doesn't return

2023-02-14 Thread Max Filippov
On Tue, Feb 14, 2023 at 10:23 AM Josh Poimboeuf wrote: > On Tue, Feb 14, 2023 at 08:55:32AM +0100, Philippe Mathieu-Daudé wrote: > > Can you update the documentation along? Currently we have: > > > > /* > >* Called from the idle thread for the CPU which has been shutdown. > >* > >*

Re: [PATCH v2 19/24] xtensa/cpu: Make sure cpu_die() doesn't return

2023-02-14 Thread Steven Rostedt
On Tue, 14 Feb 2023 10:23:22 -0800 Josh Poimboeuf wrote: > void __ref cpu_die(void) > { > idle_task_exit(); > local_irq_disable(); > __asm__ __volatile__( > " movia2, cpu_restart\n" > " jx a2\n"); > >

Re: [PATCH v2 03/24] arm/cpu: Make sure arch_cpu_idle_dead() doesn't return

2023-02-14 Thread Josh Poimboeuf
On Tue, Feb 14, 2023 at 11:15:23AM +, Russell King (Oracle) wrote: > On Mon, Feb 13, 2023 at 11:05:37PM -0800, Josh Poimboeuf wrote: > > arch_cpu_idle_dead() doesn't return. Make that more explicit with a > > BUG(). > > > > BUG() is preferable to unreachable() because BUG() is a more

Re: [PATCH v2 00/24] cpu,sched: Mark arch_cpu_idle_dead() __noreturn

2023-02-14 Thread Josh Poimboeuf
On Tue, Feb 14, 2023 at 10:25:50AM +0100, Philippe Mathieu-Daudé wrote: > On 14/2/23 08:05, Josh Poimboeuf wrote: > > v2: > > - make arch_call_rest_init() and rest_init() __noreturn > > - make objtool 'global_returns' work for weak functions > > - rebase on tip/objtool/core with dependencies

Re: [PATCH v2 13/24] sh/cpu: Make sure play_dead() doesn't return

2023-02-14 Thread Josh Poimboeuf
On Tue, Feb 14, 2023 at 08:57:39AM +0100, Philippe Mathieu-Daudé wrote: > On 14/2/23 08:05, Josh Poimboeuf wrote: > > play_dead() doesn't return. Make that more explicit with a BUG(). > > > > BUG() is preferable to unreachable() because BUG() is a more explicit > > failure mode and avoids

Re: [PATCH v2 19/24] xtensa/cpu: Make sure cpu_die() doesn't return

2023-02-14 Thread Josh Poimboeuf
On Tue, Feb 14, 2023 at 08:55:32AM +0100, Philippe Mathieu-Daudé wrote: > Hi Josh, > > On 14/2/23 08:05, Josh Poimboeuf wrote: > > cpu_die() doesn't return. Make that more explicit with a BUG(). > > > > BUG() is preferable to unreachable() because BUG() is a more explicit > > failure mode and

Re: [PATCH v2 09/24] mips/cpu: Expose play_dead()'s prototype definition

2023-02-14 Thread Josh Poimboeuf
On Tue, Feb 14, 2023 at 08:46:41AM +0100, Philippe Mathieu-Daudé wrote: > Hi Josh, > > On 14/2/23 08:05, Josh Poimboeuf wrote: > > Include to make sure play_dead() matches its prototype going > > forward. > > > > Acked-by: Florian Fainelli > > Signed-off-by: Josh Poimboeuf > > --- > >

Re: [PATCH] ASoC: imx-pcm-rpmsg: Remove unused variable

2023-02-14 Thread Mark Brown
On Mon, 13 Feb 2023 23:43:03 +0530, Deepak R Varma wrote: > Variable ret is initialed but is never modified or used except for > returning the initial value 0. The value can be directly returned > instead and the variable definition can be dropped. > Issue identified using returnvar.cocci

Re: [PATCH 1/1] PCI: layerscape: Set 64-bit DMA mask

2023-02-14 Thread Sean Anderson
On 1/12/23 14:36, Frank Li wrote: > From: Guanhua Gao > > Set DMA mask and coherent DMA mask to enable 64-bit addressing. > > Signed-off-by: Guanhua Gao > Signed-off-by: Hou Zhiqiang > Signed-off-by: Frank Li > --- > drivers/pci/controller/dwc/pci-layerscape-ep.c | 4 > 1 file changed,

RE: [PATCH 1/1] PCI: layerscape: Add the workaround for A-010305

2023-02-14 Thread Frank Li
> -Original Message- > From: Frank Li > Subject: RE: [PATCH 1/1] PCI: layerscape: Add the workaround for A-010305 > > > Subject: [PATCH 1/1] PCI: layerscape: Add the workaround for A-010305 > > > > From: Xiaowei Bao > > > > When a link down or hot reset event occurs, the PCI Express EP >

RE: [PATCH 1/1] PCI: layerscape: Set 64-bit DMA mask

2023-02-14 Thread Frank Li
> -Original Message- > From: Frank Li > Subject: RE: [PATCH 1/1] PCI: layerscape: Set 64-bit DMA mask > > > > Subject: [PATCH 1/1] PCI: layerscape: Set 64-bit DMA mask > > > > From: Guanhua Gao > > > > Set DMA mask and coherent DMA mask to enable 64-bit addressing. > > > >

Re: [PATCH v2 00/33] Per-VMA locks

2023-02-14 Thread Suren Baghdasaryan
On Fri, Jan 27, 2023 at 4:00 PM Suren Baghdasaryan wrote: > > On Fri, Jan 27, 2023 at 3:26 PM Matthew Wilcox wrote: > > > > On Fri, Jan 27, 2023 at 02:51:38PM -0800, Andrew Morton wrote: > > > On Fri, 27 Jan 2023 11:40:37 -0800 Suren Baghdasaryan > > > wrote: > > > > > > > Per-vma locks idea

Re: [PATCH] powerpc/pseries/cpuhp: respect current SMT when adding new CPU

2023-02-14 Thread Laurent Dufour
On 13/02/2023 16:40:50, Nathan Lynch wrote: > Michal Suchánek writes: >> On Mon, Feb 13, 2023 at 08:46:50AM -0600, Nathan Lynch wrote: >>> Laurent Dufour writes: When a new CPU is added, the kernel is activating all its threads. This leads to weird, but functional, result when adding

Re: [PATCH v3 02/24] arm64: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Catalin Marinas
On Tue, Feb 14, 2023 at 08:49:03AM +0100, Alexandre Ghiti wrote: > From: Palmer Dabbelt > > As far as I can tell this is not used by userspace and thus should not > be part of the user-visible API. > > Signed-off-by: Palmer Dabbelt Acked-by: Catalin Marinas

Re: [PATCH v4 0/7] Generic IPI sending tracepoint

2023-02-14 Thread Valentin Schneider
Hey folks, On 19/01/23 14:36, Valentin Schneider wrote: > Patches > === > > o Patches 1-5 spread out the tracepoint across relevant sites. > Patch 5 ends up sprinkling lots of #include which I'm > not > the biggest fan of, but is the least horrible solution I've been able to > come >

Re: [PATCH v3 21/24] xtensa: Remove empty

2023-02-14 Thread Max Filippov
On Tue, Feb 14, 2023 at 12:11 AM Alexandre Ghiti wrote: > > From: Palmer Dabbelt > > Signed-off-by: Palmer Dabbelt > --- > arch/xtensa/include/uapi/asm/setup.h | 15 --- > 1 file changed, 15 deletions(-) > delete mode 100644 arch/xtensa/include/uapi/asm/setup.h Acked-by: Max

Re: [PATCH v3 11/24] xtensa: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Max Filippov
On Tue, Feb 14, 2023 at 12:01 AM Alexandre Ghiti wrote: > > From: Palmer Dabbelt > > As far as I can tell this is not used by userspace and thus should not > be part of the user-visible API. > > Signed-off-by: Palmer Dabbelt > --- > arch/xtensa/include/asm/setup.h | 17 + >

Re: [PATCH v2 20/24] xtensa/cpu: Mark cpu_die() __noreturn

2023-02-14 Thread Max Filippov
On Mon, Feb 13, 2023 at 11:07 PM Josh Poimboeuf wrote: > > cpu_die() doesn't return. Annotate it as such. By extension this also > makes arch_cpu_idle_dead() noreturn. > > Signed-off-by: Josh Poimboeuf > --- > arch/xtensa/include/asm/smp.h | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v2 03/24] arm/cpu: Make sure arch_cpu_idle_dead() doesn't return

2023-02-14 Thread Russell King (Oracle)
On Mon, Feb 13, 2023 at 11:05:37PM -0800, Josh Poimboeuf wrote: > arch_cpu_idle_dead() doesn't return. Make that more explicit with a > BUG(). > > BUG() is preferable to unreachable() because BUG() is a more explicit > failure mode and avoids undefined behavior like falling off the edge of > the

[powerpc:next] BUILD SUCCESS 08273c9f619cb32fb041935724f576e607101f3b

2023-02-14 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next branch HEAD: 08273c9f619cb32fb041935724f576e607101f3b powerpc/rtas: arch-wide function token lookup conversions elapsed time: 1340m configs tested: 42 configs skipped: 3 The following configs have been built

Re: [PATCH v3 10/24] sparc: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread John Paul Adrian Glaubitz
On Tue, 2023-02-14 at 16:59 +0800, WANG Xuerui wrote: > On 2023/2/14 16:50, Sergey Shtylyov wrote: > > On 2/14/23 10:49 AM, Alexandre Ghiti wrote: > > > > > From: Palmer Dabbelt > > > > > > As far as I can tell this is not used by userspace and thus should not > > > be part of the user-visible

[PATCH v3 24/24] s390: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/s390/include/asm/setup.h | 1 - arch/s390/include/uapi/asm/setup.h | 1 - 2 files changed, 2 deletions(-) delete mode 100644 arch/s390/include/uapi/asm/setup.h diff --git a/arch/s390/include/asm/setup.h

[PATCH v3 23/24] mips: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/mips/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/mips/include/uapi/asm/setup.h diff --git a/arch/mips/include/uapi/asm/setup.h b/arch/mips/include/uapi/asm/setup.h deleted file mode

[PATCH v3 22/24] powerpc: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/powerpc/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/powerpc/include/uapi/asm/setup.h diff --git a/arch/powerpc/include/uapi/asm/setup.h b/arch/powerpc/include/uapi/asm/setup.h deleted

[PATCH v3 21/24] xtensa: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/xtensa/include/uapi/asm/setup.h | 15 --- 1 file changed, 15 deletions(-) delete mode 100644 arch/xtensa/include/uapi/asm/setup.h diff --git a/arch/xtensa/include/uapi/asm/setup.h b/arch/xtensa/include/uapi/asm/setup.h

[PATCH v3 20/24] x86: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/x86/include/asm/setup.h | 2 -- arch/x86/include/uapi/asm/setup.h | 1 - 2 files changed, 3 deletions(-) delete mode 100644 arch/x86/include/uapi/asm/setup.h diff --git a/arch/x86/include/asm/setup.h

[PATCH v3 19/24] parisc: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/parisc/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/parisc/include/uapi/asm/setup.h diff --git a/arch/parisc/include/uapi/asm/setup.h b/arch/parisc/include/uapi/asm/setup.h deleted file

[PATCH v3 18/24] sparc: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/sparc/include/uapi/asm/setup.h | 9 - 1 file changed, 9 deletions(-) delete mode 100644 arch/sparc/include/uapi/asm/setup.h diff --git a/arch/sparc/include/uapi/asm/setup.h b/arch/sparc/include/uapi/asm/setup.h deleted file

[PATCH v3 17/24] microblaze: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/microblaze/include/uapi/asm/setup.h | 18 -- 1 file changed, 18 deletions(-) delete mode 100644 arch/microblaze/include/uapi/asm/setup.h diff --git a/arch/microblaze/include/uapi/asm/setup.h

[PATCH v3 16/24] arm64: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/arm64/include/uapi/asm/setup.h | 25 - 1 file changed, 25 deletions(-) delete mode 100644 arch/arm64/include/uapi/asm/setup.h diff --git a/arch/arm64/include/uapi/asm/setup.h

[PATCH v3 15/24] m68k: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/m68k/include/uapi/asm/setup.h | 15 --- 1 file changed, 15 deletions(-) delete mode 100644 arch/m68k/include/uapi/asm/setup.h diff --git a/arch/m68k/include/uapi/asm/setup.h b/arch/m68k/include/uapi/asm/setup.h deleted

[PATCH v3 14/24] arc: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/arc/include/asm/setup.h | 1 - arch/arc/include/uapi/asm/setup.h | 6 -- 2 files changed, 7 deletions(-) delete mode 100644 arch/arc/include/uapi/asm/setup.h diff --git a/arch/arc/include/asm/setup.h

[PATCH v3 13/24] alpha: Remove empty

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/alpha/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/alpha/include/uapi/asm/setup.h diff --git a/arch/alpha/include/uapi/asm/setup.h b/arch/alpha/include/uapi/asm/setup.h deleted file

[PATCH v3 12/24] asm-generic: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Since only contains COMMAND_LINE_SIZE we can just move it out of uapi to hide the definition and fix up the only direct use in Loongarch. Signed-off-by: Palmer Dabbelt

[PATCH v3 11/24] xtensa: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/xtensa/include/asm/setup.h | 17 + arch/xtensa/include/uapi/asm/setup.h | 2 -- 2 files changed, 17

[PATCH v3 10/24] sparc: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/sparc/include/asm/setup.h | 6 +- arch/sparc/include/uapi/asm/setup.h | 7 --- 2 files changed, 5 insertions(+), 8

[PATCH v3 09/24] powerpc: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/powerpc/include/asm/setup.h | 2 +- arch/powerpc/include/uapi/asm/setup.h | 2 -- 2 files changed, 1 insertion(+), 3

[PATCH v3 08/24] parisc: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/parisc/include/asm/setup.h | 7 +++ arch/parisc/include/uapi/asm/setup.h | 2 -- 2 files changed, 7 insertions(+), 2

[PATCH v3 07/24] mips: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/mips/include/asm/setup.h | 3 ++- arch/mips/include/uapi/asm/setup.h | 3 --- 2 files changed, 2 insertions(+), 4

[PATCH v3 06/24] microblaze: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/microblaze/include/asm/setup.h | 2 +- arch/microblaze/include/uapi/asm/setup.h | 2 -- 2 files changed, 1 insertion(+), 3

[PATCH v3 05/24] m68k: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/m68k/include/asm/setup.h | 3 +-- arch/m68k/include/uapi/asm/setup.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-)

[PATCH v3 04/24] ia64: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/ia64/include/asm/setup.h | 10 ++ arch/ia64/include/uapi/asm/setup.h | 6 ++ 2 files changed, 12 insertions(+),

[PATCH v3 03/24] arm: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/arm/include/asm/setup.h | 1 + arch/arm/include/uapi/asm/setup.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)

[PATCH v3 02/24] arm64: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/arm64/include/asm/setup.h | 3 ++- arch/arm64/include/uapi/asm/setup.h | 2 -- 2 files changed, 2 insertions(+), 3

[PATCH v3 01/24] alpha: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/alpha/include/asm/setup.h | 4 ++-- arch/alpha/include/uapi/asm/setup.h | 2 -- 2 files changed, 2 insertions(+), 4

[PATCH v3 00/24] Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Alexandre Ghiti
This all came up in the context of increasing COMMAND_LINE_SIZE in the RISC-V port. In theory that's a UABI break, as COMMAND_LINE_SIZE is the maximum length of /proc/cmdline and userspace could staticly rely on that to be correct. Usually I wouldn't mess around with changing this sort of thing,

Re: API for setting multiple PTEs at once

2023-02-14 Thread Alexandre Ghiti
Hi Matthew, On 2/7/23 21:27, Matthew Wilcox wrote: On Thu, Feb 02, 2023 at 09:14:23PM +, Matthew Wilcox wrote: For those of you not subscribed, linux-mm is currently discussing how best to handle page faults on large folios. I simply made it work when adding large folio support. Now Yin

Re: [PATCH v3 19/24] parisc: Remove empty

2023-02-14 Thread Helge Deller
On 2/14/23 10:08, Philippe Mathieu-Daudé wrote: On 14/2/23 08:49, Alexandre Ghiti wrote: From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt ---   arch/parisc/include/uapi/asm/setup.h | 5 -   1 file changed, 5 deletions(-)   delete mode 100644 arch/parisc/include/uapi/asm/setup.h

Re: [PATCH v3 08/24] parisc: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Helge Deller
On 2/14/23 10:08, Philippe Mathieu-Daudé wrote: On 14/2/23 08:49, Alexandre Ghiti wrote: From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt ---   arch/parisc/include/asm/setup.h  | 7

Re: [PATCH v2 00/24] cpu,sched: Mark arch_cpu_idle_dead() __noreturn

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:05, Josh Poimboeuf wrote: v2: - make arch_call_rest_init() and rest_init() __noreturn - make objtool 'global_returns' work for weak functions - rebase on tip/objtool/core with dependencies merged in (mingo) - add acks v1.1: - add __noreturn to all arch_cpu_idle_dead()

Re: [PATCH v3 00/24] Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Heiko Carstens
On Tue, Feb 14, 2023 at 09:58:17AM +0100, Geert Uytterhoeven wrote: > Hi Heiko, > > On Tue, Feb 14, 2023 at 9:39 AM Heiko Carstens wrote: > > On Tue, Feb 14, 2023 at 08:49:01AM +0100, Alexandre Ghiti wrote: > > > This all came up in the context of increasing COMMAND_LINE_SIZE in the > > > RISC-V

Re: [PATCH v3 10/24] sparc: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Sergey Shtylyov
On 2/14/23 11:59 AM, WANG Xuerui wrote: [...] >>> From: Palmer Dabbelt >>> >>> As far as I can tell this is not used by userspace and thus should not >>> be part of the user-visible API. >>> >>> Signed-off-by: Palmer Dabbelt >>> --- >>>   arch/sparc/include/asm/setup.h  | 6 +- >>>  

Re: [PATCH v3 19/24] parisc: Remove empty

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:49, Alexandre Ghiti wrote: From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/parisc/include/uapi/asm/setup.h | 5 - 1 file changed, 5 deletions(-) delete mode 100644 arch/parisc/include/uapi/asm/setup.h Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v3 08/24] parisc: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:49, Alexandre Ghiti wrote: From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/parisc/include/asm/setup.h | 7 +++ arch/parisc/include/uapi/asm/setup.h |

Re: [PATCH v3 10/24] sparc: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread WANG Xuerui
On 2023/2/14 16:50, Sergey Shtylyov wrote: On 2/14/23 10:49 AM, Alexandre Ghiti wrote: From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/sparc/include/asm/setup.h | 6

Re: [PATCH v3 01/24] alpha: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:49, Alexandre Ghiti wrote: From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/alpha/include/asm/setup.h | 4 ++-- arch/alpha/include/uapi/asm/setup.h | 2 --

Re: [PATCH v3 05/24] m68k: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Geert Uytterhoeven
On Tue, Feb 14, 2023 at 8:55 AM Alexandre Ghiti wrote: > From: Palmer Dabbelt > > As far as I can tell this is not used by userspace and thus should not > be part of the user-visible API. > > Signed-off-by: Palmer Dabbelt Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s,

Re: [PATCH v3 07/24] mips: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:49, Alexandre Ghiti wrote: From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Signed-off-by: Palmer Dabbelt --- arch/mips/include/asm/setup.h | 3 ++- arch/mips/include/uapi/asm/setup.h | 3 ---

Re: [PATCH v3 14/24] arc: Remove empty

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:49, Alexandre Ghiti wrote: From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/arc/include/asm/setup.h | 1 - arch/arc/include/uapi/asm/setup.h | 6 -- 2 files changed, 7 deletions(-) delete mode 100644 arch/arc/include/uapi/asm/setup.h Reviewed-by:

Re: [PATCH v3 10/24] sparc: Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Sergey Shtylyov
On 2/14/23 10:49 AM, Alexandre Ghiti wrote: > From: Palmer Dabbelt > > As far as I can tell this is not used by userspace and thus should not > be part of the user-visible API. > > Signed-off-by: Palmer Dabbelt > --- > arch/sparc/include/asm/setup.h | 6 +- >

Re: [PATCH v3 24/24] s390: Remove empty

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:49, Alexandre Ghiti wrote: From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/s390/include/asm/setup.h | 1 - arch/s390/include/uapi/asm/setup.h | 1 - 2 files changed, 2 deletions(-) delete mode 100644 arch/s390/include/uapi/asm/setup.h Reviewed-by:

Re: [PATCH v3 20/24] x86: Remove empty

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:49, Alexandre Ghiti wrote: From: Palmer Dabbelt Signed-off-by: Palmer Dabbelt --- arch/x86/include/asm/setup.h | 2 -- arch/x86/include/uapi/asm/setup.h | 1 - 2 files changed, 3 deletions(-) delete mode 100644 arch/x86/include/uapi/asm/setup.h Reviewed-by: Philippe

Re: [PATCH v3 15/24] m68k: Remove empty

2023-02-14 Thread Geert Uytterhoeven
On Tue, Feb 14, 2023 at 9:05 AM Alexandre Ghiti wrote: > From: Palmer Dabbelt > > Signed-off-by: Palmer Dabbelt Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal

Re: [PATCH v3 00/24] Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Geert Uytterhoeven
Hi Heiko, On Tue, Feb 14, 2023 at 9:39 AM Heiko Carstens wrote: > On Tue, Feb 14, 2023 at 08:49:01AM +0100, Alexandre Ghiti wrote: > > This all came up in the context of increasing COMMAND_LINE_SIZE in the > > RISC-V port. In theory that's a UABI break, as COMMAND_LINE_SIZE is the > > maximum

Re: [PATCH v3 00/24] Remove COMMAND_LINE_SIZE from uapi

2023-02-14 Thread Heiko Carstens
On Tue, Feb 14, 2023 at 08:49:01AM +0100, Alexandre Ghiti wrote: > This all came up in the context of increasing COMMAND_LINE_SIZE in the > RISC-V port. In theory that's a UABI break, as COMMAND_LINE_SIZE is the > maximum length of /proc/cmdline and userspace could staticly rely on > that to be

Re: [PATCH v3 24/24] s390: Remove empty

2023-02-14 Thread Heiko Carstens
On Tue, Feb 14, 2023 at 08:49:25AM +0100, Alexandre Ghiti wrote: > From: Palmer Dabbelt > > Signed-off-by: Palmer Dabbelt > --- > arch/s390/include/asm/setup.h | 1 - > arch/s390/include/uapi/asm/setup.h | 1 - > 2 files changed, 2 deletions(-) > delete mode 100644

Re: [PATCH v2 04/24] arm64/cpu: Mark cpu_die() __noreturn

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:05, Josh Poimboeuf wrote: cpu_die() doesn't return. Annotate it as such. By extension this also makes arch_cpu_idle_dead() noreturn. Signed-off-by: Josh Poimboeuf --- arch/arm64/include/asm/smp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2 06/24] ia64/cpu: Mark play_dead() __noreturn

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:05, Josh Poimboeuf wrote: play_dead() doesn't return. Annotate it as such. By extension this also makes arch_cpu_idle_dead() noreturn. Signed-off-by: Josh Poimboeuf --- arch/ia64/kernel/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by:

Re: [PATCH v2 08/24] loongarch/cpu: Mark play_dead() __noreturn

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:05, Josh Poimboeuf wrote: play_dead() doesn't return. Annotate it as such. By extension this also makes arch_cpu_idle_dead() noreturn. Signed-off-by: Josh Poimboeuf --- arch/loongarch/include/asm/smp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by:

Re: [PATCH v2 17/24] x86/cpu: Make sure play_dead() doesn't return

2023-02-14 Thread Philippe Mathieu-Daudé
On 14/2/23 08:05, Josh Poimboeuf wrote: After commit 076cbf5d2163 ("x86/xen: don't let xen_pv_play_dead() return"), play_dead() never returns. Make that more explicit with a BUG(). BUG() is preferable to unreachable() because BUG() is a more explicit failure mode and avoids undefined behavior