Re: [RFC PATCH v0 1/1] powerpc/percpu: Use 2MB atom_size in percpu allocator on radix

2021-07-11 Thread Bharata B Rao
On Mon, Jul 12, 2021 at 01:00:10PM +1000, Nicholas Piggin wrote: > Excerpts from Bharata B Rao's message of July 8, 2021 3:29 pm: > > The atom_size used by percpu allocator on powerpc is currently > > determined by mmu_linear_psize which is initialized to 4K and > > mmu_linear_psize is modified onl

Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-11 Thread Madhavan Srinivasan
On 7/2/21 5:57 AM, Nicholas Piggin wrote: Excerpts from Madhavan Srinivasan's message of July 1, 2021 11:17 pm: On 6/22/21 4:27 PM, Nicholas Piggin wrote: KVM PMU management code looks for particular frozen/disabled bits in the PMU registers so it knows whether it must clear them when coming

Re: [RFC PATCH v0 1/1] powerpc/percpu: Use 2MB atom_size in percpu allocator on radix

2021-07-11 Thread Nicholas Piggin
Excerpts from Bharata B Rao's message of July 8, 2021 3:29 pm: > The atom_size used by percpu allocator on powerpc is currently > determined by mmu_linear_psize which is initialized to 4K and > mmu_linear_psize is modified only by hash. Till now for radix > the atom_size was defaulting to PAGE_SIZE

Re: [RFC PATCH 27/43] KVM: PPC: Book3S HV P9: Move host OS save/restore functions to built-in

2021-07-11 Thread Nicholas Piggin
Excerpts from Athira Rajeev's message of July 8, 2021 3:32 pm: > > >> On 22-Jun-2021, at 4:27 PM, Nicholas Piggin wrote: >> >> Move the P9 guest/host register switching functions to the built-in >> P9 entry code, and export it for nested to use as well. >> >> This allows more flexibility in sc

Re: [RFC PATCH 11/43] KVM: PPC: Book3S HV P9: Implement PMU save/restore in C

2021-07-11 Thread Nicholas Piggin
Excerpts from Athira Rajeev's message of July 10, 2021 12:47 pm: > > >> On 22-Jun-2021, at 4:27 PM, Nicholas Piggin wrote: >> >> Implement the P9 path PMU save/restore code in C, and remove the >> POWER9/10 code from the P7/8 path assembly. >> >> -449 cycles (8533) POWER9 virt-mode NULL hcall

Re: [RFC PATCH 10/43] powerpc/64s: Always set PMU control registers to frozen/disabled when not in use

2021-07-11 Thread Nicholas Piggin
Excerpts from Athira Rajeev's message of July 10, 2021 12:50 pm: > > >> On 22-Jun-2021, at 4:27 PM, Nicholas Piggin wrote: >> >> KVM PMU management code looks for particular frozen/disabled bits in >> the PMU registers so it knows whether it must clear them when coming >> out of a guest or not.

Re: [PATCH V3 1/1] powerpc/perf: Fix PMU callbacks to clear pending PMI before resetting an overflown PMC

2021-07-11 Thread Nicholas Piggin
Excerpts from Athira Rajeev's message of July 11, 2021 1:58 am: > Running perf fuzzer showed below in dmesg logs: > "Can't find PMC that caused IRQ" > > This means a PMU exception happened, but none of the PMC's (Performance > Monitor Counter) were found to be overflown. There are some corner case

RE: [PATCH v2] fpga: dfl: fme: Fix cpu hotplug issue in performance reporting

2021-07-11 Thread Wu, Hao
> Subject: [PATCH v2] fpga: dfl: fme: Fix cpu hotplug issue in performance > reporting > > The performance reporting driver added cpu hotplug > feature but it didn't add pmu migration call in cpu > offline function. > This can create an issue incase the current designated > cpu being used to colle

[PATCH] KVM: PPC: Book3S HV P9: Fix guest TM support

2021-07-11 Thread Nicholas Piggin
The conversion to C introduced several bugs in TM handling that can cause host crashes with TM bad thing interrupts. Mostly just simple typos or missed logic in the conversion that got through due to my not testing TM in the guest sufficiently. - Early TM emulation for the softpatch interrupt shou

Re: [PATCH v3 2/2] net/ps3_gelic: Cleanups, improve logging

2021-07-11 Thread Christophe Leroy
Geoff Levand a écrit : General source cleanups and improved logging messages. Describe a bit more what you do to cleanup and improve. Some of your changes are not cleanup , they increase the mess. You should read kernel coding style Signed-off-by: Geoff Levand --- drivers/net/ethernet

Re: [PATCH v3 1/2] net/ps3_gelic: Add gelic_descr structures

2021-07-11 Thread Christophe Leroy
Geoff Levand a écrit : Create two new structures, struct gelic_hw_regs and struct gelic_chain_link, and replace the corresponding members of struct gelic_descr with the new structures. struct gelic_hw_regs holds the register variables used by the gelic hardware device. struct gelic_chain_link

[PATCH V2] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-07-11 Thread Athira Rajeev
During Live Partition Migration (LPM), it is observed that perf counter values reports zero post migration completion. However 'perf stat' with workload continues to show counts post migration since PMU gets disabled/enabled during sched switches. But incase of system/cpu wide monitoring, zero coun

[PATCH] arch:powerpc:platforms:powernv: cleanup __FUNCTION__ usage

2021-07-11 Thread Dwaipayan Ray
__FUNCTION__ exists only for backwards compatibility reasons with old gcc versions. Replace it with __func__. Signed-off-by: Dwaipayan Ray --- arch/powerpc/platforms/powernv/opal-imc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powernv/opal-imc.c

[PATCH] arch:powerpc:mm: cleanup __FUNCTION__ usage

2021-07-11 Thread Dwaipayan Ray
__FUNCTION__ exists only for backwards compatibility reasons with old gcc versions. Replace it with __func__. Signed-off-by: Dwaipayan Ray --- arch/powerpc/mm/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index f2bf98bd

Re: [PATCH] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-07-11 Thread kernel test robot
documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Athira-Rajeev/powerpc-perf-Enable-PMU-counters-post-partition-migration-if-PMU-is-active/20210711-150741 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next confi

[PATCH] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-07-11 Thread Athira Rajeev
During Live Partition Migration (LPM), it is observed that after migration completion, perf counter values reports 0 incase of system/cpu wide monitoring. However 'perf stat' with workload continues to show counts post migration since PMU gets disabled/enabled during sched switches. Example: ./pe