Skip to content

lib/intel_allocator: Limit last page if not reserved

Jonathan Cavitt igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1lib/intel_allocator: Limit last page if not reservedlib/intel_allocator.c+14 -101 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [igt-dev] [PATCH i-g-t 0/1] lib/intel_allocator: Limit last page if not reserved

We currently limit the last page of the allocator space to avoid a hang on some platforms when a batch would be pinned in the last page. However, in the future, we may already be reserving the last page of the ppgtt in kernel space, so we would not need to limit the last page because gem_aperture_size would not report its existence in __intel_allocator_open_full when this is the case.

Check the gtt_size and only limit the last page if it's not already reserved by kernel space. This is generalized to if the reported page count is even.

CC Nirmoy Das <[email protected]>
CC Zbigniew Kempczynski <[email protected]>

Jonathan Cavitt (1):
lib/intel_allocator: Limit last page if not reserved

 lib/intel_allocator.c | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)
Signature · 1 line
2.25.1