[PATCH] powerpc: fix register_power_pmu() section mismatch warning

2010-05-12 Thread Albert Herranz
. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/kernel/mpc7450-pmu.c |2 +- arch/powerpc/kernel/perf_event.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/mpc7450-pmu.c b/arch/powerpc/kernel/mpc7450-pmu.c index 09d7202

[PATCH v5 01/10] swiotbl: add back swiotlb_alloc_boot()

2010-03-19 Thread Albert Herranz
0x1000 (MEM2). Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- include/linux/swiotlb.h |1 + lib/swiotlb.c | 10 -- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 8550d6b..c769939 100644

[PATCH v5 02/10] swiotlb: make swiotlb_bounce() __weak

2010-03-19 Thread Albert Herranz
buffers. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- lib/swiotlb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/swiotlb.c b/lib/swiotlb.c index ab1622a..9ce5cd2 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -328,7 +328,7 @@ EXPORT_SYMBOL_GPL

[PATCH v5 04/10] powerpc: add min_direct_dma_addr

2010-03-19 Thread Albert Herranz
console which has limitations performing DMA to memory below 0x1000 (MEM1). Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/include/asm/device.h |1 + arch/powerpc/include/asm/dma-mapping.h |2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git

[PATCH v5 05/10] USB: refactor unmap_urb_for_dma/map_urb_for_dma

2010-03-19 Thread Albert Herranz
are checked too at unmap_urb_for_dma() time to determine how to unmap the setup packet and/or the transfer buffer. The flags are cleared when the actual unmap happens. No functional change. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- drivers/usb/core/hcd.c | 211

[PATCH v5 06/10] USB: add HCD_NO_COHERENT_MEM host controller driver flag

2010-03-19 Thread Albert Herranz
, hardware descriptors are accessed in 32-bit (or 64-bit) chunks, causing no problems in the described scenario. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- drivers/usb/core/buffer.c | 29 +++-- drivers/usb/core/hcd.c| 32

[PATCH v5 03/10] powerpc: add per-device dma coherent support

2010-03-19 Thread Albert Herranz
Use the generic per-device dma coherent allocator on powerpc. This allows a driver to declare coherent memory area from where a device can allocate coherent memory chunks. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/include/asm/dma-mapping.h |1 + arch/powerpc

[PATCH v5 07/10] wii: have generic dma coherent

2010-03-19 Thread Albert Herranz
Let the Nintendo Wii gaming console use per-device dma coherent allocations. This will be used later by some of its drivers. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[PATCH v5 00/10] wii: add usb 2.0 support

2010-03-19 Thread Albert Herranz
Tomonori. - swiotlb support for the Wii is now based on top of the swiotlb-0.6 patches from Konrad Rzeszutek Wilk. - Keeps using v4 of the USB HCD_NO_COHERENT_MEM patch Alan: I think you are also working in a patchset to make {un}map_urb_for_dma remember how the urb was mapped, right? Albert

[PATCH v5 08/10] wii: add mem2 dma mapping ops

2010-03-19 Thread Albert Herranz
. Such restrictions do not apply when using the second contiguous RAM region (known as MEM2). Add a set of DMA mapping operations which said devices can use to make sure that DMA transfers are always performed to/from memory buffers within MEM2. Signed-off-by: Albert Herranz albert_herr...@yahoo.es

[PATCH v5 09/10] wii: enable swiotlb

2010-03-19 Thread Albert Herranz
Enable the use of a software IO TLB on the Nintendo Wii video game console. This is used by the platform DMA support code to overcome the limitations found in some of the devices within the Hollywood chipset. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/boot/dts

[PATCH v5 10/10] wii: hollywood ehci controller support

2010-03-19 Thread Albert Herranz
Add support for the USB Enhanced Host Controller Interface included in the Hollywood chipset of the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + drivers/usb/host/Kconfig |8

Re: [PATCH v5 00/10] wii: add usb 2.0 support

2010-03-19 Thread Albert Herranz
Alan Stern wrote: Alan: I think you are also working in a patchset to make {un}map_urb_for_dma remember how the urb was mapped, right? Yes; you can see an initial version here: http://marc.info/?l=linux-usbm=126901183419219w=2 This is a bug fix, so it's likely to be merged before

Re: [PATCH v5 08/10] wii: add mem2 dma mapping ops

