Re: [RFC v3 -next] cma: Enforce non-zero pageblock_order during cma_init_reserved_mem()

2024-10-13 Thread Anshuman Khandual
On 10/11/24 20:26, Ritesh Harjani (IBM) wrote: > cma_init_reserved_mem() checks base and size alignment with > CMA_MIN_ALIGNMENT_BYTES. However, some users might call this during > early boot when pageblock_order is 0. That means if base and size does > not have pageblock_order alignment, it can

Re: [PATCH] x86/uaccess: Avoid barrier_nospec() in copy_from_user()

2024-10-13 Thread Linus Torvalds
On Sun, 13 Oct 2024 at 20:54, Josh Poimboeuf wrote: > > If I understand correctly, LAM bits are for the benefit of SW and are > ignored by HW? Can we just mask those bits off? Yes. But then you waste time on the masking, but particularly if it then causes silly extra overhead just to get the mas

Re: [PATCH 06/12] huge_memory: Allow mappings of PUD sized pages

2024-10-13 Thread Alistair Popple
Dan Williams writes: > 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 dax_insert_pfn_pud. This will map the entire PUD-sized folio >> and take references as it wou

Re: [PATCH] tty: hvc: riscv_sbi: instantiate the legcay console earlier

2024-10-13 Thread Greg Kroah-Hartman
On Mon, Oct 14, 2024 at 08:08:57AM +0800, Jisheng Zhang wrote: > The hvc_instantiate() is an early console discovery mechanism, it is > usually called before allocating hvc terminal devices. In fact, if > we check hvc_riscv_sbi's hvc_instantiate() return value, we'll find > that it's -1. So the cal

[PATCH] ASoC: fsl_micfil: Add sample rate constraint

2024-10-13 Thread Shengjiu Wang
On some platforms, for example i.MX93, there is only one audio PLL source, so some sample rate can't be supported. If the PLL source is used for 8kHz series rates, then 11kHz series rates can't be supported. So add constraints according to the frequency of available clock sources, then alsa-lib wi

Re: [PATCH v5 7/8] execmem: add support for cache of large ROX pages

2024-10-13 Thread Christoph Hellwig
On Sun, Oct 13, 2024 at 11:43:41AM +0300, Mike Rapoport wrote: > > But why? That's pretty different from our normal style of arch hooks, > > and introduces an indirect call in a security sensitive area. > > Will change to __weak hook. Isn't the callback required when using the large ROX page?

[PATCH] crypto/nx: Rename devdata_mutex to devdata_spinlock

2024-10-13 Thread Vishal Chourasia
Rename devdata_mutex to devdata_spinlock to accurately reflect its implementation as a spinlock. Signed-off-by: Vishal Chourasia --- drivers/crypto/nx/nx-common-pseries.c | 34 +-- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/crypto/nx/nx-common

Re: [PATCH] x86/uaccess: Avoid barrier_nospec() in copy_from_user()

2024-10-13 Thread Josh Poimboeuf
On Sat, Oct 12, 2024 at 06:21:12PM -0700, Linus Torvalds wrote: > On Sat, 12 Oct 2024 at 17:53, Linus Torvalds > wrote: > > > > So no, the address masking can not depend on things like > > __VIRTUAL_MASK_SHIFT, it would need to at least take LAM into account > > too. Not that I know if there are a

Re: [PATCH v5 7/8] execmem: add support for cache of large ROX pages

2024-10-13 Thread Andrew Morton
On Sun, 13 Oct 2024 11:43:41 +0300 Mike Rapoport wrote: > > > The idea is to keep everything together and have execmem_info describe all > > > that architecture needs. > > > > But why? That's pretty different from our normal style of arch hooks, > > and introduces an indirect call in a securit

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-6.12-4 tag

2024-10-13 Thread pr-tracker-bot
The pull request you sent on Sun, 13 Oct 2024 10:19:32 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-6.12-4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/36c254515dc6592c44db77b84908358979dd6b50 Thank you! -- Deet-doot-d

[PATCH] tty: hvc: riscv_sbi: instantiate the legcay console earlier

2024-10-13 Thread Jisheng Zhang
The hvc_instantiate() is an early console discovery mechanism, it is usually called before allocating hvc terminal devices. In fact, if we check hvc_riscv_sbi's hvc_instantiate() return value, we'll find that it's -1. So the calling hvc_instantiate() is too late. We can remove the hvc_instantiate(

Re: [PATCH 00/17] replace call_rcu by kfree_rcu for simple kmem_cache_free callback

2024-10-13 Thread Paul E. McKenney
On Sun, Oct 13, 2024 at 10:16:47PM +0200, Julia Lawall wrote: > Since SLOB was removed and since > commit 6c6c47b063b5 ("mm, slab: call kvfree_rcu_barrier() from > kmem_cache_destroy()"), > it is not necessary to use call_rcu when the callback only performs > kmem_cache_free. Use kfree_rcu() direc

