From: Jia Hongtao Date: Fri, 3 Aug 2012 10:14:10 +0000 (+0800) Subject: powerpc/swiotlb: Enable at early stage and disable if not necessary X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~10^2~10^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=688ba1dbee8a49a2efe507cd9ae69634d92bb640;p=pandora-kernel.git 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 Signed-off-by: Li Yang Acked-by: Tony Breeds Signed-off-by: Kumar Gala --- Reading git-diff-tree failed