Re: [PATCH net-next v2 0/9] ibmvnic: Performance improvements and other updates

2020-11-20 Thread Jakub Kicinski
On Wed, 18 Nov 2020 19:12:16 -0600 Thomas Falcon wrote: > The first three patches utilize a hypervisor call allowing multiple > TX and RX buffer replenishment descriptors to be sent in one operation, > which significantly reduces hypervisor call overhead. The xmit_more > and Byte Queue Limit

[PATCH v3 0/3] PPC: fixes for clang support

2020-11-20 Thread Bill Wendling
Note: This is a resend of PPC/clang patches I sent before. The previous series had a bad title, and one of the patches had a typo in it. This series of patches include fixes for clang issues that arose. The "powerpc/64s" patch was "inspired" by a similar patch for ARM: eb7c11ee3c5ce arm64:

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

2020-11-20 Thread Kees Cook
On Thu, Nov 19, 2020 at 01:46:56PM -0700, Nathan Chancellor wrote: > 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

Re: [PATCH] m68k: Fix WARNING splat in pmac_zilog driver

2020-11-20 Thread Finn Thain
On Fri, 20 Nov 2020, Geert Uytterhoeven wrote: > Hi Finn, > > On Fri, Nov 20, 2020 at 5:51 AM Finn Thain wrote: > > Don't add platform resources that won't be used. This avoids a > > recently-added warning from the driver core, that can show up on a > > multi-platform kernel when !MACH_IS_MAC.

Re: [PATCH v4] PCI: Unify ECAM constants in native PCI Express drivers

2020-11-20 Thread Bjorn Helgaas
On Mon, Oct 05, 2020 at 12:38:05AM +, Krzysztof Wilczyński wrote: > Unify ECAM-related constants into a single set of standard constants > defining memory address shift values for the byte-level address that can > be used when accessing the PCI Express Configuration Space, and then > move

[PATCH V2 2/5] ocxl: Initiate a TLB invalidate command

2020-11-20 Thread Christophe Lombard
When a TLB Invalidate is required for the Logical Partition, the following sequence has to be performed: 1. Load MMIO ATSD AVA register with the necessary value, if required. 2. Write the MMIO ATSD launch register to initiate the TLB Invalidate command. 3. Poll the MMIO ATSD status register to

[PATCH V2 5/5] ocxl: Add new kernel traces

2020-11-20 Thread Christophe Lombard
Add specific kernel traces which provide information on mmu notifier and on pages range. Signed-off-by: Christophe Lombard --- drivers/misc/ocxl/link.c | 4 +++ drivers/misc/ocxl/trace.h | 64 +++ 2 files changed, 68 insertions(+) diff --git

[PATCH V2 4/5] ocxl: Add mmu notifier

2020-11-20 Thread Christophe Lombard
Add invalidate_range mmu notifier, when required (ATSD access of MMIO registers is available), to initiate TLB invalidation commands. For the time being, the ATSD0 set of registers is used by default. The pasid and bdf values have to be configured in the Process Element Entry. The PEE must be set

[PATCH V2 3/5] ocxl: Update the Process Element Entry

2020-11-20 Thread Christophe Lombard
To complete the MMIO based mechanism, the fields: PASID, bus, device and function of the Process Element Entry have to be filled. (See OpenCAPI Power Platform Architecture document) Hypervisor Process Element Entry Word 0 1 7 8 .. 12 13 ..15 16 19 20

[PATCH V2 0/5] ocxl: Mmio invalidation support

2020-11-20 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 operations to be initiated using MMIO registers, a

[PATCH V2 1/5] ocxl: Assign a register set to a Logical Partition

2020-11-20 Thread Christophe Lombard
Platform specific function to assign a register set to a Logical Partition. The "ibm,mmio-atsd" property, provided by the firmware, contains the 16 base ATSD physical addresses (ATSD0 through ATSD15) of the set of MMIO registers (XTS MMIO ATSDx LPARID/AVA/launch/status register). For the time

Re: [PATCH 29/29] powerpc/pseries/mobility: refactor node lookup during DT update

2020-11-20 Thread Nathan Lynch
Nathan Lynch writes: > In pseries_devicetree_update(), with each call to ibm,update-nodes the > partition firmware communicates the node to be deleted or updated by > placing its phandle in the work buffer. Each of delete_dt_node(), > update_dt_node(), and add_dt_node() have duplicate lookups

Re: [PATCH] media: fsl-viu: Use proper check for presence of {out, in}_be32()

2020-11-20 Thread Fabio Estevam
Hi Michael, On Fri, Nov 20, 2020 at 3:25 AM Michael Ellerman wrote: > I'd rather not have to carry this in arch code just for one driver. Fair enough. > Can't the driver just use ioread/write32be() on all platforms? Yes, this is a better approach. I have just a patch doing that. Thanks

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

2020-11-20 Thread Peter Zijlstra
On Fri, Nov 20, 2020 at 12:18:22PM +0100, Christophe Leroy wrote: > Hi Peter, > > Le 13/11/2020 à 14:44, Christophe Leroy a écrit : > > Hi > > > > Le 13/11/2020 à 12:19, Peter Zijlstra a écrit : > > > Hi, > > > > > > These patches provide generic infrastructure to determine TLB page size > > >

Re: [PATCH v3 23/23] mtd: devices: powernv_flash: Add function names to headers and fix 'dev'

2020-11-20 Thread Miquel Raynal
Hello, Lee Jones wrote on Fri, 20 Nov 2020 07:50:00 +: > On Thu, 19 Nov 2020, Miquel Raynal wrote: > > > On Mon, 2020-11-09 at 18:22:06 UTC, Lee Jones wrote: > > > Fixes the following W=1 kernel build warning(s): > > > > > > drivers/mtd/devices/powernv_flash.c:129: warning: Cannot

Re: [PATCH 1/3] perf/core: Flush PMU internal buffers for per-CPU events

2020-11-20 Thread Namhyung Kim
Hi Peter and Kan, (Adding PPC folks) On Tue, Nov 17, 2020 at 2:01 PM Namhyung Kim wrote: > > Hello, > > On Thu, Nov 12, 2020 at 4:54 AM Liang, Kan wrote: > > > > > > > > On 11/11/2020 11:25 AM, Peter Zijlstra wrote: > > > On Mon, Nov 09, 2020 at 09:49:31AM -0500, Liang, Kan wrote: > > > > > >>

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

2020-11-20 Thread Christophe Leroy
Hi Peter, Le 13/11/2020 à 14:44, Christophe Leroy a écrit : 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

Re: [PATCH 1/2] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-11-20 Thread Peter Zijlstra
On Fri, Nov 20, 2020 at 12:57:56PM +1000, Nicholas Piggin wrote: > powerpc keeps a counter in the mm which counts bits set in mm_cpumask as > well as other things. This means it can't use generic code to clear bits > out of the mask and doesn't adjust the arch specific counter. > > Add an arch

Re: [PATCH for 5.4] powerpc/8xx: Always fault when _PAGE_ACCESSED is not set

2020-11-20 Thread Greg KH
On Thu, Nov 19, 2020 at 08:47:54AM +, Christophe Leroy wrote: > [This is backport for 5.4 of 29daf869cbab69088fe1755d9dd224e99ba78b56] > > The kernel expects pte_young() to work regardless of CONFIG_SWAP. All backports now queued up, thanks. greg k-h