Thread (28 messages) 28 messages, 6 authors, 2012-08-15

Re: [PATCH V5 2/3] powerpc/swiotlb: Enable at early stage and disable if not necessary

flat view

From: Kumar Gala <hidden>
Date: 2012-08-10 13:00:35

On Aug 3, 2012, at 5:14 AM, Jia Hongtao wrote:
Remove the dependency on PCI initialization for SWIOTLB initialization.
So that PCI can be initialized at proper time.

SWIOTLB is partly determined by PCI inbound/outbound map which is assigned
in PCI initialization. But swiotlb_init() should be done at the stage of
mem_init() which is much earlier than PCI initialization. So we reserve the
memory for SWIOTLB first and free it if not necessary.

All boards are converted to fit this change.

Signed-off-by: Jia Hongtao <redacted>
Signed-off-by: Li Yang <redacted>
---
arch/powerpc/include/asm/swiotlb.h       |    6 ++++++
arch/powerpc/kernel/dma-swiotlb.c        |   20 ++++++++++++++++++++
arch/powerpc/mm/mem.c                    |    3 +--
arch/powerpc/platforms/44x/currituck.c   |   10 ++--------
arch/powerpc/platforms/85xx/mpc85xx_ds.c |    1 +
arch/powerpc/platforms/85xx/qemu_e500.c  |    1 +
arch/powerpc/sysdev/fsl_pci.c            |    5 +----
7 files changed, 32 insertions(+), 14 deletions(-)
applied to next

- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help