[PATCH v2 3/3] powerpc: Document details on H_HTM hcall

2024-07-01 Thread Madhavan Srinivasan
Add documentation to 'papr_hcalls.rst' describing the input, output and return values of the H_HTM hcall as per the internal specification. With patch series applied and booted, list of files in debugfs path # pwd /sys/kernel/debug/powerpc/htmdump # ls coreindexonchip htmtype nodalchipindex

[PATCH v2 2/3] powerpc/pseries: Export hardware trace macro dump via debugfs

2024-07-01 Thread Madhavan Srinivasan
This patch adds debugfs interface to export Hardware Trace Macro (HTM) function data in a LPAR. New hypervisor call "H_HTM" has been defined to setup, configure, control and dump the HTM data. This patch supports only dumping of HTM data in a LPAR. New debugfs folder called "htmdump" has been

[PATCH v2 1/3] powerpc/pseries: Macros and wrapper functions for H_HTM call

2024-07-01 Thread Madhavan Srinivasan
Define macros and wrapper functions to handle H_HTM (Hardware Trace Macro) hypervisor call. H_HTM is new HCALL added to export data from Hardware Trace Macro (HTM) function. Signed-off-by: Madhavan Srinivasan --- Changelog v1: - No changes arch/powerpc/include/asm/hvcall.h | 34

Re: [PATCH] tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support

2024-07-01 Thread Michael Ellerman
James Bottomley writes: > On Fri, 2024-06-28 at 10:54 +1000, Michael Ellerman wrote: >> Stefan Berger writes: >> > Fix the following type of error message caused by a missing call to >> > tpm2_sessions_init() in the IBM vTPM driver: >> > >> > [    2.987131] tpm tpm0: tpm2_load_context: failed

Re: [PATCH 09/13] gup: Don't allow FOLL_LONGTERM pinning of FS DAX pages

2024-07-01 Thread Alistair Popple
David Hildenbrand writes: > On 27.06.24 02:54, Alistair Popple wrote: >> Longterm pinning of FS DAX pages should already be disallowed by >> various pXX_devmap checks. However a future change will cause these >> checks to be invalid for FS DAX pages so make >> folio_is_longterm_pinnable()

Re: [PATCH v3] PowerPC: Replace kretprobe with rethook

2024-07-01 Thread Google
On Thu, 27 Jun 2024 09:21:01 -0400 Abhishek Dubey wrote: > +/* rethook initializer */ > +int __init arch_init_kprobes(void) > +{ > + return register_kprobe(_p); > +} No, please don't use arch_init_kprobes() for initializing rethook, since rethook is used from fprobe too (at this moment).

Re: [PATCH] tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support

2024-07-01 Thread Jarkko Sakkinen
On Mon Jul 1, 2024 at 6:29 PM UTC, Stefan Berger wrote: > > > On 7/1/24 11:22, Jarkko Sakkinen wrote: > > On Fri, 2024-06-28 at 17:00 +0200, Linux regression tracking (Thorsten > > Leemhuis) wrote: > >> [CCing the regression list] > >> > >> On 20.06.24 00:34, Stefan Berger wrote: > >>> Jarkko, >

Re: [RFC PATCH v3 11/11] powerpc64/bpf: Add support for bpf trampolines

2024-07-01 Thread Naveen N Rao
On Mon, Jul 01, 2024 at 09:03:52PM GMT, Nicholas Piggin wrote: > On Fri Jun 21, 2024 at 5:09 AM AEST, Naveen N Rao wrote: > > Add support for bpf_arch_text_poke() and arch_prepare_bpf_trampoline() > > for 64-bit powerpc. > > What do BPF trampolines give you? At a very basic level, they provide a

Re: [RFC PATCH v3 06/11] powerpc64/ftrace: Move ftrace sequence out of line

2024-07-01 Thread Naveen N Rao
On Mon, Jul 01, 2024 at 08:39:03PM GMT, Nicholas Piggin wrote: > On Fri Jun 21, 2024 at 4:54 AM AEST, Naveen N Rao wrote: > > Function profile sequence on powerpc includes two instructions at the > > beginning of each function: > > mflrr0 > > bl ftrace_caller > > > > The call to