2010-03-19 Thread Albert Herranz
Konrad Rzeszutek Wilk wrote: +/* + * The mem2_dma device. + * + * This device owns a pool of coherent MEM2 memory that can be shared among + * several devices requiring MEM2 DMA buffers, instead of dedicating specific + * pools for each device. + * + * A device can use the shared

Re: [PATCH v5 08/10] wii: add mem2 dma mapping ops

2010-03-19 Thread Albert Herranz
Konrad Rzeszutek Wilk wrote: +int wii_set_mem2_dma_constraints(struct device *dev) +{ +struct dev_archdata *sd; + +sd = dev-archdata; +sd-max_direct_dma_addr = 0; +sd-min_direct_dma_addr = wii_hole_start + wii_hole_size; + +set_dma_ops(dev, wii_mem2_dma_ops); +

Re: [PATCH] powerpc: fix swiotlb to respect the boot option

2010-03-17 Thread Albert Herranz
boot options, mem_init (as x86 does). Signed-off-by: FUJITA Tomonori fujita.tomon...@lab.ntt.co.jp Tested-by: Becky Bruce bec...@kernel.crashing.org Thanks! Tested-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/kernel/setup_32.c |6 -- arch/powerpc/kernel/setup_64.c

Re: [PATCH v4 04/11] swiotlb: support NOT_COHERENT_CACHE PowerPC platforms

2010-03-16 Thread Albert Herranz
FUJITA Tomonori wrote: On Fri, 12 Mar 2010 20:12:39 +0100 Albert Herranz albert_herr...@yahoo.es wrote: The current SWIOTLB code does not support NOT_COHERENT_CACHE platforms. This patch adds support for NOT_COHERENT_CACHE platforms to SWIOTLB by adding two platform specific functions

Re: [PATCH v4 04/11] swiotlb: support NOT_COHERENT_CACHE PowerPC platforms

2010-03-16 Thread Albert Herranz
FUJITA Tomonori wrote: If we want to make swiotlb generic (make on any architectures), we need to handle more cache issues here, I think. So it's better to have more generic ways instead of adding hooks to some archs. Ok. So what would be an acceptable way of handling this in a generic way?

Re: [PATCH v4 05/11] swiotlb: add swiotlb_set_default_size()

2010-03-15 Thread Albert Herranz
FUJITA Tomonori wrote: On Fri, 12 Mar 2010 20:12:40 +0100 Albert Herranz albert_herr...@yahoo.es wrote: The current SWIOTLB code uses a default of 64MB for the IO TLB area. This size can be influenced using a kernel command line parameter swiotlb. Unfortunately, the parsing of the kernel

[PATCH v4 02/11] powerpc: add min_direct_dma_addr

2010-03-12 Thread Albert Herranz
console which has limitations performing DMA to memory below 0x1000 (MEM1). Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/include/asm/device.h |1 + arch/powerpc/include/asm/dma-mapping.h |2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git

[PATCH v4 01/11] powerpc: add per-device dma coherent support

2010-03-12 Thread Albert Herranz
Use the generic per-device dma coherent allocator on powerpc. This allows a driver to declare coherent memory area from where a device can allocate coherent memory chunks. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/include/asm/dma-mapping.h |1 + arch/powerpc

[PATCH v4 00/11] wii: add usb 2.0 support

2010-03-12 Thread Albert Herranz
HCD_NO_COHERENT_MEM patch Albert Herranz (11): powerpc: add per-device dma coherent support powerpc: add min_direct_dma_addr swiotbl: add back swiotlb_alloc_boot() swiotlb: support NOT_COHERENT_CACHE PowerPC platforms swiotlb: add swiotlb_set_default_size() USB: refactor unmap_urb_for_dma

[PATCH v4 03/11] swiotbl: add back swiotlb_alloc_boot()

2010-03-12 Thread Albert Herranz
0x1000 (MEM2). CC: linuxppc-dev@lists.ozlabs.org CC: linux-ker...@vger.kernel.org CC: x...@kernel.org CC: linux-i...@vger.kernel.org Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- include/linux/swiotlb.h |2 ++ lib/swiotlb.c | 10 -- 2 files changed, 10

[PATCH v4 05/11] swiotlb: add swiotlb_set_default_size()

2010-03-12 Thread Albert Herranz
...@vger.kernel.org CC: x...@kernel.org CC: linux-i...@vger.kernel.org Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- include/linux/swiotlb.h |2 ++ lib/swiotlb.c | 20 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/include/linux

[PATCH v4 06/11] USB: refactor unmap_urb_for_dma/map_urb_for_dma

2010-03-12 Thread Albert Herranz
are checked too at unmap_urb_for_dma() time to determine how to unmap the setup packet and/or the transfer buffer. The flags are cleared when the actual unmap happens. No functional change. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- drivers/usb/core/hcd.c | 211

[PATCH v4 04/11] swiotlb: support NOT_COHERENT_CACHE PowerPC platforms

2010-03-12 Thread Albert Herranz
...@vger.kernel.org CC: x...@kernel.org CC: linux-i...@vger.kernel.org Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/ia64/include/asm/swiotlb.h| 10 ++ arch/powerpc/include/asm/swiotlb.h |3 +++ arch/x86/include/asm/swiotlb.h | 10 ++ lib/swiotlb.c

[PATCH v4 07/11] USB: add HCD_NO_COHERENT_MEM host controller driver flag

2010-03-12 Thread Albert Herranz
, hardware descriptors are accessed in 32-bit (or 64-bit) chunks, causing no problems in the described scenario. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- drivers/usb/core/buffer.c | 29 +++-- drivers/usb/core/hcd.c| 32

[PATCH v4 08/11] wii: have generic dma coherent

2010-03-12 Thread Albert Herranz
Let the Nintendo Wii gaming console use per-device dma coherent allocations. This will be used later by some of its drivers. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[PATCH v4 09/11] wii: add mem2 dma mapping ops

2010-03-12 Thread Albert Herranz
. Such restrictions do not apply when using the second contiguous RAM region (known as MEM2). Add a set of DMA mapping operations which said devices can use to make sure that DMA transfers are always performed to/from memory buffers within MEM2. Signed-off-by: Albert Herranz albert_herr...@yahoo.es

[PATCH v4 10/11] wii: enable swiotlb

2010-03-12 Thread Albert Herranz
Enable the use of a software IO TLB on the Nintendo Wii video game console. This is used by the platform DMA support code to overcome the limitations found in some of the devices within the Hollywood chipset. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms

[PATCH v4 11/11] wii: hollywood ehci controller support

2010-03-12 Thread Albert Herranz
Add support for the USB Enhanced Host Controller Interface included in the Hollywood chipset of the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + drivers/usb/host/Kconfig |8

Re: [LKML] [RFC PATCH v3 04/11] swiotlb: support NOT_COHERENT_CACHE PowerPC platforms

2010-03-09 Thread Albert Herranz
Konrad Rzeszutek Wilk wrote: Hey Albert, I've been doing some posting in this area to split the physical / bus address translation so that multiple platforms can utilize it. I was wondering if it makes sense to utilize some of those concepts (ie, extend it for DMA coherency) for your code:

Re: [LKML] [RFC PATCH v3 05/11] swiotlb: add swiotlb_set_default_size()

2010-03-09 Thread Albert Herranz
Konrad Rzeszutek Wilk wrote: On Sun, Mar 07, 2010 at 01:11:46PM +0100, Albert Herranz wrote: The current SWIOTLB code uses a default of 64MB for the IO TLB area. This size can be influenced using a kernel command line parameter swiotlb. Unfortunately, the parsing of the kernel command line

[RFC PATCH v3 00/11] wii: add usb 2.0 support

2010-03-07 Thread Albert Herranz
platforms - use SWIOTLB instead of dmabounce to implement Wii MEM2 dma ops - use v4 of the USB HCD_NO_COHERENT_MEM patch Albert Herranz (11): powerpc: add per-device dma coherent support powerpc: add min_direct_dma_addr swiotbl: add back swiotlb_alloc_boot() swiotlb: support

[RFC PATCH v3 01/11] powerpc: add per-device dma coherent support

2010-03-07 Thread Albert Herranz
Use the generic per-device dma coherent allocator on powerpc. This allows a driver to declare coherent memory area from where a device can allocate coherent memory chunks. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/include/asm/dma-mapping.h |1 + arch/powerpc

[RFC PATCH v3 03/11] swiotbl: add back swiotlb_alloc_boot()

2010-03-07 Thread Albert Herranz
0x1000 (MEM2). Signed-off-by: Albert Herranz albert_herr...@yahoo.es CC: linuxppc-dev@lists.ozlabs.org CC: linux-ker...@vger.kernel.org CC: x...@kernel.org CC: linux-i...@vger.kernel.org --- include/linux/swiotlb.h |2 ++ lib/swiotlb.c | 10 -- 2 files changed, 10

[RFC PATCH v3 04/11] swiotlb: support NOT_COHERENT_CACHE PowerPC platforms

2010-03-07 Thread Albert Herranz
these functions are mapped to their corresponding __dma_sync_page() and __dma_sync() functions. On other architectures using SWIOTLB these functions are optimized out. This will be used later to support SWIOTLB on the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr

[RFC PATCH v3 05/11] swiotlb: add swiotlb_set_default_size()

2010-03-07 Thread Albert Herranz
swiotlb_set_default_size() which can be used before swiotlb_init() to indicate the desired IO TLB area size in bytes. This will be used later to implement a smaller IO TLB on the Nintendo Wii video game console which just comes with 24MB + 64MB of RAM. Signed-off-by: Albert Herranz albert_herr

[RFC PATCH v3 06/11] USB: refactor unmap_urb_for_dma/map_urb_for_dma

2010-03-07 Thread Albert Herranz
are checked too at unmap_urb_for_dma() time to determine how to unmap the setup packet and/or the transfer buffer. The flags are cleared when the actual unmap happens. No functional change. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- drivers/usb/core/hcd.c | 211

[RFC PATCH v3 09/11] wii: add mem2 dma mapping ops

2010-03-07 Thread Albert Herranz
. Such restrictions do not apply when using the second contiguous RAM region (known as MEM2). Add a set of DMA mapping operations which said devices can use to make sure that DMA transfers are always performed to/from memory buffers within MEM2. Signed-off-by: Albert Herranz albert_herr...@yahoo.es

[RFC PATCH v3 10/11] wii: enable swiotlb

2010-03-07 Thread Albert Herranz
Enable the use of a software IO TLB on the Nintendo Wii video game console. This is used by the platform DMA support code to overcome the limitations found in some of the devices within the Hollywood chipset. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms

[RFC PATCH v3 07/11] USB: add HCD_NO_COHERENT_MEM host controller driver flag

2010-03-07 Thread Albert Herranz
, hardware descriptors are accessed in 32-bit (or 64-bit) chunks, causing no problems in the described scenario. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- drivers/usb/core/buffer.c | 29 +++-- drivers/usb/core/hcd.c| 32

[RFC PATCH v3 08/11] wii: have generic dma coherent

2010-03-07 Thread Albert Herranz
Let the Nintendo Wii gaming console use per-device dma coherent allocations. This will be used later by some of its drivers. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[RFC PATCH v3 11/11] wii: hollywood ehci controller support

2010-03-07 Thread Albert Herranz
Add support for the USB Enhanced Host Controller Interface included in the Hollywood chipset of the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + drivers/usb/host/Kconfig |8

Re: [RFC PATCH v2 8/9] USB: add HCD_NO_COHERENT_MEM host controller driver flag

2010-03-02 Thread Albert Herranz
Alan Stern wrote: On Mon, 1 Mar 2010, Albert Herranz wrote: If transfer_buffer_length is 0 then do nothing. Otherwise if num_sgs 0 then do nothing. Otherwise if URB_NO_TRANSFER_DMA_MAP and transfer_dma are both set (this avoids your HCD_NO_COHERENT_MEM

Re: [RFC PATCH v2 8/9] USB: add HCD_NO_COHERENT_MEM host controller driver flag

2010-03-01 Thread Albert Herranz
Alan Stern wrote: --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -1260,6 +1260,34 @@ static void hcd_free_coherent(struct usb_bus *bus, dma_addr_t *dma_handle, *dma_handle = 0; } +static int urb_needs_setup_dma_map(struct usb_hcd *hcd, struct urb *urb) +{ +

Re: [RFC PATCH v2 8/9] USB: add HCD_NO_COHERENT_MEM host controller driver flag

2010-03-01 Thread Albert Herranz
Alan Stern wrote: If urb-num_sgs 0 then urb has been s-g mapped. Although we don't currently check for it, quite a few URBs have transfer_buffer_length == 0 (a number of control requests are like this, for example) so they don't need a mapping either. Ok, I'll use urb-num_sgs 0 to check

Re: [RFC PATCH v2 8/9] USB: add HCD_NO_COHERENT_MEM host controller driver flag

2010-03-01 Thread Albert Herranz
Alan Stern wrote: On Mon, 1 Mar 2010, Albert Herranz wrote: Am I on the right path? More or less. I would do it somewhat differently: If URB_NO_TRANSFER_DMA_MAP is set then no map is needed. Otherwise if num_sgs 0 then no map is needed. Otherwise if HCD_NO_COHERENT_MEM

[RFC PATCH v2 1/9] powerpc: add per-device dma coherent support

2010-02-28 Thread Albert Herranz
Use the generic per-device dma coherent allocator on powerpc. This allows a driver to declare coherent memory area from where a device can allocate coherent memory chunks. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/include/asm/dma-mapping.h |1 + arch/powerpc

[RFC PATCH v2 0/9] wii: add usb 2.0 support

2010-02-28 Thread Albert Herranz
controller use HCD_NO_COHERENT_MEM and honor MEM2 DMA constraints to solve the platform restrictions accessing coherent memory. Albert Herranz (9): powerpc: add per-device dma coherent support wii: have generic dma coherent dma-coherent: fix bitmap access races add generic dmabounce support

[RFC PATCH v2 2/9] wii: have generic dma coherent

2010-02-28 Thread Albert Herranz
Let the Nintendo Wii gaming console use per-device dma coherent allocations. This will be used later by some of its drivers. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[RFC PATCH v2 3/9] dma-coherent: fix bitmap access races

2010-02-28 Thread Albert Herranz
for streaming DMA mappings/unmappings via bounce buffers. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- drivers/base/dma-coherent.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/base/dma-coherent.c b/drivers/base/dma-coherent.c index 962a3b5

[RFC PATCH v2 4/9] add generic dmabounce support

2010-02-28 Thread Albert Herranz
DMA memory access restrictions on the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/Kconfig |3 + include/linux/dmabounce.h | 77 + lib/Kconfig | 10 ++ lib/Makefile |2 + lib/dmabounce.c

[RFC PATCH v2 5/9] arm: use generic dmabounce support

2010-02-28 Thread Albert Herranz
Update ARM dmabounce to use the generic dmabounce support. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/arm/Kconfig |4 +- arch/arm/common/Kconfig |6 +- arch/arm/common/dmabounce.c | 376 +++- arch/arm/include

[RFC PATCH v2 9/9] wii: hollywood ehci controller support

2010-02-28 Thread Albert Herranz
Add support for the USB Enhanced Host Controller Interface included in the Hollywood chipset of the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + drivers/usb/host/Kconfig |8

Re: [RFC PATCH v2 4/9] add generic dmabounce support

2010-02-28 Thread Albert Herranz
Russell King - ARM Linux wrote: On Sun, Feb 28, 2010 at 03:07:57PM +0100, Albert Herranz wrote: This patch makes part of the ARM dmabounce code available to other architectures as a generic API. There is already a generic dma bounce implementation - it's called swiotlb - lib/swiotlb.c. We

Re: [RFC PATCH 1/2] USB: add HCD_BOUNCE_BUFFERS host controller driver flag

2010-02-07 Thread Albert Herranz
Alan Stern wrote: On a 64-bit processor, some of the accesses will be 64 bits wide instead of 32. Does that matter for your purposes? The wii uses a 32-bit processor, so this is safe in this case. What about ohci-hcd and uhci-hcd? They both use non-32-bit accesses to structures in coherent

Re: [RFC PATCH 1/2] USB: add HCD_BOUNCE_BUFFERS host controller driver flag

2010-02-07 Thread Albert Herranz
Alan Stern wrote: On Sun, 7 Feb 2010, Albert Herranz wrote: The wii has no uhci, but has 2 ohci controllers. For ohci we need a similar approach as done for ehci. So you'll need to write a patch splitting up the OHCI data structures in the same way the EHCI qh was split up. Yes

Re: [RFC PATCH 1/2] USB: add HCD_BOUNCE_BUFFERS host controller driver flag

2010-02-04 Thread Albert Herranz
Hi Alan, Alan Stern wrote: This description sounds hopelessly confused. Maybe you're just misusing the term coherent. The patch itself doesn't affect the coherent DMA mappings anyway; it affects the streaming mappings. Or to put it another way, what's the justification for replacing a call

[RFC PATCH 0/2] wii: add usb 2.0 support

2010-02-03 Thread Albert Herranz
The following patch series adds USB 2.0 support for the Wii powerpc platform via the EHCI controller present in the Hollywood chipset of the video game console. Albert Herranz (2): USB: add HCD_BOUNCE_BUFFERS host controller driver flag wii: hollywood ehci controller support arch/powerpc

[RFC PATCH 1/2] USB: add HCD_BOUNCE_BUFFERS host controller driver flag

2010-02-03 Thread Albert Herranz
drivers. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- drivers/usb/core/hcd.c | 337 +++ drivers/usb/core/hcd.h | 13 +- 2 files changed, 286 insertions(+), 64 deletions(-) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index

[RFC PATCH 2/2] wii: hollywood ehci controller support

2010-02-03 Thread Albert Herranz
Add support for the USB Enhanced Host Controller Interface included in the Hollywood chipset of the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig |1 + drivers/usb/host/Kconfig |8

[PATCH v2.6.33] powerpc: flipper-pic/hlwd-pic: remove get_irq_desc()

2009-12-18 Thread Albert Herranz
-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/flipper-pic.c |2 +- arch/powerpc/platforms/embedded6xx/hlwd-pic.c|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx/flipper-pic.c b/arch/powerpc/platforms

[PATCH v2.6.33] powerpc: hlwd-pic: convert irq_desc.lock to raw_spinlock

2009-12-18 Thread Albert Herranz
incompatible pointer type These failures are caused by the changes introduced in commit genirq: Convert irq_desc.lock to raw_spinlock. The reason this driver was not updated is that it wasn't merged yet. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/hlwd

[PATCH] powerpc: gamecube/wii: fix off-by-one error in ugecon/usbgecko_udbg

2009-12-17 Thread Albert Herranz
Leppanen juha_motorsport...@luukku.com Signed-off-by: Juha Leppanen juha_motorsport...@luukku.com Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/boot/ugecon.c |2 +- arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c |2 +- 2 files changed, 2

Re: [RFC PATCH v2 0/6] powerpc: nintendo wii support

2009-12-12 Thread Albert Herranz
Grant Likely wrote: On Fri, Dec 11, 2009 at 5:18 PM, Albert Herranz albert_herr...@yahoo.es wrote: Grant Likely wrote: Hi Albert. Hi, I'm ready to pick up your Gamecube and Wii patch sets for merging. You seem to have 4 distinct patch sets. What order do they need to be applied

[PATCH v2 00/22] powerpc: nintendo gamecube and wii support

2009-12-12 Thread Albert Herranz
support - platform support The Nintendo Wii patches also include support for: - recognition of the broadway processor - workarounds to enable the use of the second discontiguous RAM block With these patches both video game consoles can fully boot up to the root filesystem mount phase. Albert Herranz

[PATCH v2 02/22] powerpc: gamecube: device tree

2009-12-12 Thread Albert Herranz
Add a device tree source file for the Nintendo GameCube video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Segher Boessenkool seg...@kernel.crashing.org --- .../powerpc/dts-bindings/nintendo/gamecube.txt | 109 +++ arch/powerpc/boot/dts

[PATCH v2 01/22] powerpc: gamecube/wii: usbgecko bootwrapper console support

2009-12-12 Thread Albert Herranz
Add support for using the USB Gecko adapter as a bootwrapper console on the Nintendo GameCube and Wii video game consoles. The USB Gecko is a 3rd party memory card interface adapter that provides a EXI (External Interface) to USB serial converter. Signed-off-by: Albert Herranz albert_herr

[PATCH v2 03/22] powerpc: gamecube: bootwrapper bits

2009-12-12 Thread Albert Herranz
Add support for the Nintendo GameCube video game console to the powerpc bootwrapper. dtbImage.gamecube is a wrapped image that contains a flat device tree, an entry point compatible with SDload, and an optional initrd. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Segher

[PATCH v2 04/22] powerpc: gamecube/wii: introduce GAMECUBE_COMMON

2009-12-12 Thread Albert Herranz
Add a config option GAMECUBE_COMMON to be used as a dependency for all options common to the Nintendo GameCube and Wii video game consoles. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Grant Likely grant.lik...@secretlab.ca --- arch/powerpc/platforms/embedded6xx/Kconfig |4

[PATCH v2 05/22] powerpc: gamecube/wii: declare as non-coherent platforms

2009-12-12 Thread Albert Herranz
The processors bundled in the Nintendo GameCube and Wii video game consoles require explicit cache handling when DMA engines are used. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/Kconfig.cputype |2 +- 1 files changed, 1 insertions(+), 1 deletions

[PATCH v2 06/22] powerpc: gamecube/wii: do not include PCI support

2009-12-12 Thread Albert Herranz
The Nintendo GameCube and Wii video game consoles do not have PCI hardware. Avoid wasting their scarce memory by not including PCI support into the kernel. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Grant Likely grant.lik...@secretlab.ca --- arch/powerpc/Kconfig |2 +- 1

[PATCH v2 07/22] powerpc: gamecube/wii: udbg support for usbgecko

2009-12-12 Thread Albert Herranz
Add support for using the USB Gecko adapter via the udbg facility on the Nintendo GameCube and Wii video game consoles. The USB Gecko is a 3rd party memory card interface adapter that provides a EXI (External Interface) to USB serial converter. Signed-off-by: Albert Herranz albert_herr

[PATCH v2 08/22] powerpc: gamecube/wii: flipper interrupt controller support

2009-12-12 Thread Albert Herranz
Add support for the interrupt controller included in the Flipper chipset of the Nintendo GameCube video game console. The same interrupt controller is also present in the Hollywood chipset of the Nintendo Wii. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Segher Boessenkool seg

[PATCH v2 09/22] powerpc: gamecube: platform support

2009-12-12 Thread Albert Herranz
Add platform support for the Nintendo GameCube video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/Kconfig|8 ++ arch/powerpc/platforms/embedded6xx/Makefile |1 + arch/powerpc/platforms/embedded6xx/gamecube.c | 118

[PATCH v2 10/22] powerpc: gamecube: default config

2009-12-12 Thread Albert Herranz
Add a default configuration for the Nintendo GameCube video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/configs/gamecube_defconfig | 1061 +++ 1 files changed, 1061 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc

[PATCH v2 11/22] powerpc: wii: device tree

2009-12-12 Thread Albert Herranz
Add a device tree source file for the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Segher Boessenkool seg...@kernel.crashing.org Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- .../powerpc/dts-bindings/nintendo/wii.txt

[PATCH v2 12/22] powerpc: wii: bootwrapper bits

2009-12-12 Thread Albert Herranz
Add support for the Nintendo Wii video game console to the powerpc bootwrapper. dtbImage.wii is a wrapped image that contains a flat device tree, an entry point compatible with the Homebrew Channel and BootMii, and an optional initrd. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked

[PATCH v2 13/22] powerpc: broadway processor support

2009-12-12 Thread Albert Herranz
This patch extends the cputable entry of the 750CL to also match the 750CL-based Broadway cpu found on the Nintendo Wii. As of this patch, the following Broadway design revision levels have been seen in the wild: - DD1.2 (87102) - DD2.0 (87200) Signed-off-by: Albert Herranz albert_herr

[PATCH v2 14/22] powerpc: wii: hollywood interrupt controller support

2009-12-12 Thread Albert Herranz
-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org Acked-by: Segher Boessenkool seg...@kernel.crashing.org --- arch/powerpc/platforms/embedded6xx/Makefile |1 + arch/powerpc/platforms/embedded6xx/hlwd-pic.c | 241

[PATCH v2 15/22] powerpc: wii: platform support

2009-12-12 Thread Albert Herranz
Add platform support for the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org Acked-by: Segher Boessenkool seg...@kernel.crashing.org --- RFC v2 - v2 - turn off blue led and ir light on boot Note

[PATCH v2 17/22] powerpc: reserve fixmap entries for early debug

2009-12-12 Thread Albert Herranz
Add a set of entries to the fixmap table to allow usage of known reserved virtual address space by early debug code. The address space reserved is the top 128K of the 32-bit address space. This allows, if required, the use of a BAT to do the mappings. Signed-off-by: Albert Herranz albert_herr

[PATCH v2 16/22] powerpc: wii: default config

2009-12-12 Thread Albert Herranz
Add a default configuration for the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- arch/powerpc/configs/wii_defconfig | 1406 1 files changed, 1406

[PATCH v2 18/22] powerpc: gamecube/wii: early debugging using usbgecko

2009-12-12 Thread Albert Herranz
Add support for using the USB Gecko adapter as an early debugging console on the Nintendo GameCube and Wii video game consoles. The USB Gecko is a 3rd party memory card interface adapter that provides a EXI (External Interface) to USB serial converter. Signed-off-by: Albert Herranz albert_herr

[PATCH v2 19/22] wii: bootwrapper: add fixup to calc useable mem2

2009-12-12 Thread Albert Herranz
determined from an in-memory header. Otherwise, a safe default is used. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- arch/powerpc/boot/wii.c | 118 +- 1 files changed, 115 insertions(+), 3

[PATCH v2 20/22] wii: use both mem1 and mem2 as ram

2009-12-12 Thread Albert Herranz
RAM and not just ~27% of it. This will no longer be needed when proper discontig memory support for 32-bit PowerPC is added to the kernel. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- RFC v2 - v2 - add __init to page_aligned

[PATCH v2 21/22] powerpc: allow ioremap within reserved memory regions

2009-12-12 Thread Albert Herranz
be needed when proper discontig memory support for 32-bit PowerPC is added to the kernel. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- arch/powerpc/mm/init_32.c|5 + arch/powerpc/mm/mmu_decl.h |1 + arch

[PATCH v2 22/22] powerpc: wii: allow ioremap within the memory hole

2009-12-12 Thread Albert Herranz
PowerPC is added to the kernel. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- arch/powerpc/platforms/embedded6xx/wii.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx

Re: [RFC PATCH v2 0/6] powerpc: nintendo wii support

2009-12-11 Thread Albert Herranz
Grant Likely wrote: Hi Albert. Hi, I'm ready to pick up your Gamecube and Wii patch sets for merging. You seem to have 4 distinct patch sets. What order do they need to be applied in, and what kernel version are they based on? The patches were based on 2.6.32-rc8. The apply order

Re: [RFC PATCH v2 3/4] powerpc: allow ioremap within reserved memory regions

2009-12-11 Thread Albert Herranz
Benjamin Herrenschmidt wrote: On Tue, 2009-12-08 at 19:43 +0100, Albert Herranz wrote: Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- v1 - v2 - use a run-time flag to allow/disallow remapping reserved regions - use

[RFC PATCH v2 1/4] wii: bootwrapper: add fixup to calc useable mem2

2009-12-08 Thread Albert Herranz
determined from an in-memory header. Otherwise, a safe default is used. Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/boot/wii.c | 118 +- 1 files changed, 115 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/boot/wii.c b/arch

[RFC PATCH v2 2/4] wii: use both mem1 and mem2 as ram

2009-12-08 Thread Albert Herranz
Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/mm/init_32.c|4 ++ arch/powerpc/mm/mmu_decl.h | 10 - arch/powerpc/mm/pgtable_32.c | 32 +-- arch/powerpc/mm/ppc_mmu_32.c |4 +- arch/powerpc

[RFC PATCH v2 3/4] powerpc: allow ioremap within reserved memory regions

2009-12-08 Thread Albert Herranz
Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- v1 - v2 - use a run-time flag to allow/disallow remapping reserved regions - use lmbs to determine reserved regions arch/powerpc/mm/init_32.c|5 + arch/powerpc/mm/mmu_decl.h |1 + arch/powerpc/mm/pgtable_32.c |4

[RFC PATCH v2 4/4] powerpc: wii: allow ioremap within the memory hole

2009-12-08 Thread Albert Herranz
Signed-off-by: Albert Herranz albert_herr...@yahoo.es --- arch/powerpc/platforms/embedded6xx/wii.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c index 5eaed86..0df8a91 100644

Re: [RFC PATCH v4 2/2] powerpc: gamecube/wii: early debugging using usbgecko

2009-12-04 Thread Albert Herranz
Segher Boessenkool wrote: +#ifdef CONFIG_PPC_EARLY_DEBUG_USBGECKO +setup_usbgecko_bat: +/* prepare a BAT for early io */ +#if defined(CONFIG_GAMECUBE) +lisr8, 0x0c00 +#elif defined(CONFIG_WII) +lisr8, 0x0d00 +#else +#error Invalid platform for USB Gecko based early

