Re: [PATCH] cpufreq: powernv: Define per_cpu chip pointer to optimize hot-path

2016-03-21 Thread Viresh Kumar
On 18-03-16, 20:28, Shilpasri G Bhat wrote: > From: Michael Neuling > > "cpufreq: powernv: Remove cpu_to_chip_id() from hot-path" introduced If the patch is already committed, you should provide its commit id as well. > 'core_to_chip_map' array to cache the chip-id of all cores. Replace > this

Re: [PATCH kernel 08/10] powerpc/powernv/npu: Add NPU devices to IOMMU group

2016-03-21 Thread Alexey Kardashevskiy
On 03/21/2016 03:48 PM, David Gibson wrote: On Wed, Mar 09, 2016 at 05:29:04PM +1100, Alexey Kardashevskiy wrote: NPU devices have their own TVT which means they are isolated and can be passed to the userspace via VFIO. The first step is to create an IOMMU group and attach devices there so does

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

2016-03-21 Thread Michael Ellerman
On Sat, 2016-03-19 at 15:57 -0700, Linus Torvalds wrote: > On Fri, Mar 18, 2016 at 5:07 AM, Michael Ellerman wrote: > > > > I couldn't convince git request-pull to generate a sane diffstat below, it > > seems to be confused because I merged powerpc-4.5-4 into my next. > > Yes, if there are multipl

Re: [RFC 6/9] powerpc/hugetlb: Enable ARCH_WANT_GENERAL_HUGETLB for BOOK3S 64K

2016-03-21 Thread Rui Teng
On 3/9/16 8:10 PM, Anshuman Khandual wrote: This enables ARCH_WANT_GENERAL_HUGETLB for BOOK3S 64K in Kconfig. It also implements a new function 'pte_huge' which is required by function 'huge_pte_alloc' from generic VM. Existing BOOK3S 64K specific functions 'huge_pte_alloc' and 'huge_pte_offset'

[PATCH] powerpc:dts:p2041rdb: enable gpio-expander

2016-03-21 Thread Nora Björklund
Enable the gpio-expander pca9672 on p2041rdb. The expander has been present on the p2041rdb all along, however not in the device tree. Signed-off-by: Nora Björklund --- arch/powerpc/boot/dts/fsl/p2041rdb.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/p20

Re: [PATCH 2/3] powerpc/powernv: Encapsulate idle preparation steps in a macro

2016-03-21 Thread Shreyas B Prabhu
On 03/19/2016 05:51 AM, Paul Mackerras wrote: > On Fri, Mar 18, 2016 at 08:23:24PM +0530, Shreyas B Prabhu wrote: >> Hi Paul, >> >> On 03/17/2016 04:45 PM, Paul Mackerras wrote: >>> On Mon, Feb 29, 2016 at 05:52:59PM +0530, Shreyas B. Prabhu wrote: Before entering any idle state which can re

Re: [PATCH] cpufreq: powernv: Define per_cpu chip pointer to optimize hot-path

2016-03-21 Thread Rafael J. Wysocki
On Monday, March 21, 2016 12:52:55 PM Viresh Kumar wrote: > On 18-03-16, 20:28, Shilpasri G Bhat wrote: > > From: Michael Neuling > > > > "cpufreq: powernv: Remove cpu_to_chip_id() from hot-path" introduced > > If the patch is already committed, you should provide its commit id as well. > > > '

[PATCH RESEND] cpufreq: powernv: Define per_cpu chip pointer to optimize hot-path

2016-03-21 Thread Shilpasri G Bhat
From: Michael Neuling "96c4726f01cd cpufreq: powernv: Remove cpu_to_chip_id() from hot-path" introduced 'core_to_chip_map' array to cache the chip-id of all cores. Replace this with per_cpu variable that stores the pointer to the chip-array. This removes the linear lookup and provides a neater an

[PATCH v11] cpufreq: powernv: Add sysfs attributes to show throttle stats

2016-03-21 Thread Shilpasri G Bhat
Create sysfs attributes to export throttle information in /sys/devices/system/cpu/cpuX/cpufreq/throttle_stats directory. The newly added sysfs files are as follows: 1)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/turbo_stat 2)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/sub-turbo_stat

Re: [PATCH] powerpc:dts:p2041rdb: enable gpio-expander

2016-03-21 Thread Scott Wood
On Mon, 2016-03-21 at 11:48 +0100, Nora Björklund wrote: > Enable the gpio-expander pca9672 on p2041rdb. The expander > has been present on the p2041rdb all along, however not in > the device tree. > > Signed-off-by: Nora Björklund > --- > arch/powerpc/boot/dts/fsl/p2041rdb.dts | 7 +++ > 1

