diff options
| author | Aradhya Bhatia <[email protected]> | 2025-05-16 14:19:02 +0000 |
|---|---|---|
| committer | Thomas Hellström <[email protected]> | 2025-05-23 07:40:55 +0000 |
| commit | e22d7acf9f47b01c9a538f3dac5c8e8d46fbca96 (patch) | |
| tree | f3cdbebc16cfc753c18bbafb6541c8b4bb25fab0 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | Merge tag 'amd-drm-next-6.16-2025-05-09' of https://gitlab.freedesktop.org/ag... (diff) | |
| download | kernel-e22d7acf9f47b01c9a538f3dac5c8e8d46fbca96.tar.gz kernel-e22d7acf9f47b01c9a538f3dac5c8e8d46fbca96.zip | |
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 <[email protected]>
Reviewed-by: Tejas Upadhyay <[email protected]>
Reviewed-by: Stuart Summers <[email protected]>
Signed-off-by: Aradhya Bhatia <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Matt Roper <[email protected]>
(cherry picked from commit 17486cf3df5320752cc67ee8bcb2379d1b9de76c)
Signed-off-by: Thomas Hellström <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
