summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorAradhya Bhatia <aradhya.bhatia@intel.com>2025-05-16 17:19:02 +0300
committerMatt Roper <matthew.d.roper@intel.com>2025-05-19 19:00:05 +0300
commit17486cf3df5320752cc67ee8bcb2379d1b9de76c (patch)
treefe85099060eafc22355d20677fcae216a5f6c6de /tools/perf/scripts/python/libxed.py
parenta383cf218ef8bb35d4c03958bd956573b65cf778 (diff)
downloadlinux-17486cf3df5320752cc67ee8bcb2379d1b9de76c.tar.xz
drm/xe/guc: Make creation of SLPC debugfs files conditional
Platforms that do not support SLPC are exempted from the GuC PC support. The GuC PC does not get initialized, and neither do its BOs get created. This causes a problem because the GuC PC debugfs file is still being created. Whenever the file is attempted to read, it causes a NULL pointer dereference on the supposed BO of the GuC PC. So, make the creation of SLPC debugfs files conditional to when SLPC features are supported. Fixes: aaab5404b16f ("drm/xe: Introduce GuC PC debugfs") Suggested-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com> Reviewed-by: Stuart Summers <stuart.summers@intel.com> Signed-off-by: Aradhya Bhatia <aradhya.bhatia@intel.com> Link: https://lore.kernel.org/r/20250516141902.5614-1-aradhya.bhatia@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions