linux/drivers/gpu/drm
Aradhya Bhatia e22d7acf9f 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: aaab5404b1 ("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>
(cherry picked from commit 17486cf3df)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
2025-05-23 09:40:55 +02:00
..
adp Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
amd amd-drm-next-6.16-2025-05-09: 2025-05-12 07:14:34 +10:00
arm
armada
aspeed
ast
atmel-hlcdc
bridge drm/bridge: anx7625: change the gpiod_set_value API 2025-05-05 17:23:34 +03:00
ci
clients
display Non-display related: 2025-05-10 06:12:18 +10:00
etnaviv drm/etnaviv: Use dma_buf from GEM object instance 2025-04-14 10:53:11 +02:00
exynos Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
fsl-dcu
gma500
gud
hisilicon
hyperv
i915 Non-display related: 2025-05-10 06:12:18 +10:00
imagination drm/imagination: Add reset controller support for GPU initialization 2025-04-24 11:08:48 +01:00
imx
ingenic
kmb
lib
lima
logicvc
loongson
mcde drm/mcde: convert to devm_drm_bridge_alloc() API 2025-04-29 11:21:23 +02:00
mediatek
meson Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
mgag200 drm/mgag200: Fix value in <VBLKSTR> register 2025-04-17 09:56:28 +02:00
msm Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
mxsfb
nouveau Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
omapdrm
panel drm/panel: simple: Update timings for AUO G101EVN010 2025-05-06 14:57:03 +03:00
panfrost drm/panfrost: reorder pd/clk/rst sequence 2025-04-28 10:24:04 +01:00
panthor drm/panthor: Fix build warning when DEBUG_FS is disabled 2025-04-29 18:12:23 +02:00
pl111
qxl
radeon amd-drm-next-6.16-2025-05-09: 2025-05-12 07:14:34 +10:00
renesas drm: Remove unused function rcar_cmm_write 2025-05-02 11:52:46 +03:00
rockchip drm/rockchip: inno-hdmi: Fix video timing HSYNC/VSYNC polarity setting for rk3036 2025-05-04 12:40:53 +02:00
scheduler
solomon
sprd
sti Merge tag 'drm-misc-next-2025-04-09' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-next 2025-04-14 15:29:49 +10:00
stm
sun4i
sysfb drm/sysfb: Share helpers for screen_info validation 2025-04-14 10:16:14 +02:00
tegra drm/tegra: Fix a possible null pointer dereference 2025-05-07 18:07:27 +02:00
tests Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
tidss
tilcdc
tiny drm/st7571-i2c: Fix IS_ERR() vs NULL checks in probe() 2025-04-30 14:51:40 +02:00
ttm Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
tve200
udl drm/udl: Set error code in udl_init() 2025-04-17 10:21:40 +02:00
v3d Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
vboxvideo
vc4 drm/vc4: convert to devm_drm_bridge_alloc() API 2025-04-29 11:21:25 +02:00
vgem
virtio Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
vkms drm/vkms: Adjust vkms_state->active_planes allocation type 2025-05-06 10:17:00 +02:00
vmwgfx drm/vmwgfx: Use dma_buf from GEM object instance 2025-04-14 10:53:11 +02:00
xe drm/xe/guc: Make creation of SLPC debugfs files conditional 2025-05-23 09:40:55 +02:00
xen
xlnx gpu: drm: xlnx: zynqmp_dp: Use dev_err_probe() 2025-04-16 15:03:22 +03:00
drm_atomic_helper.c
drm_atomic_state_helper.c
drm_atomic_uapi.c
drm_atomic.c
drm_auth.c
drm_blend.c drm/doc: document front-buffer rendering 2025-04-30 23:35:00 +02:00
drm_bridge_helper.c
drm_bridge.c
drm_buddy.c
drm_cache.c
drm_client_event.c
drm_client_modeset.c
drm_client.c
drm_color_mgmt.c
drm_connector.c
drm_crtc_helper_internal.h
drm_crtc_helper.c
drm_crtc_internal.h
drm_crtc.c
drm_damage_helper.c
drm_debugfs_crc.c
drm_debugfs.c
drm_displayid_internal.h drm/edid: Refactor DisplayID timing block structs 2025-04-16 20:40:51 +03:00
drm_displayid.c
drm_draw_internal.h
drm_draw.c
drm_drv.c
drm_dumb_buffers.c
drm_edid_load.c
drm_edid.c drm/edid: Refactor DisplayID timing block structs 2025-04-16 20:40:51 +03:00
drm_eld.c
drm_encoder.c
drm_exec.c
drm_fb_dma_helper.c
drm_fb_helper.c
drm_fbdev_dma.c
drm_fbdev_shmem.c
drm_fbdev_ttm.c
drm_file.c amd-drm-next-6.16-2025-05-09: 2025-05-12 07:14:34 +10:00
drm_flip_work.c
drm_format_helper.c
drm_format_internal.h
drm_fourcc.c
drm_framebuffer.c
drm_gem_atomic_helper.c
drm_gem_dma_helper.c
drm_gem_framebuffer_helper.c
drm_gem_shmem_helper.c
drm_gem_ttm_helper.c
drm_gem_vram_helper.c
drm_gem.c
drm_gpusvm.c Merge drm/drm-next into drm-misc-next 2025-05-06 09:09:49 +02:00
drm_gpuvm.c
drm_internal.h
drm_ioc32.c
drm_ioctl.c
drm_kms_helper_common.c
drm_lease.c
drm_managed.c
drm_mipi_dbi.c drm/mipi-dbi: Fix blanking for non-16 bit formats 2025-04-29 17:29:49 +02:00
drm_mipi_dsi.c
drm_mm.c
drm_mode_config.c
drm_mode_object.c
drm_modes.c
drm_modeset_helper.c
drm_modeset_lock.c
drm_of.c
drm_panel_backlight_quirks.c
drm_panel_orientation_quirks.c
drm_panel.c drm/panel: make prepare/enable and disable/unprepare calls return void 2025-04-22 16:49:11 +03:00
drm_panic_qr.rs drm/panic: Use a decimal fifo to avoid u64 by u64 divide 2025-05-02 12:58:00 +02:00
drm_panic.c
drm_pci.c
drm_plane_helper.c
drm_plane.c
drm_prime.c
drm_print.c
drm_privacy_screen_x86.c
drm_privacy_screen.c
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c
drm_suballoc.c
drm_syncobj.c
drm_sysfs.c
drm_trace_points.c
drm_trace.h
drm_vblank_work.c
drm_vblank.c
drm_vma_manager.c
drm_writeback.c
Kconfig Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
Kconfig.debug
Makefile