]> 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)
commitffafddd3f15d938f0cfd631a439febac644a21e4
treee0c7216a614e30331c10b704da2aa859265dfece
parentc591b0d5d76b88f8c82c0e1a009cfcac1dbd3aa7
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