]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/swiotlb: Enable at early stage and disable if not necessary
authorJia Hongtao <B38951@freescale.com>
Fri, 3 Aug 2012 10:14:10 +0000 (18:14 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 10 Aug 2012 12:48:31 +0000 (07:48 -0500)
commit40b923f152274d747e1b0e67a606715fe05357c8
tree806f10880b3e7a01fe0383a02d73525e20ee7f38
parentef89e2d0b53a3eb59d17248e827d7a762ed79434
powerpc/swiotlb: Enable at early stage and disable if not necessary

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 <B38951@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
Acked-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/swiotlb.h
arch/powerpc/kernel/dma-swiotlb.c
arch/powerpc/mm/mem.c
arch/powerpc/platforms/44x/currituck.c
arch/powerpc/platforms/85xx/mpc85xx_ds.c
arch/powerpc/platforms/85xx/qemu_e500.c
arch/powerpc/sysdev/fsl_pci.c