Re: [PATCH v5 1/5] powerpc/85xx: implement hardware timebase sync

2012-06-05 Thread Zhao Chenhui
On Fri, Jun 01, 2012 at 10:40:00AM -0500, Scott Wood wrote: On 05/11/2012 06:53 AM, Zhao Chenhui wrote: #ifdef CONFIG_KEXEC +static struct ccsr_guts __iomem *guts; +static u64 timebase; +static int tb_req; +static int tb_valid; + +static void mpc85xx_timebase_freeze(int freeze)

RE: Cannot boot an kernel version other than 2.6.35 on P2020RDB-PCA

2012-06-05 Thread MAUSSIRE Cedric
Hi Yuantian Thanks for the tip, it's working fine on kernel 3.4. And yes the board works on linux kernel 2.6.35. I have downloaded the mainline code on kernel.org and use the qoriq_sdk_defconfig provided with system builder of Freescale, but it is only working with this defconfig file and not

Re: kernel panic during kernel module load (powerpc specific part)

2012-06-05 Thread Gabriel Paubert
On Tue, Jun 05, 2012 at 08:00:42AM +1000, Benjamin Herrenschmidt wrote: On Mon, 2012-06-04 at 13:03 +0200, Gabriel Paubert wrote: There is no conflict to the ABI. These functions are supposed to be directly reachable from whatever code section may need them. Now I have a question: how

Re: [PATCH v5 5/5] powerpc/85xx: add support to JOG feature using cpufreq interface

2012-06-05 Thread Zhao Chenhui
On Fri, Jun 01, 2012 at 06:30:55PM -0500, Scott Wood wrote: On 05/11/2012 06:53 AM, Zhao Chenhui wrote: Some 85xx silicons like MPC8536 and P1022 have a JOG feature, which provides a dynamic mechanism to lower or raise the CPU core clock at runtime. Is there a reason P1023 isn't supported?

Re: [PATCH v5 2/5] powerpc/85xx: add HOTPLUG_CPU support

2012-06-05 Thread Zhao Chenhui
On Mon, Jun 04, 2012 at 11:32:47AM -0500, Scott Wood wrote: On 06/04/2012 06:04 AM, Zhao Chenhui wrote: On Fri, Jun 01, 2012 at 04:27:27PM -0500, Scott Wood wrote: On 05/11/2012 06:53 AM, Zhao Chenhui wrote: -#ifdef CONFIG_KEXEC +#if defined(CONFIG_KEXEC) || defined(CONFIG_HOTPLUG_CPU)

Re: kernel panic during kernel module load (powerpc specific part)

2012-06-05 Thread Gabriel Paubert
On Tue, Jun 05, 2012 at 08:00:42AM +1000, Benjamin Herrenschmidt wrote: On Mon, 2012-06-04 at 13:03 +0200, Gabriel Paubert wrote: There is no conflict to the ABI. These functions are supposed to be directly reachable from whatever code section may need them. Now I have a question: how

Re: [PATCH v5 3/5] powerpc/85xx: add sleep and deep sleep support

2012-06-05 Thread Zhao Chenhui
On Mon, Jun 04, 2012 at 05:58:38PM -0500, Scott Wood wrote: On 06/04/2012 06:12 AM, Zhao Chenhui wrote: On Fri, Jun 01, 2012 at 04:54:35PM -0500, Scott Wood wrote: On 05/11/2012 06:53 AM, Zhao Chenhui wrote: diff --git a/arch/powerpc/include/asm/cacheflush.h

[PATCH] powerpc: Fix assmption of end_of_DRAM() returns end address

2012-06-05 Thread Bharat Bhushan
memblock_end_of_DRAM() returns end_address + 1, not end address. While some code assumes that it returns end address. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- This patch is based on next branch of https://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git

Re: [PATCH v5 5/5] powerpc/85xx: add support to JOG feature using cpufreq interface

2012-06-05 Thread Scott Wood
On 06/05/2012 05:59 AM, Zhao Chenhui wrote: On Fri, Jun 01, 2012 at 06:30:55PM -0500, Scott Wood wrote: On 05/11/2012 06:53 AM, Zhao Chenhui wrote: The jog mode frequency transition process on the MPC8536 is similar to the deep sleep process. The driver need save the CPU state and restore it

Re: [PATCH v5 1/5] powerpc/85xx: implement hardware timebase sync

2012-06-05 Thread Scott Wood
On 06/05/2012 04:08 AM, Zhao Chenhui wrote: On Fri, Jun 01, 2012 at 10:40:00AM -0500, Scott Wood wrote: I know you say this is for dual-core chips only, but it would be nice if you'd write this in a way that doesn't assume that (even if the corenet-specific timebase freezing comes later).

