[PATCH 26/26] HAX: DG1 small BAR
Matthew Auld
matthew.auld at intel.com
Tue Feb 15 16:22:29 UTC 2022
Just for CI.
Signed-off-by: Matthew Auld <matthew.auld at intel.com>
---
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 3 +--
drivers/gpu/drm/i915/gt/intel_region_lmem.c | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
index 333c4b9d6476..1eccc287d76c 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
@@ -1979,8 +1979,7 @@ static int eb_capture_stage(struct i915_execbuffer *eb)
if (!(flags & EXEC_OBJECT_CAPTURE))
continue;
- if (!IS_DG1(eb->i915) &&
- vma->obj->flags & I915_BO_ALLOC_GPU_ONLY)
+ if (vma->obj->flags & I915_BO_ALLOC_GPU_ONLY)
return -EINVAL;
for_each_batch_create_order(eb, j) {
diff --git a/drivers/gpu/drm/i915/gt/intel_region_lmem.c b/drivers/gpu/drm/i915/gt/intel_region_lmem.c
index ad3cf348b4a8..44662e9c4c4d 100644
--- a/drivers/gpu/drm/i915/gt/intel_region_lmem.c
+++ b/drivers/gpu/drm/i915/gt/intel_region_lmem.c
@@ -212,7 +212,7 @@ static struct intel_memory_region *setup_lmem(struct intel_gt *gt)
lmem_size = intel_uncore_read64(uncore, GEN12_GSMBASE);
io_start = pci_resource_start(pdev, 2);
- io_size = min(pci_resource_len(pdev, 2), lmem_size);
+ io_size = SZ_256M;
if (!io_size)
return ERR_PTR(-ENODEV);
--
2.34.1
More information about the Intel-gfx-trybot
mailing list