mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 01:46:14 +00:00
mmio: allow register init even if debugfs isn't available and i915 isn't loaded
This lets us dump regs even if modeset=0 for example. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
0b4c33f62c
commit
5ecac45ff0
@ -205,10 +205,7 @@ intel_register_access_init(struct pci_device *pci_dev, int safe)
|
|||||||
ret = find_debugfs_path("/debug/dri");
|
ret = find_debugfs_path("/debug/dri");
|
||||||
if (ret) {
|
if (ret) {
|
||||||
fprintf(stderr, "Couldn't find path to dri/debugfs entry\n");
|
fprintf(stderr, "Couldn't find path to dri/debugfs entry\n");
|
||||||
if (i915_loaded()) {
|
fprintf(stderr, "warning: forcewake will not be handled\n");
|
||||||
fprintf(stderr, "i915 loaded; not proceeding.\n");
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
mmio_data.key = FAKEKEY;
|
mmio_data.key = FAKEKEY;
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user