]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix swiotlb to respect the boot option
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 16 Mar 2010 13:16:25 +0000 (13:16 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 19 Mar 2010 05:38:16 +0000 (16:38 +1100)
commitfa573bcfd59210070cf33e54275373f878a66bf4
tree16b980ded87e94ac4eee7375eaf38605fb69a211
parent83ac2098cc5dc25188cb1b7b4cfadb44c4b73225
powerpc: Fix swiotlb to respect the boot option

powerpc initializes swiotlb before parsing the kernel boot options so
swiotlb options (e.g. specifying the swiotlb buffer size) are ignored.

Any time before freeing bootmem works for swiotlb so this patch moves
powerpc's swiotlb initialization after parsing the kernel boot
options, mem_init (as x86 does).

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tested-by: Becky Bruce <beckyb@kernel.crashing.org>
Tested-by: Albert Herranz <albert_herranz@yahoo.es>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_64.c
arch/powerpc/mm/mem.c