[GIT PULL] Please pull powerpc/linux.git powerpc-6.16-1 tag

2025-05-25 Thread Madhavan Srinivasan
E) (1): powerpc: do not build ppc_save_regs.o always Madhavan Srinivasan (1): powerpc/kernel: Fix ppc_save_regs inclusion in build Michal Suchanek (1): powerpc/boot: Fix build with gcc 15 Naveen N Rao (AMD) (1): MAINTAINERS: powerpc: Remove myself as a reviewer Shrikanth

Re: [PATCH] MAINTAINERS: powerpc: Remove myself as a reviewer

2025-05-20 Thread Madhavan Srinivasan
On Sun, 20 Apr 2025 22:02:48 +0530, Naveen N Rao (AMD) wrote: > I haven't been able to participate and help with this as much as I had > hoped, and it doesn't look like I will be able to spend time on powerpc > going forward. > > Applied to powerpc/next. [1/1] MAINTAINERS: powerpc: Remove mysel

[PATCH v2 4/4] powerpc/boot/install.sh: Fix shellcheck warnings

2025-05-17 Thread Madhavan Srinivasan
Fix shellcheck warning such as "Double quote to prevent globbing and word splitting." and Use $(...) notation instead of legacy backticks `...`. Tested-by: Venkat Rao Bagalkote Signed-off-by: Madhavan Srinivasan --- Changelog v1: -Added tested by tag arch/powerpc/boot/insta

[PATCH v2 3/4] powerpc/prom_init: Fix shellcheck warnings

2025-05-17 Thread Madhavan Srinivasan
Fix "Double quote to prevent globbing and word splitting." warning from shellcheck Reviewed-by: Stephen Rothwell Tested-by: Venkat Rao Bagalkote Signed-off-by: Madhavan Srinivasan --- Changelog v1: - Added tags arch/powerpc/kernel/prom_init_check.sh | 16 1 file

[PATCH v2 2/4] powerpc/perf: make isa207_pmu_format_group struct static

2025-05-17 Thread Madhavan Srinivasan
Bagalkote Signed-off-by: Madhavan Srinivasan --- Changelog v1: - Added tested by tag arch/powerpc/perf/isa207-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/perf/isa207-common.c b/arch/powerpc/perf/isa207-common.c index 2b3547fdba4a..bbef51849f33 100644

[PATCH v2 1/4] powerpc/kvm: Fix ifdef to remove build warning

2025-05-17 Thread Madhavan Srinivasan
after the switch case which are specific for BOOKE and PPC_BOOK3S_32. These are not enabled in pseries/powernv defconfig. Fix it by moving the #ifdef before switch(){} Fixes: cbe487fac7fc0 ("KVM: PPC: Add mtsrin PV code") Tested-by: Venkat Rao Bagalkote Signed-off-by: Madhavan Srinivas

Re: [PATCH] powerpc: Replace strcpy() with strscpy() in proc_ppc64_init()

2025-05-17 Thread Madhavan Srinivasan
On Mon, 21 Apr 2025 20:31:08 +0200, Thorsten Blum wrote: > strcpy() is deprecated; use strscpy() instead. > > Don't cast the destination buffer from 'u8[]' to 'char *' to satisfy the > __must_be_array() requirement of strscpy(). > > No functional changes intended. > > [...] Applied to powerpc/n

Re: [PATCH 4/6] powerpc: fix sparse warnings

2025-05-17 Thread Madhavan Srinivasan
On 5/2/25 3:46 PM, Christophe Leroy wrote: > > > Le 22/04/2025 à 15:10, Madhavan Srinivasan a écrit : >> structs are local to the source and does not need to >> be in global scope, so make it static. >> >> Signed-off-by: Madhavan Srinivasan >&g

Re: [PATCH 2/6] powerpc/xmon: fix sparse warning "Using plain integer as NULL pointer"

2025-05-17 Thread Madhavan Srinivasan
On 5/2/25 3:38 PM, Christophe Leroy wrote: > > > Le 22/04/2025 à 15:10, Madhavan Srinivasan a écrit : >> Fix passing of argument 0 to NULL to avoid sparse warning > > I thought we wanted to keep this file in sync with opcodes/ppc-opc.c in the > binutils repositor

Re: [PATCH] powerpc: Transliterate author name and remove FIXME

2025-05-17 Thread Madhavan Srinivasan
On Sun, 10 Nov 2024 17:21:37 +0100, Thorsten Blum wrote: > The name is Mimi Phuong-Thao Vo. > > Applied to powerpc/next. [1/1] powerpc: Transliterate author name and remove FIXME https://git.kernel.org/powerpc/c/8bc3252436d371e7ac505f9f2685611090680a48 Thanks

Re: [PATCH] powerpc/powermac: Use str_enabled_disabled() and str_on_off() helpers

2025-05-17 Thread Madhavan Srinivasan
On Fri, 17 Jan 2025 12:46:20 +0100, Thorsten Blum wrote: > Remove hard-coded strings by using the str_enabled_disabled() and > str_on_off() helper functions. > > Applied to powerpc/next. [1/1] powerpc/powermac: Use str_enabled_disabled() and str_on_off() helpers https://git.kernel.org/pow

Re: [PATCH] powerpc/iommu: Use str_disabled_enabled() helper

2025-05-17 Thread Madhavan Srinivasan
On Mon, 10 Feb 2025 23:42:44 +0100, Thorsten Blum wrote: > Remove hard-coded strings by using the str_disabled_enabled() helper. > > Applied to powerpc/next. [1/1] powerpc/iommu: Use str_disabled_enabled() helper https://git.kernel.org/powerpc/c/f15e87340afd4f5a35575e112aa4bdb0a138aa26 T

Re: [PATCH] powerpc/mm/fault: Use str_write_read() helper function

