Re: [PATCH V2 1/6] powerpc: Move udbg_early_init() after early_init_devtree()

2011-02-07 Thread David Gibson
On Wed, Feb 02, 2011 at 06:00:25PM -0600, Dave Kleikamp wrote: On Thu, 2011-02-03 at 10:06 +1100, David Gibson wrote: On Tue, Feb 01, 2011 at 12:48:41PM -0600, Dave Kleikamp wrote: so that it can use information from the device tree. Hrm. On the other hand this means that the

Re: [PATCH V2 4/6] powerpc/44x: don't use tlbivax on AMP systems

2011-02-07 Thread David Gibson
On Thu, Feb 03, 2011 at 05:15:57PM -0600, Dave Kleikamp wrote: On Thu, 2011-02-03 at 16:03 +1100, David Gibson wrote: On Wed, Feb 02, 2011 at 05:53:59PM -0600, Dave Kleikamp wrote: On Thu, 2011-02-03 at 10:08 +1100, David Gibson wrote: On Tue, Feb 01, 2011 at 12:48:44PM -0600, Dave

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Stephen Rothwell
Hi Mark, On Mon, 7 Feb 2011 12:22:15 + Mark Brown broo...@opensource.wolfsonmicro.com wrote: diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index 2657299..99e3c52 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig @@ -1,23 +1,6 @@ config PM - bool Power

Re: [PATCH] sched: provide scheduler_ipi() callback in response to smp_send_reschedule()

2011-02-07 Thread Peter Zijlstra
On Mon, 2011-02-07 at 10:26 +1100, Benjamin Herrenschmidt wrote: You missed: diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 9813605..467d122 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -98,6 +98,7 @@ void smp_message_recv(int msg)

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Mark Brown
On Tue, Feb 08, 2011 at 01:13:24AM +1100, Stephen Rothwell wrote: On Mon, 7 Feb 2011 12:22:15 + Mark Brown broo...@opensource.wolfsonmicro.com wrote: + bool + default y if !IA64_HP_SIM Several powerpc configs have CONFIG_PM (implicitly) disabled (e.g. the server configs), so

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Stephen Rothwell
Hi Mark, On Mon, 7 Feb 2011 14:18:29 + Mark Brown broo...@opensource.wolfsonmicro.com wrote: On Tue, Feb 08, 2011 at 01:13:24AM +1100, Stephen Rothwell wrote: On Mon, 7 Feb 2011 12:22:15 + Mark Brown broo...@opensource.wolfsonmicro.com wrote: + bool + default y if

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Mark Brown
On Tue, Feb 08, 2011 at 01:44:32AM +1100, Stephen Rothwell wrote: On Mon, 7 Feb 2011 14:18:29 + Mark Brown broo...@opensource.wolfsonmicro.com wrote: Do you mean that these systems require CONFIG_PM be turned off, or just that people tend not to turn it on? If the latter would you

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Stephen Rothwell
Hi Geert, On Mon, 7 Feb 2011 16:00:55 +0100 Geert Uytterhoeven ge...@linux-m68k.org wrote: $ git grep CONFIG_PM is not set 7cf3d73b4360e91b14326632ab1aeda4cb26308d^ -- arch/ | wc -l 256 $ 7cf3d73b4360e91b14326632ab1aeda4cb26308d is the commit that introduced savedefconfig, so that's a

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Stephen Rothwell
On Tue, 8 Feb 2011 02:10:45 +1100 Stephen Rothwell s...@canb.auug.org.au wrote: On Mon, 7 Feb 2011 16:00:55 +0100 Geert Uytterhoeven ge...@linux-m68k.org wrote: $ git grep CONFIG_PM is not set 7cf3d73b4360e91b14326632ab1aeda4cb26308d^ -- arch/ | wc -l 256 $

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Mark Brown
On Tue, Feb 08, 2011 at 02:19:16AM +1100, Stephen Rothwell wrote: At least some of the powerpc defconfigs were added with CONFIG_PM disabled. I assume that was on purpose (though it may not have been). I'd not be so sure - since it's a bool without an explicit default set Kconfig will default

