OSDN Git Service

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)
commit9bc98c8a43c4900ee63b160f805c65051e35d917
treee0c7216a614e30331c10b704da2aa859265dfece
parent090bad39b237aad92d8e01baa033699cf0c81cbe
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