Re: [PATCH kernel] vfio_pci_nvlink2: Do not attempt NPU2 setup on old P8's NPU

2020-11-13 Thread Alexey Kardashevskiy
On 13/11/2020 16:30, Andrew Donnellan wrote: On 13/11/20 4:06 pm, Alexey Kardashevskiy wrote: We execute certain NPU2 setup code (such as mapping an LPID to a device in NPU2) unconditionally if an Nvlink bridge is detected. However this cannot succeed on P8+ machines as the init helpers retur

Re: Error: invalid switch -me200

2020-11-13 Thread Segher Boessenkool
On Fri, Nov 13, 2020 at 04:37:38PM -0800, Fāng-ruì Sòng wrote: > On Fri, Nov 13, 2020 at 4:23 PM Segher Boessenkool > wrote: > > On Fri, Nov 13, 2020 at 12:14:18PM -0800, Nick Desaulniers wrote: > > > > > > Error: invalid switch -me200 > > > > > > Error: unrecognized option -me200 > > > > > > > >

Re: Error: invalid switch -me200

2020-11-13 Thread Segher Boessenkool
On Fri, Nov 13, 2020 at 12:14:18PM -0800, Nick Desaulniers wrote: > > > > Error: invalid switch -me200 > > > > Error: unrecognized option -me200 > > > > > > 251 cpu-as-$(CONFIG_E200) += -Wa,-me200 > > > > > > Are those all broken configs, or is Kconfig messed up such that > > > randconfig can sel

Re: [PATCH v2 05/19] powerpc: interrupt handler wrapper functions

