summaryrefslogtreecommitdiff
path: root/lib/igt_sysfs.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-10-19 14:07:25 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-10-19 16:15:07 +0100
commite27626898b87a1602e6af6f7effcacf772ead491 (patch)
tree506e8b40ded5291e4f8a8207038a778dd14572fb /lib/igt_sysfs.c
parent27d30707410c4a89480effa75bb6792331ca3342 (diff)
igt: Check the physical swizzle status
The kernel tries to hide L-shaped memory with asymmetric swizzling from userspace by reporting lies through the get-tiling interface. Check for these lies by comparing the reported swizzle with the actual swizzle, and only run swizzling tests where we know the underlying physical swizzling. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_sysfs.c')
-rw-r--r--lib/igt_sysfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/igt_sysfs.c b/lib/igt_sysfs.c
index 612de751..c19821da 100644
--- a/lib/igt_sysfs.c
+++ b/lib/igt_sysfs.c
@@ -148,7 +148,8 @@ int igt_sysfs_open_parameters(int device)
if (dir < 0)
return -1;
- params = openat(dir, "device/driver/module/parameters", O_RDONLY);
+ params = -1;
+ //params = openat(dir, "device/driver/module/parameters", O_RDONLY);
close(dir);
if (params < 0) { /* builtin? */