Re: [Patch v5 08/12] dmaengine: Add dma router for pl08x in LPC32XX SoC

2024-07-01 Thread Frank Li
On Thu, Jun 27, 2024 at 05:00:26PM +0200, Piotr Wojtaszczyk wrote: > LPC32XX connects few of its peripherals to pl08x DMA thru a multiplexer, ^^^ through? I google 'thru', most said it is informal spell of 'through'. > this driver allows to

Re: [PATCH] tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support

2024-07-01 Thread Stefan Berger
On 7/1/24 15:01, Jarkko Sakkinen wrote: On Mon Jul 1, 2024 at 6:29 PM UTC, Stefan Berger wrote: On 7/1/24 11:22, Jarkko Sakkinen wrote: On Fri, 2024-06-28 at 17:00 +0200, Linux regression tracking (Thorsten Leemhuis) wrote: [CCing the regression list] On 20.06.24 00:34, Stefan Berger

Re: [PATCH] ASoC: fsl: lpc3xxx-i2s: Avoid using ret uninitialized in lpc32xx_i2s_probe()

2024-07-01 Thread Mark Brown
On Mon, 01 Jul 2024 09:24:16 -0700, Nathan Chancellor wrote: > clang points out that ret may be used uninitialized in > lpc32xx_i2s_probe() in an error pointer path (which becomes fatal with > CONFIG_WERROR): > > sound/soc/fsl/lpc3xxx-i2s.c:326:47: error: variable 'ret' is uninitialized > when

Re: [RFC PATCH v3 04/11] powerpc/ftrace: Remove pointer to struct module from dyn_arch_ftrace

2024-07-01 Thread Naveen N Rao
On Mon, Jul 01, 2024 at 07:27:55PM GMT, Nicholas Piggin wrote: > On Fri Jun 21, 2024 at 4:54 AM AEST, Naveen N Rao wrote: > > Pointer to struct module is only relevant for ftrace records belonging > > to kernel modules. Having this field in dyn_arch_ftrace wastes memory > > for all ftrace records

Re: [RFC PATCH v3 02/11] powerpc/ftrace: Unify 32-bit and 64-bit ftrace entry code

2024-07-01 Thread Naveen N Rao
On Mon, Jul 01, 2024 at 06:57:12PM GMT, Nicholas Piggin wrote: > On Fri Jun 21, 2024 at 4:54 AM AEST, Naveen N Rao wrote: > > On 32-bit powerpc, gcc generates a three instruction sequence for > > function profiling: > > mflrr0 > > stw r0, 4(r1) > > bl _mcount > > > > On

Re: [PATCH] tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support

2024-07-01 Thread Stefan Berger
On 7/1/24 11:22, Jarkko Sakkinen wrote: On Fri, 2024-06-28 at 17:00 +0200, Linux regression tracking (Thorsten Leemhuis) wrote: [CCing the regression list] On 20.06.24 00:34, Stefan Berger wrote: Jarkko,   are you ok with this patch? Hmmm, hope I did not miss anythng, but looks like

[PATCH] ASoC: fsl: lpc3xxx-i2s: Include bitfield.h for FIELD_PREP

2024-07-01 Thread Nathan Chancellor
3xxx-i2s.h @@ -9,6 +9,7 @@ #ifndef __SOUND_SOC_LPC3XXX_I2S_H #define __SOUND_SOC_LPC3XXX_I2S_H +#include #include #include --- base-commit: 55f0a1fa6ea4e339c797e9a3292ca0caa4ab3885 change-id: 20240701-lpc32xx-asoc-fix-include-for-field_prep-140db845a209 Best regards, -- Nathan Chancellor

Re: [RFC PATCH v3 01/11] powerpc/kprobes: Use ftrace to determine if a probe is at function entry

2024-07-01 Thread Naveen N Rao
Hi Nick, Thanks for the reviews! On Mon, Jul 01, 2024 at 06:40:50PM GMT, Nicholas Piggin wrote: > On Fri Jun 21, 2024 at 4:54 AM AEST, Naveen N Rao wrote: > > Rather than hard-coding the offset into a function to be used to > > determine if a kprobe is at function entry, use ftrace_location() to

Re: [PATCH v3 0/3] KVM: Set vcpu->preempted/ready iff scheduled out while running