2025-05-17 Thread Madhavan Srinivasan
On Mon, 10 Feb 2025 11:06:46 +0100, Thorsten Blum wrote: > Remove hard-coded strings by using the str_write_read() helper function. > > Applied to powerpc/next. [1/1] powerpc/mm/fault: Use str_write_read() helper function https://git.kernel.org/powerpc/c/ff27a9a0c66cfeb6a15d8f2ab4754f312e

Re: [PATCH] powerpc/kernel: Fix ppc_save_regs inclusion in build

2025-05-17 Thread Madhavan Srinivasan
On Sun, 11 May 2025 09:41:11 +0530, Madhavan Srinivasan wrote: > Recent patch fixed an old commit > 'fc2a5a6161a2 ("powerpc/64s: ppc_save_regs is now needed for all 64s builds")' > which is to include building of ppc_save_reg.c only when XMON > and KEXEC_CORE and

Re: [PATCH v3] powerpc/pseries/iommu: Fix kmemleak in TCE table userspace view

2025-05-17 Thread Madhavan Srinivasan
On Mon, 12 May 2025 17:46:53 -0500, Gaurav Batra wrote: > When a device is opened by a userspace driver, via VFIO interface, DMA > window is created. This DMA window has TCE Table and a corresponding > data for userview of TCE table. > > When the userspace driver closes the device, all the above i

Re: [PATCH] powerpc/8xx: Reduce alignment constraint for kernel memory

2025-05-17 Thread Madhavan Srinivasan
On Fri, 02 May 2025 15:07:53 +0200, Christophe Leroy wrote: > 8xx has three large page sizes: 8M, 512k and 16k. > > A too big alignment can lead to wasting memory. On a board which has > only 32 MBytes of RAM, every single byte is worth it and a 512k > alignment is sometimes too much. > > Allow m

Re: [PATCH] KVM: PPC: Book3S HV: Fix IRQ map warnings with XICS on pSeries KVM Guest

2025-05-17 Thread Madhavan Srinivasan
On Sat, 26 Apr 2025 00:26:41 +0530, Amit Machhiwal wrote: > The commit 9576730d0e6e ("KVM: PPC: select IRQ_BYPASS_MANAGER") enabled > IRQ_BYPASS_MANAGER when CONFIG_KVM was set. Subsequently, commit > c57875f5f9be ("KVM: PPC: Book3S HV: Enable IRQ bypass") enabled IRQ > bypass and added the necessa

Re: [PATCH] powerpc/pseries/htmdump: Include header file to get is_kvm_guest() definition

2025-05-17 Thread Madhavan Srinivasan
On Tue, 06 May 2025 19:22:32 +0530, Athira Rajeev wrote: > htmdump_init calls is_kvm_guest() to check for guest environment. > is_kvm_guest() is defined in kvm_guest.h header file. Without including > the header file, build hits error failing to find the function. > > arch/powerpc/platforms/pser

[PATCH v2] powerpc: Fix struct termio related ioctl macros

2025-05-17 Thread Madhavan Srinivasan
uggle definitions around to make it compile could introduce regressions. So better to open code it. Reported-by: Tulio Magno Closes: https://lore.kernel.org/linuxppc-dev/8734dji5wl@ascii.art.br/ Suggested-by: Nicholas Piggin Signed-off-by: Madhavan Srinivasan --- Changelog v1: - mpe pointing

Re: [PATCH v3] powerpc/boot: Fix build with gcc 15

2025-05-13 Thread Madhavan Srinivasan
On Mon, 31 Mar 2025 12:57:19 +0200, Michal Suchanek wrote: > Similar to x86 the ppc boot code does not build with GCC 15. > > Copy the fix from > commit ee2ab467bddf ("x86/boot: Use '-std=gnu11' to fix build with GCC 15") > > Applied to powerpc/next. [1/1] powerpc/boot: Fix build with gcc 15

Re: [PATCH v2 0/5] powerpc: convert board-file GPIO chips to using new value setters

2025-05-13 Thread Madhavan Srinivasan
On Fri, 02 May 2025 10:59:46 +0200, Bartosz Golaszewski wrote: > struct gpio_chip now has callbacks for setting line values that return > an integer, allowing to indicate failures. We're in the process of > converting all GPIO drivers to using the new API. This series converts > all powerpc board-f

Re: [PATCH V3 0/9] Add support for configure and control of Hardware Trace Macro(HTM)

2025-05-13 Thread Madhavan Srinivasan
On Sun, 20 Apr 2025 23:38:35 +0530, Athira Rajeev wrote: > H_HTM (Hardware Trace Macro) hypervisor call is an HCALL to export > data from Hardware Trace Macro (HTM) function. The debugfs interface > to export the HTM function data in a partition currently supports only > dumping of HTM data in an l

Re: [PATCH] powerpc: Transliterate author name and remove FIXME

2025-05-13 Thread Madhavan Srinivasan
On 5/13/25 11:18 PM, Christophe Leroy wrote: > > > Le 13/05/2025 à 16:10, Thorsten Blum a écrit : >> On 7. Jan 2025, at 13:16, Thorsten Blum wrote: >>> On 23. Nov 2024, at 11:19, Christophe Leroy wrote: Isn't our file just a copy of the one from binutils ? Shouldn't we adjust it bas

Re: Crash in __do_IRQ with gcc 15

2025-05-11 Thread Madhavan Srinivasan
On 5/10/25 7:05 AM, Paul Mackerras wrote: > Running Linux on Microwatt with a kernel compiled on an x86-64 system > running Fedora 42 (using the packaged cross-compiler, i.e. the > gcc-powerpcle64-linux-gnu package), I'm seeing a crash like this: > > [0.141591] smp: Bringing up secondary CP

