Re: [PATCH] powerpc/perf/hv-24x7: Dont create sysfs event files for dummy events

2020-12-17 Thread kajoljain
On 12/18/20 6:26 AM, Michael Ellerman wrote: > Kajol Jain writes: >> hv_24x7 performance monitoring unit creates list of supported events >> from the event catalog obtained via HCALL. hv_24x7 catalog could also >> contain invalid or dummy events (with names like FREE_ or CPM_FREE_ so >> on). T

[PATCH v2] powerpc/32s: Only build hash code when CONFIG_PPC_BOOK3S_604 is selected

2020-12-17 Thread Christophe Leroy
It is now possible to only build book3s/32 kernel for CPUs without hash table. Opt out hash related code when CONFIG_PPC_BOOK3S_604 is not selected. Signed-off-by: Christophe Leroy --- v2: Rebased --- arch/powerpc/kernel/head_book3s_32.S | 12 arch/powerpc/mm/book3s32/Makefile|

[PATCH] powerpc/mm: Limit allocation of SWIOTLB on server machines

2020-12-17 Thread Thiago Jung Bauermann
On server-class POWER machines, we don't need the SWIOTLB unless we're a secure VM. Nevertheless, if CONFIG_SWIOTLB is enabled we unconditionally allocate it. In most cases this is harmless, but on a few machine configurations (e.g., POWER9 powernv systems with 4 GB area reserved for crashdump ker

Re: [PATCH] powerpc/perf/hv-24x7: Dont create sysfs event files for dummy events

2020-12-17 Thread Michael Ellerman
Kajol Jain writes: > hv_24x7 performance monitoring unit creates list of supported events > from the event catalog obtained via HCALL. hv_24x7 catalog could also > contain invalid or dummy events (with names like FREE_ or CPM_FREE_ so > on). These events does not have any hardware counters backin

[powerpc:merge] BUILD SUCCESS 3ae03872115a0a158508ee5a91337648aede547d

2020-12-17 Thread kernel test robot
ig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a003-20201217 x86_64 randconfig-a006-20201217 x86_64 randconfig-a002-20201217 x86_64 randconfig-a005-20201217 x86_64 randconfig-a00

[powerpc:next] BUILD SUCCESS c1bea0a840ac75dca19bc6aa05575a33eb9fd058

2020-12-17 Thread kernel test robot
defconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig x86_64 randconfig-a003-20201217 x86_64 randconfig-a006-20201217 x86_64

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

2020-12-17 Thread pr-tracker-bot
The pull request you sent on Fri, 18 Dec 2020 00:28:34 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.11-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8a5be36b9303ae167468d4f5e1b3c090b9981396 Thank you! -- Deet-doot-d

Re: [PATCH 6/7] powerpc/64s/radix: serialize_against_pte_lookup IPIs trim mm_cpumask

2020-12-17 Thread kernel test robot
Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.10 next-20201217] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documente

Re: powerpc VDSO files being unnecessarily rebuilt

2020-12-17 Thread Masahiro Yamada
On Thu, Dec 17, 2020 at 6:23 PM Masahiro Yamada wrote: > > On Thu, Dec 17, 2020 at 11:56 AM Michael Ellerman wrote: > > > > Hi all, > > > > Since the merge of the C VDSO I see we are repeatedly rebuilding some > > files in the VDSO, eg: > > > > $ make V=2 > > make[1]: Entering directory '/hom

[PATCH 7/7] powerpc/64s: Implement ptep_clear_flush_young that does not flush TLBs

2020-12-17 Thread Nicholas Piggin
Similarly to the x86 commit b13b1d2d8692 ("x86/mm: In the PTE swapout page reclaim case clear the accessed bit instead of flushing the TLB"), implement ptep_clear_flush_young that does not actually flush the TLB in the case the referenced bit is cleared. Signed-off-by: Nicholas Piggin --- arch/p

[PATCH 6/7] powerpc/64s/radix: serialize_against_pte_lookup IPIs trim mm_cpumask

2020-12-17 Thread Nicholas Piggin
serialize_against_pte_lookup() performs IPIs to all CPUs in mm_cpumask. Take this opportunity to try trim the CPU out of mm_cpumask. This can reduce the cost of future serialize_against_pte_lookup() and/or the cost of future TLB flushes. Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/book3s6

[PATCH 5/7] powerpc/64s/radix: occasionally attempt to trim mm_cpumask

2020-12-17 Thread Nicholas Piggin
A single-threaded process that is flushing its own address space is so far the only case where the mm_cpumask is attempted to be trimmed. This patch expands that to flush in other situations, multi-threaded processes and external sources. For now it's a relatively simple occasional trim attempt. Th

[PATCH 4/7] powerpc/64s/radix: Allow mm_cpumask trimming from external sources

2020-12-17 Thread Nicholas Piggin
mm_cpumask trimming is currently restricted to be issued by the current thread of a single-threaded mm. This patch relaxes that and allows the mask to be trimmed from any context. Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/book3s64/radix_tlb.c | 16 ++-- 1 file changed, 6 ins

[PATCH 3/7] powerpc/64s/radix: Check for no TLB flush required

2020-12-17 Thread Nicholas Piggin
If there are no CPUs in mm_cpumask, no TLB flush is required at all. This patch adds a check for this case. Currently it's not tested for, in fact mm_is_thread_local() returns false if the current CPU is not in mm_cpumask, so it's treated as a global flush. This can come up in some cases like exe

[PATCH 2/7] powerpc/64s/radix: refactor TLB flush type selection