[PATCH v2 next] cxl: Allow initialization on timebase sync failures

2016-03-21 Thread Frederic Barrat
Failure to synchronize the PSL timebase currently prevents the initialization of the cxl card, thus rendering the card useless. This is too extreme for a feature which is rarely used, if at all. No hardware AFUs or software is currently using PSL timebase. This patch still tries to synchronize the

[PATCH 1/2] powerpc/pagetable: Add option to dump the linux pagetables

2016-03-21 Thread Rashmica Gupta
Useful to be able to dump the kernels page tables to check permissions and memory types - derived from arm64's implementation. Add a debugfs file to check the page tables. To use this the PPC_PTDUMP config option must be selected. Signed-off-by: Rashmica Gupta --- arch/powerpc/Kconfig.debug

[PATCH 2/2] powerpc/pagetable: Add option to dump kernel hashpagetable

2016-03-21 Thread Rashmica Gupta
Useful to be able to dump the kernel hash page table to check which pages are hashed along with their sizes and other details. Add a debugfs file to check the page tables. To use this the PPC_PTDUMP config option must be selected. Signed-off-by: Rashmica Gupta --- arch/powerpc/mm/Makefile

Re: [PATCH kernel 08/10] powerpc/powernv/npu: Add NPU devices to IOMMU group

2016-03-21 Thread David Gibson
On Mon, Mar 21, 2016 at 07:25:23PM +1100, Alexey Kardashevskiy wrote: > On 03/21/2016 03:48 PM, David Gibson wrote: > >On Wed, Mar 09, 2016 at 05:29:04PM +1100, Alexey Kardashevskiy wrote: > >>NPU devices have their own TVT which means they are isolated and can be > >>passed to the userspace via VF

Re: [PATCH kernel 9/9] KVM: PPC: VFIO device: support SPAPR TCE

2016-03-21 Thread Alexey Kardashevskiy
Uff, lost cc: list. Added back. Some comments below. On 03/21/2016 04:19 PM, David Gibson wrote: On Fri, Mar 18, 2016 at 11:12:26PM +1100, Alexey Kardashevskiy wrote: On March 15, 2016 17:29:26 David Gibson wrote: On Fri, Mar 11, 2016 at 10:09:50AM +1100, Alexey Kardashevskiy wrote: On 03/

[PATCH] pseries/eeh: Handle RTAS delay requests in configure_bridge

2016-03-21 Thread Russell Currey
In the configure_pe and configure_bridge RTAS calls, the spec states that values of 9900-9905 can be returned, indicating that software should delay for 10^x (where x is the last digit, i.e. 990x) milliseconds and attempt the call again. Currently, the kernel doesn't know about this, and respecting

Re: [PATCH kernel 08/10] powerpc/powernv/npu: Add NPU devices to IOMMU group

2016-03-21 Thread Alexey Kardashevskiy
On 03/22/2016 11:25 AM, David Gibson wrote: On Mon, Mar 21, 2016 at 07:25:23PM +1100, Alexey Kardashevskiy wrote: On 03/21/2016 03:48 PM, David Gibson wrote: On Wed, Mar 09, 2016 at 05:29:04PM +1100, Alexey Kardashevskiy wrote: NPU devices have their own TVT which means they are isolated and c

Re: [PATCH v11] cpufreq: powernv: Add sysfs attributes to show throttle stats

2016-03-21 Thread Viresh Kumar
On 21-03-16, 22:29, Shilpasri G Bhat wrote: > + create_throttle_sysfs = kcalloc(cpu_nr_cores(), sizeof(bool), > + GFP_KERNEL); > + if (!create_throttle_sysfs) { > + kfree(chips); > + return -ENOMEM; > + } > + > for (i = 0

Re: [PATCH 09/14] powerpc/mm: Drop WIMG in favour of new constants

2016-03-21 Thread Michael Neuling
On Mon, 2016-03-07 at 19:09 +0530, Aneesh Kumar K.V wrote: > PowerISA 3.0 introduce three pte bits with the below meaning > 000 -> Normal Memory > 001 -> Strong Access Order > 010 -> Non idempotent I/O ( Also cache inhibited and guarded) > 100 -> Tolerant I/O (Cache inhibited) Which PTE are you

Re: [PATCH 05/14] powerpc/mm: Replace _PAGE_USER with _PAGE_PRIVILEGED

2016-03-21 Thread Michael Neuling
On Mon, 2016-03-07 at 19:09 +0530, Aneesh Kumar K.V wrote: > _PAGE_PRIVILEGED means the page can be accessed only by kernel. This is done > to keep pte bits similar to PowerISA 3.0 radix PTE format. User > pages are now makred by clearing _PAGE_PRIVILEGED bit. > > Previously we allowed kernel to h