[PATCH] powerpc: Fix struct termio related ioctl macros

2025-05-11 Thread Madhavan Srinivasan
uggle definitions around to make it compile could introduce regressions. So better to open code it. Reported-by: Tulio Magno Closes: https://lore.kernel.org/linuxppc-dev/8734dji5wl@ascii.art.br/ Suggested-by: Nicholas Piggin Signed-off-by: Madhavan Srinivasan --- arch/powerpc/include

[PATCH] powerpc/kernel: Fix ppc_save_regs inclusion in build

2025-05-10 Thread Madhavan Srinivasan
efaults. Signed-off-by: Madhavan Srinivasan --- Patch applies clean on powerpc-next arch/powerpc/kernel/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 0c26b2412d17..9d1ab3971694 100644 --- a/arch/powerpc/kernel/Make

Re: [PATCH] powerpc: do not build ppc_save_regs.o always

2025-05-03 Thread Madhavan Srinivasan
On Thu, 17 Apr 2025 12:53:05 +0200, Jiri Slaby (SUSE) wrote: > The Fixes commit below tried to add CONFIG_PPC_BOOK3S to one of the > conditions to enable the build of ppc_save_regs.o. But it failed to do > so, in fact. The commit omitted to add a dollar sign. > > Therefore, ppc_save_regs.o is buil

Re: [PATCH v3] powerpc/bpf: fix JIT code size calculation of bpf trampoline

2025-05-03 Thread Madhavan Srinivasan
On Tue, 22 Apr 2025 13:56:09 +0530, Hari Bathini wrote: > arch_bpf_trampoline_size() provides JIT size of the BPF trampoline > before the buffer for JIT'ing it is allocated. The total number of > instructions emitted for BPF trampoline JIT code depends on where > the final image is located. So, the

Re: [PATCH] powerpc64/ftrace: fix clobbered r15 during livepatching

2025-05-03 Thread Madhavan Srinivasan
On Thu, 17 Apr 2025 00:42:27 +0530, Hari Bathini wrote: > While r15 is clobbered always with PPC_FTRACE_OUT_OF_LINE, it is > not restored in livepatch sequence leading to not so obvious fails > like below: > > BUG: Unable to handle kernel data access on write at 0xc00f9078 > Faulting i

Re: [PATCH] powerpc/pseries: Include linux/types.h in papr-platform-dump.h

2025-05-03 Thread Madhavan Srinivasan
On Tue, 29 Apr 2025 14:14:18 -0700, Haren Myneni wrote: > Fix the following build warning: > usr/include/asm/papr-platform-dump.h:12: found __[us]{8,16,32,64} type > without #include > > Fixes: 8aa9efc0be66 ("powerpc/pseries: Add papr-platform-dump character > driver for dump retrieval") > Clos

Re: [PATCH] Documentation: Fix description format for powerpc RTAS ioctls

2025-05-03 Thread Madhavan Srinivasan
On Tue, 29 Apr 2025 19:28:47 -0700, Haren Myneni wrote: > Fix the description format for the following build warnings: > > "Documentation/userspace-api/ioctl/ioctl-number.rst:369: > ERROR: Malformed table. Text in column margin in table line 301. > > 0xB2 03-05 arch/powerpc/include/uapi/asm/papr

Re: [PATCH] powerpc/pseries/msi: Avoid reading PCI device registers in reduced power states

2025-05-03 Thread Madhavan Srinivasan
On Wed, 05 Mar 2025 14:32:36 +0530, Gautam Menghani wrote: > When a system is being suspended to RAM, the PCI devices are also > suspended and the PPC code ends up calling pseries_msi_compose_msg() and > this triggers the BUG_ON() in __pci_read_msi_msg() because the device at > this point is in red

Re: [PATCH v2] powerpc/crash: Fix non-smp kexec preparation

2025-05-03 Thread Madhavan Srinivasan
On Tue, 11 Feb 2025 10:20:54 -0600, Eddie James wrote: > In non-smp configurations, crash_kexec_prepare is never called in > the crash shutdown path. One result of this is that the crashing_cpu > variable is never set, preventing crash_save_cpu from storing the > NT_PRSTATUS elf note in the core du

Re: [PATCH] powerpc: Don't use --- in kernel logs

2025-05-03 Thread Madhavan Srinivasan
On Wed, 12 Feb 2025 08:40:48 +0100, Christophe Leroy wrote: > When a kernel log containing --- at the start of a line is copied into > a patch message, 'git am' drops everything located after that ---. > > Replace --- by to avoid that. > > Applied to powerpc/next. [1/1] powerpc: Don't use

Re: [PATCH] powerpc/pseries: Include linux/types.h in papr-platform-dump.h

2025-05-01 Thread Madhavan Srinivasan
On 4/30/25 3:37 AM, Stephen Rothwell wrote: > Hi Haren, > > Thanks for this. I have a small nitpick below. > > On Tue, 29 Apr 2025 14:14:18 -0700 Haren Myneni wrote: >> >> Fix the following build warning: >> usr/include/asm/papr-platform-dump.h:12: found __[us]{8,16,32,64} type >> without #

Re: [PATCH] Documentation: Fix description format for powerpc RTAS ioctls

2025-05-01 Thread Madhavan Srinivasan
On 4/30/25 2:38 PM, Bagas Sanjaya wrote: > On Tue, Apr 29, 2025 at 07:28:47PM -0700, Haren Myneni wrote: >> Fix the description format for the following build warnings: >> >> "Documentation/userspace-api/ioctl/ioctl-number.rst:369: >> ERROR: Malformed table. Text in column margin in table line 3

[GIT PULL] Please pull powerpc/linux.git powerpc-6.15-3 tag