2024-07-01 Thread David Matlack
On Tue, Jun 18, 2024 at 2:41 PM Sean Christopherson wrote: > > On Fri, 03 May 2024 11:17:31 -0700, David Matlack wrote: > > This series changes KVM to mark a vCPU as preempted/ready if-and-only-if > > it's scheduled out while running. i.e. Do not mark a vCPU > > preempted/ready if it's scheduled

[PATCH] ASoC: fsl: lpc3xxx-i2s: Avoid using ret uninitialized in lpc32xx_i2s_probe()

2024-07-01 Thread Nathan Chancellor
iled to init register map: %d\n", ret); +"failed to init register map: %pe\n", i2s_info_p->regs); i2s_info_p->clk = devm_clk_get(dev, NULL); if (IS_ERR(i2s_info_p->clk)) --- base-commit: 878f4c36f9235e8a15fe0c2ecde066d92c50c8ff change-id: 2

Re: [PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-01 Thread Tudor Ambarus
On 7/1/24 2:53 PM, Marco Felsch wrote: > EEPROMs can become quite large nowadays (>=64K). Exposing such devices > as single device isn't always sufficient. There may be partitions which > require different access permissions. Also write access always need to > to verify the offset. > > Port

Re: [PATCH 2/9] mtd: add mtd_is_master helper

2024-07-01 Thread Sergei Shtylyov
On 7/1/24 4:53 PM, Marco Felsch wrote: > Provide a simple helper to make it easy to detect an master mtd device. > > Signed-off-by: Marco Felsch > --- > include/linux/mtd/mtd.h | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h >

Re: [PATCH v3] PowerPC: Replace kretprobe with rethook

2024-07-01 Thread Naveen N Rao
Hi Abhishek, This patch looks good to me, except for one main change in trampoline_rethook_handler(). Other than that, I have a few more minor comments. Sorry, I should have caught that last time. But, the other change needs a new submission, so good to get these addressed as well. For the

Re: [PATCH] tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support

2024-07-01 Thread Jarkko Sakkinen
On Fri, 2024-06-28 at 17:00 +0200, Linux regression tracking (Thorsten Leemhuis) wrote: > [CCing the regression list] > > On 20.06.24 00:34, Stefan Berger wrote: > > Jarkko, > >   are you ok with this patch? > > Hmmm, hope I did not miss anythng, but looks like nothing happened for > about 10

Re: [PATCH 1/2] ASoC: dt-bindings: fsl_rpmsg: Add compatible string for i.MX95

2024-07-01 Thread Mark Brown
On Wed, 26 Jun 2024 16:12:01 +0900, Chancel Liu wrote: > Add compatible string for i.MX95 platform which supports audio > function through rpmsg channel between Cortex-A and Cortex-M core. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks!

Re: [PATCH] tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support

2024-07-01 Thread Jarkko Sakkinen
On Wed, 2024-06-19 at 18:34 -0400, Stefan Berger wrote: > Jarkko, >    are you ok with this patch? Nope :-) It masks a bug, does not fix it. BR, Jarkko

Re: [PATCH] tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support

2024-07-01 Thread Jarkko Sakkinen
On Mon, 2024-06-17 at 15:34 -0400, Stefan Berger wrote: > Fix the following type of error message caused by a missing call to > tpm2_sessions_init() in the IBM vTPM driver: > > [    2.987131] tpm tpm0: tpm2_load_context: failed with a TPM error 0x01C4 > [    2.987140] ima: Error Communicating to

[PATCH 4/9] mtd: devices: add AT24 eeprom support

2024-07-01 Thread Marco Felsch
At the moment there are three ways to access EEPROM content from user-space: 1st) via the single nvmem device (rw) 2nd) via the single 'eeprom' device (rw) 3th) via nvmem-cells (r) EEPROMs can become quite large nowadays (>=64K). Exposing such devices as single device isn't always

[PATCH 0/9] AT24 EEPROM MTD Support

2024-07-01 Thread Marco Felsch
e.c | 49 ++- include/linux/mtd/mtd.h | 5 ++ include/uapi/mtd/mtd-abi.h | 2 + 42 files changed, 187 insertions(+), 123 deletions(-) --- base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 change-id: 20240701-b4-v6-10-topic-usbc-tc

