Re: [PATCH v3 5/7] zram: Convert to using memset_l

2017-03-26 Thread Minchan Kim
On Fri, Mar 24, 2017 at 09:13:16AM -0700, Matthew Wilcox wrote: > From: Matthew Wilcox > > zram was the motivation for creating memset_l(). Minchan Kim sees a 7% > performance improvement on x86 with 100MB of non-zero deduplicatable > data: > > perf stat -r 10

Re: [PATCH kernel v11 00/10] powerpc/kvm/vfio: Enable in-kernel acceleration

2017-03-26 Thread Paul Mackerras
On Wed, Mar 22, 2017 at 03:21:46PM +1100, Alexey Kardashevskiy wrote: > This is my current queue of patches to add acceleration of TCE > updates in KVM. > > This is based on sha1 093b995e3b55 Huang Ying "mm, swap: Remove > WARN_ON_ONCE() in free_swap_slot()". > > Please comment. Thanks. Looks

[PATCH] selftests/powerpc: Fix standalone powerpc build

2017-03-26 Thread Michael Ellerman
The changes to enable building with a separate output directory, in commit a8ba798bc8ec ("selftests: enable O and KBUILD_OUTPUT") broke building the powerpc selftests on their own, eg: $ cd tools/testing/selftests/powerpc; make It was partially fixed in commit e53aff45c490 ("selftests: lib.mk

Re: [PATCH kernel v11 09/10] KVM: PPC: iommu: Unify TCE checking

2017-03-26 Thread Michael Ellerman
Alexey Kardashevskiy writes: > This reworks helpers for checking TCE update parameters in way they > can be used in KVM. > > This should cause no behavioral change. > > Signed-off-by: Alexey Kardashevskiy > Reviewed-by: David Gibson

[PATCH kernel] powerpc/powernv: Check kzalloc() return in pnv_pci_table_alloc

2017-03-26 Thread Alexey Kardashevskiy
pnv_pci_table_alloc() ignores posible failure from kzalloc_node(), this adds a check. There are 2 callers of pnv_pci_table_alloc(), one already checks for tbl!=NULL, this adds BUG_ON() to the other path which only happens during boot time in IODA1 and not expected to fail. Fixes: 0eaf4defc7c4

[PATCH kernel] KVM: PPC: Check kzalloc() return

2017-03-26 Thread Alexey Kardashevskiy
This adds missing check for failed kzalloc(). Signed-off-by: Alexey Kardashevskiy --- This is a followup change for: [PATCH kernel v11 10/10] KVM: PPC: VFIO: Add in-kernel acceleration for VFIO Please squash it. Thanks! --- arch/powerpc/kvm/book3s_64_vio.c | 5 + 1 file

Re: [PATCH kernel v11 10/10] KVM: PPC: VFIO: Add in-kernel acceleration for VFIO

2017-03-26 Thread David Gibson
On Wed, Mar 22, 2017 at 03:21:56PM +1100, Alexey Kardashevskiy wrote: > This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT > and H_STUFF_TCE requests targeted an IOMMU TCE table used for VFIO > without passing them to user space which saves time on switching > to user space and

Re: kvmppc: BUG: using smp_processor_id() in preemptible

2017-03-26 Thread Paul Mackerras
On Sat, Mar 25, 2017 at 03:00:27PM +0300, Denis Kirjanov wrote: > [Now with the proper subject] > > Hi, > > the commit 5a319350a46572d073042a3194676099dd2c135d > has introduces the following warning with CONFIG_DEBUG_PREEMPT enabled: > > [ 129.314426] BUG: using smp_processor_id() in

Re: [PATCH guest kernel] powerpc/pseries: Enable VFIO

2017-03-26 Thread David Gibson
On Fri, Mar 24, 2017 at 05:37:21PM +1100, Alexey Kardashevskiy wrote: > This enables VFIO on pseries host in order to allow VFIO in nested guest > under PR KVM or DPDK in a HV guest. This adds support of > the VFIO_SPAPR_TCE_IOMMU type. > > This adds exchange() callback to allow TCE updates by

Re: [PATCH kernel] KVM: PPC: Exit KVM on failed mapping

2017-03-26 Thread David Gibson
On Fri, Mar 24, 2017 at 05:48:10PM +1100, Alexey Kardashevskiy wrote: > At the moment kvmppc_mmu_map_page() returns -1 if > mmu_hash_ops.hpte_insert() fails for any reason so the page fault handler > resumes the guest and it faults on the same address again. > > This adds distinction to

[PATCH 4/4] To: linuxppc-dev@lists.ozlabs.org

2017-03-26 Thread Michael Bringmann
Cc: nf...@linux.vnet.ibm.com Subject: [PATCH 4/4] powerpc: Enable support for new drc-info DRC devtree property prom_init.c: Enable support for new DRC device tree property "ibm,drc-info" in initial handshake between the Linux kernel and the front end processor. Signed-off-by: Michael Bringmann

[PATCH 3/4] To: linuxppc-dev@lists.ozlabs.org

2017-03-26 Thread Michael Bringmann
Cc: nf...@linux.vnet.ibm.com Subject: [PATCH 3/4] hotplug/drc-info: Add code to search new devtree property rpadlpar_core.c: Provide parallel routines to search the older device- tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property

[PATCH 2/4] To: linuxppc-dev@lists.ozlabs.org

2017-03-26 Thread Michael Bringmann
Cc: nf...@linux.vnet.ibm.com Subject: [PATCH 2/4] pseries/drc-info: Search new DRC properties for CPU indexes pseries/drc-info: Provide parallel routines to convert between drc_index and CPU numbers at runtime, using the older device-tree properties ("ibm,drc-indexes", "ibm,drc-names",

[PATCH 1/4] To: linuxppc-dev@lists.ozlabs.org

2017-03-26 Thread Michael Bringmann
Cc: nf...@linux.vnet.ibm.com Subject: [PATCH 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature Firmware Features: Define new bit flag representing the presence of new device tree property "ibm,drc-info". The flag is used to tell the front end processor when the Linux

[PATCH 0/4] powerpc/devtree: Add support for 'ibm, drc-info' property

2017-03-26 Thread Michael Bringmann
Several properties in the DRC device tree format are replaced by more compact representations to allow, for example, for the encoding of vast amounts of memory, and or reduced duplication of information in related data structures. "ibm,drc-info": This property, when present, replaces the

Re: [PATCH v3 7/7] vga: Optimise console scrolling

2017-03-26 Thread kbuild test robot
/20170326-140108 config: mips-defconfig (attached as .config) compiler: mips-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached

Re: [PATCH v3 7/7] vga: Optimise console scrolling

2017-03-26 Thread kbuild test robot
/20170326-140108 config: sparc-allyesconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save

Re: [PATCH v3 3/7] x86: Implement memset16, memset32 & memset64

2017-03-26 Thread kbuild test robot
/20170326-140108 config: i386-randconfig-x077-201713 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): >> lib/string.c:733:7: error:

Re: [PATCH v3 4/7] alpha: Add support for memset16

2017-03-26 Thread kbuild test robot
/20170326-140108 config: alpha-allyesconfig (attached as .config) compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save