Re: [PATCH v2 1/3] powerpc/fadump: make is_fadump_active() visible for exporting vmcore

2023-09-07 Thread Hari Bathini
Thanks, Baoquan. On 07/09/23 11:12 am, Baoquan He wrote: On 09/06/23 at 12:06am, Hari Bathini wrote: Include asm/fadump.h in asm/kexec.h to make it visible while exporting vmcore. Also, update is_fadump_active() to return boolean instead of integer for better readability. The change will be

Re: [PATCH V2] perf test: Fix parse-events tests to skip parametrized events

2023-09-07 Thread Sachin Sant
> On 07-Sep-2023, at 10:29 PM, Athira Rajeev > wrote: > > Testcase "Parsing of all PMU events from sysfs" parse events for > all PMUs, and not just cpu. In case of powerpc, the PowerVM > environment supports events from hv_24x7 and hv_gpci PMU which > is of example format like below: > > -

Re: [PATCH 1/2] m68k: Replace GPL 2.0+ README.legal boilerplate by SPDX

2023-09-07 Thread Greg Ungerer
Hi Geert, On 8/9/23 00:21, Geert Uytterhoeven wrote: Upstream Linux never had a "README.legal" file, but it was present in early source releases of Linux/m68k. It contained a simple copyright notice and a link to a version of the "COPYING" file that predated the addition of the "only valid GPL

Re: [PATCH 0/3] Fix for shellcheck issues with version "0.6"

2023-09-07 Thread Ian Rogers
On Thu, Sep 7, 2023 at 10:17 AM Athira Rajeev wrote: > > From: root > > shellcheck was run on perf tool shell scripts s a pre-requisite > to include a build option for shellcheck discussed here: > https://www.spinics.net/lists/linux-perf-users/msg25553.html > > And fixes were added for the

Re: [PATCH] tools/perf: Add includes for detected configs in Makefile.perf

2023-09-07 Thread Ian Rogers
On Thu, Sep 7, 2023 at 10:19 AM Athira Rajeev wrote: > > Makefile.perf uses "CONFIG_*" checks in the code. Example the config > for libtraceevent is used to set PYTHON_EXT_SRCS > > ifeq ($(CONFIG_LIBTRACEEVENT),y) > PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources)

Re: [PATCH v7 0/4] kexec: Fix kexec_file_load for llvm16 with PGO

2023-09-07 Thread Song Liu
Hi Ricardo and folks, On Fri, May 19, 2023 at 7:48 AM Ricardo Ribalda wrote: > > When upreving llvm I realised that kexec stopped working on my test > platform. > > The reason seems to be that due to PGO there are multiple .text sections > on the purgatory, and kexec does not supports that. > >

Re: [PATCH V2] perf test: Fix parse-events tests to skip parametrized events

2023-09-07 Thread Ian Rogers
On Thu, Sep 7, 2023 at 9:59 AM Athira Rajeev wrote: > > Testcase "Parsing of all PMU events from sysfs" parse events for > all PMUs, and not just cpu. In case of powerpc, the PowerVM > environment supports events from hv_24x7 and hv_gpci PMU which > is of example format like below: > > -

Re: [PATCH] integrity: powerpc: Do not select CA_MACHINE_KEYRING

2023-09-07 Thread Michal Suchánek
Adding more CC's from the original patch, looks like get_maintainers is not that great for this file. On Thu, Sep 07, 2023 at 06:52:19PM +0200, Michal Suchanek wrote: > No other platform needs CA_MACHINE_KEYRING, either. > > This is policy that should be decided by the administrator, not Kconfig

[PATCH] tools/perf: Add includes for detected configs in Makefile.perf