[PATCH 2/9] mtd: add mtd_is_master helper

2024-07-01 Thread Marco Felsch
Provide a simple helper to make it easy to detect an master mtd device. Signed-off-by: Marco Felsch --- include/linux/mtd/mtd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 8d10d9d2e830..bf3fc2ea7230 100644 ---

[PATCH 6/9] powerpc: convert to MTD_EEPROM_AT24

2024-07-01 Thread Marco Felsch
The EEPROM_AT24 Kconfig symbol is marked as deprecated. Make use of the new Kconfig symbol to select the I2C EEPROM driver support. Signed-off-by: Marco Felsch --- arch/powerpc/configs/44x/warp_defconfig | 2 +- arch/powerpc/configs/mpc512x_defconfig | 2 +-

[PATCH 5/9] ARM: defconfig: convert to MTD_EEPROM_AT24

2024-07-01 Thread Marco Felsch
The EEPROM_AT24 Kconfig symbol is marked as deprecated. Make use of the new Kconfig symbol to select the I2C EEPROM driver support. Signed-off-by: Marco Felsch --- arch/arm/configs/aspeed_g4_defconfig | 2 +- arch/arm/configs/aspeed_g5_defconfig | 2 +- arch/arm/configs/at91_dt_defconfig

[PATCH 8/9] LoongArch: convert to MTD_EEPROM_AT24

2024-07-01 Thread Marco Felsch
The EEPROM_AT24 Kconfig symbol is marked as deprecated. Make use of the new Kconfig symbol to select the I2C EEPROM driver support. Signed-off-by: Marco Felsch --- arch/loongarch/configs/loongson3_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 9/9] eeprom: at24: remove deprecated Kconfig symbol

2024-07-01 Thread Marco Felsch
All kernel users are shifted to the new MTD_EEPROM_AT24 Kconfig symbol so we can drop the old one. Signed-off-by: Marco Felsch --- drivers/misc/eeprom/Kconfig | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/misc/eeprom/Kconfig b/drivers/misc/eeprom/Kconfig index

[PATCH 3/9] mtd: add support to handle EEPROM devices

