Re: [PATCH] cpufreq: powernv: Register the driver with reboot notifier

2014-08-21 Thread Viresh Kumar
On 21 August 2014 10:36, Shilpasri G Bhat shilpabhat...@gmail.com wrote: The intention here is stop the cpufreq governor and then to set the cpus to nominal frequency so as to ensure that the frequency won't be changed later. The .suspend callback of the driver is not called during

Re: [PATCH 1/3] powerpc: Split out instruction analysis part of emulate_step()

2014-08-21 Thread Michael Ellerman
On Mon, 2014-08-18 at 22:13 +1000, Paul Mackerras wrote: This splits out the instruction analysis part of emulate_step() into a separate analyse_instr() function, which decodes the instruction, but doesn't execute any load or store instructions. It does execute integer instructions and

Re: [PATCH v4 02/16] KVM: PPC: Use RCU for arch.spapr_tce_tables

2014-08-21 Thread Paul Mackerras
On Wed, Jul 30, 2014 at 07:31:21PM +1000, Alexey Kardashevskiy wrote: At the moment spapr_tce_tables is not protected against races. This makes use of RCU-variants of list helpers. As some bits are executed in real mode, this makes use of just introduced list_for_each_entry_rcu_notrace().

Re: [PATCH 1/1] powerpc/jump_label: use HAVE_JUMP_LABEL?

2014-08-21 Thread Michael Ellerman
On Thu, 2014-08-21 at 10:41 +0800, Zhouyi Zhou wrote: CONFIG_JUMP_LABEL doesn't ensure HAVE_JUMP_LABEL, if it is not the case use maintainers's own mutex to guard the modification of global values. OK, so CONFIG_JUMP_LABEL says the user wants to use jump labels. But we also need the toolchain

[RFC PATCH powerpc] Fix warning reported by verify_cpu_node_mapping()

2014-08-21 Thread Li Zhong
With commit 2fabf084b, during boottime, cpu_numa_callback() is called earlier(before their online) for each cpu, and verify_cpu_node_mapping() uses cpu_to_node() to check whether siblings are in the same node. It skips the checking for siblings that are not online yet. So the only check done

Re: [PATCH v4] powerpc/kvm: support to handle sw breakpoint

2014-08-21 Thread Alexander Graf
On 20.08.14 07:52, Madhavan Srinivasan wrote: This patch adds kernel side support for software breakpoint. Design is that, by using an illegal instruction, we trap to hypervisor via Emulation Assistance interrupt, where we check for the illegal instruction and accordingly we return to Host

[PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version

2014-08-21 Thread Nikhil Badola
Document compatible string containing IP version in USB device tree node Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Documentation/devicetree/bindings/usb/fsl-usb.txt | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[PATCH 4/4][v2] powerpc/fsl_msi: spread msi ints across different MSIRs

2014-08-21 Thread Laurentiu Tudor
Allocate msis such that each time a new interrupt is requested, the SRS (MSIR register select) to be used is allocated in a round-robin fashion. The end result is that the msi interrupts will be spread across distinct MSIRs with the main benefit that now users can set affinity to each msi int

Re: [PATCH 2/3] MSI: Use __read_msi_msg() instead of read_msi_msg()

2014-08-21 Thread Wei Yang
On Fri, Aug 15, 2014 at 11:14:29AM +0800, Yijing Wang wrote: Read_msi_msg() only be called in rtas_setup_msi_irqs(), read_msi_msg() This code looks good to me, while I can't apply on top of 3.17-rc1. If you rebase it, it would be more convenient for maintainer to merge. use __read_msi_msg()

Re: [PATCH 2/3] MSI: Use __read_msi_msg() instead of read_msi_msg()

2014-08-21 Thread Yijing Wang
On 2014/8/21 17:38, Wei Yang wrote: On Fri, Aug 15, 2014 at 11:14:29AM +0800, Yijing Wang wrote: Read_msi_msg() only be called in rtas_setup_msi_irqs(), read_msi_msg() This code looks good to me, while I can't apply on top of 3.17-rc1. If you rebase it, it would be more convenient for

[PATCH] powerpc: dts: t208x: Change T208x USB controller version

2014-08-21 Thread Nikhil Badola
Change USB controller version to 2.5 in compatible string for T2080/T2081 Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Checkpatch warnings handled by commit 61a8c2c6fe71082de3ea8629589dcdd0cc5c3f02 Documentation: dts: fsl-usb: Document USB node compatible string

[PATCH v3 08/11] powerpc: move cacheinfo sysfs to generic cacheinfo infrastructure

2014-08-21 Thread Sudeep Holla
From: Sudeep Holla sudeep.ho...@arm.com This patch removes the redundant sysfs cacheinfo code by making use of the newly introduced generic cacheinfo infrastructure. Signed-off-by: Sudeep Holla sudeep.ho...@arm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras

[PATCH v3 00/11] drivers: cacheinfo support

2014-08-21 Thread Sudeep Holla
From: Sudeep Holla sudeep.ho...@arm.com This series adds a generic cacheinfo support similar to topology. The implementation is based on x86 cacheinfo support. Currently x86, powerpc, ia64 and s390 have their own implementations. While adding similar support to ARM and ARM64, here is the attempt

[PATCH] powerpc: Fix build failure

2014-08-21 Thread Pranith Kumar
Fix the following build failure drivers/built-in.o: In function `nhi_init': nhi.c:(.init.text+0x63390): undefined reference to `ehci_init_driver' by adding a dependency on USB_EHCI_HCD which supplies the ehci_init_driver(). Also we need to depend on USB_OHCI_HCD similarly Signed-off-by:

[PATCH] powerpc: Fix build failure when CONFIG_USB=y

2014-08-21 Thread Pranith Kumar
We are enabling USB unconditionally which results in following build failure drivers/built-in.o: In function `tb_drom_read': (.text+0x1b62b70): undefined reference to `usb_speed_string' make: *** [vmlinux] Error Enable USB only if USB_SUPPORT is set to avoid such failures Signed-off-by:

Re: [RFC PATCH powerpc] Fix warning reported by verify_cpu_node_mapping()

2014-08-21 Thread Nishanth Aravamudan
On 21.08.2014 [16:14:02 +0800], Li Zhong wrote: With commit 2fabf084b, during boottime, cpu_numa_callback() is called earlier(before their online) for each cpu, and verify_cpu_node_mapping() uses cpu_to_node() to check whether siblings are in the same node. It skips the checking for

Re: [PATCH] powerpc/pseries: Drop unnecessary continue

2014-08-21 Thread Robert Jennings
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 08/20/2014 11:41 PM, Michael Ellerman wrote: On Wed, 2014-08-13 at 14:48 +0530, Himangi Saraogi wrote: Continue is not needed at the bottom of a loop. True. I wonder though, is the code trying to continue to the outer loop? I stared at

Re: [PATCH] powerpc: fsl_pci: Fix PCI/PCI-X regression

2014-08-21 Thread Scott Wood
On Wed, 2014-08-20 at 18:51 -0500, Aaron Sierra wrote: @@ -520,9 +520,22 @@ int fsl_add_bridge(struct platform_device *pdev, int is_primary) goto no_bridge; } else { - /* For PCI read PROG to identify controller mode */ -

Re: [PATCH] powerpc: fsl_pci: Fix PCI/PCI-X regression

2014-08-21 Thread Aaron Sierra
- Original Message - From: Scott Wood scottw...@freescale.com Sent: Thursday, August 21, 2014 4:19:56 PM On Wed, 2014-08-20 at 18:51 -0500, Aaron Sierra wrote: @@ -520,9 +520,22 @@ int fsl_add_bridge(struct platform_device *pdev, int is_primary) goto

Re: [PATCH] powerpc: fsl_pci: Fix PCI/PCI-X regression

2014-08-21 Thread Scott Wood
On Thu, 2014-08-21 at 16:54 -0500, Aaron Sierra wrote: - Original Message - From: Scott Wood scottw...@freescale.com Sent: Thursday, August 21, 2014 4:19:56 PM On Wed, 2014-08-20 at 18:51 -0500, Aaron Sierra wrote: @@ -520,9 +520,22 @@ int fsl_add_bridge(struct platform_device

Re: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version

2014-08-21 Thread Scott Wood
On Thu, 2014-08-21 at 14:48 +0530, Nikhil Badola wrote: Document compatible string containing IP version in USB device tree node Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Documentation/devicetree/bindings/usb/fsl-usb.txt | 13 - 1 file changed, 8

Re: [PATCH] powerpc: dts: t208x: Change T208x USB controller version

2014-08-21 Thread Scott Wood
On Thu, 2014-08-21 at 16:01 +0530, Nikhil Badola wrote: Change USB controller version to 2.5 in compatible string for T2080/T2081 Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Checkpatch warnings handled by commit 61a8c2c6fe71082de3ea8629589dcdd0cc5c3f02 That

Re: [RFC PATCH 0/4] Improve slab consumption with memoryless nodes

2014-08-21 Thread Nishanth Aravamudan
On 13.08.2014 [17:13:01 -0700], Nishanth Aravamudan wrote: Anton noticed (http://www.spinics.net/lists/linux-mm/msg67489.html) that on ppc LPARs with memoryless nodes, a large amount of memory was consumed by slabs and was marked unreclaimable. He tracked it down to slab deactivations in the

[PATCH] ibmveth: Fix endian issues with rx_no_buffer statistic

2014-08-21 Thread Anton Blanchard
Hidden away in the last 8 bytes of the buffer_list page is a solitary statistic. It needs to be byte swapped or else ethtool -S will produce numbers that terrify the user. Since we do this in multiple places, create a helper function with a comment explaining what is going on. Signed-off-by:

Re: [RFC PATCH powerpc] Fix warning reported by verify_cpu_node_mapping()

2014-08-21 Thread Li Zhong
On 四, 2014-08-21 at 08:45 -0700, Nishanth Aravamudan wrote: On 21.08.2014 [16:14:02 +0800], Li Zhong wrote: With commit 2fabf084b, during boottime, cpu_numa_callback() is called earlier(before their online) for each cpu, and verify_cpu_node_mapping() uses cpu_to_node() to check whether

[PATCH] powerpc: edac: Fix build error

2014-08-21 Thread Pranith Kumar
Fix the following build error: drivers/edac/ppc4xx_edac.c: In function 'mfsdram': drivers/edac/ppc4xx_edac.c:249: error: implicit declaration of function '__mfdcri' drivers/edac/ppc4xx_edac.c: In function 'mtsdram': drivers/edac/ppc4xx_edac.c:266: error: implicit declaration of function

Re: [PATCH] cpufreq: powernv: Register the driver with reboot notifier

2014-08-21 Thread Preeti U Murthy
Hi Viresh, On 08/21/2014 11:56 AM, Viresh Kumar wrote: On 21 August 2014 10:36, Shilpasri G Bhat shilpabhat...@gmail.com wrote: The intention here is stop the cpufreq governor and then to set the cpus to nominal frequency so as to ensure that the frequency won't be changed later. The

Re: [RFC PATCH 4/6] powerpc/85xx: Change vendor prefix for Intersil Corporation to isil

2014-08-21 Thread Rob Herring
On Wed, Aug 20, 2014 at 3:43 AM, Philipp Zabel p.za...@pengutronix.de wrote: Currently there is a wild mixture of isl, isil, and intersil compatibles in the kernel. At this point, changing the vendor symbol to the most often used variant, which is equal to the NASDAQ symbol, isil, should not

RE: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version

2014-08-21 Thread nikhil.bad...@freescale.com
Adding Ramneek -Original Message- From: Wood Scott-B07421 Sent: Friday, August 22, 2014 3:53 AM To: Badola Nikhil-B46172 Cc: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org Subject: Re: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP

[PATCH] powerpc/book3s: Deliver machine check with MSR(RI=0) to guest as MCE

2014-08-21 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar mah...@linux.vnet.ibm.com For machine check occurring while in guest, KVM layer tries recovery and deliver MCE to guest if recovery is failed. For recovered errors we just go back to normal functioning of guest. But there are cases where we may hit MCE in guest with

Re: [PATCH] powerpc: edac: Fix build error

2014-08-21 Thread Borislav Petkov
On Thu, Aug 21, 2014 at 10:19:51PM -0400, Pranith Kumar wrote: Fix the following build error: drivers/edac/ppc4xx_edac.c: In function 'mfsdram': drivers/edac/ppc4xx_edac.c:249: error: implicit declaration of function '__mfdcri' drivers/edac/ppc4xx_edac.c: In function 'mtsdram':

RE: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP version

2014-08-21 Thread Ramneek Mehresh
-Original Message- From: Badola Nikhil-B46172 Sent: Friday, August 22, 2014 10:18 AM To: Wood Scott-B07421 Cc: linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Mehresh Ramneek-B31383 Subject: RE: [PATCH] Documentation: dts: fsl-usb: Document USB node compatible string for IP