Re: minimum guaranteed alignment of dma_alloc_coherent?

2011-02-07 Thread Timur Tabi
Dan Malek wrote: So, I did a little research. It appears in the case of PowerPC, the GFP_DMA can change the way the allocation operates. Since the coherent allocator works with pages of memory, in the case of a system with highmem, not using GFP_DMA could hand you a physical page out of the

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Alan Stern
On Mon, 7 Feb 2011, Mark Brown wrote: On Tue, Feb 08, 2011 at 02:19:16AM +1100, Stephen Rothwell wrote: At least some of the powerpc defconfigs were added with CONFIG_PM disabled. I assume that was on purpose (though it may not have been). I'd not be so sure - since it's a bool without

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Mark Brown
On Mon, Feb 07, 2011 at 10:36:31AM -0500, Alan Stern wrote: On Mon, 7 Feb 2011, Mark Brown wrote: I'd not be so sure - since it's a bool without an explicit default set Kconfig will default to disabling it and if anything enabling it is the option that requires special effort. This may

Re: [PATCH v3 1/4] powerpc: Removing support for 'protected-sources'

2011-02-07 Thread Meador Inge
On 02/06/2011 05:35 PM, Benjamin Herrenschmidt wrote: On Fri, 2011-02-04 at 17:25 -0600, Meador Inge wrote: In a recent thread [1,2,3] concerning device trees for AMP systems, the question of whether we really need 'protected-sources' arose. The general consensus was that a new boolean

RE: [PATCH V8 03/10] USB/ppc4xx: Add Synopsys DWC OTG CoreInterface Layer

2011-02-07 Thread Tirumala Marri
-Original Message- From: linuxppc-dev-bounces+tmarri=amcc@lists.ozlabs.org [mailto:linuxppc-dev-bounces+tmarri=amcc@lists.ozlabs.org] On Behalf Of David Laight Sent: Wednesday, January 26, 2011 8:35 AM Cc: linux-...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Subject: RE: [PATCH

RE: [PATCH V8 03/10] USB/ppc4xx: Add Synopsys DWC OTG Core Interface Layer

2011-02-07 Thread Tirumala Marri
dwc_read_reg32 is used nowhere throughout the code. One of dwc_read32 and dwc_read_reg32 should be removed IMO. There was once only dwc_read_reg32. In version 5 of your patchset I believe. Why did you add another function? AFAIK it is not correct to store pointers in u32 because they need 8 bytes

RE: [PATCH V8 04/10] USB/ppc4xx: Add Synopsys DWC OTG HCD function

2011-02-07 Thread Tirumala Marri
} dev_set_drvdata(_dev, dwc_otg_device); hcd-regs = otg_dev-base; + hcd-rsrc_start = otg_dev-phys_addr; + hcd-rsrc_len = otg_dev-base_len; hcd-self.otg_port = 1; [Marri] Sure ___ Linuxppc-dev mailing list

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Rafael J. Wysocki
On Monday, February 07, 2011, Mark Brown wrote: On Mon, Feb 07, 2011 at 10:36:31AM -0500, Alan Stern wrote: On Mon, 7 Feb 2011, Mark Brown wrote: I'd not be so sure - since it's a bool without an explicit default set Kconfig will default to disabling it and if anything enabling it is

Re: [PATCH 21/23] hvc_console: Fix race between hvc_close and hvc_remove

2011-02-07 Thread Anton Blanchard
Hi, From: Amit Shah amit.s...@redhat.com commit e74d098c66543d0731de62eb747ccd5b636a6f4c upstream. Alan pointed out a race in the code where hvc_remove is invoked. The recent virtio_console work is the first user of hvc_remove(). I faintly remember this bug caused boot issues and the

Re: [PATCH v2 3/3] powerpc: Add IO event interrupt support

2011-02-07 Thread Tseng-Hui (Frank) Lin
On Mon, 2011-02-07 at 16:10 +1100, Benjamin Herrenschmidt wrote: On Wed, 2011-01-05 at 16:44 -0600, Tseng-Hui (Frank) Lin wrote: This patch adds support for handling IO Event interrupts which come through at the /event-sources/ibm,io-events device tree node. .../... The previous