2020-11-13 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-rc3 next-20201113] [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 doc

Re: Error: invalid switch -me200

2020-11-13 Thread Nathan Chancellor
gt; > master > > > > head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba > > > > commit: ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 Makefile: Fix > > > > GCC_TOOLCHAIN_DIR prefix for Clang cross compilation > > > > date: 4 mo

[PATCH 1/2] kbuild: Hoist '--orphan-handling' into Kconfig

2020-11-13 Thread Nathan Chancellor
Currently, '--orphan-handling=warn' is spread out across four different architectures in their respective Makefiles, which makes it a little unruly to deal with in case it needs to be disabled for a specific linker version (in this case, ld.lld 10.0.1). To make it easier to control this, hoist thi

[PATCH 2/2] kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1

2020-11-13 Thread Nathan Chancellor
ld.lld 10.0.1 spews a bunch of various warnings about .rela sections, along with a few others. Newer versions of ld.lld do not have these warnings. As a result, do not add '--orphan-handling=warn' to LDFLAGS_vmlinux if ld.lld's version is not new enough. Reported-by: Arvind Sankar Reported-by: ke

Re: [PATCH 1/6] ibmvfc: byte swap login_buf.resp values in attribute show functions

2020-11-13 Thread Tyrel Datwyler
On 11/12/20 1:37 AM, Christoph Hellwig wrote: > On Wed, Nov 11, 2020 at 07:04:37PM -0600, Tyrel Datwyler wrote: >> Both ibmvfc_show_host_(capabilities|npiv_version) functions retrieve >> values from vhost->login_buf.resp buffer. This is the MAD response >> buffer from the VIOS and as such any multi

Re: [PATCH] arch: pgtable: define MAX_POSSIBLE_PHYSMEM_BITS where needed

2020-11-13 Thread Thomas Bogendoerfer
On Fri, Nov 13, 2020 at 03:59:32PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Stefan Agner reported a bug when using zsram on 32-bit Arm machines > with RAM above the 4GB address boundary: > > Unable to handle kernel NULL pointer dereference at virtual address > pgd = a27

Re: [PATCH net-next 02/12] ibmvnic: Introduce indirect subordinate Command Response Queue buffer

2020-11-13 Thread Brian King
Reviewed-by: Brian King -- Brian King Power Linux I/O IBM Linux Technology Center

Re: [PATCH net-next 01/12] ibmvnic: Ensure that subCRQ entry reads are ordered

2020-11-13 Thread Brian King
Reviewed-by: Brian King -- Brian King Power Linux I/O IBM Linux Technology Center

[PATCH] ocxl: Mmio invalidation support

2020-11-13 Thread Christophe Lombard
OpenCAPI 4.0/5.0 with TLBI/SLBI Snooping, is not used due to performance problems caused by the PAU having to process all incoming TLBI/SLBI commands which will cause them to back up on the PowerBus. When the Address Translation Mode requires TLB and SLB Invalidate operations to be initiated using

Re: [PATCH 3/3] powerpc: rewrite atomics to use ARCH_ATOMIC

2020-11-13 Thread Boqun Feng
Hi Nicholas, On Wed, Nov 11, 2020 at 09:07:23PM +1000, Nicholas Piggin wrote: > All the cool kids are doing it. > > Signed-off-by: Nicholas Piggin > --- > arch/powerpc/include/asm/atomic.h | 681 ++--- > arch/powerpc/include/asm/cmpxchg.h | 62 +-- > 2 files changed, 2

[PATCH] arch: pgtable: define MAX_POSSIBLE_PHYSMEM_BITS where needed

2020-11-13 Thread Arnd Bergmann
From: Arnd Bergmann Stefan Agner reported a bug when using zsram on 32-bit Arm machines with RAM above the 4GB address boundary: Unable to handle kernel NULL pointer dereference at virtual address pgd = a27bd01c [] *pgd=236a0003, *pmd=1ffa64003 Internal error: Oops: 207

Re: [PATCH 0/5] perf/mm: Fix PERF_SAMPLE_*_PAGE_SIZE

2020-11-13 Thread Christophe Leroy
Hi Le 13/11/2020 à 12:19, Peter Zijlstra a écrit : Hi, These patches provide generic infrastructure to determine TLB page size from page table entries alone. Perf will use this (for either data or code address) to aid in profiling TLB issues. While most architectures only have page table align

Re: [RFC PATCH kernel 2/2] powerpc/pci: Remove LSI mappings on device teardown

2020-11-13 Thread Cédric Le Goater
On 10/27/20 10:06 AM, Alexey Kardashevskiy wrote: > From: Oliver O'Halloran > > When a passthrough IO adapter is removed from a pseries machine using hash > MMU and the XIVE interrupt mode, the POWER hypervisor expects the guest OS > to clear all page table entries related to the adapter. If some

Re: [PATCH 2/5] mm: Introduce pXX_leaf_size()

2020-11-13 Thread Peter Zijlstra
On Fri, Nov 13, 2020 at 12:19:03PM +0100, Peter Zijlstra wrote: > A number of architectures have non-pagetable aligned huge/large pages. > For such architectures a leaf can actually be part of a larger TLB > entry. > > Provide generic helpers to determine the TLB size of a page-table > leaf. > >

[PATCH 5/5] sparc64/mm: Implement pXX_leaf_size() support

2020-11-13 Thread Peter Zijlstra
Sparc64 has non-pagetable aligned large page support; wire up the pXX_leaf_size() functions to report the correct TLB page size. This enables PERF_SAMPLE_{DATA,CODE}_PAGE_SIZE to report accurate TLB page sizes. Signed-off-by: Peter Zijlstra (Intel) --- arch/sparc/include/asm/pgtable_64.h | 13

[PATCH 0/5] perf/mm: Fix PERF_SAMPLE_*_PAGE_SIZE

2020-11-13 Thread Peter Zijlstra
Hi, These patches provide generic infrastructure to determine TLB page size from page table entries alone. Perf will use this (for either data or code address) to aid in profiling TLB issues. While most architectures only have page table aligned large pages, some (notably ARM64, Sparc64 and Power

[PATCH 3/5] perf/core: Fix arch_perf_get_page_size()

2020-11-13 Thread Peter Zijlstra
The (new) page-table walker in arch_perf_get_page_size() is broken in various ways. Specifically while it is used in a locless manner, it doesn't depend on CONFIG_HAVE_FAST_GUP nor uses the proper _lockless offset methods, nor is careful to only read each entry only once. Also the hugetlb support

[PATCH 1/5] mm/gup: Provide gup_get_pte() more generic

2020-11-13 Thread Peter Zijlstra
In order to write another lockless page-table walker, we need gup_get_pte() exposed. While doing that, rename it to ptep_get_lockless() to match the existing ptep_get() naming. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/pgtable.h | 55 +

[PATCH 4/5] arm64/mm: Implement pXX_leaf_size() support

2020-11-13 Thread Peter Zijlstra
ARM64 has non-pagetable aligned large page support with PTE_CONT, when this bit is set the page is part of a super-page. Match the hugetlb code and support these super pages for PTE and PMD levels. This enables PERF_SAMPLE_{DATA,CODE}_PAGE_SIZE to report accurate TLB page sizes. Signed-off-by: Pe

[PATCH 2/5] mm: Introduce pXX_leaf_size()

2020-11-13 Thread Peter Zijlstra
A number of architectures have non-pagetable aligned huge/large pages. For such architectures a leaf can actually be part of a larger TLB entry. Provide generic helpers to determine the TLB size of a page-table leaf. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/pgtable.h | 16 +