Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: FUJITA Tomonori
Date: Saturday, August 14, 2010 - 10:42 pm

On Sat, 14 Aug 2010 19:46:05 +0100
Russell King - ARM Linux <linux@arm.linux.org.uk> wrote:


I'm not sure what you mean.

A driver which uses dma_alloc_coherent() directly should
work. dma_alloc_coherent() allocates memory with GFP_DMA with that
patch for dmabounce devices. So the driver gets the access-able
memory.

The memory that dma_alloc_coherent() returns should be always
consistent. We can't bounce it. All we can do is returning a memory
that a device (and its bus) can access to.

Krzysztof, can you try the patch?



Sorry, the original ARM code is wrong. dev->dma_mask and
dev->coherent_dma_mask represent the driver of dma restriction. ARM
tries to use them for both a driver and a bus so ARM needs a
workaround that doesn't set the driver of dma restriction to
dev->dma_mask and dev->coherent_dma_mask.

The proper solution is having a separate dma mask for a bus. I think
that POWERPC already does the similar. It has max_direct_dma_addr in
struct dev_archdata, which represents the dma restriction of a bus.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Krzysztof Halasa, (Tue Aug 10, 1:36 pm)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Tue Aug 10, 7:06 pm)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Russell King - ARM Linux, (Wed Aug 11, 12:25 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Thu Aug 12, 11:23 pm)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Russell King - ARM Linux, (Fri Aug 13, 2:54 pm)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Sat Aug 14, 2:30 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Russell King - ARM Linux, (Sat Aug 14, 11:46 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Sat Aug 14, 10:42 pm)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Russell King - ARM Linux, (Sun Aug 15, 1:23 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Sun Aug 15, 8:55 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Krzysztof Halasa, (Mon Aug 16, 4:29 pm)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Thu Aug 19, 1:51 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Benjamin Herrenschmidt, (Thu Aug 19, 3:31 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Thu Aug 19, 7:50 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Krzysztof Halasa, (Thu Aug 19, 9:53 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Krzysztof Halasa, (Thu Aug 19, 9:56 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Thu Aug 19, 10:20 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Benjamin Herrenschmidt, (Thu Aug 19, 2:51 pm)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Benjamin Herrenschmidt, (Thu Aug 19, 2:54 pm)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Thu Aug 26, 4:55 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Thu Aug 26, 6:54 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Krzysztof Halasa, (Thu Aug 26, 9:02 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), Russell King - ARM Linux, (Thu Aug 26, 10:57 am)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Thu Aug 26, 5:26 pm)
Re: ARM: 2.6.3[45] PCI regression (IXP4xx and PXA?), FUJITA Tomonori, (Thu Aug 26, 11:54 pm)