Re: BookE branch taken behavior vis-a-vis updating the NIP register

2013-11-10 Thread James Yang
On Fri, 8 Nov 2013, pegasus wrote: Hello. I was reading the source code for the debug exception under powerpc. I saw that BookE processors stop before (actually) taking a branch. Hence in order to force it to take that branch and then stop, the source code for it had to be hacked' to

Re: [PATCH] powerpc: kvm: optimize sc 0 as fast return

2013-11-10 Thread Liu ping fan
On Fri, Nov 8, 2013 at 7:12 PM, Paul Mackerras pau...@samba.org wrote: On Fri, Nov 08, 2013 at 10:44:16AM +0800, Liu Ping Fan wrote: syscall is a very common behavior inside guest, and this patch optimizes the path for the emulation of BOOK3S_INTERRUPT_SYSCALL, so hypervisor can return to

Re: [PATCH v3 0/2] powerpc kvm: fix deadlock scene

2013-11-10 Thread Liu ping fan
On Fri, Nov 8, 2013 at 6:58 PM, Paul Mackerras pau...@samba.org wrote: On Fri, Nov 08, 2013 at 03:29:52PM +0800, Liu Ping Fan wrote: v2-v3: introduce kvmppc_hv_unlock_hpte() to pair with kvmppc_hv_find_lock_hpte() and hide the preemption detail inside this pair from the callers Actually,

RE: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec idle

2013-11-10 Thread Dongsheng Wang
-Original Message- From: Wang Dongsheng-B40534 Sent: Thursday, November 07, 2013 10:13 AM To: Wood Scott-B07421 Cc: Bhushan Bharat-R65777; linuxppc-dev@lists.ozlabs.org Subject: RE: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec idle -Original

[PATCH v6 0/4] Add dual-fifo mode support of i.MX ssi

2013-11-10 Thread Nicolin Chen
* ! This series of patches has a direct dependency between them. When * ! applying them, we need to apply to one single branch. Otherwise, * ! it would break currect branches. Changelog v6: * PATCH-1: Use goto err_firmware instead of return directly. * * Nothing changes for the other three

[PATCH v6 1/4] dma: imx-sdma: Add sdma firmware version 2 support

2013-11-10 Thread Nicolin Chen
On i.MX5/6 series, SDMA is using new version firmware to support SSI dual FIFO feature and HDMI Audio (i.MX6Q/DL only). Thus add it. Signed-off-by: Nicolin Chen b42...@freescale.com --- drivers/dma/imx-sdma.c | 15 ++- include/linux/platform_data/dma-imx-sdma.h |

[PATCH v6 2/4] dma: imx-sdma: Add new dma type for ssi dual fifo script

2013-11-10 Thread Nicolin Chen
This patch adds a new DMA_TYPE for SSI dual FIFO script, included in SDMA firmware version 2. This script would allow SSI use dual fifo mode to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com ---

[PATCH v6 3/4] ASoC: fsl_ssi: Add dual fifo mode support

2013-11-10 Thread Nicolin Chen
By enabling dual fifo mode, it would allow SSI enter a better performance to transimit/receive data without occasional hardware underrun/overrun. Signed-off-by: Nicolin Chen b42...@freescale.com --- sound/soc/fsl/fsl_ssi.c | 27 ++- 1 file changed, 26 insertions(+), 1

[PATCH v6 4/4] ARM: dts: imx: use dual-fifo sdma script for ssi

2013-11-10 Thread Nicolin Chen
Use dual-fifo sdma scripts instead of shared scripts for ssi on i.MX series. Signed-off-by: Nicolin Chen b42...@freescale.com --- arch/arm/boot/dts/imx51.dtsi | 4 ++-- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6qdl.dtsi | 12 ++-- arch/arm/boot/dts/imx6sl.dtsi |

RE: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec idle

2013-11-10 Thread Bharat Bhushan
Those codes just for discuss with Bharat. He want to make one flow at show_pw20_wait_time/ show_altivec_idle_wait_time function. If we do that, we need to initialize pw20_wt/altivec_idle_wt. I will keep this stuff at show_pw20_wait_time/show_altivec_idle_wait_time and add a comment

[PATCH 0/3] powerpc iommu: Remove hardcoded page sizes

2013-11-10 Thread Alistair Popple
This patch series replaces the hardcoded iommu page sizes used by the iommu backend with a dynamic page size initialised by each platform. This will make it easier to use iommu page sizes other than 4K. The series doesn't actually change the iommu page size as each platform continues to

[PATCH 1/3] powerpc iommu: Update constant names to reflect their hardcoded page size

2013-11-10 Thread Alistair Popple
The powerpc iommu uses a hardcoded page size of 4K. This patch changes the name of the IOMMU_PAGE_* macros to reflect the hardcoded values. A future patch will use the existing names to support dynamic page sizes. Signed-off-by: Alistair Popple alist...@popple.id.au ---

[PATCH 2/3] powerpc iommu: Add it_page_shift field to determine iommu page size