Re: [RFC PATCH v2 1/6] powerpc: wii: device tree

2009-12-04 Thread Albert Herranz
Segher Boessenkool wrote: Add a device tree source file for the Nintendo Wii video game console. Signed-off-by: Albert Herranz albert_herr...@yahoo.es Acked-by: Segher Boessenkool seg...@kernel.crashing.org Great work Albert! Thanks! Cheers, Albert

[RFC PATCH v4 1/2] powerpc: reserve fixmap entries for early debug

2009-12-03 Thread Albert Herranz
Add a set of entries to the fixmap table to allow usage of known reserved virtual address space by early debug code. The address space reserved is the top 128K of the 32-bit address space. This allows, if required, the use of a BAT to do the mappings. Signed-off-by: Albert Herranz albert_herr

[RFC PATCH v4 0/2] rework of usbgecko-based early debug

2009-12-03 Thread Albert Herranz
This is v4 of the early debugging using usbgecko patch. It tries to implement the ideas suggested by Benjamin Herrenschmidt regarding the use of a set of fixmap entries to provide safe virtual address space for an early mapping. Albert Herranz (2): powerpc: reserve fixmap entries for early

[RFC PATCH v4 2/2] powerpc: gamecube/wii: early debugging using usbgecko

2009-12-03 Thread Albert Herranz
Add support for using the USB Gecko adapter as an early debugging console on the Nintendo GameCube and Wii video game consoles. The USB Gecko is a 3rd party memory card interface adapter that provides a EXI (External Interface) to USB serial converter. Signed-off-by: Albert Herranz albert_herr

  1   2   >