2023-09-07 Thread Athira Rajeev
Makefile.perf uses "CONFIG_*" checks in the code. Example the config for libtraceevent is used to set PYTHON_EXT_SRCS ifeq ($(CONFIG_LIBTRACEEVENT),y) PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources) else PYTHON_EXT_SRCS := $(shell grep -v

Re: [PATCH RFC] powerpc/rtas: Make it possible to disable sys_rtas

2023-09-07 Thread Michal Suchánek
On Thu, Sep 07, 2023 at 11:52:44AM -0500, Nathan Lynch wrote: > Michal Suchánek writes: > > On Wed, Sep 06, 2023 at 02:34:59PM -0500, Nathan Lynch wrote: > >> Michal Suchanek writes: > >> > >> > Additional patch suggestion to go with the rtas devices: > >> > > >> >

[PATCH 0/3] Fix for shellcheck issues with version "0.6"

2023-09-07 Thread Athira Rajeev
From: root shellcheck was run on perf tool shell scripts s a pre-requisite to include a build option for shellcheck discussed here: https://www.spinics.net/lists/linux-perf-users/msg25553.html And fixes were added for the coding/formatting issues in two patchsets:

[PATCH 3/3] tests/shell: Fix shellcheck warnings for SC2153 in multiple scripts

2023-09-07 Thread Athira Rajeev
Running shellcheck on some of the shell scripts, throws below warning on shellcheck v0.6. Example: In tests/shell/coresight/asm_pure_loop.sh line 14: DATA="$DATD/perf-$TEST-$DATV.data" ^---^ SC2153: Possible misspelling: DATD may not be assigned, but DATA is. Here, DATD is

[PATCH 1/3] tests/shell: Fix shellcheck SC1090 to handle the location of sourced files

2023-09-07 Thread Athira Rajeev
Running shellcheck on some of the shell scripts throws below error: In tests/shell/coresight/unroll_loop_thread_10.sh line 8: . "$(dirname $0)"/../lib/coresight.sh ^-- SC1090: Can't follow non-constant source. Use a directive to specify location. This happens on

[PATCH 2/3] tests/shell: Fix shellcheck issues in tests/shell/stat+shadow_stat.sh tetscase

2023-09-07 Thread Athira Rajeev
Running shellcheck on stat+shadow_stat.sh generates below warning In tests/shell/stat+csv_summary.sh line 26: while read _num _event _run _pct ^--^ SC2034: _num appears unused. Verify use (or export if used externally). ^^ SC2034: _event appears unused.

[PATCH V2] perf test: Fix parse-events tests to skip parametrized events

2023-09-07 Thread Athira Rajeev
Testcase "Parsing of all PMU events from sysfs" parse events for all PMUs, and not just cpu. In case of powerpc, the PowerVM environment supports events from hv_24x7 and hv_gpci PMU which is of example format like below: - hv_24x7/CPM_ADJUNCT_INST,domain=?,core=?/ - hv_gpci/event,partition_id=?/

Re: [PATCH] perf test: Fix parse-events tests to skip parametrized events

2023-09-07 Thread Athira Rajeev
> On 18-Aug-2023, at 12:07 AM, Ian Rogers wrote: > > On Sun, Aug 6, 2023 at 9:50 PM Athira Rajeev > wrote: >> >> Testcase "Parsing of all PMU events from sysfs" parse events for >> all PMUs, and not just cpu. In case of powerpc, the PowerVM >> environment supports events from hv_24x7 and

Re: [PATCH RFC] powerpc/rtas: Make it possible to disable sys_rtas

2023-09-07 Thread Nathan Lynch
Michal Suchánek writes: > On Wed, Sep 06, 2023 at 02:34:59PM -0500, Nathan Lynch wrote: >> Michal Suchanek writes: >> >> > Additional patch suggestion to go with the rtas devices: >> > >> > --- >> > >> > With most important

[V2 1/2] tools/perf: Add text_end to "struct dso" to save .text section size

2023-09-07 Thread Athira Rajeev
Update "struct dso" to include new member "text_end". This new field will represent the offset for end of text section for a dso. For elf, this value is derived as: sh_size (Size of section in byes) + sh_offset (Section file offst) of the elf header for text. For bfd, this value is derived as: 1.

[V2 2/2] tools/perf/tests: Fix object code reading to skip address that falls out of text section

2023-09-07 Thread Athira Rajeev
The testcase "Object code reading" fails in somecases for "fs_something" sub test as below: Reading object code for memory address: 0xc00807f0142c File is: /lib/modules/6.5.0-rc3+/kernel/fs/xfs/xfs.ko On file address is: 0x1114cc Objdump command is: objdump -z -d

Re: [PATCH RFC] powerpc/rtas: Make it possible to disable sys_rtas

2023-09-07 Thread Michal Suchánek
On Wed, Sep 06, 2023 at 02:34:59PM -0500, Nathan Lynch wrote: > Michal Suchanek writes: > > > Additional patch suggestion to go with the rtas devices: > > > > --- > > > > With most important rtas functions available through

Re: [PATCH V2 2/2] tools/perf/tests: Fix object code reading to skip address that falls out of text section

2023-09-07 Thread Athira Rajeev
> On 18-Aug-2023, at 12:45 PM, Adrian Hunter wrote: > > On 17/08/23 20:18, Athira Rajeev wrote: >> The testcase "Object code reading" fails in somecases >> for "fs_something" sub test as below: >> >>Reading object code for memory address: 0xc00807f0142c >>File is:

Re: [PATCH V2 1/2] tools/perf: Add text_end to "struct dso" to save .text section size

2023-09-07 Thread Athira Rajeev
> On 18-Aug-2023, at 12:07 PM, Adrian Hunter wrote: > > On 17/08/23 20:18, Athira Rajeev wrote: >> Update "struct dso" to include new member "text_end". >> This new field will represent the offset for end of text >> section for a dso. This value is derived as: >> sh_size (Size of section in

Re: [PATCH 0/2] m68k/powerpc: Kill references to non-existent README.legal

2023-09-07 Thread Geert Uytterhoeven
Hi Christophe, On Thu, Sep 7, 2023 at 4:25 PM Christophe Leroy wrote: > Le 07/09/2023 à 16:21, Geert Uytterhoeven a écrit : > > Several source files contain license boilerplate that refers to the file > > "README.legal", which never existed in upstream Linux. This is a relic > > from the early

Re: [PATCH 0/2] m68k/powerpc: Kill references to non-existent README.legal

2023-09-07 Thread Christophe Leroy
Le 07/09/2023 à 16:21, Geert Uytterhoeven a écrit : > Hi all, > > Several source files contain license boilerplate that refers to the file > "README.legal", which never existed in upstream Linux. This is a relic > from the early port of Linux to the m68k processor family, before it was >

Kernel crash during ltp(min_free_kbytes) test run (zone_reclaimable_pages)

2023-09-07 Thread Sachin Sant
While running LTP tests (specifically min_free_kbytes) on a Power server booted with 6.5.0-next-20230906 following crash was encountered. [ 3952.404936] __vm_enough_memory: pid: 440285, comm: min_free_kbytes, not enough memory for the allocation [ 3956.895519] __vm_enough_memory: pid: 440286,

[PATCH 1/2] m68k: Replace GPL 2.0+ README.legal boilerplate by SPDX

2023-09-07 Thread Geert Uytterhoeven
Upstream Linux never had a "README.legal" file, but it was present in early source releases of Linux/m68k. It contained a simple copyright notice and a link to a version of the "COPYING" file that predated the addition of the "only valid GPL version is v2" clause. Get rid of the references to

[PATCH 2/2] powerpc: Replace GPL 2.0+ README.legal boilerplate by SPDX

2023-09-07 Thread Geert Uytterhoeven
Upstream Linux never had a "README.legal" file, but it was present in early source releases of Linux/m68k. It contained a simple copyright notice and a link to a version of the "COPYING" file that predated the addition of the "only valid GPL version is v2" clause. Get rid of the references to

[PATCH 0/2] m68k/powerpc: Kill references to non-existent README.legal

2023-09-07 Thread Geert Uytterhoeven
Hi all, Several source files contain license boilerplate that refers to the file "README.legal", which never existed in upstream Linux. This is a relic from the early port of Linux to the m68k processor family, before it was merged in v1.3.94. Later, copies of this boilerplate ended up

Re: [PATCH v4 00/11] KVM: PPC: Nested APIv2 guest support

2023-09-07 Thread Sachin Sant
> On 05-Sep-2023, at 9:16 AM, Jordan Niethe wrote: > > A nested-HV API for PAPR has been developed based on the KVM-specific > nested-HV API that is upstream in Linux/KVM and QEMU. The PAPR API had > to break compatibility to accommodate implementation in other > hypervisors and partitioning

Re: [PATCH 1/8] S390: Remove sentinel elem from ctl_table arrays

2023-09-07 Thread Alexander Gordeev
On Wed, Sep 06, 2023 at 12:03:22PM +0200, Joel Granados via B4 Relay wrote: > From: Joel Granados > > This commit comes at the tail end of a greater effort to remove the > empty elements at the end of the ctl_table arrays (sentinels) which > will reduce the overall build time size of the kernel

[PATCH 06/11] powerpc/kexec_file: add missing of_node_put

2023-09-07 Thread Julia Lawall
for_each_node_with_property performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. This was done using the Coccinelle semantic patch iterators/for_each_child.cocci Signed-off-by: Julia Lawall --- arch/powerpc/kexec/file_load_64.c |8 ++-- 1 file

[PATCH 03/11] powerpc/powermac: add missing of_node_put

2023-09-07 Thread Julia Lawall
for_each_node_by_name performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. This was done using the Coccinelle semantic patch iterators/for_each_child.cocci Signed-off-by: Julia Lawall --- arch/powerpc/platforms/powermac/low_i2c.c |4 +++-

[PATCH 00/11] add missing of_node_put

2023-09-07 Thread Julia Lawall
Add of_node_put on a break out of an of_node loop. --- arch/powerpc/kexec/file_load_64.c|8 ++-- arch/powerpc/platforms/powermac/low_i2c.c|4 +++- arch/powerpc/platforms/powermac/smp.c|4 +++- drivers/bus/arm-cci.c

Re: [PATCH 1/8] S390: Remove sentinel elem from ctl_table arrays

2023-09-07 Thread Heiko Carstens
On Wed, Sep 06, 2023 at 12:03:22PM +0200, Joel Granados via B4 Relay wrote: > From: Joel Granados > > This commit comes at the tail end of a greater effort to remove the > empty elements at the end of the ctl_table arrays (sentinels) which > will reduce the overall build time size of the kernel

Re: [PATCH 3/8] arch/x86: Remove sentinel elem from ctl_table arrays

2023-09-07 Thread Joel Granados
On Wed, Sep 06, 2023 at 11:58:47PM +0200, Ingo Molnar wrote: > > * Dave Hansen wrote: > > > On 9/6/23 03:03, Joel Granados via B4 Relay wrote: > > > This commit comes at the tail end of a greater effort to remove the > > > empty elements at the end of the ctl_table arrays (sentinels) which > >

Re: [PATCH 3/8] arch/x86: Remove sentinel elem from ctl_table arrays

2023-09-07 Thread Joel Granados
On Wed, Sep 06, 2023 at 07:45:09AM -0700, Dave Hansen wrote: > On 9/6/23 03:03, Joel Granados via B4 Relay wrote: > > This commit comes at the tail end of a greater effort to remove the > > empty elements at the end of the ctl_table arrays (sentinels) which > > will reduce the overall build time

Re: [PATCH v2 2/5] fbdev: Replace fb_pgprotect() with fb_pgprot_device()

2023-09-07 Thread Thomas Zimmermann
Hi Arnd Am 06.09.23 um 21:53 schrieb Arnd Bergmann: On Wed, Sep 6, 2023, at 10:35, Thomas Zimmermann wrote: Rename the fbdev mmap helper fb_pgprotect() to fb_pgprot_device(). The helper sets VMA page-access flags for framebuffers in device I/O memory. The new name follows pgprot_device(),