[RESEND PATCH] vfio: Enable VFIO device for powerpc

2016-01-31 Thread David Gibson
ec53500f "kvm: Add VFIO device" added a special KVM pseudo-device which is used to handle any necessary interactions between KVM and VFIO. Currently that device is built on x86 and ARM, but not powerpc, although powerpc does support both KVM and VFIO. This makes things awkward in userspace

Re: [RFCv2 0/9] PAPR hash page table resizing (guest side)

2016-01-31 Thread Anshuman Khandual
On 01/29/2016 10:53 AM, David Gibson wrote: > Here's a second prototype of the guest side work for runtime resizing > of the has page table in PAPR guests. > > This is now feature complete. It implements the resizing, advertises > it with CAS, and will automatically invoke it to maintain a good

Re: [RFCv2 2/9] arch/powerpc: Clean up error handling for htab_remove_mapping

2016-01-31 Thread Anshuman Khandual
On 01/29/2016 10:53 AM, David Gibson wrote: > Currently, the only error that htab_remove_mapping() can report is -EINVAL, > if removal of bolted HPTEs isn't implemeted for this platform. We make > a few clean ups to the handling of this: > > * EINVAL isn't really the right code - there's

[PATCH] Fix kgdb on little endian ppc64le

2016-01-31 Thread Balbir Singh
From: Balbir Singh I spent some time trying to use kgdb and debugged my inability to resume from kgdb_handle_breakpoint(). NIP is not incremented and that leads to a loop in the debugger. I've tested this lightly on a virtual instance with KDB enabled. After the patch, I

Re: [RFCv2 5/9] arch/powerpc: Split hash page table sizing heuristic into a helper

2016-01-31 Thread Anshuman Khandual
On 01/29/2016 10:53 AM, David Gibson wrote: > htab_get_table_size() either retrieve the size of the hash page table (HPT) > from the device tree - if the HPT size is determined by firmware - or > uses a heuristic to determine a good size based on RAM size if the kernel > is responsible for

Re: [RFCv2 1/9] memblock: Don't mark memblock_phys_mem_size() as __init

2016-01-31 Thread Anshuman Khandual
On 01/29/2016 10:53 AM, David Gibson wrote: > At the moment memblock_phys_mem_size() is marked as __init, and so is > discarded after boot. This is different from most of the memblock > functions which are marked __init_memblock, and are only discarded after > boot if memory hotplug is not

Re: [RFCv2 6/9] pseries: Add hypercall wrappers for hash page table resizing

2016-01-31 Thread Anshuman Khandual
On 01/29/2016 10:54 AM, David Gibson wrote: > This adds the hypercall numbers and wrapper functions for the hash page > table resizing hypercalls. > > These are experimental "platform specific" values for now, until we have a > formal PAPR update. > > It also adds a new firmware feature flat to

Re: [RFCv2 3/9] arch/powerpc: Handle removing maybe-present bolted HPTEs

2016-01-31 Thread Anshuman Khandual
On 01/29/2016 10:53 AM, David Gibson wrote: > At the moment the hpte_removebolted callback in ppc_md returns void and > will BUG_ON() if the hpte it's asked to remove doesn't exist in the first > place. This is awkward for the case of cleaning up a mapping which was > partially made before

Re: [RFCv2 4/9] arch/powerpc: Clean up memory hotplug failure paths

2016-01-31 Thread Anshuman Khandual
On 01/29/2016 10:53 AM, David Gibson wrote: > This makes a number of cleanups to handling of mapping failures during > memory hotplug on Power: > > For errors creating the linear mapping for the hot-added region: > * This is now reported with EFAULT which is more appropriate than the >

Re: Failure on latest GIT - implicit declaration of function ‘pte_swp_clear_soft_dirty’

2016-01-31 Thread Pranith Kumar
On Sun, Jan 31, 2016 at 8:01 PM, Mike wrote: > Building on ppc32 > > In file included from fs/proc/task_mmu.c:14:0: > include/linux/swapops.h: In function ‘pte_to_swp_entry’: > include/linux/swapops.h:69:6: error: implicit declaration of function > ‘pte_swp_soft_dirty’

RE: [PATCH] powerpc/fsl-pci: Correct the comparison of the LTSSM

2016-01-31 Thread Zhiqiang Hou
Hi, Any comments? > -Original Message- > From: Zhiqiang Hou [mailto:zhiqiang@freescale.com] > Sent: 2016年1月4日 15:45 > To: linuxppc-dev@lists.ozlabs.org; b...@kernel.crashing.org; pau...@samba.org; > m...@ellerman.id.au > Cc: Scott Wood ;

Failure on latest GIT - implicit declaration of function ‘pte_swp_clear_soft_dirty’

2016-01-31 Thread Mike
Building on ppc32 In file included from fs/proc/task_mmu.c:14:0: include/linux/swapops.h: In function ‘pte_to_swp_entry’: include/linux/swapops.h:69:6: error: implicit declaration of function ‘pte_swp_soft_dirty’ [-Werror=implicit-function-declaration] if (pte_swp_soft_dirty(pte)) ^

Re: [PATCH] powerpc/fsl-pci: Correct the comparison of the LTSSM

2016-01-31 Thread Scott Wood
[cc list trimmed] On Mon, 2016-02-01 at 03:57 +, Zhiqiang Hou wrote: > Hi, > > Any comments? Only that it was submitted too late for the last merge window, and I have not yet begun processing patches for the next one. If you meant this to be a fix important enough to go in outside the

Re: powerpc/book3s_32: Fix build error with checkpoint restart

2016-01-31 Thread Michael Ellerman
On Fri, 2016-29-01 at 17:02:49 UTC, "Aneesh Kumar K.V" wrote: > In file included from mm/vmscan.c:54:0: > include/linux/swapops.h: In function ‘pte_to_swp_entry’: > include/linux/swapops.h:69:2: error: implicit declaration of function > ‘pte_swp_soft_dirty’