[Intel-gfx] [PATCH i-g-t 1/3] debugger: Convert to current intel_register_access_init()

Rhys Kidd rhyskidd at gmail.com
Wed Jan 10 04:25:09 UTC 2018


Fixes: 301ad44c ("lib: Open debugfs files for the given DRM device")
Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>
---
 debugger/debug_rdata.c | 2 +-
 debugger/eudb.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debugger/debug_rdata.c b/debugger/debug_rdata.c
index 61d82d9e..45084b8e 100644
--- a/debugger/debug_rdata.c
+++ b/debugger/debug_rdata.c
@@ -135,7 +135,7 @@ int main(int argc, char *argv[]) {
 	struct pci_device *pci_dev;
 	pci_dev = intel_get_pci_device();
 
-	intel_register_access_init(pci_dev, 1);
+	intel_register_access_init(pci_dev, 0, 1);
 	find_stuck_threads();
 //	collect_rdata(atoi(argv[1]), atoi(argv[2]));
 	return 0;
diff --git a/debugger/eudb.c b/debugger/eudb.c
index 866d4b52..8384950a 100644
--- a/debugger/eudb.c
+++ b/debugger/eudb.c
@@ -540,7 +540,7 @@ int main(int argc, char* argv[]) {
 		abort();
 	}
 
-	assert(intel_register_access_init(pci_dev, 1) == 0);
+	assert(intel_register_access_init(pci_dev, 0, 1) == 0);
 
 	memset(bits, -1, sizeof(bits));
 	/*
-- 
2.14.1



More information about the Intel-gfx mailing list