[PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Kumar Gala
Added basic board port for MPC8572 DS reference platform that is similiar to the MPC8544/33 DS reference platform in uniprocessor mode. --- Posted here for review. Patch exists in my for-2.6.24 branch. Removed defconfig to reduce patch review size. arch/powerpc/boot/dts/mpc8572ds.dts |

Fix no_sync_cmos_clock logic inversion in kernel/time/ntp.c

2007-09-11 Thread Tony Breeds
Signed-off-by: Tony Breeds [EMAIL PROTECTED] --- Seems to me that this timer will only get started on platforms that say they don't want it? kernel/time/ntp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: working/kernel/time/ntp.c

[RFC/PATCH] Implement {read,update}_persistent_clock.

2007-09-11 Thread Tony Breeds
With these functions implemented we cooperate better with the generic timekeeping code. This obsoletes the need for the timer sysdev as a bonus. Signed-off-by: Tony Breeds [EMAIL PROTECTED] --- * Compile tested for arch/powerpc/configs/*_defconfig * Booted on pSeries, iSeries, Cell and PS3 *

Re: [RFC/PATCH] Implement {read,update}_persistent_clock. v2

2007-09-11 Thread Tony Breeds
From: Tony Breeds [EMAIL PROTECTED] Implement {read,update}_persistent_clock. With these functions implemented we cooperate better with the generic timekeeping code. This obsoletes the need for the timer sysdev as a bonus. Signed-off-by: Tony Breeds [EMAIL PROTECTED] --- Functionally is the

Re: [RFC/PATCH] Implement {read,update}_persistent_clock.

2007-09-11 Thread Gabriel Paubert
On Tue, Sep 11, 2007 at 05:49:17PM +1000, Tony Breeds wrote: With these functions implemented we cooperate better with the generic timekeeping code. This obsoletes the need for the timer sysdev as a bonus. Looks fine, there is still the problem that most PPC RTC seem to prefer update on the

Re: Fix no_sync_cmos_clock logic inversion in kernel/time/ntp.c

2007-09-11 Thread Thomas Gleixner
On Tue, 2007-09-11 at 17:46 +1000, Tony Breeds wrote: Signed-off-by: Tony Breeds [EMAIL PROTECTED] --- Seems to me that this timer will only get started on platforms that say they don't want it? Hell, yes. Good catch ! tglx kernel/time/ntp.c |2 +- 1 file changed, 1

SYSFS: need a noncaching read

2007-09-11 Thread Heiko Schocher
Hello, I have developed a device driver and use the sysFS to export some registers to userspace. I opened the sysFS File for one register and did some reads from this File, but I alwas becoming the same value from the register, whats not OK, because they are changing. So I found out that the

RE: [PATCH 5/5] Add DMA engine driver for Freescale MPC85xx processors.

2007-09-11 Thread Zhang Wei-r63237
Hi, --- /dev/null +++ b/drivers/dma/fsldma.c @@ -0,0 +1,995 @@ Thanks for using kernel-doc notation. However, ... +/** + * fsl_dma_alloc_descriptor - Allocate descriptor from channel's DMA pool. Function parameters need to be listed described here. See

RE: [PATCH 2/5] Add Freescale DMA engine driver maintainer.

2007-09-11 Thread Zhang Wei-r63237
I'll merge them. Thanks! - zw -Original Message- From: David Gibson [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 11:28 AM To: Zhang Wei-r63237 Cc: [EMAIL PROTECTED]; linuxppc-dev@ozlabs.org Subject: Re: [PATCH 2/5] Add Freescale DMA engine driver maintainer. On

RE: [PATCH 5/5] Add DMA engine driver for Freescale MPC85xx processors.

2007-09-11 Thread Zhang Wei-r63237
If this is experimental, perhaps you should mark the depends line as such depends on on DMA_ENGINE PPC EXPERIMENTAL I'll add EXPERIMENTAL for MPC83xx only. [...] + +fsl_dma_memcpy_issue_pending(chan); +while (fsl_dma_is_complete(chan, cookie, NULL, NULL) +

RE: [PATCH 5/5] Add DMA engine driver for Freescale MPC85xx processors.

2007-09-11 Thread Zhang Wei-r63237
Hi, Dan, Does I have followed your new API? :-) --- Greetings, Please copy me on any updates to this driver, drivers/dma, or crypto/async_tx. Ok. Below are a few review comments... Regards, Dan +/** + * fsl_dma_alloc_descriptor - Allocate descriptor from channel's DMA

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-11 Thread S. Fricke
Dear Linux-enthusiasts, I'm still at the same problem. I have now implemented a irq_chip for the hardwired IRQ2. Now I have: --== volatile static struct mpc52xx_intr __iomem *intr; unsigned long flags; static DEFINE_SPINLOCK(my_irq_controller_lock); /* * HELPER-Function */ static inline

[PATCH 00/12] IB/ehca: New features and fixes for 2.6.24

2007-09-11 Thread Joachim Fenkes
Here are some fresh eHCA driver features and fixes for your reviewing pleasure. They have passed internal testing and checkpatch.pl, so we think they are ready for inclusion. [01/12] adds userspace support for small QPs [02/12] changes a nit in firmware communication [03/12] adds support for more

[PATCH 02/12] IB/ehca: Add 1 is not longer needed because of firmware interface change

2007-09-11 Thread Joachim Fenkes
From: Stefan Roscher [EMAIL PROTECTED] Signed-off-by: Joachim Fenkes [EMAIL PROTECTED] --- drivers/infiniband/hw/ehca/hcp_if.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/ehca/hcp_if.c b/drivers/infiniband/hw/ehca/hcp_if.c index

[PATCH 01/12] IB/ehca: Small QP userspace support

2007-09-11 Thread Joachim Fenkes
From: Stefan Roscher [EMAIL PROTECTED] Signed-off-by: Joachim Fenkes [EMAIL PROTECTED] --- drivers/infiniband/hw/ehca/ehca_qp.c |7 +++ drivers/infiniband/hw/ehca/ipz_pt_fn.c |1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/ehca/ehca_qp.c

[PATCH 04/12] IB/ehca: Use remap_4k_pfn() to map firmware contexts to user space

2007-09-11 Thread Joachim Fenkes
From: Hoang-Nam Nguyen [EMAIL PROTECTED] Use Paul's new remap_4k_pfn() function to map our 4K firmware contexts into user space on 64K-page machines without exposing neighboring firmware contexts. Return the context's offset within a 64K page to user space so it can determine the proper virtual

[PATCH 05/12] IB/ehca: Refactor hvcall tracing

2007-09-11 Thread Joachim Fenkes
Change hvcall trace output towards better readability: reg numbers instead of argument numbers, return code as signed decimal instead of unsigned hex. Signed-off-by: Joachim Fenkes [EMAIL PROTECTED] --- drivers/infiniband/hw/ehca/hcp_if.c | 57 ++ 1 files

[PATCH 06/12] IB/ehca: Print return codes as signed decimal integers

2007-09-11 Thread Joachim Fenkes
...because -12 is easier to read than FFF4. Signed-off-by: Joachim Fenkes [EMAIL PROTECTED] --- drivers/infiniband/hw/ehca/ehca_cq.c | 14 +++--- drivers/infiniband/hw/ehca/ehca_hca.c|2 +- drivers/infiniband/hw/ehca/ehca_main.c | 24 +-

[PATCH 07/12] IB/ehca: ehca_gen_warn() should always print

2007-09-11 Thread Joachim Fenkes
Signed-off-by: Joachim Fenkes [EMAIL PROTECTED] --- drivers/infiniband/hw/ehca/ehca_tools.h |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/infiniband/hw/ehca/ehca_tools.h b/drivers/infiniband/hw/ehca/ehca_tools.h index 57c77a7..f9b264b 100644 ---

[PATCH 08/12] IB/ehca: Replace get_paca()-paca_index by the more portable smp_processor_id()

2007-09-11 Thread Joachim Fenkes
Signed-off-by: Joachim Fenkes [EMAIL PROTECTED] --- drivers/infiniband/hw/ehca/ehca_tools.h | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/infiniband/hw/ehca/ehca_tools.h b/drivers/infiniband/hw/ehca/ehca_tools.h index f9b264b..863f972 100644 ---

[PATCH 10/12] IB/ehca: Path migration support

2007-09-11 Thread Joachim Fenkes
Rectify some modify_qp() issues related to path migration. Signed-off-by: Joachim Fenkes [EMAIL PROTECTED] --- drivers/infiniband/hw/ehca/ehca_irq.c |4 +- drivers/infiniband/hw/ehca/ehca_qp.c | 90 - 2 files changed, 68 insertions(+), 26 deletions(-) diff

[PATCH 12/12] IB/ehca: Bump version number and change its format

2007-09-11 Thread Joachim Fenkes
Nobody needed the SVNEHCA_ prefix anyway. Signed-off-by: Joachim Fenkes [EMAIL PROTECTED] --- drivers/infiniband/hw/ehca/ehca_main.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c

Re: [PATCH 1/3] fsl_soc.c cleanup

2007-09-11 Thread Scott Wood
On Tue, Sep 11, 2007 at 12:35:56AM -0500, Kumar Gala wrote: On Aug 28, 2007, at 3:16 PM, Scott Wood wrote: 1. Fix get_immrbase() to use ranges, rather than reg. It is not always the case that the SoC's first reg property points to the beginning of the entire SoC block. when is this

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Scott Wood
On Tue, Sep 11, 2007 at 01:29:18AM -0500, Kumar Gala wrote: diff --git a/arch/powerpc/boot/dts/mpc8572ds.dts b/arch/powerpc/boot/dts/mpc8572ds.dts new file mode 100644 index 000..9d23561 --- /dev/null +++ b/arch/powerpc/boot/dts/mpc8572ds.dts @@ -0,0 +1,378 @@ +/* + * MPC8572 DS

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Olof Johansson
Hi, On Tue, Sep 11, 2007 at 01:29:18AM -0500, Kumar Gala wrote: Added basic board port for MPC8572 DS reference platform that is similiar to the MPC8544/33 DS reference platform in uniprocessor mode. --- diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c

Re: [PATCH 1/5] Add Freescale DMA and DMA channel to Documentation/powerpc/booting-without-of.txt file.

2007-09-11 Thread Scott Wood
On Tue, Sep 11, 2007 at 06:01:39PM +0800, Zhang Wei-r63237 wrote: On Fri, Sep 07, 2007 at 04:43:35PM +0200, Segher Boessenkool wrote: + l) Freescale DMA +- compatible : Should be fsl,dma. Please choose some more specific name. fsl,mpc8540-dma would be a

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-11 Thread Grant Likely
On 9/11/07, S. Fricke [EMAIL PROTECTED] wrote: Dear Linux-enthusiasts, I'm still at the same problem. I have now implemented a irq_chip for the hardwired IRQ2. Now I have: --== volatile static struct mpc52xx_intr __iomem *intr; unsigned long flags; static

Re: [PATCH 5/5] Add DMA engine driver for Freescale MPC85xx processors.

2007-09-11 Thread Scott Wood
On Tue, Sep 11, 2007 at 06:10:53PM +0800, Zhang Wei-r63237 wrote: + + fsl_dma_memcpy_issue_pending(chan); + while (fsl_dma_is_complete(chan, cookie, NULL, NULL) + != DMA_SUCCESS); Again, is it possible to hang your thread here? [...] I'll add msleep here. I

Re: [PATCH 5/5] Add DMA engine driver for Freescale MPC85xx processors.

2007-09-11 Thread Randy Dunlap
Zhang Wei-r63237 wrote: +/** + * fsl_chan_xfer_ld_queue -- Transfer the link descriptors in channel + * ld_queue. The function's short description (unfortunately) must be on only one line. E.g.: * fsl_chan_xfer_ld_queue - Transfer link descriptors in channel

Re: [PATCH 08/12] IB/ehca: Replace get_paca()-paca_index by the more portable smp_processor_id()

2007-09-11 Thread Nathan Lynch
Hi, Joachim Fenkes wrote: Signed-off-by: Joachim Fenkes [EMAIL PROTECTED] --- drivers/infiniband/hw/ehca/ehca_tools.h | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/infiniband/hw/ehca/ehca_tools.h b/drivers/infiniband/hw/ehca/ehca_tools.h

RE: [PATCH 5/5] Add DMA engine driver for Freescale MPC85xx processors.

2007-09-11 Thread Nelson, Shannon
From: Scott Wood [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 7:20 AM To: Zhang Wei-r63237 Cc: Nelson, Shannon; [EMAIL PROTECTED]; linuxppc-dev@ozlabs.org; Williams, Dan J; [EMAIL PROTECTED] Subject: Re: [PATCH 5/5] Add DMA engine driver for Freescale MPC85xx processors. On Tue,

Re: [PATCH 1/3] fsl_soc.c cleanup

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 8:57 AM, Scott Wood wrote: On Tue, Sep 11, 2007 at 12:35:56AM -0500, Kumar Gala wrote: On Aug 28, 2007, at 3:16 PM, Scott Wood wrote: 1. Fix get_immrbase() to use ranges, rather than reg. It is not always the case that the SoC's first reg property points to the

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 9:18 AM, Olof Johansson wrote: Hi, On Tue, Sep 11, 2007 at 01:29:18AM -0500, Kumar Gala wrote: Added basic board port for MPC8572 DS reference platform that is similiar to the MPC8544/33 DS reference platform in uniprocessor mode. --- diff --git

[PATCH] [POWERPC] QE: simplify GUEMR register initialization

2007-09-11 Thread Timur Tabi
The initialization of the QE's GUEMR register is overly complicated, involving multiple functions and a redundant ucc_common structure. This patch removes struct ucc_common, merges ucc_init_guemr() into ucc_set_type() (every caller of ucc_init_guemr() also calls ucc_set_type() immediately

Re: [PATCH 1/3] fsl_soc.c cleanup

2007-09-11 Thread Scott Wood
Kumar Gala wrote: Yep. However, after some discussion with Segher on this for 83xx/85xx/86xx I think we want to keep the reg prop and have it cover the initial soc registers [size on 83xx is 0x100, size on 85xx/86xx would be 0x1000]. What we need is a saner way to determine immr on 82xx

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Olof Johansson
On Tue, Sep 11, 2007 at 10:50:18AM -0500, Kumar Gala wrote: diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c index 3a5c3c4..1e2eba8 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ds.c @@ -181,6

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 9:17 AM, Scott Wood wrote: On Tue, Sep 11, 2007 at 01:29:18AM -0500, Kumar Gala wrote: diff --git a/arch/powerpc/boot/dts/mpc8572ds.dts b/arch/powerpc/ boot/dts/mpc8572ds.dts new file mode 100644 index 000..9d23561 --- /dev/null +++

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 10:55 AM, Olof Johansson wrote: On Tue, Sep 11, 2007 at 10:50:18AM -0500, Kumar Gala wrote: diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c index 3a5c3c4..1e2eba8 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c +++

[PATCH v2] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Kumar Gala
Added basic board port for MPC8572 DS reference platform that is similiar to the MPC8544/33 DS reference platform in uniprocessor mode. --- Take two, with my clean ups to the device tree as commented by Scott and fixing my copy/paste foobar with pci_ids.h. arch/powerpc/boot/dts/mpc8572ds.dts

Re: [PATCH 1/3] fsl_soc.c cleanup

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 10:51 AM, Scott Wood wrote: Kumar Gala wrote: Yep. However, after some discussion with Segher on this for 83xx/ 85xx/86xx I think we want to keep the reg prop and have it cover the initial soc registers [size on 83xx is 0x100, size on 85xx/ 86xx would be 0x1000].

SOC registers/immr determination from device tree (was Re: [PATCH 1/3] fsl_soc.c cleanup)

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 11:24 AM, Scott Wood wrote: Kumar Gala wrote: On Sep 11, 2007, at 10:51 AM, Scott Wood wrote: Any particular reason to special-case it, when we already need code to do it the other way for every other fsl soc? If you suggest a sane way of getting the value let me know.

Re: SOC registers/immr determination from device tree (was Re: [PATCH 1/3] fsl_soc.c cleanup)

2007-09-11 Thread Scott Wood
Kumar Gala wrote: On Sep 11, 2007, at 11:24 AM, Scott Wood wrote: I propose we do it by defining the first (and ideally only, but that's another argument) entry in ranges as the immr, and getting rid of /soc/reg. I disagree. I'm shocked. :-) I don't think we want to start overloading

Re: SOC registers/immr determination from device tree (was Re: [PATCH 1/3] fsl_soc.c cleanup)

2007-09-11 Thread Josh Boyer
On Tue, 11 Sep 2007 12:03:31 -0500 Scott Wood [EMAIL PROTECTED] wrote: It'd probably be more efficient to discuss this in person; can you stop by my cube sometime when you're around and not in a meeting? Please be sure to post a summary of the discussion if you do that so the other people

Re: FDT for Microblaze and PPC405

2007-09-11 Thread Grant Likely
On 9/11/07, Michal Simek [EMAIL PROTECTED] wrote: Hi Grant, (Adding linuxppc-dev mailing list to CC list because we're discussing FDT issues) I made EDK repository file for generation dts file from Xilinx design. I sent it to Wolfgang and Steve this week. It is in the same config file as I

Re: [PATCH] [POWERPC] QE: simplify GUEMR register initialization

2007-09-11 Thread Timur Tabi
Paul and Kumar, It turns out that I have a bunch more QE library code clean-up, so please ignore this patch. I'll submit a more comprehensive one later this week. Timur Tabi wrote: The initialization of the QE's GUEMR register is overly complicated, involving multiple functions and a

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Olof Johansson
On Tue, Sep 11, 2007 at 11:00:28AM -0500, Kumar Gala wrote: On Sep 11, 2007, at 10:55 AM, Olof Johansson wrote: On Tue, Sep 11, 2007 at 10:50:18AM -0500, Kumar Gala wrote: How different are these boards really? Could you just detect MPC85xxDS and have a generic platform for them,

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Scott Wood
Olof Johansson wrote: On Tue, Sep 11, 2007 at 11:00:28AM -0500, Kumar Gala wrote: well the ifdefs are orthogonal. We don't have a way of knowing primary from the device tree today. How about something like fsl,primary-phb in the bus device node? I don't know, maybe it's already been

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Olof Johansson
On Tue, Sep 11, 2007 at 12:21:30PM -0500, Scott Wood wrote: Olof Johansson wrote: On Tue, Sep 11, 2007 at 11:00:28AM -0500, Kumar Gala wrote: well the ifdefs are orthogonal. We don't have a way of knowing primary from the device tree today. How about something like fsl,primary-phb

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Scott Wood
Olof Johansson wrote: On Tue, Sep 11, 2007 at 12:21:30PM -0500, Scott Wood wrote: Olof Johansson wrote: On Tue, Sep 11, 2007 at 11:00:28AM -0500, Kumar Gala wrote: well the ifdefs are orthogonal. We don't have a way of knowing primary from the device tree today. How about something like

Re: SOC registers/immr determination from device tree (was Re: [PATCH 1/3] fsl_soc.c cleanup)

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 12:03 PM, Scott Wood wrote: Kumar Gala wrote: On Sep 11, 2007, at 11:24 AM, Scott Wood wrote: I propose we do it by defining the first (and ideally only, but that's another argument) entry in ranges as the immr, and getting rid of /soc/reg. I disagree. I'm

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 12:48 PM, Scott Wood wrote: Olof Johansson wrote: On Tue, Sep 11, 2007 at 12:21:30PM -0500, Scott Wood wrote: Olof Johansson wrote: On Tue, Sep 11, 2007 at 11:00:28AM -0500, Kumar Gala wrote: well the ifdefs are orthogonal. We don't have a way of knowing primary from

2.6.23-rc3 is not booting

2007-09-11 Thread sivaji
Hi, I am using the kernel 2.6.23-rc3, when i try to boot the kernel i got following messages. Booting image at 0020 ... Image Name: Linux-2.6.23-rc3 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size:1487259 Bytes = 1.4 MB Load Address: Entry

Re: [PATCH] [POWERPC] Fix interrupt routing and setup of ULI M1575 on FSL boards

2007-09-11 Thread Olof Johansson
On Tue, Sep 11, 2007 at 01:00:47PM -0500, Kumar Gala wrote: On Sep 11, 2007, at 12:20 PM, Olof Johansson wrote: On Fri, Aug 17, 2007 at 12:03:48AM -0500, Kumar Gala wrote: Signed-off-by: Kumar Gala [EMAIL PROTECTED] --- arch/powerpc/boot/dts/mpc8544ds.dts| 88 --

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-11 Thread S. Fricke
Hello, [...] intr = mpc52xx_find_and_map(mpc52xx-pic); if(!intr) { panic(__FILE__ : mpc52xx-pic - MAP failed); } set_irq_chip(MPC52xx_IRQ2, my_irq_chip); You probably don't want to do this (unless you are cascading IRQs to custom external hardware). All

Re: [PATCH] [POWERPC] Fix interrupt routing and setup of ULI M1575 on FSL boards

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 1:22 PM, Olof Johansson wrote: On Tue, Sep 11, 2007 at 01:00:47PM -0500, Kumar Gala wrote: On Sep 11, 2007, at 12:20 PM, Olof Johansson wrote: On Fri, Aug 17, 2007 at 12:03:48AM -0500, Kumar Gala wrote: Signed-off-by: Kumar Gala [EMAIL PROTECTED] ---

Re: [PATCH] [POWERPC] QE: simplify GUEMR register initialization

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 12:09 PM, Timur Tabi wrote: Paul and Kumar, It turns out that I have a bunch more QE library code clean-up, so please ignore this patch. I'll submit a more comprehensive one later this week. Timur Tabi wrote: The initialization of the QE's GUEMR register is

Re: [PATCH] [POWERPC] Fix interrupt routing and setup of ULI M1575 on FSL boards

2007-09-11 Thread Becky Bruce
On Sep 11, 2007, at 1:33 PM, Kumar Gala wrote: On Sep 11, 2007, at 1:22 PM, Olof Johansson wrote: On Tue, Sep 11, 2007 at 01:00:47PM -0500, Kumar Gala wrote: On Sep 11, 2007, at 12:20 PM, Olof Johansson wrote: On Fri, Aug 17, 2007 at 12:03:48AM -0500, Kumar Gala wrote: Signed-off-by:

Re: [PATCH] [POWERPC] Fix interrupt routing and setup of ULI M1575 on FSL boards

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 1:43 PM, Becky Bruce wrote: On Sep 11, 2007, at 1:33 PM, Kumar Gala wrote: On Sep 11, 2007, at 1:22 PM, Olof Johansson wrote: On Tue, Sep 11, 2007 at 01:00:47PM -0500, Kumar Gala wrote: On Sep 11, 2007, at 12:20 PM, Olof Johansson wrote: On Fri, Aug 17, 2007 at

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-11 Thread Grant Likely
On 9/11/07, S. Fricke [EMAIL PROTECTED] wrote: Hello, [...] intr = mpc52xx_find_and_map(mpc52xx-pic); if(!intr) { panic(__FILE__ : mpc52xx-pic - MAP failed); } set_irq_chip(MPC52xx_IRQ2, my_irq_chip); You probably don't want to do this (unless you

Re: [PATCH] [POWERPC] Fix interrupt routing and setup of ULI M1575 on FSL boards

2007-09-11 Thread Olof Johansson
On Tue, Sep 11, 2007 at 01:43:59PM -0500, Becky Bruce wrote: Maybe it would make more sense for you guys to slice the platforms differently, and have a common platform for the eval boards you have with ULi on them instead of grouping it by core used by the processor on the board. (In

[PATCH v3] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Kumar Gala
Added basic board port for MPC8572 DS reference platform that is similiar to the MPC8544/33 DS reference platform in uniprocessor mode. --- Rev 3 -- updates to the device tree based on discussion on how we want to handle memory busses going forward. arch/powerpc/boot/dts/mpc8572ds.dts |

Re: [PATCH] [POWERPC] Fix interrupt routing and setup of ULI M1575 on FSL boards

2007-09-11 Thread Olof Johansson
On Tue, Sep 11, 2007 at 02:22:21PM -0500, Becky Bruce wrote: I'm also guilty of not noticing the original patch - my apologies. maybe we should just have a platforms/fsl for all boards from freescale. Not having things broken up by which processor family they are for. What do

Re: [PATCH 1/3] Implement arch disable/enable irq hooks.

2007-09-11 Thread Scott Wood
Paul Mackerras wrote: It might be better to use hard_irq_disable rather than local_irq_disable here, since I think we will need that on 64-bit (and on 32-bit if we ever do lazy irq disabling there). OK. +/* Overrides the weak version in kernel/power/main.c */ +void

Re: [PATCH 2/3] pm: Handle HID0_SLEEP in the TLF_NAPPING hack.

2007-09-11 Thread Paul Mackerras
Scott Wood writes: The e300 core (and probably most other 6xx chips) can only come out of sleep mode with an interrupt. However, interrupts are logically disabled by the power management layer. This hack extends the existing doze/nap hack to also suppress the running of the interrupt

Re: [PATCH 2/3] pm: Handle HID0_SLEEP in the TLF_NAPPING hack.

2007-09-11 Thread Scott Wood
Paul Mackerras wrote: Scott Wood writes: The e300 core (and probably most other 6xx chips) can only come out of sleep mode with an interrupt. However, interrupts are logically disabled by the power management layer. This hack extends the existing doze/nap hack to also suppress the running

[PATCH] [RFC][POWERPC] Merge 32 and 64 bit pci_process_bridge_OF_ranges() instances

2007-09-11 Thread Vitaly Bordug
We are having 2 different instances of pci_process_bridge_OF_ranges(), which makes describing 64-bit physical addresses in non PPC64 case impossible. This approach inherits pci space parsing, but has a new way to behave equally good in both 32bit and 64bit environments. This approach uses

Re: [PATCH] [RFC][POWERPC] Merge 32 and 64 bit pci_process_bridge_OF_ranges() instances

2007-09-11 Thread Arnd Bergmann
On Wednesday 12 September 2007, Vitaly Bordug wrote: We are having 2 different instances of pci_process_bridge_OF_ranges(), which makes describing 64-bit physical addresses in non PPC64 case impossible. This approach inherits pci space parsing, but has a new way to behave equally good in

Re: [PATCH] [RFC][POWERPC] Merge 32 and 64 bit pci_process_bridge_OF_ranges() instances

2007-09-11 Thread Vitaly Bordug
On Wed, 12 Sep 2007 00:57:17 +0200 Arnd Bergmann wrote: On Wednesday 12 September 2007, Vitaly Bordug wrote: We are having 2 different instances of pci_process_bridge_OF_ranges(), which makes describing 64-bit physical addresses in non PPC64 case impossible. This approach inherits

Re: [PATCH] powerpc: add new required termio functions

2007-09-11 Thread Linus Torvalds
On Wed, 12 Sep 2007, Michael Neuling wrote: The tty: termios locking functions break with new termios type patch (f629307c857c030d5a3dd777fee37c8bb395e171) breaks the powerpc compile. Really? It shouldn't. The use of kernel_termios_to_user_termios_1() is conditional on the architecture

Re: [PATCH] powerpc: add new required termio functions

2007-09-11 Thread Tony Breeds
On Tue, Sep 11, 2007 at 07:17:42PM -0700, Linus Torvalds wrote: Really? It shouldn't. The use of kernel_termios_to_user_termios_1() is conditional on the architecture having a define for TCGETS2, and I think they match up. I see: [EMAIL PROTECTED] linux]$ git grep -l

Re: [PATCH] powerpc: add new required termio functions

2007-09-11 Thread Michael Neuling
On Wed, 12 Sep 2007, Michael Neuling wrote: The tty: termios locking functions break with new termios type patch (f629307c857c030d5a3dd777fee37c8bb395e171) breaks the powerpc compile. Really? It shouldn't. The use of kernel_termios_to_user_termios_1() is conditional on the

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread David Gibson
On Tue, Sep 11, 2007 at 12:59:22PM -0500, Kumar Gala wrote: On Sep 11, 2007, at 12:48 PM, Scott Wood wrote: Olof Johansson wrote: On Tue, Sep 11, 2007 at 12:21:30PM -0500, Scott Wood wrote: Olof Johansson wrote: On Tue, Sep 11, 2007 at 11:00:28AM -0500, Kumar Gala wrote: well the

Re: [PATCH v3] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread David Gibson
On Tue, Sep 11, 2007 at 02:37:56PM -0500, Kumar Gala wrote: Added basic board port for MPC8572 DS reference platform that is similiar to the MPC8544/33 DS reference platform in uniprocessor mode. --- Rev 3 -- updates to the device tree based on discussion on how we want to handle memory

Re: SYSFS: need a noncaching read

2007-09-11 Thread Michael Ellerman
On Wed, 2007-09-12 at 12:05 +1000, David Gibson wrote: On Tue, Sep 11, 2007 at 11:43:17AM +0200, Heiko Schocher wrote: Hello, I have developed a device driver and use the sysFS to export some registers to userspace. I opened the sysFS File for one register and did some reads from this

Re: [PATCH v3] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 10:11 PM, David Gibson wrote: On Tue, Sep 11, 2007 at 02:37:56PM -0500, Kumar Gala wrote: Added basic board port for MPC8572 DS reference platform that is similiar to the MPC8544/33 DS reference platform in uniprocessor mode. --- Rev 3 -- updates to the device tree

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Kumar Gala
On Sep 11, 2007, at 10:00 PM, David Gibson wrote: On Tue, Sep 11, 2007 at 12:59:22PM -0500, Kumar Gala wrote: On Sep 11, 2007, at 12:48 PM, Scott Wood wrote: Olof Johansson wrote: On Tue, Sep 11, 2007 at 12:21:30PM -0500, Scott Wood wrote: Olof Johansson wrote: On Tue, Sep 11, 2007 at

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread Olof Johansson
On Tue, Sep 11, 2007 at 10:35:01PM -0500, Kumar Gala wrote: In the meantime, couldn't the code still be merged, using an explicit test of the root node's 'compatible' or 'model' properties to decide on the right primary bus. I will be, I'm not going to wait on having some device tree spec

Re: [PATCH] [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port

2007-09-11 Thread David Gibson
On Tue, Sep 11, 2007 at 10:35:01PM -0500, Kumar Gala wrote: On Sep 11, 2007, at 10:00 PM, David Gibson wrote: On Tue, Sep 11, 2007 at 12:59:22PM -0500, Kumar Gala wrote: On Sep 11, 2007, at 12:48 PM, Scott Wood wrote: Olof Johansson wrote: On Tue, Sep 11, 2007 at 12:21:30PM -0500,

Whitespace changes to define_machine(mpc885_ads).

2007-09-11 Thread Tony Breeds
Make the define_machine() block for mpc885_ads more greppable and consistent with other examples in tree. Signed-off-by: Tony Breeds [EMAIL PROTECTED] --- arch/powerpc/platforms/8xx/mpc885ads_setup.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) Index:

[PATCH 01/10] x86: remove x86_cpu_to_log_apicid array (v3)

2007-09-11 Thread travis
This is a copy of an older patch that is in rc3-mm1. It's needed to allow the remaining patches to integrate correctly. Signed-off-by: Mike Travis [EMAIL PROTECTED] --- arch/x86_64/kernel/genapic.c |2 -- arch/x86_64/kernel/genapic_flat.c |1 - arch/x86_64/kernel/smpboot.c |

[PATCH 02/10] x86: fix cpu_to_node references (v3)

2007-09-11 Thread travis
Fix four instances where cpu_to_node is referenced by array instead of via the cpu_to_node macro. This is preparation to moving it to the per_cpu data area. Signed-off-by: Mike Travis [EMAIL PROTECTED] --- arch/x86_64/kernel/vsyscall.c |2 +- arch/x86_64/mm/numa.c |4 ++--

[PATCH 00/10] x86: Reduce Memory Usage and Inter-Node message traffic (v3)

2007-09-11 Thread travis
Note: This patch consolidates all the previous patches regarding the conversion of static arrays sized by NR_CPUS into per_cpu data arrays and is referenced against 2.6.23-rc6 . v1 Intro: In x86_64 and i386 architectures most arrays that are sized using NR_CPUS lay in local memory on node 0.

[PATCH 10/10] sparc64: Convert cpu_sibling_map to a per_cpu data array (v3)

2007-09-11 Thread travis
Convert cpu_sibling_map to a per_cpu cpumask_t array for the sparc64 architecture. This fixes build errors in block/blktrace.c and kernel/sched.c when CONFIG_SCHED_SMT is defined. Note: these changes have not been built nor tested. Signed-off-by: Mike Travis [EMAIL PROTECTED] ---

[PATCH 03/10] x86: Convert cpu_core_map to be a per cpu variable (v3)

2007-09-11 Thread travis
This is from an earlier message from 'Christoph Lameter': cpu_core_map is currently an array defined using NR_CPUS. This means that we overallocate since we will rarely really use maximum configured cpu. If we put the cpu_core_map into the per cpu area then it will be allocated

[PATCH 08/10] ia64: Convert cpu_sibling_map to a per_cpu data array (v3)

2007-09-11 Thread travis
Convert cpu_sibling_map to a per_cpu cpumask_t array for the ia64 architecture. This fixes build errors in block/blktrace.c and kernel/sched.c when CONFIG_SCHED_SMT is defined. There was one access to cpu_sibling_map before the per_cpu data area was created, so that step was moved to after the

[PATCH 05/10] x86: Convert x86_cpu_to_apicid to be a per cpu variable (v3)

2007-09-11 Thread travis
This patch converts the x86_cpu_to_apicid array to be a per cpu variable. This saves sizeof(apicid) * NR unused cpus. Access is mostly from startup and CPU HOTPLUG functions. MP_processor_info() is one of the functions that require access to the x86_cpu_to_apicid array before the per_cpu data

[PATCH 04/10] x86: Convert cpu_sibling_map to be a per cpu variable (v3)

2007-09-11 Thread travis
Convert cpu_sibling_map from a static array sized by NR_CPUS to a per_cpu variable. This saves sizeof(cpumask_t) * NR unused cpus. Access is mostly from startup and CPU HOTPLUG functions. Signed-off-by: Mike Travis [EMAIL PROTECTED] --- arch/i386/kernel/cpu/cpufreq/p4-clockmod.c |2 -

[PATCH 09/10] ppc64: Convert cpu_sibling_map to a per_cpu data array (v3)

2007-09-11 Thread travis
Convert cpu_sibling_map to a per_cpu cpumask_t array for the ppc64 architecture. This fixes build errors in block/blktrace.c and kernel/sched.c when CONFIG_SCHED_SMT is defined. Note: these changes have not been built nor tested. Signed-off-by: Mike Travis [EMAIL PROTECTED] ---

[PATCH 07/10] x86: acpi-use-cpu_physical_id (v3)

2007-09-11 Thread travis
This is from an earlier message from Christoph Lameter: processor_core.c currently tries to determine the apicid by special casing for IA64 and x86. The desired information is readily available via cpu_physical_id() on IA64, i386 and x86_64. Signed-off-by: Christoph

Re: [RFC/PATCH] Implement {read,update}_persistent_clock. v2

2007-09-11 Thread Tony Breeds
On Tue, Sep 11, 2007 at 09:34:13AM -0500, Milton Miller wrote: Previously we called ppc_md.get_boot_time at most once. How about moving the check for it into the if (first) block? Yup on investigatiion it looks like moving it inside the if (fist) is safe. Have you tested with a platform

Re: SYSFS: need a noncaching read

2007-09-11 Thread Robert Schwebel
On Tue, Sep 11, 2007 at 11:43:17AM +0200, Heiko Schocher wrote: I have developed a device driver and use the sysFS to export some registers to userspace. Uuuh, uggly. Don't do that. Device drivers are there to abstract things, not to play around with registers from userspace. I opened the