Re: [PATCH 5/7] powerpc/perf: Define big-endian version of perf_mem_data_src

2013-08-11 Thread Sukadev Bhattiprolu
Vince Weaver [vi...@deater.net] wrote: | On Sat, 10 Aug 2013, Sukadev Bhattiprolu wrote: | | > | > include/uapi/linux/perf_event.h | 55 +++ | > 1 files changed, 55 insertions(+), 0 deletions(-) | | > +#define __PERF_LE 1234 | > +#define __PERF_BE 4321 |

[PATCH] powerpc/kvm: Copy the pvr value after memset

2013-08-11 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Otherwise we would clear the pvr value Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/kvm/book3s_hv.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 2efa9dd..dd1b72c 100644

[PATCH] powerpc/kvm: Handle the boundary condition correctly

2013-08-11 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We should be able to copy upto count bytes Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/kvm/book3s_64_mmu_hv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/kvm/book3s_64_mmu_hv.c index 7

Re: [PATCH 5/7] powerpc/perf: Define big-endian version of perf_mem_data_src

2013-08-11 Thread Michael Ellerman
On Sat, Aug 10, 2013 at 10:34:58PM -0400, Vince Weaver wrote: > On Sat, 10 Aug 2013, Sukadev Bhattiprolu wrote: > > > > > include/uapi/linux/perf_event.h | 55 > > +++ > > 1 files changed, 55 insertions(+), 0 deletions(-) > > > +#define __PERF_LE 1234 > >

Re: [RFC] powerpc: put the common parts of the ppc64*defconfigs in a Kconfig file

2013-08-11 Thread Stephen Rothwell
Hi Kumar, Thanks for your comments. On Fri, 9 Aug 2013 09:41:54 -0500 Kumar Gala wrote: > > > On Aug 9, 2013, at 1:24 AM, Stephen Rothwell wrote: > > > We cannot put the unsetting of config options in the Kconfig file, nor > > the integer or string options. > > > > I checked that after this w

Re: [PATCH 2/2] Register bootmem pages at boot on powerpc