Re: [PATCH v5 4/5] fsl_pmc: Add API to enable device as wakeup event source

2012-06-05 Thread Scott Wood
On 06/04/2012 11:08 PM, Li Yang-R58472 wrote: -Original Message- From: Wood Scott-B07421 Sent: Tuesday, June 05, 2012 7:03 AM To: Zhao Chenhui-B35336 Cc: linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org; ga...@kernel.crashing.org; Li Yang-R58472 Subject: Re: [PATCH v5

Re: [PATCH v5 3/5] powerpc/85xx: add sleep and deep sleep support

2012-06-05 Thread Scott Wood
On 06/05/2012 06:35 AM, Zhao Chenhui wrote: On Mon, Jun 04, 2012 at 05:58:38PM -0500, Scott Wood wrote: On 06/04/2012 06:12 AM, Zhao Chenhui wrote: On Fri, Jun 01, 2012 at 04:54:35PM -0500, Scott Wood wrote: On 05/11/2012 06:53 AM, Zhao Chenhui wrote: diff --git

Re: [PATCH v5 2/5] powerpc/85xx: add HOTPLUG_CPU support

2012-06-05 Thread Scott Wood
On 06/05/2012 06:18 AM, Zhao Chenhui wrote: On Mon, Jun 04, 2012 at 11:32:47AM -0500, Scott Wood wrote: On 06/04/2012 06:04 AM, Zhao Chenhui wrote: On Fri, Jun 01, 2012 at 04:27:27PM -0500, Scott Wood wrote: On 05/11/2012 06:53 AM, Zhao Chenhui wrote: -#ifdef CONFIG_KEXEC +#if

RE: [PATCH v5 4/5] fsl_pmc: Add API to enable device as wakeup event source

2012-06-05 Thread Li Yang-R58472
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, June 06, 2012 12:12 AM To: Li Yang-R58472 Cc: Wood Scott-B07421; Zhao Chenhui-B35336; linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org; ga...@kernel.crashing.org Subject: Re: [PATCH v5 4/5] fsl_pmc: Add API to

Re: [PATCH v5 4/5] fsl_pmc: Add API to enable device as wakeup event source

2012-06-05 Thread Scott Wood
On 06/05/2012 11:49 AM, Li Yang-R58472 wrote: -Original Message- From: Wood Scott-B07421 Sent: Wednesday, June 06, 2012 12:12 AM To: Li Yang-R58472 Cc: Wood Scott-B07421; Zhao Chenhui-B35336; linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org; ga...@kernel.crashing.org

Access to http://ozlabs.org/people/dgibson/dldwd/

2012-06-05 Thread R.P. Burrasca
Would it be possible to access the above referenced webpage in order to see what's available as the Orinoco Prism 2 Wireless Driver? I have wireless internet access using Ubuntu 10.10 for powerpc on my G3 iBook 500 Mhz dual usb machine while I'm at home but I don't have any scanning

[PATCH] perf: Don't use SIAR for user addresses

2012-06-05 Thread Sukadev Bhattiprolu
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Date: Fri, 1 Jun 2012 20:56:02 -0400 Subject: [PATCH] perf: Don't use SIAR for user-space addresses With the pipelining on Power7, the SIAR can be off by several instructions leading to incorrect callgraphs. For user space code at least we can

Re: kernel panic during kernel module load (powerpc specific part)

2012-06-05 Thread Benjamin Herrenschmidt
On Tue, 2012-06-05 at 13:32 +0200, Gabriel Paubert wrote: - gcc-4.6 and gcc-4.7 behave identically, if -Os is set, they generate by default lmw/stmw. But if I combine -Os with -mno-multiple, they call the helper functions. In other words, on this system, gcc-4.4 is broken but should not

Re: [PATCH] powerpc: Fix assmption of end_of_DRAM() returns end address

2012-06-05 Thread Benjamin Herrenschmidt
On Tue, 2012-06-05 at 19:25 +0530, Bharat Bhushan wrote: memblock_end_of_DRAM() returns end_address + 1, not end address. While some code assumes that it returns end address. Shouldn't we instead fix it the other way around ? IE, make memblock_end_of_DRAM() does what the name implies, which is

Re: [PATCH] powerpc: Fix assmption of end_of_DRAM() returns end address

2012-06-05 Thread David Miller
From: Benjamin Herrenschmidt b...@kernel.crashing.org Date: Wed, 06 Jun 2012 08:17:39 +1000 On Tue, 2012-06-05 at 19:25 +0530, Bharat Bhushan wrote: memblock_end_of_DRAM() returns end_address + 1, not end address. While some code assumes that it returns end address. Shouldn't we instead fix

Re: [PATCH] perf: Don't use SIAR for user addresses

2012-06-05 Thread Benjamin Herrenschmidt
On Tue, 2012-06-05 at 13:32 -0700, Sukadev Bhattiprolu wrote: From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Date: Fri, 1 Jun 2012 20:56:02 -0400 Subject: [PATCH] perf: Don't use SIAR for user-space addresses With the pipelining on Power7, the SIAR can be off by several instructions

Re: kernel panic during kernel module load (powerpc specific part)

2012-06-05 Thread Benjamin Herrenschmidt
On Tue, 2012-06-05 at 12:44 +0200, Gabriel Paubert wrote: On Tue, Jun 05, 2012 at 08:00:42AM +1000, Benjamin Herrenschmidt wrote: On Mon, 2012-06-04 at 13:03 +0200, Gabriel Paubert wrote: There is no conflict to the ABI. These functions are supposed to be directly reachable from whatever

RE: [PATCH] powerpc: Fix assmption of end_of_DRAM() returns end address

2012-06-05 Thread Bhushan Bharat-R65777
-Original Message- From: David Miller [mailto:da...@davemloft.net] Sent: Wednesday, June 06, 2012 3:51 AM To: b...@kernel.crashing.org Cc: Bhushan Bharat-R65777; linuxppc-dev@lists.ozlabs.org; linux- ker...@vger.kernel.org; ga...@kernel.crashing.org; Bhushan Bharat-R65777 Subject:

Re: Access to http://ozlabs.org/people/dgibson/dldwd/

2012-06-05 Thread David Gibson
On Tue, Jun 05, 2012 at 07:27:44AM -0600, R.P. Burrasca wrote: Would it be possible to access the above referenced webpage in order to see what's available as the Orinoco Prism 2 Wireless Driver? Uh, that site hasn't existed for 5 years or more. The latest versions of the orinoco driver are

Re: [PATCH v5 4/5] fsl_pmc: Add API to enable device as wakeup event source

2012-06-05 Thread Li Yang
On Wed, Jun 6, 2012 at 2:05 AM, Scott Wood scottw...@freescale.com wrote: On 06/05/2012 11:49 AM, Li Yang-R58472 wrote: On 06/04/2012 06:36 AM, Zhao Chenhui wrote: On Fri, Jun 01, 2012 at 05:08:52PM -0500, Scott Wood wrote: On 05/11/2012 06:53 AM, Zhao Chenhui wrote: +int

[PATCH] PPC: PCI: Fix pcibios_io_space_offset() so it works for 32-bit ptr/64-bit rsrcs

2012-06-05 Thread Ben Collins
The commit introducing pcibios_io_space_offset() was ignoring 32-bit to 64-bit sign extention, which is the case on ppc32 with 64-bit resource addresses. This only seems to have shown up while running under QEMU for e500mc target. It may or may be suboptimal that QEMU has an IO base address

Re: [PATCH] PPC: PCI: Fix pcibios_io_space_offset() so it works for 32-bit ptr/64-bit rsrcs

2012-06-05 Thread Benjamin Herrenschmidt
On Tue, 2012-06-05 at 23:50 -0400, Ben Collins wrote: The commit introducing pcibios_io_space_offset() was ignoring 32-bit to 64-bit sign extention, which is the case on ppc32 with 64-bit resource addresses. This only seems to have shown up while running under QEMU for e500mc target. It may or

Re: [PATCH v2 0/2] Add pcibios_device_change_notifier

2012-06-05 Thread Benjamin Herrenschmidt
On Wed, 2012-05-23 at 11:33 +0900, Hiroo Matsumoto wrote: This patchset is for PCI hotplug. pcibios_setup_bus_devices which sets DMA and IRQs of PCI device is called only when boot. DMA setting in probe for PCI driver, like dma_set_mask, does not work on powerpc platform. So it is need to

RE: [PATCH] powerpc: Fix assmption of end_of_DRAM() returns end address

2012-06-05 Thread Benjamin Herrenschmidt
On Wed, 2012-06-06 at 00:46 +, Bhushan Bharat-R65777 wrote: memblock_end_of_DRAM() returns end_address + 1, not end address. While some code assumes that it returns end address. Shouldn't we instead fix it the other way around ? IE, make memblock_end_of_DRAM() does what the