[igt-dev] [PATCH i-g-t] tests/i915/gem_ctx_isolation.c : Increase MAX_REG

Vikas Srivastava vikas.srivastava at intel.com
Fri Nov 25 08:54:29 UTC 2022


From: Steve Hampson <steven.t.hampson at intel.com>

Increase MAX_REG from 0x200000 to 0x400000 to support new large MMIO
base addresses (such as GEN12_BCS8_RING_BASE == 0x3ee000).

Signed-off-by: Steve Hampson <steven.t.hampson at intel.com>
Acked-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
---
 tests/i915/gem_ctx_isolation.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/i915/gem_ctx_isolation.c b/tests/i915/gem_ctx_isolation.c
index dc52a9a03..ec6935714 100644
--- a/tests/i915/gem_ctx_isolation.c
+++ b/tests/i915/gem_ctx_isolation.c
@@ -27,7 +27,8 @@
 #include "igt_dummyload.h"
 #include "igt_types.h"
 
-#define MAX_REG 0x200000
+/* MAX_REG must be greater than the maximum register address. */
+#define MAX_REG 0x400000
 #define NUM_REGS (MAX_REG / sizeof(uint32_t))
 
 #define PAGE_ALIGN(x) ALIGN(x, 4096)
-- 
2.25.1



More information about the igt-dev mailing list