summaryrefslogtreecommitdiff
path: root/lib/intel_allocator.c
diff options
context:
space:
mode:
authorZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2022-05-24 13:18:36 +0200
committerZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2022-05-25 13:25:38 +0200
commitaa0c811ebcd27a0f330f60ae5c4aff35178d6abf (patch)
tree637a07febd2d42bf18d2396460095cd5a96300d5 /lib/intel_allocator.c
parent1b5f7f139660ac27f3c8b4c4a2d23fdd9430ccab (diff)
lib/intel_batchbuffer: Use detected start offset in intel-bb instead 0x0
On some platforms (like on ATS) 0x0 may not be available so allocator should be instantiated with safe start offset to avoid getting -ENOSPC. Change require also relaxation of automatic range selection in the allocator. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Cc: Dominik Grzegorzek <dominik.grzegorzek@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'lib/intel_allocator.c')
-rw-r--r--lib/intel_allocator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/intel_allocator.c b/lib/intel_allocator.c
index 340b8882..7882e484 100644
--- a/lib/intel_allocator.c
+++ b/lib/intel_allocator.c
@@ -909,7 +909,7 @@ static uint64_t __intel_allocator_open_full(int fd, uint32_t ctx,
struct alloc_resp resp;
uint64_t gtt_size;
- if (!start && !end) {
+ if (!end) {
igt_assert_f(can_report_gtt_size(fd), "Invalid fd\n");
gtt_size = gem_aperture_size(fd);
if (!gem_uses_full_ppgtt(fd))