summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2015-07-20 20:45:51 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-07-23 19:56:44 +1000
commit3ba3a73e9f204ce7904cae7d14be399b467c4fef (patch)
tree53ef4d6d317c219270deb61bc61c03aa50662bb7 /drivers/macintosh
parentc5dfd654d0ec0a28fe81e7bd4d4fd984a9855e09 (diff)
downloadop-kernel-dev-3ba3a73e9f204ce7904cae7d14be399b467c4fef.zip
op-kernel-dev-3ba3a73e9f204ce7904cae7d14be399b467c4fef.tar.gz
powerpc/powernv/ioda2: Fix calculation for memory allocated for TCE table
The existing code stores the amount of memory allocated for a TCE table. At the moment it uses @offset which is a virtual offset in the TCE table which is only correct for a one level tables and it does not include memory allocated for intermediate levels. When multilevel TCE table is requested, WARN_ON in tce_iommu_create_table() prints a warning. This adds an additional counter to pnv_pci_ioda2_table_do_alloc_pages() to count actually allocated memory. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud