Re: [RESEND PATCH v4 08/11] powerpc: Initialize and use a temporary mm for patching

2021-07-08 Thread Christopher M. Riedl
On Thu Jul 1, 2021 at 2:51 AM CDT, Nicholas Piggin wrote: > Excerpts from Christopher M. Riedl's message of July 1, 2021 5:02 pm: > > On Thu Jul 1, 2021 at 1:12 AM CDT, Nicholas Piggin wrote: > >> Excerpts from Christopher M. Riedl's message of May 6, 2021 2:34 pm: > >> > When code patching a

Re: [RESEND PATCH v4 05/11] powerpc/64s: Add ability to skip SLB preload

2021-07-08 Thread Christopher M. Riedl
On Thu Jul 1, 2021 at 2:37 AM CDT, Nicholas Piggin wrote: > Excerpts from Christopher M. Riedl's message of July 1, 2021 4:53 pm: > > On Thu Jul 1, 2021 at 1:04 AM CDT, Nicholas Piggin wrote: > >> Excerpts from Christopher M. Riedl's message of July 1, 2021 3:28 pm: > >> > On Wed Jun 30, 2021 at

[powerpc:fixes-test] BUILD SUCCESS 2c669ef6979c370f98d4b876e54f19613c81e075

2021-07-08 Thread kernel test robot
randconfig-a001-20210707 i386 randconfig-a006-20210708 i386 randconfig-a004-20210708 i386 randconfig-a001-20210708 i386 randconfig-a003-20210708 i386 randconfig-a005-20210708 i386 randconfig-a002-20210708

[powerpc:merge] BUILD SUCCESS 8b3ae5772c2771c21ffcda36203f8f507ebc6fc0

2021-07-08 Thread kernel test robot
randconfig-a004-20210707 x86_64 randconfig-a002-20210707 x86_64 randconfig-a005-20210707 x86_64 randconfig-a006-20210707 x86_64 randconfig-a003-20210707 x86_64 randconfig-a001-20210707 i386 randconfig-a006-20210708

Re: [netdev/net][ppc][bisected 8550ff8] build fails net/core/dev.c:6020:19: error: dereferencing pointer

2021-07-08 Thread Roi Dayan
On 2021-07-08 9:29 AM, Abdul Haleem wrote: Greetings netdev's net branch fails to build on my PowerPC box with error net/core/dev.c: In function 'gro_list_prepare': net/core/dev.c:6015:51: error: 'TC_SKB_EXT' undeclared (first use in this function); did you mean 'TC_U32_EAT'? struct

Re: [RFC PATCH 12/43] KVM: PPC: Book3S HV P9: Factor out yield_count increment

2021-07-08 Thread Fabiano Rosas
Nicholas Piggin writes: > Factor duplicated code into a helper function. > > Signed-off-by: Nicholas Piggin Reviewed-by: Fabiano Rosas > --- > arch/powerpc/kvm/book3s_hv.c | 24 > 1 file changed, 12 insertions(+), 12 deletions(-) > > diff --git

Re: [RFC PATCH 35/43] KVM: PPC: Book3S HV P9: Demand fault TM facility registers

2021-07-08 Thread Fabiano Rosas
Nicholas Piggin writes: > Use HFSCR facility disabling to implement demand faulting for TM, with > a hysteresis counter similar to the load_fp etc counters in context > switching that implement the equivalent demand faulting for userspace > facilities. > > This speeds up guest entry/exit by

Re: [RFC PATCH 34/43] KVM: PPC: Book3S HV P9: Demand fault EBB facility registers

2021-07-08 Thread Fabiano Rosas
Nicholas Piggin writes: > Use HFSCR facility disabling to implement demand faulting for EBB, with > a hysteresis counter similar to the load_fp etc counters in context > switching that implement the equivalent demand faulting for userspace > facilities. > > This speeds up guest entry/exit by

[PATCH v4 4/4] powerpc/ptdump: Convert powerpc to GENERIC_PTDUMP

2021-07-08 Thread Christophe Leroy
This patch converts powerpc to the generic PTDUMP implementation. Signed-off-by: Christophe Leroy --- v4: Reworked init of ptdump range --- arch/powerpc/Kconfig| 2 + arch/powerpc/Kconfig.debug | 30 --- arch/powerpc/mm/Makefile| 2 +-

[PATCH v4 3/4] powerpc/ptdump: Reduce level numbers by 1 in note_page() and add p4d level

2021-07-08 Thread Christophe Leroy
Do the same as commit f8f0d0b6fa20 ("mm: ptdump: reduce level numbers by 1 in note_page()") and add missing p4d level. This will align powerpc to the users of generic ptdump. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ptdump/8xx.c | 6 -- arch/powerpc/mm/ptdump/book3s64.c |

[PATCH v4 2/4] powerpc/ptdump: Remove unused 'page_size' parameter

2021-07-08 Thread Christophe Leroy
note_page_update_state() doesn't use page_size. Remove it. Could also be removed to note_page() but as a following patch will remove all current users of note_page(), just leave it as is for now. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ptdump/ptdump.c | 6 +++--- 1 file changed, 3