Re: [PATCH v3 1/4] powerpc: Removing support for 'protected-sources'

2011-02-07 Thread Benjamin Herrenschmidt
In my previous reply I said that it is not so much as a need as it is a potential simplification. After further reflection, I don't think that is completely true. As we get into AMP systems with higher core counts, then implementing this functionality using the existing

Re: [PATCH v2 3/3] powerpc: Add IO event interrupt support

2011-02-07 Thread Benjamin Herrenschmidt
On Mon, 2011-02-07 at 15:40 -0600, Tseng-Hui (Frank) Lin wrote: We are -really- re-inventing interrupts and/or notifiers here, which I find a tad annoying.. Agree. This is ugly. We could have just used the regular interrupt mechanism if the firmware didn't use shared rtas call and

Re: [PATCH 21/23] hvc_console: Fix race between hvc_close and hvc_remove

2011-02-07 Thread Willy Tarreau
Hi Anton, On Tue, Feb 08, 2011 at 08:16:00AM +1100, Anton Blanchard wrote: Hi, From: Amit Shah amit.s...@redhat.com commit e74d098c66543d0731de62eb747ccd5b636a6f4c upstream. Alan pointed out a race in the code where hvc_remove is invoked. The recent virtio_console work is the

[PATCH V9 00/10] Add-Synopsys-DesignWare-HS-USB-OTG-driver

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com v9: 1. Move the source under usb/otg/dwc. 2. Rename the source files with out dwc_otg prefix. 3. Remove unused read/write modify functions. 4. Including changes related to register base print. v8: 1. Add set_wedge to usb_ep_ops. Tirumala Marri (10):

[PATCH 01/10] USB/ppc4xx: Add Synopsys DWC OTG Register definitions

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Add Synopsys Design Ware core register definitions. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/otg/dwc/regs.h | 1325

[PATCH 02/10] USB/ppc4xx: Add Synopsys DWC OTG driver framework

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Platform probing is in dwc_otg_apmppc.c. Driver parameter and parameter checking are in dwc_otg_param.c. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com ---

[PATCH 05/10] USB/ppc4xx: Add Synopsys DWC OTG HCD interrupt function

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Implements DWC OTG USB HCD interrupt service routine. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/otg/dwc/hcd_intr.c | 1477

[PATCH 06/10] USB/ppc4xx: Add Synopsys DWC OTG HCD queue function

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Implements functions to manage Queue Heads and Queue Transfer Descriptors of DWC USB OTG Controller. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com ---

[PATCH 07/10] USB/ppc4xx: Add Synopsys DWC OTG PCD function

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com The PCD is responsible for translating requests from the gadget driver to appropriate actions on the DWC OTG controller. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com ---

