]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Rework TCE level allocation
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 4 Jul 2018 06:13:48 +0000 (16:13 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Jul 2018 12:53:10 +0000 (22:53 +1000)
commit6423c2ab2697110a5b016e29cb286d31fc3af926
treee0c7216a614e30331c10b704da2aa859265dfece
parentc23d3ea49404714a92514247ff293284c8ad2824
powerpc/powernv: Rework TCE level allocation

This moves actual pages allocation to a separate function which is going
to be reused later in on-demand TCE allocation.

While we are at it, remove unnecessary level size round up as the caller
does this already.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda-tce.c