2013-08-11 Thread Benjamin Herrenschmidt
On Fri, 2013-08-09 at 10:32 -0500, Nathan Fontenot wrote: > +void register_page_bootmem_memmap(unsigned long section_nr, > + struct page *start_page, unsigned long size) > +{ > + WARN_ONCE(1, KERN_INFO > + "Sparse Vmemmap not fully supported for boot

Re: [PATCH 1/3] cpufreq: pmac64: speed up frequency switch

2013-08-11 Thread Benjamin Herrenschmidt
On Wed, 2013-07-24 at 07:14 +1000, Benjamin Herrenschmidt wrote: > On Tue, 2013-07-23 at 23:20 +0200, Rafael J. Wysocki wrote: > > All looks good in the patchset from 1 feet (or more), but I need > > Ben to speak here. > > I want to give it a quick spin on the HW here, I'll ack then. But yes,

Re: Failure to detect PCI card

2013-08-11 Thread Benjamin Herrenschmidt
On Thu, 2013-08-08 at 13:31 -0700, Peter LaDow wrote: > For those that are interested, we did figure out what was going on. > Turns out that the clock buffer driving the PCI connector was, well, > less than adequate. With some cards, the load on the clock line was > large enough that the clock was

[PATCH 1/3 V4] mmc:core: parse voltage from device-tree

2013-08-11 Thread Haijun Zhang
Add function to support get voltage from device-tree. If there are voltage-range specified in device-tree node, this function will parse it and return the available voltage mask. Signed-off-by: Haijun Zhang --- changes for V4: - Add new parameter mask to return voltages. changes for V3:

[PATCH V3] mmc:of_spi: Update the code of getting voltage-ranges

2013-08-11 Thread Haijun Zhang
Using function mmc_of_parse_voltage() to get voltage-ranges. Signed-off-by: Haijun Zhang --- changes for V3: - changes the type of ocr_mask and function mmc_of_parse_voltage drivers/mmc/host/of_mmc_spi.c | 23 +++ 1 file changed, 3 insertions(+), 20 deletions(-) dif

[PATCH 2/3 V3] mmc:sdhc: get voltage from sdhc host

2013-08-11 Thread Haijun Zhang
We use host->ocr_mask to hold the voltage get from device-tree node, In case host->ocr_mask was available, we use host->ocr_mask as the final available voltage can be used by MMC/SD/SDIO card. Signed-off-by: Haijun Zhang --- changes for V3: - changed the type of mask drivers/mmc/host/sd

[PATCH 3/3 V3] mmc:esdhc: add support to get voltage from device-tree

2013-08-11 Thread Haijun Zhang
Add suppport to get voltage from device-tree node for esdhc host, if voltage-ranges was specified in device-tree node we can get ocr_mask instead of read from host capacity register. If not voltages still can be get from host capacity register. Signed-off-by: Haijun Zhang --- changes for V3:

Re: [PATCH 5/7] powerpc/perf: Define big-endian version of perf_mem_data_src

2013-08-11 Thread Vince Weaver
On Mon, 12 Aug 2013, Michael Ellerman wrote: > > Yes I think so. The interface is already defined and it's little endian, > so on big endian we just need to swap. > > The only part I'm not clear on is how things are handled in perf > userspace, it seems to already do some byte swapping. It would

Re: [PATCH 1/3 V2] mmc:core: parse voltage from device-tree

2013-08-11 Thread Zhang Haijun
On 08/09/2013 10:48 PM, Kumar Gala wrote: On Jul 31, 2013, at 1:25 AM, Haijun Zhang wrote: Add function to support get voltage from device-tree. If there are voltage-range specified in device-tree node, this function will parse it and return the avail voltage mask. Signed-off-by: Haijun Zhang

Re: [PATCH 1/2] powerpc: Pull out cpu_core_mask updates into a separate function

2013-08-11 Thread Stephen Rothwell
Hi Paul, On Sat, 10 Aug 2013 13:45:30 +1000 Paul Mackerras wrote: > > This factors out the details of updating cpu_core_mask into a separate > function, to make it easier to change how the mask is calculated later. > This makes no functional change. > > Signed-off-by: Paul Mackerras > --- > ar

Re: [PATCH 2/2] powerpc: Use ibm,chip-id property to compute cpu_core_mask if available

2013-08-11 Thread Stephen Rothwell
Hi Paul, On Sat, 10 Aug 2013 13:46:15 +1000 Paul Mackerras wrote: > > +static void traverse_siblings_chip_id(int cpu, int add, int chipid) Again, the "add is a boolean. > +{ > + const struct cpumask *mask; > + struct device_node *np; > + int i, plen; > + const int *prop; > + > +

Re: Build errors on mainline kernel

2013-08-11 Thread Michael Ellerman
On Fri, 2013-08-09 at 11:24 -0700, Sukadev Bhattiprolu wrote: > I am tryng to compile clean mainline kernel with a few different config files > and running into errors with some configs. > > I am building on RHEL6.3 with following binaries: > > gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4) >

Re: Build errors on mainline kernel

2013-08-11 Thread Sukadev Bhattiprolu
Michael Ellerman [mich...@ellerman.id.au] wrote: | On Fri, 2013-08-09 at 11:24 -0700, Sukadev Bhattiprolu wrote: | > I am tryng to compile clean mainline kernel with a few different config files | > and running into errors with some configs. | > | > I am building on RHEL6.3 with following binarie

[PATCH] powerpc: Fix denormalized exception handler

2013-08-11 Thread Paul Mackerras
The denormalized exception handler (denorm_exception_hv) has a couple of bugs. If the CONFIG_PPC_DENORMALISATION option is not selected, or the HSRR1_DENORM bit is not set in HSRR1, we don't test whether the interrupt occurred within a KVM guest. On the other hand, if the HSRR1_DENORM bit is set

[PATCH v4] powerpc/eeh: powerpc/eeh: Fix undefined variable

2013-08-11 Thread Mike Qiu
changes for V4: - changes the type of frozen_pe_no from %d to %llu in pr_devel() 'pe_no' hasn't been defined, it should be an typo error, it should be 'frozen_pe_no'. Also '__func__' has missed in IODA_EEH_DBG(), For safety reasons, use pr_devel() directly, instead of use IODA_

[PATCH v2 1/2] powerpc: Pull out cpu_core_mask updates into a separate function

2013-08-11 Thread Paul Mackerras
This factors out the details of updating cpu_core_mask into a separate function, to make it easier to change how the mask is calculated later. This makes no functional change. Signed-off-by: Paul Mackerras --- v2: add is bool arch/powerpc/kernel/smp.c | 56 +++---

[PATCH v2 2/2] powerpc: Use ibm,chip-id property to compute cpu_core_mask if available

2013-08-11 Thread Paul Mackerras
Some systems have an ibm,chip-id property in the cpu nodes in the device tree. On these systems, we now use that to compute the cpu_core_mask (i.e. the set of core siblings) rather than looking at cache properties. Signed-off-by: Paul Mackerras --- v2: add is bool, use of_read_number arch/powe