diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2016-04-08 04:42:17 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-05 03:20:32 +0300 |
commit | 85621630f1cdc4ee50fca0bb2eddfd44208d9a45 (patch) | |
tree | b5d9abd0214d00995d88778c4f93f482075913ee /drivers/phy/phy-exynos5250-usb2.c | |
parent | 110e6f26af80dfd90b6e5c645b1aed7228aa580d (diff) | |
download | linux-85621630f1cdc4ee50fca0bb2eddfd44208d9a45.tar.xz |
drm/ttm: Fix TTM BO accounting
TTM BO accounting is out of sync with how memory is really allocated
in ttm[_dma]_tt_alloc_page_directory. This resulted in excessive
estimated overhead with many small allocations.
ttm_dma_tt_alloc_page_directory makes a single allocation for three
arrays: pages, DMA and CPU addresses. It uses drm_calloc_large, which
uses kmalloc internally for allocations smaller than PAGE_SIZE.
ttm_round_pot should be a good approximation of its memory usage both
above and below PAGE_SIZE.
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/phy/phy-exynos5250-usb2.c')
0 files changed, 0 insertions, 0 deletions