[PATCH 09/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Enable gadget support Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/gadget/Kconfig| 22 ++ drivers/usb/gadget/gadget_chips.h

[PATCH 10/10] USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Add Synopsys DesignWare HS USB OTG driver kernel configuration. Synopsys OTG driver may operate in host only, device only, or OTG mode. The driver also allows user configure the core to use its internal DMA or Slave (PIO) mode. Signed-off-by: Tirumala R Marri

RE: [PATCH 10/10] USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

2011-02-07 Thread Tirumala Marri
Please ignore all my previous emails. That was wrong set. -Original Message- From: tma...@apm.com [mailto:tma...@apm.com] Sent: Monday, February 07, 2011 2:49 PM To: linux-...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Cc: g...@kroah.com; tma...@apm.com; Fushen Chen; Mark Miesfeld

[PATCH V9 00/10] Add-Synopsys-DesignWare-HS-USB-OTG-driver

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com v9: 1. Move the source under usb/otg/dwc. 2. Rename the source files with out dwc_otg prefix. 3. Remove unused read/write modify functions. 4. Including changes related to register base print. v8: 1. Add set_wedge to usb_ep_ops. Tirumala Marri (10):

[PATCH V9 01/10] USB/ppc4xx: Add Synopsys DWC OTG Register definitions

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Add Synopsys Design Ware core register definitions. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/otg/dwc/regs.h | 1325

[PATCH V9 02/10] USB/ppc4xx: Add Synopsys DWC OTG driver framework

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Platform probing is in dwc_otg_apmppc.c. Driver parameter and parameter checking are in dwc_otg_param.c. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com ---

[PATCH V9 05/10] USB/ppc4xx: Add Synopsys DWC OTG HCD interrupt function

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Implements DWC OTG USB HCD interrupt service routine. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/otg/dwc/hcd_intr.c | 1477

[PATCH V9 06/10] USB/ppc4xx: Add Synopsys DWC OTG HCD queue function

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Implements functions to manage Queue Heads and Queue Transfer Descriptors of DWC USB OTG Controller. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com ---

[PATCH V9 07/10] USB/ppc4xx: Add Synopsys DWC OTG PCD function

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com The PCD is responsible for translating requests from the gadget driver to appropriate actions on the DWC OTG controller. Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com ---

[PATCH V9 09/10] USB/ppc4xx:Synopsys DWC OTG driver enable gadget support

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Enable gadget support Signed-off-by: Tirumala R Marri tma...@apm.com Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/gadget/Kconfig| 22 ++ drivers/usb/gadget/gadget_chips.h

[PATCH V9 10/10] USB ppc4xx: Add Synopsys DWC OTG driver kernel configuration and Makefile

2011-02-07 Thread tmarri
From: Tirumala Marri tma...@apm.com Add Synopsys DesignWare HS USB OTG driver kernel configuration. Synopsys OTG driver may operate in host only, device only, or OTG mode. The driver also allows user configure the core to use its internal DMA or Slave (PIO) mode. Signed-off-by: Tirumala R Marri

[PATCH] ppc: add dynamic dma window support

2011-02-07 Thread Nishanth Aravamudan
If firmware allows us to map all of a partition's memory for DMA on a particular bridge, create a 1:1 mapping of that memory. Add hooks for dealing with hotplug events. Dyanmic DMA windows can use larger than the default page size, and we use the largest one possible. Signed-off-by: Nishanth

[PATCH 1/2] misc: add CARMA DATA-FPGA Access Driver

2011-02-07 Thread Ira W. Snyder
This driver allows userspace to access the data processing FPGAs on the OVRO CARMA board. It has two modes of operation: 1) random access This allows users to poke any DATA-FPGA registers by using mmap to map the address region directly into their memory map. 2) correlation dumping When

[PATCH 2/2] misc: add CARMA DATA-FPGA Programmer support

2011-02-07 Thread Ira W. Snyder
This adds support for programming the data processing FPGAs on the OVRO CARMA board. These FPGAs have a special programming sequence that requires that we program the Freescale DMA engine, which is only available inside the kernel. Signed-off-by: Ira W. Snyder i...@ovro.caltech.edu ---

Re: [PATCH V9 02/10] USB/ppc4xx: Add Synopsys DWC OTG driver framework

2011-02-07 Thread Alexander Gordeev
В Mon, 7 Feb 2011 14:53:40 -0800 tma...@apm.com пишет: From: Tirumala Marri tma...@apm.com Platform probing is in dwc_otg_apmppc.c. Driver parameter and parameter checking are in dwc_otg_param.c. You renamed all files but old names are still used here. Signed-off-by: Tirumala R Marri

Re: [PATCH V8 03/10] USB/ppc4xx: Add Synopsys DWC OTG Core Interface Layer

2011-02-07 Thread Alexander Gordeev
В Mon, 7 Feb 2011 10:53:25 -0800 Tirumala Marri tma...@apm.com пишет: dwc_read_reg32 is used nowhere throughout the code. One of dwc_read32 and dwc_read_reg32 should be removed IMO. There was once only dwc_read_reg32. In version 5 of your patchset I believe. Why did you add another function?

Re: [PATCH v3 1/4] powerpc: Removing support for 'protected-sources'