2013-11-10 Thread Alistair Popple
This patch adds a it_page_shift field to struct iommu_table and initiliases it to 4K for all platforms. Signed-off-by: Alistair Popple alist...@popple.id.au --- arch/powerpc/include/asm/iommu.h |1 + arch/powerpc/kernel/vio.c |5 +++--

[PATCH 3/3] powerpc iommu: Update the generic code to use dynamic iommu page sizes

2013-11-10 Thread Alistair Popple
This patch updates the generic iommu backend code to use the it_page_shift field to determine the iommu page size instead of using hardcoded values. Signed-off-by: Alistair Popple alist...@popple.id.au --- arch/powerpc/include/asm/iommu.h | 19 +--- arch/powerpc/kernel/dma-iommu.c|

[PATCH v8 0/7] POWER/cpuidle: Generic POWERPC-BOOK3S cpuidle driver enabled for PSERIES and POWERNV platforms

2013-11-10 Thread Deepthi Dharwar
This patch series consolidates the backend cpuidle driver for pSeries and powernv platforms with minimal code duplication. Current existing backend driver for pseries has been moved to drivers/cpuidle and has been extended to accommodate powernv idle power mgmt states. As seen in V1 of this

[PATCH v8 1/7] pseries/cpuidle: Move processor_idle.c to drivers/cpuidle.

2013-11-10 Thread Deepthi Dharwar
Move the file from arch specific pseries/processor_idle.c to drivers/cpuidle/cpuidle-powerpc-book3s.c Make the relevant Makefile and Kconfig changes. This will enable having a common backend cpuidle driver for POWERPC-BOOK3S platform going forward. Signed-off-by: Deepthi Dharwar

[PATCH v8 2/7] pseries/cpuidle: Use cpuidle_register() for initialisation.

2013-11-10 Thread Deepthi Dharwar
This patch replaces the cpuidle driver and devices initialisation calls with a single generic cpuidle_register() call and also includes minor refactoring of the code around it. Signed-off-by: Deepthi Dharwar deep...@linux.vnet.ibm.com Acked-by: Daniel Lezcano daniel.lezc...@linaro.org ---

[PATCH] powerpc: add explicit OF includes for ppc4xx

2013-11-10 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com Commit b5b4bb3f6a11f9 (of: only include prom.h on sparc) removed implicit includes of of_*.h headers by powerpc's prom.h. Some PPC4xx components were missed in initial clean-up patch, so add the necessary includes to fix ppc4xx builds. Signed-off-by: Rob

[PATCH v8 3/7] pseries/cpuidle: Make pseries_idle backend driver a non-module.

2013-11-10 Thread Deepthi Dharwar
Currently pseries_idle cpuidle backend driver cannot be built as a module due to dependencies. Therefore the driver has to be built in. The dependency is around update_snooze_delay() defined in cpuidle driver and called from kernel/sysfs.c. This patch is removes all the module related code.

[PATCH v8 4/7] pseries/cpuidle: Remove MAX_IDLE_STATE macro.

2013-11-10 Thread Deepthi Dharwar
This patch removes the usage of MAX_IDLE_STATE macro and dead code around it. The number of states are determined at run time based on the cpuidle state table selected on a given platform Signed-off-by: Deepthi Dharwar deep...@linux.vnet.ibm.com Acked-by: Daniel Lezcano daniel.lezc...@linaro.org

[PATCH v8 5/7] POWER/cpuidle: Generic POWERPC-BOOK3S CPUIDLE driver supporting PSERIES.

2013-11-10 Thread Deepthi Dharwar
This patch includes cleanup and refactoring of the existing code to make the driver POWERPC-BOOK3S generic. * Re-naming the functions from pseries to generic powerpc-book3s. * Re-naming the backend driver from pseries_idle to powerpc_book3s_idle. Signed-off-by: Deepthi Dharwar

[PATCH v8 6/7] POWER/cpuidle: Enable powernv cpuidle support.

2013-11-10 Thread Deepthi Dharwar
The following patch extends the current powerpc-book3s backend idle driver to the powernv platform. Signed-off-by: Deepthi Dharwar deep...@linux.vnet.ibm.com Acked-by: Daniel Lezcano daniel.lezc...@linaro.org --- drivers/cpuidle/cpuidle-powerpc-book3s.c | 39 -- 1

[PATCH v8 7/7] powernv/cpuidle: Enable idle powernv cpu to call into the cpuidle framework.

2013-11-10 Thread Deepthi Dharwar
This patch enables idle cpu on the powernv platform to hook on to the cpuidle framework, if available, else call on to default idle platform code. Signed-off-by: Deepthi Dharwar deep...@linux.vnet.ibm.com Acked-by: Daniel Lezcano daniel.lezc...@linaro.org ---

Re: BookE branch taken behavior vis-a-vis updating the NIP register

2013-11-10 Thread pegasus
Thanks James. So it means that, the NIP that I am seeing in the printks is indeed correct. Right? And this is due to the pipelining feature that is inherent in all processors. So it basically means that after having executed the branch, the NIP has already progressed to the next instruction it is