[PATCH v4 1/4] powerpc/ptdump: Use DEFINE_SHOW_ATTRIBUTE()

2021-07-08 Thread Christophe Leroy
Use DEFINE_SHOW_ATTRIBUTE() instead of open coding open() and fops. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ptdump/bats.c | 14 ++ arch/powerpc/mm/ptdump/hashpagetable.c | 12 +--- arch/powerpc/mm/ptdump/ptdump.c| 13 +

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-08 Thread Will Deacon
On Tue, Jul 06, 2021 at 12:14:16PM -0700, Nathan Chancellor wrote: > On 7/6/2021 10:06 AM, Will Deacon wrote: > > On Tue, Jul 06, 2021 at 04:39:11PM +0100, Robin Murphy wrote: > > > On 2021-07-06 15:05, Christoph Hellwig wrote: > > > > On Tue, Jul 06, 2021 at 03:01:04PM +0100, Robin Murphy wrote:

Re: [PATCH] powerpc/perf: Fix cycles/instructions as PM_CYC/PM_INST_CMPL in power10

2021-07-08 Thread Paul A. Clarke
On Thu, Jul 08, 2021 at 10:56:57PM +1000, Nicholas Piggin wrote: > Excerpts from Athira Rajeev's message of July 7, 2021 4:39 pm: > > From: Athira Rajeev > > > > Power10 performance monitoring unit (PMU) driver uses performance > > monitor counter 5 (PMC5) and performance monitor counter 6

Re: [PATCH] powerpc: preempt: Don't touch the idle task's preempt_count during hotplug

2021-07-08 Thread Michael Ellerman
On Wed, 7 Jul 2021 19:38:31 +0100, Valentin Schneider wrote: > Powerpc currently resets a CPU's idle task preempt_count to 0 before said > task starts executing the secondary startup routine (and becomes an idle > task proper). > > This conflicts with commit > > f1a0a376ca0c ("sched/core:

Re: [PATCH] powerpc/perf: Fix cycles/instructions as PM_CYC/PM_INST_CMPL in power10

2021-07-08 Thread Nicholas Piggin
Excerpts from Athira Rajeev's message of July 7, 2021 4:39 pm: > From: Athira Rajeev > > Power10 performance monitoring unit (PMU) driver uses performance > monitor counter 5 (PMC5) and performance monitor counter 6 (PMC6) > for counting instructions and cycles. Event used for cycles is >

Re: [PATCH v2 4/4] bus: Make remove callback return void

2021-07-08 Thread Ulf Hansson
On Tue, 6 Jul 2021 at 17:53, Uwe Kleine-König wrote: > > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void

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

2021-07-08 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of July 2, 2021 10:27 am: > 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

Re: [PATCH v2 1/1] powerpc/pseries: Interface to represent PAPR firmware attributes

2021-07-08 Thread Gautham R Shenoy
Hello Pratik, On Tue, Jul 06, 2021 at 01:54:00PM +0530, Pratik R. Sampat wrote: > Adds a generic interface to represent the energy and frequency related > PAPR attributes on the system using the new H_CALL > "H_GET_ENERGY_SCALE_INFO". > > H_GET_EM_PARMS H_CALL was previously responsible for

Re: [PATCH] powerpc: preempt: Don't touch the idle task's preempt_count during hotplug

2021-07-08 Thread Bharata B Rao
On Wed, Jul 07, 2021 at 07:38:31PM +0100, Valentin Schneider wrote: > Powerpc currently resets a CPU's idle task preempt_count to 0 before said > task starts executing the secondary startup routine (and becomes an idle > task proper). > > This conflicts with commit > > f1a0a376ca0c

Re: [PATCH] cpufreq:powernv: Fix init_chip_info initialization in numa=off

2021-07-08 Thread Gautham R Shenoy
Hello Pratik, On Tue, Jun 15, 2021 at 10:39:49AM +0530, Pratik R. Sampat wrote: > In the numa=off kernel command-line configuration init_chip_info() loops > around the number of chips and attempts to copy the cpumask of that node > which is NULL for all iterations after the first chip. Thanks

[PATCH] powerpc/64s/hash: Fix SLB preload cache vs kthread_use_mm

2021-07-08 Thread Nicholas Piggin
It's possible for kernel threads to pick up SLB preload entries if they are accessing userspace with kthread_use_mm. If the kthread later is context switched while using a different mm, when it is switched back it could preload SLBs belonging to the previous mm. This could lead to data

Re: [PATCH v2 0/4] bus: Make remove callback return void

2021-07-08 Thread Uwe Kleine-König
On Wed, Jul 07, 2021 at 10:08:53PM -0400, Sven Van Asbroeck wrote: > On Tue, Jul 6, 2021 at 11:50 AM Uwe Kleine-König > wrote: > > > > drivers/staging/fieldbus/anybuss/host.c | 4 +--- > > Awesome ! > > Acked-by: Sven Van Asbroeck I note that as an Ack for patch 4 only, as the others don't