[PATCH 1/2] asm-generic: provide generic page_to_phys and phys_to_page implementations

2024-10-22 Thread Christoph Hellwig
page_to_phys is duplicated by all architectures, and from some strange reason placed in where it doesn't fit at all. phys_to_page is only provided by a few architectures despite having a lot of open coded users. Provide generic versions in to make these helpers more easily usable. Note with th

[PATCH 2/2] asm-generic: add an optional pfn_valid check to page_to_phys

2024-10-22 Thread Christoph Hellwig
page_to_pfn is usually implemented by pointer arithmetics on the memory map, which means that bogus input can lead to even more bogus output. Powerpc had a pfn_valid check on the intermediate pfn in the page_to_phys implementation when CONFIG_DEBUG_VIRTUAL is defined, which seems generally useful,

provide generic page_to_phys and phys_to_page implementations v3

2024-10-22 Thread Christoph Hellwig
page_to_phys is duplicated by all architectures, and from some strange reason placed in where it doesn't fit at all. phys_to_page is only provided by a few architectures despite having a lot of open coded users. Provide generic versions in to make these helpers more easily usable. Changes s

Re: [PATCH v4 0/7] ASoC: fsl: add memory to memory function for ASRC

2024-10-22 Thread Vinod Koul
On 25-09-24, 14:55, Shengjiu Wang wrote: > This function is base on the accelerator implementation > for compress API: > https://patchwork.kernel.org/project/alsa-devel/patch/20240731083843.59911-1-pe...@perex.cz/ > Add it to this patch set. > > Audio signal processing also has the requirement for

[PATCH] dma-mapping.h: drop unneeded includes

2024-10-22 Thread Christoph Hellwig
Back in the day a lot of logic was implemented inline in dma-mapping.h and needed various includes. Move of this has long been moved out of line, so we can drop various includes to improve kernel rebuild times. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/pseries/svm.c | 1 + inc

[PATCH v7 0/3] Extended MODVERSIONS Support

2024-10-22 Thread Matthew Maurer
/modpost.c | 65 +++-- 9 files changed, 266 insertions(+), 17 deletions(-) --- base-commit: 2295cf87ed5a6da4564034e4f8ebcce0a0a021ed change-id: 20241022-extended-modversions-a7b44dfbfff1 prerequisite-message-id: <20241008183823.36676-21-samitolva...@googl

[PATCH v7 1/3] modules: Support extended MODVERSIONS info

2024-10-22 Thread Matthew Maurer
Adds a new format for MODVERSIONS which stores each field in a separate ELF section. This initially adds support for variable length names, but could later be used to add additional fields to MODVERSIONS in a backwards compatible way if needed. Any new fields will be ignored by old user tooling, un

[PATCH v7 2/3] modpost: Produce extended MODVERSIONS information

2024-10-22 Thread Matthew Maurer
Generate both the existing modversions format and the new extended one when running modpost. Presence of this metadata in the final .ko is guarded by CONFIG_EXTENDED_MODVERSIONS. We no longer generate an error on long symbols in modpost if CONFIG_EXTENDED_MODVERSIONS is set, as they can now be app

[PATCH v7 3/3] rust: Use gendwarfksyms + extended modversions for CONFIG_MODVERSIONS

2024-10-22 Thread Matthew Maurer
From: Sami Tolvanen Previously, two things stopped Rust from using MODVERSIONS: 1. Rust symbols are occasionally too long to be represented in the original versions table 2. Rust types cannot be properly hashed by the existing genksyms approach because: * Looking up type definitions

Re: [PATCH 1/7] powerpc/entry: convert to common and generic entry

2024-10-22 Thread Michael Ellerman
"虞陆铭" writes: >>Le 12/10/2024 à 05:56, Luming Yu a écrit : >>> convert powerpc entry code in syscall and fault to use syscall_work >>> and irqentry_state as well as common calls implemented in generic >>> entry infrastructure. >>> >>> Signed-off-by: Luming Yu >>> --- >>> arch/powerpc/Kconfig

[PATCH v4 4/5] perf/powerpc: Count dropped samples in core-book3s PMU

2024-10-22 Thread Namhyung Kim
Due to the hardware limitation, sometimes it could sample kernel address while attr.exclude_kernel is set. In that case it silently drops the sample. Let's count that case in the new dropped_samples counter. Reviewed-by: Madhavan Srinivasan Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christo

Re: [PATCH 0/2] ASoC: fsl_xcvr: enable some interrupts

2024-10-22 Thread Mark Brown
On Tue, 08 Oct 2024 14:27:51 +0800, Shengjiu Wang wrote: > Enable interrupt of cmdc status update and the interrupts for > wrong preamble received. > > Shengjiu Wang (2): > ASoC: fsl_xcvr: enable interrupt of cmdc status update > ASoC: fsl_xcvr: reset RX dpath after wrong preamble > > [...]

Re: [PATCH] ASoC: fsl_micfil: Add sample rate constraint

2024-10-22 Thread Mark Brown
On Mon, 14 Oct 2024 13:38:33 +0800, Shengjiu Wang wrote: > 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 ac

[PATCH net-next] ibmvnic: use ethtool string helpers

2024-10-22 Thread Rosen Penev
They are the prefered way to copy ethtool strings. Avoids manually incrementing the data pointer. Signed-off-by: Rosen Penev --- drivers/net/ethernet/ibm/ibmvnic.c | 30 +- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/drivers/net/ethernet/ibm/ibmvni

[PATCH] tools/perf/tests/expr: Make the system_tsc_freq test only for intel

2024-10-22 Thread Athira Rajeev
The "Simple expression parser" test fails on powerpc as below: parsing metric: #system_tsc_freq Unrecognized literal '#system_tsc_freq'literal: #system_tsc_freq = nan syntax error FAILED tests/expr.c:247 #system_tsc_freq end(-1) 7: Simple expression parser : FAILED! In the test,

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

2024-10-22 Thread Pawan Gupta
On Mon, Oct 21, 2024 at 01:48:15PM +0300, Kirill A. Shutemov wrote: > On Sun, Oct 20, 2024 at 03:59:25PM -0700, Linus Torvalds wrote: > > On Sun, 20 Oct 2024 at 15:44, Josh Poimboeuf wrote: > > > > > > Anyway, I'd really like to make forward progress on getting rid of the > > > LFENCEs in copy_fro

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

2024-10-22 Thread Kirill A. Shutemov
On Tue, Oct 22, 2024 at 01:16:58AM -0700, Pawan Gupta wrote: > On Mon, Oct 21, 2024 at 01:48:15PM +0300, Kirill A. Shutemov wrote: > > On Sun, Oct 20, 2024 at 03:59:25PM -0700, Linus Torvalds wrote: > > > On Sun, 20 Oct 2024 at 15:44, Josh Poimboeuf wrote: > > > > > > > > Anyway, I'd really like t

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

2024-10-22 Thread Kirill A. Shutemov
On Mon, Oct 21, 2024 at 07:36:50PM -0700, Linus Torvalds wrote: > On Mon, 21 Oct 2024 at 03:48, Kirill A. Shutemov wrote: > > > > LAM brings own speculation issues[1] that is going to be addressed by > > LASS[2]. There was a patch[3] to disable LAM until LASS is landed, but it > > never got applie