2024-07-01 Thread Marco Felsch
At the moment EEPROMs are covered by misc/driver/eeprom/* drivers. This commit prepares the MTD framework to handle EEPROM devices within the MTD layer. To keep the backward compatibility with the current misc drivers the master device must be exposed always. Furthermore the NVMEM device parent

[PATCH 7/9] MIPS: configs: convert to MTD_EEPROM_AT24

2024-07-01 Thread Marco Felsch
The EEPROM_AT24 Kconfig symbol is marked as deprecated. Make use of the new Kconfig symbol to select the I2C EEPROM driver support. Signed-off-by: Marco Felsch --- arch/mips/configs/cavium_octeon_defconfig | 2 +- arch/mips/configs/db1xxx_defconfig| 2 +- 2 files changed, 2

[PATCH 1/9] mtd: core: add nvmem_write support

2024-07-01 Thread Marco Felsch
The MTD framework does support the NVMEM framework already but only the read support was implemented. This commit adds the write support if the MTD device supports writing (MTD_WRITEABLE is set). Signed-off-by: Marco Felsch --- drivers/mtd/mtdcore.c | 17 - 1 file changed, 16

[PATCH v3] radix/kfence: map __kfence_pool at page granularity

2024-07-01 Thread Hari Bathini
When KFENCE is enabled, total system memory is mapped at page level granularity. But in radix MMU mode, ~3GB additional memory is needed to map 100GB of system memory at page level granularity when compared to using 2MB direct mapping. This is not desired considering KFENCE is designed to be

[PATCH] driver core: have match() callback in struct bus_type take a const *

2024-07-01 Thread Greg Kroah-Hartman
In the match() callback, the struct device_driver * should not be changed, so change the function callback to be a const *. This is one step of many towards making the driver core safe to have struct device_driver in read-only memory. Because the match() callback is in all busses, all busses are

Re: [Patch v5 10/12] mtd: rawnand: lpx32xx: Request DMA channels using DT entries

2024-07-01 Thread Miquel Raynal
On Thu, 2024-06-27 at 15:00:28 UTC, Piotr Wojtaszczyk wrote: > Move away from pl08x platform data towards device tree. > > Signed-off-by: Piotr Wojtaszczyk Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel

[PATCH v2 10/10] ASoC: fsl: fsl_qmc_audio: Add support for non-interleaved mode.

2024-07-01 Thread Herve Codina
The current fsl_qmc_audio works in interleaved mode. The audio samples are interleaved and all data are sent to (received from) one QMC channel. Using several QMC channels, non interleaved mode can be easily supported. In that case, data related to ch0 are sent to (received from) the first QMC

[PATCH v2 09/10] dt-bindings: sound: fsl,qmc-audio: Add support for multiple QMC channels per DAI

2024-07-01 Thread Herve Codina
The QMC audio uses one QMC channel per DAI and uses this QMC channel to transmit interleaved audio channel samples. In order to work in non-interleave mode, a QMC audio DAI needs to use multiple QMC channels. In that case, the DAI maps each QMC channel to exactly one audio channel. Allow QMC

[PATCH v2 08/10] soc: fsl: cpm1: qmc: Introduce qmc_chan_count_phandles()

2024-07-01 Thread Herve Codina
No function in the QMC API is available to get the number of phandles present in a phandle list. Fill this lack introducing qmc_chan_count_phandles(). Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 13 + include/soc/fsl/qe/qmc.h | 2 ++ 2 files changed, 15

[PATCH v2 07/10] soc: fsl: cpm1: qmc: Introduce functions to get a channel from a phandle list

2024-07-01 Thread Herve Codina
qmc_chan_get_byphandle() and the resource managed version retrieve a channel from a simple phandle. Extend the API and introduce qmc_chan_get_byphandles_index() and the resource managed version in order to retrieve a channel from a phandle list using the provided index to identify the phandle in

[PATCH v2 06/10] ASoC: fsl: fsl_qmc_audio: Introduce qmc_dai_constraints_interleaved()

2024-07-01 Thread Herve Codina
Constraints are set by qmc_dai_startup(). These constraints are specific to the interleaved mode. With the future introduction of support for non-interleaved mode, a new set of constraints will be set. To make the code clear and keep qmc_dai_startup() simple, extract the current interleaved mode

[PATCH v2 05/10] ASoC: fsl: fsl_qmc_audio: Introduce qmc_audio_pcm_{read,write}_submit()

2024-07-01 Thread Herve Codina
Submitting data to QMC channels is done in several places: transfer completions and DAI start. The operation done is simple and consist in one function call. With the future introduction of support for non-interleaved mode, submitting data will be more complex. To avoid copy/paste of code in

[PATCH v2 04/10] ASoC: fsl: fsl_qmc_audio: Identify the QMC channel involved in completion routines

2024-07-01 Thread Herve Codina
The current QMC audio driver uses only one QMC channel per DAI. The context used by QMC channel transfer (read and write) completion routines does not contains any QMC channel and the only one available per DAI is used to schedule the next transfer. This works pretty well with only one QMC channel

[PATCH v2 02/10] ASoC: fsl: fsl_qmc_audio: Fix issues detected by checkpatch

2024-07-01 Thread Herve Codina
./scripts/checkpatch.pl --strict --codespell detected several issues when running on the fsl_qmc_audio.c file: - CHECK: spaces preferred around that '*' (ctx:VxV) - CHECK: Alignment should match open parenthesis - CHECK: Comparison to NULL could be written "!prtd" - CHECK: spaces preferred

[PATCH v2 03/10] ASoC: fsl: fsl_qmc_audio: Split channel buffer and PCM pointer handling

2024-07-01 Thread Herve Codina
The driver mixes some internal values for channel DMA buffer handling and PCM pointer handling. In the currently supported interleaved mode, this mix does not lead to any issues but in order to prepare the support for the non-interleaved mode, having them clearly separated will ease the support

[PATCH v2 01/10] ASoC: fsl: fsl_qmc_audio: Check devm_kasprintf() returned value

2024-07-01 Thread Herve Codina
devm_kasprintf() can return a NULL pointer on failure but this returned value is not checked. Fix this lack and check the returned value. Fixes: 075c7125b11c ("ASoC: fsl: Add support for QMC audio") Cc: sta...@vger.kernel.org Signed-off-by: Herve Codina --- sound/soc/fsl/fsl_qmc_audio.c | 2 ++

[PATCH v2 00/10] Add support for non-interleaved mode in qmc_audio

2024-07-01 Thread Herve Codina
The qmc_audio driver supports only audio in interleaved mode. Non-interleaved mode can be easily supported using several QMC channel per DAI. In that case, data related to ch0 are sent to (received from) the first QMC channel, data related to ch1 use the next QMC channel and so on up to the last

Re: [RFC PATCH v3 11/11] powerpc64/bpf: Add support for bpf trampolines

2024-07-01 Thread Nicholas Piggin
On Fri Jun 21, 2024 at 5:09 AM AEST, Naveen N Rao wrote: > Add support for bpf_arch_text_poke() and arch_prepare_bpf_trampoline() > for 64-bit powerpc. What do BPF trampolines give you? > BPF prog JIT is extended to mimic 64-bit powerpc approach for ftrace > having a single nop at function

Re: [RFC PATCH v3 06/11] powerpc64/ftrace: Move ftrace sequence out of line

2024-07-01 Thread Nicholas Piggin
On Fri Jun 21, 2024 at 4:54 AM AEST, Naveen N Rao wrote: > Function profile sequence on powerpc includes two instructions at the > beginning of each function: > mflrr0 > bl ftrace_caller > > The call to ftrace_caller() gets nop'ed out during kernel boot and is > patched in

mm: gup.c:2827:22: error: conflicting types for 'try_grab_folio_fast'; have 'struct folio

2024-07-01 Thread Naresh Kamboju
The powerpc build failures noticed on Linux next-20240628 tag. Reported-by: Linux Kernel Functional Testing Regressions found on powerpc: - gcc-13-maple_defconfig - gcc-13-cell_defconfig - clang-nightly-maple_defconfig - gcc-8-defconfig - gcc-8-tqm8xx_defconfig -

Re: [RFC PATCH v3 05/11] kbuild: Add generic hook for architectures to use before the final vmlinux link

2024-07-01 Thread Nicholas Piggin
On Fri Jun 21, 2024 at 4:54 AM AEST, Naveen N Rao wrote: > On powerpc, we would like to be able to make a pass on vmlinux.o and > generate a new object file to be linked into vmlinux. Add a generic pass > in Makefile.vmlinux that architectures can use for this purpose. > > Architectures need to

Re: [RFC PATCH v3 04/11] powerpc/ftrace: Remove pointer to struct module from dyn_arch_ftrace

2024-07-01 Thread Nicholas Piggin
On Fri Jun 21, 2024 at 4:54 AM AEST, Naveen N Rao wrote: > Pointer to struct module is only relevant for ftrace records belonging > to kernel modules. Having this field in dyn_arch_ftrace wastes memory > for all ftrace records belonging to the kernel. Remove the same in > favour of looking up the

Re: [RFC PATCH v3 03/11] powerpc/module_64: Convert #ifdef to IS_ENABLED()

2024-07-01 Thread Nicholas Piggin
On Fri Jun 21, 2024 at 4:54 AM AEST, Naveen N Rao wrote: > Minor refactor for converting #ifdef to IS_ENABLED(). > > Signed-off-by: Naveen N Rao > --- > arch/powerpc/kernel/module_64.c | 11 +-- > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git

Re: [PATCH 09/13] gup: Don't allow FOLL_LONGTERM pinning of FS DAX pages

2024-07-01 Thread David Hildenbrand
On 27.06.24 02:54, Alistair Popple wrote: Longterm pinning of FS DAX pages should already be disallowed by various pXX_devmap checks. However a future change will cause these checks to be invalid for FS DAX pages so make folio_is_longterm_pinnable() return false for FS DAX pages. Signed-off-by:

Re: [RFC PATCH v3 02/11] powerpc/ftrace: Unify 32-bit and 64-bit ftrace entry code

2024-07-01 Thread Nicholas Piggin
On Fri Jun 21, 2024 at 4:54 AM AEST, Naveen N Rao wrote: > On 32-bit powerpc, gcc generates a three instruction sequence for > function profiling: > mflrr0 > stw r0, 4(r1) > bl _mcount > > On kernel boot, the call to _mcount() is nop-ed out, to be patched back > in

Re: [RFC PATCH v3 01/11] powerpc/kprobes: Use ftrace to determine if a probe is at function entry

2024-07-01 Thread Nicholas Piggin
On Fri Jun 21, 2024 at 4:54 AM AEST, Naveen N Rao wrote: > Rather than hard-coding the offset into a function to be used to > determine if a kprobe is at function entry, use ftrace_location() to > determine the ftrace location within the function and categorize all > instructions till that offset

Re: [PATCH 00/13] fs/dax: Fix FS DAX page reference counts

2024-07-01 Thread Alistair Popple
Dave Chinner writes: > On Thu, Jun 27, 2024 at 10:54:15AM +1000, Alistair Popple wrote: >> FS DAX pages have always maintained their own page reference counts >> without following the normal rules for page reference counting. In >> particular pages are considered free when the refcount hits

Re: [PATCH] cpufreq: powerpc: add missing MODULE_DESCRIPTION() macros

2024-07-01 Thread Viresh Kumar
On 14-06-24, 23:08, Jeff Johnson wrote: > With ARCH=powerpc, make allmodconfig && make W=1 C=1 reports: > WARNING: modpost: missing MODULE_DESCRIPTION() in > drivers/cpufreq/ppc-cbe-cpufreq.o > WARNING: modpost: missing MODULE_DESCRIPTION() in > drivers/cpufreq/powernv-cpufreq.o > > Add the

Re: [axboe-block:for-next] [block] 1122c0c1cc: aim7.jobs-per-min 22.6% improvement

2024-07-01 Thread Oliver Sang
hi, Christoph Hellwig, On Wed, Jun 26, 2024 at 09:54:05PM -0700, Christoph Hellwig wrote: > On Thu, Jun 27, 2024 at 10:35:38AM +0800, Oliver Sang wrote: > > > > I failed to apply patch in your previous reply to 1122c0c1cc or current tip > > of axboe-block/for-next: > > c1440ed442a58

Re: [PATCH v4 1/2] pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv

2024-07-01 Thread Krishna Kumar
Hi Michael, When you apply/merge the patch, please consider below URL in commit message. This is the URL where this issue was reported - https://lists.ozlabs.org/pipermail/linuxppc-dev/2023-December/267034.html Thanks, Krishna On 7/1/24 1:15 PM, Krishna Kumar wrote: > Description of the

Re: [PATCH 10/10] ASoC: fsl: fsl_qmc_audio: Add support for non-interleaved mode.

2024-07-01 Thread Herve Codina
Hi, On Thu, 20 Jun 2024 10:42:57 +0200 Herve Codina wrote: ... > +static bool qmc_audio_access_is_interleaved(snd_pcm_access_t access) > +{ > + switch (access) { > + case SNDRV_PCM_ACCESS_MMAP_INTERLEAVED: > + case SNDRV_PCM_ACCESS_RW_INTERLEAVED: > + return true; > +

[PATCH v4 2/2] powerpc: hotplug driver bridge support

2024-07-01 Thread Krishna Kumar
There is an issue with the hotplug operation when it's done on the bridge/switch slot. The bridge-port and devices behind the bridge, which become offline by hot-unplug operation, don't get hot-plugged/enabled by doing hot-plug operation on that slot. Only the first port of the bridge gets enabled

[PATCH v4 1/2] pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv

2024-07-01 Thread Krishna Kumar
Description of the problem: The hotplug driver for powerpc (pci/hotplug/pnv_php.c) gives kernel crash when we try to hot-unplug/disable the PCIe switch/bridge from the PHB. Root Cause of Crash: The crash is due to the reason that, though the msi data structure has been released during

[PATCH v4 0/2] PCI hotplug driver fixes

2024-07-01 Thread Krishna Kumar
The fix of Powerpc hotplug driver (drivers/pci/hotplug/pnv_php.c) addresses below two issues. 1. Kernel Crash during hot unplug of bridge/switch slot. 2. Bridge Support Enablement - Previously, when we do a hot-unplug operation on a bridge slot, all the ports and devices behind the bridge-ports