2011-02-07 Thread Meador Inge
On 02/07/2011 03:45 PM, Benjamin Herrenschmidt wrote: In my previous reply I said that it is not so much as a need as it is a potential simplification. After further reflection, I don't think that is completely true. As we get into AMP systems with higher core counts, then implementing this

Re: [PATCH] PM: Hide CONFIG_PM from users

2011-02-07 Thread Ray Lee
On Mon, Feb 7, 2011 at 7:49 AM, Mark Brown broo...@opensource.wolfsonmicro.com wrote: I'm rather hoping that they'll notice the mailing list thread or that someone else who knows what's going on with them does Surely you're joking. I mean, do _you_ scan every message that comes through lkml and

Re: [PATCH V8 03/10] USB/ppc4xx: Add Synopsys DWC OTG Core Interface Layer

2011-02-07 Thread Greg KH
On Tue, Feb 08, 2011 at 03:19:25AM +0300, Alexander Gordeev wrote: В Mon, 7 Feb 2011 10:53:25 -0800 Tirumala Marri tma...@apm.com пишет: dwc_read_reg32 is used nowhere throughout the code. One of dwc_read32 and dwc_read_reg32 should be removed IMO. There was once only dwc_read_reg32. In

Re: [PATCH 5/6] ftrace, powerpc: Implement raw syscall tracepoints on PowerPC

2011-02-07 Thread Steven Rostedt
Ben, How do you want to work this? Do you want to ack it and I take this patch with the others through the tracing tree, or do you want to wait till the tracing tree gets updated into mainline and then pull this in though the ppc tree. As this touches a bit of the ppc side. -- Steve On Thu,

Re: Question on supporting multiple HW versions with a single driver (warning: long post)

2011-02-07 Thread David Gibson
On Wed, Feb 02, 2011 at 01:57:13PM -0800, bruce_leon...@selinc.com wrote: So this is sort of a follow on question to one I posted a month ago about trying to get a PCI driver to work with OF (which I think I more or less understood the answer to). I'm encountering a different sort of problem

Re: PowerPC, ftrace: Add PPC raw syscall tracepoints ftrace fixes (mimimal subset only) v4

2011-02-07 Thread Steven Rostedt
On Thu, 2011-02-03 at 14:27 +1100, Ian Munsie wrote: Hi All, This is a partial version of my 'ftrace syscalls, PowerPC: Various fixes, Compat Syscall support and PowerPC implementation'. This is updated from yesterday with arch_syscall_addr changed to a static inline function from Steven's

Re: Question on supporting multiple HW versions with a single driver (warning: long post)

2011-02-07 Thread Bruce_Leonard
There are a number of drivers which already have this sort of dual bus binding. Thanks for the feedback David, I appreciate it. Could you point me to one of those drivers that has this sort of dual bus binding so can see an example of what I'm trying to do? Bruce

RE: [PATCH][v1] RTC driver(Linux) for PT7C4338 chip.

2011-02-07 Thread Jain Priyanka-B32167
Hi, Please review and acknowledge this patch. Regards Priyanka -Original Message- From: Jain Priyanka-B32167 Sent: Monday, November 22, 2010 9:24 AM To: 'Alessandro Zummo' Cc: 'rtc-li...@googlegroups.com' Subject: FW: [PATCH][v1] RTC driver(Linux) for PT7C4338 chip. Hi,

Re: Question on supporting multiple HW versions with a single driver (warning: long post)

2011-02-07 Thread Bill Gatliff
Guys: I think the Silicon Motion SM501 driver might provide a useful example, since the chip comes in both memory-mapped and PCI versions. Unfortunately the chip is implemented as a multi-function driver (mfd), so the code is not un-complicated. Still fairly straightforward and well-written

Re: [PATCH 1/2] misc: add CARMA DATA-FPGA Access Driver

2011-02-07 Thread Dmitry Torokhov
Hi Ira, On Mon, Feb 07, 2011 at 03:23:40PM -0800, Ira W. Snyder wrote: This driver allows userspace to access the data processing FPGAs on the OVRO CARMA board. It has two modes of operation: 1) random access This allows users to poke any DATA-FPGA registers by using mmap to map the