2025-04-27 Thread Madhavan Srinivasan
. - -- Anthony Iliopoulos (1): powerpc64/ftrace: fix module loading without patchable function entries Donet Tom (1): book3s64/radix : Align section vmemmap start address to PAGE_SIZE Madhavan Srinivasan (3): powerpc: Add check to select

[PATCH v2] powerpc/boot: Fix dash warning

2025-04-23 Thread Madhavan Srinivasan
ot;powerpc/boot: Check for ld-option support")' Reported-by: Stephen Rothwell Suggested-by: Stephen Rothwell Signed-off-by: Madhavan Srinivasan --- Changelog v1: - modified the check to use the command exit state instead explicit checking with exit code Patch applies on top of powerpc/fi

Re: [PATCH] powerpc/boot: Fix dash warning

2025-04-22 Thread Madhavan Srinivasan
On 4/22/25 6:38 PM, Stephen Rothwell wrote: > Hi Madhavan, > > On Tue, 22 Apr 2025 17:00:23 +0530 Madhavan Srinivasan > wrote: >> >> # suppress some warnings in recent ld versions >> nowarn="-z noexecstack" >> -if [ $(${CROSS}ld -v --no

[PATCH 6/6] powerpc/boot/install.sh: Fix shellcheck warnings

2025-04-22 Thread Madhavan Srinivasan
Fix shellcheck warning such as "Double quote to prevent globbing and word splitting." and Use $(...) notation instead of legacy backticks `...`. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/boot/install.sh | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) di

[PATCH 5/6] powerpc/prom_init: Fix shellcheck warnings

2025-04-22 Thread Madhavan Srinivasan
Fix "Double quote to prevent globbing and word splitting." warning from shellcheck Signed-off-by: Madhavan Srinivasan --- arch/powerpc/kernel/prom_init_check.sh | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/kernel/prom_init_check.

[PATCH 4/6] powerpc: fix sparse warnings

2025-04-22 Thread Madhavan Srinivasan
structs are local to the source and does not need to be in global scope, so make it static. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/kernel/btext.c | 2 +- arch/powerpc/kernel/setup-common.c | 2 +- arch/powerpc/platforms/powernv/opal.c| 2 +- arch/powerpc

[PATCH 3/6] powerpc/perf:make isa207_pmu_format_group struct static

2025-04-22 Thread Madhavan Srinivasan
isa207_pmu_format_group struct is local to the source and does not need to be in global scope, so make it static Cleans up sparse warning: arch/powerpc/perf/isa207-common.c:40:30: warning: symbol 'isa207_pmu_format_group' was not declared. Should it be static? Signed-off-by: Madhavan

[PATCH 2/6] powerpc/xmon: fix sparse warning "Using plain integer as NULL pointer"

2025-04-22 Thread Madhavan Srinivasan
: warning: Using plain integer as NULL pointer arch/powerpc/xmon/ppc-opc.c:881:14: warning: Using plain integer as NULL pointer arch/powerpc/xmon/ppc-opc.c:881:17: warning: Using plain integer as NULL pointer Signed-off-by: Madhavan Srinivasan --- arch/powerpc/xmon/ppc-opc.c | 20

[PATCH 1/6] powerpc/kvm: Fix sparse warning

2025-04-22 Thread Madhavan Srinivasan
after the switch case which are specific for BOOKE and PPC_BOOK3S_32. These are not enabled in pseries/powernv defconfig. Fix it by moving the #ifdef before switch(){} Signed-off-by: Madhavan Srinivasan --- arch/powerpc/kernel/kvm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH 0/6] Fixes for shellcheck/sparse warnings

2025-04-22 Thread Madhavan Srinivasan
Patchset handles fixes for some of the sparse and shellcheck warnings. Madhavan Srinivasan (6): powerpc/kvm: Fix sparse warning powerpc/xmon: fix sparse warning "Using plain integer as NULL pointer" powerpc/perf:make isa207_pmu_format_group struct static powerpc: fix spars

[PATCH] powerpc/boot: Fix dash warning

2025-04-22 Thread Madhavan Srinivasan
ot;powerpc/boot: Check for ld-option support")' Reported-by: Stephen Rothwell Suggested-by: Stephen Rothwell Signed-off-by: Madhavan Srinivasan --- Patch applies clean on top of powerpc/fixes branch arch/powerpc/boot/wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: linux-next: build warnings after merge of the powerpc-fixes tree

2025-04-21 Thread Madhavan Srinivasan
On 4/22/25 7:17 AM, Stephen Rothwell wrote: > Hi all, > > After merging the powerpc-fixes tree, today's linux-next build > (powerpc_ppc64_defconfig) produced these warnings: > > arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator > ld: warning: arch/powerpc/boot/zImage.epapr has a LOAD s

Re: [PATCH v3 1/2] book3s64/radix: Fix compile errors when CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=n

2025-04-21 Thread Madhavan Srinivasan
On Mon, 10 Mar 2025 07:44:09 -0500, Donet Tom wrote: > Fix compile errors when CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=n > > Applied to powerpc/fixes. [1/2] book3s64/radix: Fix compile errors when CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=n https://git.kernel.org/powerpc/c/29bdc1f1c1df80868fb3

Re: [PATCH] powerpc/boot: Check for ld-option support

2025-04-21 Thread Madhavan Srinivasan
On Tue, 01 Apr 2025 06:12:18 +0530, Madhavan Srinivasan wrote: > Commit 579aee9fc594 ("powerpc: suppress some linker warnings in recent linker > versions") > enabled support to add linker option "--no-warn-rwx-segments", > if the version is greater than 2.39. Simil

Re: [RFC PATCH] powerpc: Add check to select PPC_RADIX_BROADCAST_TLBIE