2020-12-17 Thread Nicholas Piggin
The logic to decide what kind of TLB flush is required (local, global, or IPI) is spread multiple times over the several kinds of TLB flushes. Move it all into a single function which may issue IPIs if necessary, and also returns a flush type that is to be used. Signed-off-by: Nicholas Piggin --

[PATCH 1/7] powerpc/64s/radix: add warning and comments in mm_cpumask trim

2020-12-17 Thread Nicholas Piggin
Add a comment explaining part of the logic for mm_cpumask trimming, and add a (hopefully graceful) check and warning in case something gets it wrong. Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/book3s64/radix_tlb.c | 27 +-- 1 file changed, 21 insertions(+), 6 dele

[PATCH 0/7] powerpc/64s: TLB flushing improvements

2020-12-17 Thread Nicholas Piggin
Another round of reducing TLB flushing (mostly on radix). Thanks, Nick Nicholas Piggin (7): powerpc/64s/radix: add warning and comments in mm_cpumask trim powerpc/64s/radix: refactor TLB flush type selection powerpc/64s/radix: Check for no TLB flush required powerpc/64s/radix: Allow mm_cp

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

2020-12-17 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc updates for 5.11. There's only one conflict I'm aware of, which is the three lkdtm files, resolution is simply to take both sides. Notable out of area changes: drivers/misc/lkdtm/* # 3ba150fb2120 lk

[Bug 210749] sysfs: cannot create duplicate filename '/bus/nvmem/devices/module-vpd'

2020-12-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=210749 --- Comment #1 from Erhard F. (erhar...@mailbox.org) --- Created attachment 294195 --> https://bugzilla.kernel.org/attachment.cgi?id=294195&action=edit kernel .config (kernel 5.10.1, Talos II) -- You are receiving this mail because: You are wa

[Bug 210749] New: sysfs: cannot create duplicate filename '/bus/nvmem/devices/module-vpd'

2020-12-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=210749 Bug ID: 210749 Summary: sysfs: cannot create duplicate filename '/bus/nvmem/devices/module-vpd' Product: Platform Specific/Hardware Version: 2.5 Kernel Version: 5.10.1

Re: [PATCH v2 01/17] ibmvfc: add vhost fields and defaults for MQ enablement

2020-12-17 Thread John Garry
On 08/12/2020 22:37, Tyrel Datwyler wrote: On 12/7/20 3:56 AM, Hannes Reinecke wrote: On 12/4/20 3:26 PM, Brian King wrote: On 12/2/20 11:27 AM, Tyrel Datwyler wrote: On 12/2/20 7:14 AM, Brian King wrote: On 12/1/20 6:53 PM, Tyrel Datwyler wrote: Introduce several new vhost fields for managi

Re: [PATCH] powerpc/perf/hv-24x7: Dont create sysfs event files for dummy events

2020-12-17 Thread kajoljain
On 12/17/20 5:10 PM, Madhavan Srinivasan wrote: > > On 12/17/20 5:02 PM, Kajol Jain wrote: >> hv_24x7 performance monitoring unit creates list of supported events >> from the event catalog obtained via HCALL. hv_24x7 catalog could also >> contain invalid or dummy events (with names like FREE_ 

Re: [PATCH] powerpc/perf/hv-24x7: Dont create sysfs event files for dummy events

2020-12-17 Thread Madhavan Srinivasan
On 12/17/20 5:02 PM, Kajol Jain wrote: hv_24x7 performance monitoring unit creates list of supported events from the event catalog obtained via HCALL. hv_24x7 catalog could also contain invalid or dummy events (with names like FREE_ or CPM_FREE_ so Can you also include " RESERVED_NEST*" as

[PATCH] powerpc/perf/hv-24x7: Dont create sysfs event files for dummy events

2020-12-17 Thread Kajol Jain
hv_24x7 performance monitoring unit creates list of supported events from the event catalog obtained via HCALL. hv_24x7 catalog could also contain invalid or dummy events (with names like FREE_ or CPM_FREE_ so on). These events does not have any hardware counters backing them. So patch adds a chec

Re: [RFC PATCH v1 7/7] powerpc/bpf: Implement extended BPF on PPC32

2020-12-17 Thread Christophe Leroy
Le 17/12/2020 à 07:11, Alexei Starovoitov a écrit : On Wed, Dec 16, 2020 at 10:07:37AM +, Christophe Leroy wrote: Implement Extended Berkeley Packet Filter on Powerpc 32 Test result with test_bpf module: test_bpf: Summary: 378 PASSED, 0 FAILED, [354/366 JIT'ed] nice! Registe

Re: powerpc VDSO files being unnecessarily rebuilt

2020-12-17 Thread Masahiro Yamada
On Thu, Dec 17, 2020 at 11:56 AM Michael Ellerman wrote: > > Hi all, > > Since the merge of the C VDSO I see we are repeatedly rebuilding some > files in the VDSO, eg: > > $ make V=2 > make[1]: Entering directory '/home/michael/linux/build~' > GEN Makefile > CALL/home/michael/l

Re: [PATCH v2 1/2] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2020-12-17 Thread Bharata B Rao
On Thu, Dec 17, 2020 at 02:42:15PM +1100, David Gibson wrote: > On Wed, Dec 16, 2020 at 02:24:46PM +0530, Bharata B Rao wrote: > > +static void do_tlb_invalidate(unsigned long rs, unsigned long target, > > + unsigned long type, unsigned long page_size, > > +

Re: [PATCH v2 1/2] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2020-12-17 Thread Bharata B Rao
On Wed, Dec 16, 2020 at 07:47:29PM -0300, Fabiano Rosas wrote: > > +static void do_tlb_invalidate(unsigned long rs, unsigned long target, > > + unsigned long type, unsigned long page_size, > > + unsigned long ap, unsigned long start, > > +