[PATCH] Fix reserve start and end for lmem of remote tiles

Ayaz A Siddiqui ayaz.siddiqui at intel.com
Thu Jun 4 16:55:51 UTC 2020


From: Ramalingam C <ramalingam.c at intel.com>

Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
---
 drivers/gpu/drm/i915/intel_region_lmem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_region_lmem.c b/drivers/gpu/drm/i915/intel_region_lmem.c
index d5ffef3bf5f6..d85da31f98c9 100644
--- a/drivers/gpu/drm/i915/intel_region_lmem.c
+++ b/drivers/gpu/drm/i915/intel_region_lmem.c
@@ -217,8 +217,8 @@ static int reserve_lowmem_region(struct intel_uncore *uncore,
 
 	get_tracedebug_region(uncore, &region_start, &region_size);
 	if (region_size) {
-		reserve_start = min(reserve_start, region_start);
-		reserve_end = max(reserve_end, region_start + region_size);
+		reserve_start = 0;
+		reserve_end = region_size;
 	}
 
 	if (!reserve_end)
-- 
2.25.0



More information about the dri-devel mailing list