2025-04-21 Thread Madhavan Srinivasan
On Mon, 07 Apr 2025 14:10:29 +0530, Madhavan Srinivasan wrote: > Commit 3d45a3d0d2e6 ("powerpc: Define config option for processors with > broadcast TLBIE") > added a config option PPC_RADIX_BROADCAST_TLBIE to support processors with > broadcast TLBIE. Since this optio

Re: [PATCH] powerpc64/ftrace: fix module loading without patchable function entries

2025-04-21 Thread Madhavan Srinivasan
On Wed, 05 Feb 2025 00:18:21 +0100, Anthony Iliopoulos wrote: > get_stubs_size assumes that there must always be at least one patchable > function entry, which is not always the case (modules that export data > but no code), otherwise it returns -ENOEXEC and thus the section header > sh_size is set

Re: [PATCH] tools/lib/perf: Fix -Werror=alloc-size-larger-than in cpumap.c

2025-04-15 Thread Madhavan Srinivasan
On 4/7/25 5:38 PM, Venkat Rao Bagalkote wrote: > > On 07/04/25 12:10 am, Athira Rajeev wrote: >> >>> On 6 Apr 2025, at 10:04 PM, Likhitha Korrapati >>> wrote: >>> >>> perf build break observed when using gcc 13-3 (FC39 ppc64le) >>> with the following error. >>> >>> cpumap.c: In function 'perf

[RFC PATCH] powerpc: Add check to select PPC_RADIX_BROADCAST_TLBIE

2025-04-07 Thread Madhavan Srinivasan
PPC_BOOK3S [=y] Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202504051857.jrqxm60c-...@intel.com/ Signed-off-by: Madhavan Srinivasan --- arch/powerpc/platforms/powernv/Kconfig | 2 +- arch/powerpc/platforms/pseries/Kconfig | 2 +- 2 files changed, 2 insertion

Re: [PATCH v13 00/11] Support page table check on PowerPC

