diff options
author | Chris Wilson <[email protected]> | 2018-06-14 14:43:14 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2018-06-14 19:20:33 +0100 |
commit | 549fe88bf71d30563f20dcfd7970b7424bf07907 (patch) | |
tree | f30b75b076ae323652dcec2d9bfb0352984af69f /lib/test-string_helpers.c | |
parent | 1fd00c0faeec0a89dfe97de842facbecc8a04efb (diff) |
drm/i915/gtt: Lazily allocate page directories for gen7
As we were only supporting aliasing_ppgtt on gen7 for some time, we
saved a few checks by preallocating the page directories on creation.
However, since we need 2MiB of page directories for each ppgtt, to
support arbitrary numbers of user contexts, we need to be more prudent
in our allocations, and defer the page allocation until it is used. We
don't recover unused pages yet as we found that doing so on the fly
(i.e. altering TLB entries) would confuse the GPU.
Signed-off-by: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Cc: Matthew Auld <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions