diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-09-16 04:28:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-10-13 11:09:16 -0400 |
commit | 8728da1c6e76566ebc4717399d1f247200125595 (patch) | |
tree | 86a3b5c581998e0a9575de7a1c292e648adae73d /drivers/gpu/nvgpu/ctrl/ctrlclkavfs.h | |
parent | de17750cf975005d5f3db8a0195f9a04961cc74e (diff) |
gpu: nvgpu: compact pte buffers
The lowest page table level may hold very few entries for mappings of
large pages, but a new page is allocated for each list of entries at the
lowest level, wasting memory and performance. Compact these so that the
new "allocation" of ptes is appended at the end of the previous
allocation, if there is space.
4 KB page is still the smallest size requested from the allocator; any
possible overhead in the allocator (e.g., internally allocating big
pages only) is not taken into account.
Bug 1736604
Change-Id: I03fb795cbc06c869fcf5f1b92def89a04583ee83
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1221841
(cherry picked from commit fa92017ed48e1d5f48c1a12c512641c6ce9924af)
Reviewed-on: http://git-master/r/1234996
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/ctrl/ctrlclkavfs.h')
0 files changed, 0 insertions, 0 deletions