2025-04-05 Thread Madhavan Srinivasan
al, uninstrumented mappings. > > (This series was written by Rohan McLure, who has left IBM and is no longer > working on powerpc - I've taken far too long to pick this up and finally > send it.) > For powerpc changes Acked-by: Madhavan Srinivasan > v13: > * Rebase

Re: [PATCH V2 2/2] tools/perf/powerpc/util: Add support to handle compatible mode PVR for perf json events

2025-04-04 Thread Madhavan Srinivasan
rectly. Because >> PVR will point to power10 where as it should pick events from power9 >> folder. To support generic events, add new folder >> pmu-events/arch/powerpc/compat to contain the ISA architected events >> which is supported in compat mode. Also return 0x00ff as

[PATCH] powerpc/boot: Check for ld-option support

2025-03-31 Thread Madhavan Srinivasan
version range. Fixes: Commit 579aee9fc594 ("powerpc: suppress some linker warnings in recent linker versions") Closes: https://lore.kernel.org/linuxppc-dev/61cf556c-4947-4bd6-af63-892fc0966...@linux.ibm.com/ Reported-by: Venkat Rao Bagalkote Suggested-by: Christophe Leroy Signed-off-by: Mad

Re: [main-line]Build warnings on PowerPC system

2025-03-28 Thread Madhavan Srinivasan
>>> diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper >>> index 1db60fe13802..09ceb5a42d81 100755 >>> --- a/arch/powerpc/boot/wrapper >>> +++ b/arch/powerpc/boot/wrapper >>> @@ -235,7 +235,7 @@ fi >>>   # suppress some warnings in recent ld versions >>>   nowarn="-z noexecstack"

Re: [main-line]Build warnings on PowerPC system

2025-03-27 Thread Madhavan Srinivasan
On 3/27/25 7:31 PM, Venkat Rao Bagalkote wrote: > > On 27/03/25 7:22 pm, Madhavan Srinivasan wrote: >> >> On 3/27/25 12:33 AM, Venkat Rao Bagalkote wrote: >>> Greetings!!! >>> >>> I see below build warnings while compiling mainline kernel

Re: [main-line]Build warnings on PowerPC system

2025-03-27 Thread Madhavan Srinivasan
On 3/27/25 12:33 AM, Venkat Rao Bagalkote wrote: > Greetings!!! > > I see below build warnings while compiling mainline kernel on IBM Power9 > system. > > Repo Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ > > Head Commit: f6e0150b2003fb2b9265028a618aa1732b3edc8f

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-6.15-1 tag

2025-03-26 Thread Madhavan Srinivasan
On 3/26/25 4:20 PM, John Paul Adrian Glaubitz wrote: > Hello Madhavan, > > does the removal of IBM Cell Blades affect the possibility to run Linux > on the PlayStation 3 in any way? I assume there are still some hobbyists > using it. PS3 platform is still maintained. Only IBM Blade server plat

[GIT PULL] Please pull powerpc/linux.git powerpc-6.15-1 tag

2025-03-25 Thread Madhavan Srinivasan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc updates for 6.15. No conflicts that I am aware of. Thanks Notable out of area changes: arch/x86/kernel/static_call.c # d856bc3ac7d9 static_call_inline: Provide trampoline address when updating sites kerne

Re: [PATCH] powerpc64/ftrace: fix module loading without patchable function entries

2025-03-25 Thread Madhavan Srinivasan
On 3/26/25 6:46 AM, Adam Williamson wrote: > On Thu, 2025-02-13 at 22:29 +0530, Naveen N Rao wrote: >> On Wed, Feb 05, 2025 at 12:18:21AM +0100, Anthony Iliopoulos wrote: >>> get_stubs_size assumes that there must always be at least one patchable >>> function entry, which is not always the case

Re: [PATCH] powerpc/prom_init: Fixup missing powermac #size-cells on i2s nodes

2025-03-18 Thread Madhavan Srinivasan
On 3/19/25 12:52 AM, Rob Herring (Arm) wrote: > On some powermacs `i2s` nodes are missing `#size-cells` properties, > which is deprecated and now triggers a warning at boot since commit > 045b14ca5c36 ("of: WARN on deprecated #address-cells/#size-cells > handling"). > > For example: > > Miss

Re: [main-line][PowerPC]selftests/powerpc/signal: sigfuz fails

2025-03-18 Thread Madhavan Srinivasan
On 3/17/25 4:43 PM, Michael Ellerman wrote: > Venkat Rao Bagalkote writes: >> Greetings!! >> >> I am observing selftests/powerpc/signal:sigfuz test fails on linux >> mainline repo on IBM Power10 systems. >> >> The test passes on the kernel with commit head: >> 619f0b6fad524f08d493a98d55bac9ab

Re: [PATCH] powerpc/perf: Fix ref-counting on the PMU 'vpa_pmu'

2025-03-14 Thread Madhavan Srinivasan
On Tue, 04 Feb 2025 21:05:26 +0530, Vaibhav Jain wrote: > Commit 176cda0619b6 ("powerpc/perf: Add perf interface to expose vpa > counters") introduced 'vpa_pmu' to expose Book3s-HV nested APIv2 provided > L1<->L2 context switch latency counters to L1 user-space via > perf-events. However the newly

Re: [PATCH v2] powerpc/kexec: fix physical address calculation in clear_utlb_entry()

2025-03-14 Thread Madhavan Srinivasan
On Thu, 06 Mar 2025 11:24:28 +0100, Christophe Leroy wrote: > In relocate_32.S, function clear_utlb_entry() goes into real mode. To > do so, it has to calculate the physical address based on the virtual > address. To get the virtual address it uses 'bl' which is problematic > (see commit c974809a26

Re: [PATCH] powerpc/prom_init: Fixup missing #size-cells on PowerBook6,7

2025-03-13 Thread Madhavan Srinivasan
On Mon, 13 Jan 2025 18:19:09 +0100, Andreas Schwab wrote: > Similar to the PowerMac3,1, the PowerBook6,7 is missing the #size-cells > property on the i2s node. > > Applied to powerpc/next. [1/1] powerpc/prom_init: Fixup missing #size-cells on PowerBook6,7 https://git.kernel.org/powerpc/c/

Re: [PATCH] crypto: powerpc: Mark ghashp8-ppc.o as an OBJECT_FILES_NON_STANDARD

2025-03-13 Thread Madhavan Srinivasan
On Wed, 05 Mar 2025 00:02:39 +0100, Christophe Leroy wrote: > The following build warning has been reported: > > arch/powerpc/crypto/ghashp8-ppc.o: warning: objtool: .text+0x22c: > unannotated intra-function call > > This happens due to commit bb7f054f4de2 ("objtool/powerpc: Add support > for

Re: [PATCH] powerpc: Fix 'intra_function_call not a direct call' warning

2025-03-13 Thread Madhavan Srinivasan
On Wed, 05 Mar 2025 00:00:19 +0100, Christophe Leroy wrote: > The following build warning have been reported: > > arch/powerpc/kvm/book3s_hv_rmhandlers.o: warning: objtool: .text+0xe84: > intra_function_call not a direct call > arch/powerpc/kernel/switch.o: warning: objtool: .text+0x4: > int

Re: [PATCH v3] KVM: PPC: Enable CAP_SPAPR_TCE_VFIO on pSeries KVM guests

2025-03-13 Thread Madhavan Srinivasan
On Thu, 20 Feb 2025 12:30:02 +0530, Amit Machhiwal wrote: > Currently on book3s-hv, the capability KVM_CAP_SPAPR_TCE_VFIO is only > available for KVM Guests running on PowerNV and not for the KVM guests > running on pSeries hypervisors. This prevents a pSeries L2 guest from > leveraging the in-kern

Re: [linux-next-20250307] Build Failure

2025-03-11 Thread Madhavan Srinivasan
On 3/11/25 2:17 PM, Madhavan Srinivasan wrote: > > > On 3/9/25 6:08 PM, Venkat Rao Bagalkote wrote: >> Greetings!!, >> >> I see linux-next-20250307 fails to build on IBM Power9 and Power10 servers. >> >> >> Errors: >> >> In file include

Re: [linux-next-20250307] Build Failure

2025-03-11 Thread Madhavan Srinivasan
On 3/9/25 6:08 PM, Venkat Rao Bagalkote wrote: > Greetings!!, > > I see linux-next-20250307 fails to build on IBM Power9 and Power10 servers. > > > Errors: > > In file included from ^[[01m^[[K^[[m^[[K: > ^[[01m^[[K./usr/include/cxl/features.h:11:10:^[[m^[[K ^[[01;31m^[[Kfatal > error: ^[[m^

[PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917

2025-03-11 Thread Madhavan Srinivasan
: Venkat Rao Bagalkote Closes: https://lore.kernel.org/lkml/3267ea6e-5a1a-4752-96ef-8351c912d...@linux.ibm.com/T/ Tested-by: Venkat Rao Bagalkote Signed-off-by: Madhavan Srinivasan --- Catalin, can you take this fix via arm64/for-next/pkey_unrestricted? Patch applies clean on top of arm64/for-

Re: PowerPC: sleftests/powerpc fails to compile linux-next

2025-03-06 Thread Madhavan Srinivasan
On 3/6/25 10:30 PM, Venkat Rao Bagalkote wrote: > Greetings!! > > I see selftests/powerpc fails to compile on next-20250306. > > This error has been introduced in next-20250218. Make is successful on > next-20250217. > > > Attached is the .config used. > > > If you fix this, please add be

Re: Build Warnings at arch/powerpc/

2025-03-04 Thread Madhavan Srinivasan
On 3/4/25 4:58 PM, Madhavan Srinivasan wrote: > > > On 3/4/25 2:26 PM, Christophe Leroy wrote: >> >> >> Le 04/03/2025 à 07:13, Madhavan Srinivasan a écrit : >>> >>> >>> On 3/4/25 10:42 AM, Venkat Rao Bagalkote wrote: >>>> Greet

Re: Build Warnings at arch/powerpc/

2025-03-04 Thread Madhavan Srinivasan
On 3/4/25 2:26 PM, Christophe Leroy wrote: > > > Le 04/03/2025 à 07:13, Madhavan Srinivasan a écrit : >> >> >> On 3/4/25 10:42 AM, Venkat Rao Bagalkote wrote: >>> Greetings!! >>> >>> >>> Observing build warnings with linux-next a

Re: [PATCH v3 1/1] cxl: Remove driver

2025-03-03 Thread Madhavan Srinivasan
On 3/4/25 8:31 AM, Martin K. Petersen wrote: > > Hi Madhavan! > >> This patch has depenednecy with the first patch >> >> https://lists.ozlabs.org/pipermail/linuxppc-dev/2025-February/280990.html >> >> Which is already part of your staging tree. Can you please >> take this patch along with the

Re: Build Warnings at arch/powerpc/

2025-03-03 Thread Madhavan Srinivasan
On 3/4/25 10:42 AM, Venkat Rao Bagalkote wrote: > Greetings!! > > > Observing build warnings with linux-next and powerpc repo's. Issue is > currently not seen on mainline yet. > > PPC Repo: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > merge branch > > PPC Kernel Vers

Re: [PATCH v4 0/4] Implement inline static calls on PPC32 - v4

2025-03-01 Thread Madhavan Srinivasan
On Tue, 03 Dec 2024 20:44:48 +0100, Christophe Leroy wrote: > This series implements inline static calls on PPC32. > > First patch adds to static_call core the ability to pass the > trampoline address at the same time as the site address to > arch_static_call_transform() so that it can fallback on

Re: [PATCH v2 01/25] powerpc/cell: Remove support for IBM Cell Blades

2025-03-01 Thread Madhavan Srinivasan
On Wed, 18 Dec 2024 21:54:49 +1100, Michael Ellerman wrote: > IBM Cell Blades used the Cell processor and the "blade" server form > factor. They were sold as models QS20, QS21 & QS22 from roughly 2006 to > 2012 [1]. They were used in a few supercomputers (eg. Roadrunner) that > have since been dism

Re: [PATCH v2 0/5] Microwatt updates

2025-03-01 Thread Madhavan Srinivasan
On Fri, 31 Jan 2025 17:26:41 +1100, Paul Mackerras wrote: > This patch series updates the kernel support for the Microwatt > soft-core and its implementation on FPGA systems, particularly the > Digilent Arty A7-100 FPGA development board. > > Microwatt now supports almost all of the features of th

[PATCH v2 4/4] powerpc/perf/vpa-pmu: Avoid loading vpa-pmu driver during dump kernel

2025-03-01 Thread Madhavan Srinivasan
commandline option to disable them. Signed-off-by: Madhavan Srinivasan --- Changelog v1: - Added more details to commmit message arch/powerpc/perf/vpa-pmu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/perf/vpa-pmu.c b/arch/powerpc/perf/vpa-pmu.c index 6a5bfd2a13b5

[PATCH v2 3/4] powerpc/perf/hv-gpci: Avoid loading hv-gpci pmu during dump kernel

2025-03-01 Thread Madhavan Srinivasan
hv-gpci pmu driver is intended to get powervm hypervisor system-wide metrics and these are built-in. hv-gpci pmu not have commandline option to disable them. Add check for kdump and fadump kernel to avoids loading them. Signed-off-by: Madhavan Srinivasan --- Changelog v1: - Added more details to

[PATCH v2 2/4] powerpc/perf/hv-24x7: Avoid loading hv-24x7 during dump kernel

2025-03-01 Thread Madhavan Srinivasan
hv-24x7 pmu driver are intended to get system-wide resourse metrics and these are built-in. hv-24x7 pmu does not have commandline option to disable them. Add check for kdump and fadump kernel to avoids loading them. Signed-off-by: Madhavan Srinivasan --- Changelog v1: - Added more details to

[PATCH v2 1/4] powerpc/perf/core-book3s: Avoid loading platform pmu driver during dump kernel

2025-03-01 Thread Madhavan Srinivasan
Platform pmu driver are built-in and these does not have a commandline parameter to avoid loading them during the kdump kernel. Add check for kdump and fadump kernel to avoids loading them. Signed-off-by: Madhavan Srinivasan --- Changelog v1: - Added more details to commmit message arch

Re: Missing '#size-cells' in /ht@0,f2000000/pci@8/mac-io@7/i2s@0 on G5/G4 (kernel 6.13-rc3)

2025-02-26 Thread Madhavan Srinivasan
On 2/27/25 3:44 AM, Erhard Furtner wrote: > On Mon, 23 Dec 2024 23:58:26 +1100 > Michael Ellerman wrote: > >> Erhard Furtner writes: >>> Greetings! >>> >>> I am aware there is commit cf89c9434af122f28a3552e6f9cc5158c33ce50a >>> (already merged in v6.13-rc3) which fixes some of the "Missing >>

Re: [PATCH] arch/powerpc: Remove unused function icp_native_cause_ipi_rm()

2025-02-25 Thread Madhavan Srinivasan
On Wed, 01 Jan 2025 19:12:49 +0530, Gautam Menghani wrote: > Remove icp_native_cause_ipi_rm() as it has no callers since > commit 53af3ba2e819("KVM: PPC: Book3S HV: Allow guest exit path to have > MMU on") > > Applied to powerpc/next. [1/1] arch/powerpc: Remove unused function icp_native_cause_

Re: [PATCH] powerpc/vmlinux: Remove etext, edata and end

2025-02-25 Thread Madhavan Srinivasan
On Wed, 08 Jan 2025 11:33:44 +0100, Christophe Leroy wrote: > etext is not used anymore since commit 843a1ffaf6f2 ("powerpc/mm: use > core_kernel_text() helper") > > edata and end have not been used since the merge of arch/ppc/ and > arch/ppc64/ > > Remove the three and remove macro PROVIDE32. >

Re: [PATCH] powerpc/ipic: Stop printing address of registers

2025-02-25 Thread Madhavan Srinivasan
On Thu, 09 Jan 2025 07:48:36 +0100, Christophe Leroy wrote: > The following line appears at boot: > > IPIC (128 IRQ sources) at (ptrval) > > This is pointless so remove the printing of the virtual address and > replace it by matching physical address. > > [...] Applied to powerpc/next. [

Re: [PATCH] powerpc/time: Define div128_by_32() static and __init

2025-02-25 Thread Madhavan Srinivasan
On Wed, 05 Feb 2025 10:54:26 +0100, Christophe Leroy wrote: > div128_by_32() used to be called from outside time.c in the old days > but since v2.6.15 it hasn't been used outside time.c > > $ git grep div128_by_32 v2.6.14 > v2.6.14:arch/ppc64/kernel/iSeries_setup.c:div128_by_32(1024 * 1024, 0,

Re: [PATCH] powerpc/44x: Declare primary_uic static in uic.c

2025-02-25 Thread Madhavan Srinivasan
On Wed, 08 Jan 2025 11:24:54 +0100, Christophe Leroy wrote: > primary_uic is not used outside uic.c, declare it static. > > Applied to powerpc/next. [1/1] powerpc/44x: Declare primary_uic static in uic.c https://git.kernel.org/powerpc/c/779c501cab14ba0b441a3c802c56be46a24f5c3b Thanks

Re: [PATCH] powerpc/32: Stop printing Kernel virtual memory layout

2025-02-25 Thread Madhavan Srinivasan
On Wed, 08 Jan 2025 19:40:38 +0100, Christophe Leroy wrote: > Printing of Kernel virtual memory layout was added for debug purpose > by commit f637a49e507c ("powerpc: Minor cleanups of kernel virt > address space definitions") > > For security reasons, don't display the kernel's virtual memory lay

[GIT PULL] Please pull powerpc/linux.git powerpc-6.14-4 tag

2025-02-25 Thread Madhavan Srinivasan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc fix for 6.14: The following changes since commit d262a192d38e527faa5984629aabda2e0d1c4f54: powerpc/code-patching: Fix KASAN hit by not flagging text patching area as VM_ALLOC (2025-02-12 14:38:13 +0530) are availa

Re: [PATCH] cxl: Fix cross-reference in documentation and add deprecation warning

2025-02-19 Thread Madhavan Srinivasan
On 2/19/25 12:18 PM, Andrew Donnellan wrote: > commit 5731d41af924 ("cxl: Deprecate driver") labelled the cxl driver as > deprecated and moved the ABI documentation to the obsolete/ subdirectory, > but didn't update cxl.rst, causing a warning once ff7ff6eb4f809 ("docs: > media: Allow creating cr

Re: linux-next: build warning after merge of the powerpc tree

2025-02-18 Thread Madhavan Srinivasan
On 2/19/25 10:16 AM, Stephen Rothwell wrote: > Hi all, > > After merging the powerpc tree, today's linux-next build (htmldocs) > produced this warning: > > WARNING: Documentation/ABI/testing/sysfs-class-cxl not found > > Introduced by commit > > 5731d41af924 ("cxl: Deprecate driver") > >

[GIT PULL] Please pull powerpc/linux.git powerpc-6.14-3 tag

2025-02-17 Thread Madhavan Srinivasan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull couple of powerpc fixes for 6.14: The following changes since commit a64dcfb451e254085a7daee5fe51bf22959d52d3: Linux 6.14-rc2 (2025-02-09 12:45:03 -0800) are available in the git repository at: https://git.kernel.org/pu

Re: [PATCH v3 0/4] powerpc: increase MIN RMA size for CAS negotiation

2025-02-16 Thread Madhavan Srinivasan
On Thu, 23 Jan 2025 17:12:50 +0530, Sourabh Jain wrote: > Change RMA size from 512 MB to 768 MB which will result > in more RMA at boot time for PowerPC. When PowerPC LPAR use/uses vTPM, > Secure Boot or FADump, the 512 MB RMA memory is not sufficient for > booting. With this 512 MB RMA, GRUB2 run

Re: [PATCH] powerpc/pseries/iommu: memory notifier incorrectly adds TCEs for pmemory

2025-02-16 Thread Madhavan Srinivasan
On Thu, 30 Jan 2025 12:38:54 -0600, Gaurav Batra wrote: > iommu_mem_notifier() is invoked when RAM is dynamically added/removed. This > notifier call is responsible to add/remove TCEs from the Dynamic DMA Window > (DDW) when TCEs are pre-mapped. TCEs are pre-mapped only for RAM and not > for persis

Re: [PATCH] powerpc/pseries/iommu: create DDW for devices with DMA mask less than 64-bits

2025-02-16 Thread Madhavan Srinivasan
On Wed, 08 Jan 2025 10:48:14 -0600, Gaurav Batra wrote: > Starting with PAPR level 2.13, platform supports placing PHB in limited > address mode. Devices that support DMA masks less that 64-bit but greater > than 32-bits are placed in limited address mode. In this mode, the > starting DMA address r

  1   2   3   4   5   6   7   8   9   10   >