Re: (subset) [PATCH 00/17] replace call_rcu by kfree_rcu for simple kmem_cache_free callback

2024-10-13 Thread Jens Axboe
On Sun, 13 Oct 2024 22:16:47 +0200, Julia Lawall wrote: > Since SLOB was removed and since > commit 6c6c47b063b5 ("mm, slab: call kvfree_rcu_barrier() from > kmem_cache_destroy()"), > it is not necessary to use call_rcu when the callback only performs > kmem_cache_free. Use kfree_rcu() directly.

[RFC] ipw2100 ipw2200 ps3_gelic rtl8712 --- Are we ready for wext cleanup?

2024-10-13 Thread Philipp Hortmann
Hi, origin of this question was the following patch series from Arnd Bergmann [PATCH 00/10] Remove obsolete and orphaned wifi drivers https://lore.kernel.org/linux-staging/20231023131953.2876682-1-a...@kernel.org/ Here the remaining files that use iw_handler_def: drivers/net/ethernet/toshiba/ps3

[PATCH 13/17] KVM: PPC: replace call_rcu by kfree_rcu for simple kmem_cache_free callback

2024-10-13 Thread Julia Lawall
Since SLOB was removed and since commit 6c6c47b063b5 ("mm, slab: call kvfree_rcu_barrier() from kmem_cache_destroy()"), it is not necessary to use call_rcu when the callback only performs kmem_cache_free. Use kfree_rcu() directly. The changes were made using Coccinelle. Signed-off-by: Julia Lawa

[PATCH 00/17] replace call_rcu by kfree_rcu for simple kmem_cache_free callback

2024-10-13 Thread Julia Lawall
Since SLOB was removed and since commit 6c6c47b063b5 ("mm, slab: call kvfree_rcu_barrier() from kmem_cache_destroy()"), it is not necessary to use call_rcu when the callback only performs kmem_cache_free. Use kfree_rcu() directly. The changes were done using the following Coccinelle semantic patc

[PATCH] tools/perf/tests: Fix compilation error with strncpy in tests/tool_pmu

2024-10-13 Thread Athira Rajeev
perf fails to compile on systems with GCC version11 as below: In file included from /usr/include/string.h:519, from /home/athir/perf-tools-next/tools/include/linux/bitmap.h:5, from /home/athir/perf-tools-next/tools/perf/util/pmu.h:5, from /home/a

[PATCH] tools/perf/tests: Remove duplicate evlist__delete in tests/tool_pmu.c

2024-10-13 Thread Athira Rajeev
The testcase for tool_pmu failed in powerpc as below: ./perf test -v "Parsing without PMU name" 8: Tool PMU: 8.1: Parsing without PMU name : FAILED! This happens when parse_events results in either s

Re: [PATCH] powermac: Use of_property_match_string() in pmac_has_backlight_type()

2024-10-13 Thread Dan Carpenter
On Fri, Oct 11, 2024 at 06:25:45PM +0200, Christophe Leroy wrote: > > diff --git a/arch/powerpc/platforms/powermac/backlight.c > > b/arch/powerpc/platforms/powermac/backlight.c > > index 12bc01353bd3..79741370c40c 100644 > > --- a/arch/powerpc/platforms/powermac/backlight.c > > +++ b/arch/powerpc/

[PATCH] soc: fsl: rcpm: fix missing of_node_put() in copy_ippdexpcr1_setting()

2024-10-13 Thread Javier Carrasco
fsl/rcpm.c @@ -36,6 +36,7 @@ static void copy_ippdexpcr1_setting(u32 val) return; regs = of_iomap(np, 0); + of_node_put(np); if (!regs) return; --- base-commit: d61a00525464bfc5fe92c6ad713350988e492b88 change-id: 20241013-rcpm-of_node_put-5e

[PATCH v2] powerpc/64: Remove maple platform

2024-10-13 Thread Michael Ellerman
The maple platform was added in 2004 [1], to support the "Maple" 970FX evaluation board. It was later used for IBM JS20/JS21 machines, as well as the Bimini machine, aka "Yellow Dog Powerstation". Sadly all those machines have passed into memory, and there's been no evidence for years that anyone

Re: [PATCH v5 7/8] execmem: add support for cache of large ROX pages

2024-10-13 Thread Mike Rapoport
On Fri, Oct 11, 2024 at 12:46:23AM -0700, Christoph Hellwig wrote: > On Thu, Oct 10, 2024 at 03:57:33PM +0300, Mike Rapoport wrote: > > On Wed, Oct 09, 2024 at 11:58:33PM -0700, Christoph Hellwig wrote: > > > On Wed, Oct 09, 2024 at 09:08:15PM +0300, Mike Rapoport wrote: > > > > /** > > > > * st