linux/drivers/gpu/drm
Imre Deak 5fd3523654 drm/i915/icl+/tc: Cache the max lane count value
The PHY's pin assignment value in the TCSS_DDI_STATUS register - as set
by the HW/FW based on the connected DP-alt sink's TypeC/PD pin
assignment negotiation - gets cleared by the HW/FW on LNL+ as soon as
the sink gets disconnected, even if the PHY ownership got acquired
already by the driver (and hence the PHY itself is still connected and
used by the display). This is similar to how the PHY Ready flag gets
cleared on LNL+ in the same register.

To be able to query the max lane count value on LNL+ - which is based on
the above pin assignment - at all times even after the sink gets
disconnected, the max lane count must be determined and cached during
the PHY's HW readout and connect sequences. Do that here, leaving the
actual use of the cached value to a follow-up change.

v2: Don't read out the pin configuration if the PHY is disconnected.

Cc: stable@vger.kernel.org # v6.8+
Reported-by: Charlton Lin <charlton.lin@intel.com>
Tested-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20250811080152.906216-3-imre.deak@intel.com
(cherry picked from commit 3e32438fc4)
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
2025-08-18 08:08:20 +01:00
..
adp drm: convert many bridge drivers from devm_kzalloc() to devm_drm_bridge_alloc() API 2025-05-23 15:03:47 +02:00
amd drm/amdgpu: fix task hang from failed job submission during process kill 2025-08-12 16:16:36 -04:00
arm drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
armada drm/armada: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct() 2025-07-16 20:07:32 +03:00
aspeed
ast drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
atmel-hlcdc
bridge Short summary of fixes pull: 2025-08-14 07:51:34 +10:00
ci drm/ci: Uprev igt 2025-07-04 11:06:38 -07:00
clients drm/fbdev-client: Skip DRM clients if modesetting is absent 2025-07-06 14:05:07 +03:00
display drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
etnaviv drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
exynos Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
fsl-dcu
gma500 Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
gud drm/format-helper: Split off byte swapping from drm_fb_xrgb8888_to_rgb565() 2025-06-27 15:59:23 +02:00
hisilicon pci-v6.16-changes 2025-06-04 11:26:17 -07:00
hyperv drm/hyperv: Add support for drm_panic 2025-06-05 14:59:56 +02:00
i915 drm/i915/icl+/tc: Cache the max lane count value 2025-08-18 08:08:20 +01:00
imagination drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
imx drm/imx: Add i.MX8qxp Display Controller KMS 2025-05-14 15:11:31 +08:00
ingenic drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
kmb
lib drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
lima drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
logicvc
loongson PCI: Add CONFIG_MMU dependency 2025-04-23 15:40:30 -05:00
mcde drm/mcde: convert to devm_drm_bridge_alloc() API 2025-04-29 11:21:23 +02:00
mediatek drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
meson drm-misc-next for 6.17: 2025-06-18 08:09:35 +10:00
mgag200 drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
msm Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
mxsfb drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
nouveau Short summary of fixes pull: 2025-08-14 07:51:34 +10:00
nova rust: macros: remove module!'s deprecated author key 2025-06-24 01:01:13 +02:00
omapdrm Short summary of fixes pull: 2025-08-14 07:51:34 +10:00
panel drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
panfrost Short summary of fixes pull: 2025-08-14 07:51:34 +10:00
panthor drm/sched: Rename DRM_GPU_SCHED_STAT_NOMINAL to DRM_GPU_SCHED_STAT_RESET 2025-07-15 08:27:00 -03:00
pl111
qxl drm/gem: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct() 2025-07-16 20:05:58 +03:00
radeon drm/radeon: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct() 2025-08-06 15:26:16 +03:00
renesas drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
rockchip drm/gem/afbc: Eliminate redundant drm_get_format_info() 2025-07-16 20:06:22 +03:00
scheduler drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
sitronix drm/sitronix/st7571-i2c: Add support for the ST7567 Controller 2025-07-16 12:12:39 +02:00
solomon drm/ssd130x: fix ssd132x_clear_screen() columns 2025-06-12 14:04:56 +02:00
sprd
sti drm/sti: hda: convert to devm_drm_bridge_alloc() API 2025-07-09 11:24:45 +02:00
stm drm/bridge: stm_lvds: convert to devm_drm_bridge_alloc() API 2025-05-21 13:40:09 +02:00
sun4i drm: sun4i: de33: mixer: add mixer configuration for the H616 2025-06-02 09:59:10 +02:00
sysfb drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
tegra drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
tests drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
tidss drm/tidss: oldi: convert to devm_drm_bridge_alloc() API 2025-07-18 14:55:57 +03:00
tilcdc
tiny drm/bochs: Add support for drm_panic 2025-06-23 11:30:18 +02:00
ttm Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
tve200
udl drm/gem-shmem: Do not map s/g table by default 2025-07-07 15:23:41 +02:00
v3d Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
vboxvideo
vc4 drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
vgem drm/vgem/vgem_drv convert to use faux_device 2025-07-07 15:24:14 +02:00
virtio virtio, vhost: features, fixes 2025-08-01 14:17:48 -07:00
vkms drm/vkms: convert to use faux_device 2025-07-07 15:24:03 +02:00
vmwgfx drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
xe drm/xe/pf: Set VF LMEM BAR size 2025-08-14 10:30:53 -04:00
xen drm/gem: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct() 2025-07-16 20:05:58 +03:00
xlnx drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_atomic_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_atomic_state_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_atomic_uapi.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_atomic.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_auth.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_blend.c drm/doc: document front-buffer rendering 2025-04-30 23:35:00 +02:00
drm_bridge_helper.c drm/bridge: Include <linux/export.h> 2025-06-16 09:02:25 +02:00
drm_bridge.c drm/bridge: Describe the newly introduced drm_connector parameter for drm_bridge_detect 2025-08-04 10:39:21 +03:00
drm_buddy.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_cache.c drm/gpu: Remove dead checks on wbinvd_on_all_cpus()'s return value 2025-07-10 13:07:26 +02:00
drm_client_event.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_client_modeset.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_client.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_color_mgmt.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_connector.c drm/connector: move HDR sink metadata to display info 2025-06-23 21:44:55 +03:00
drm_crtc_helper_internal.h
drm_crtc_helper.c
drm_crtc_internal.h
drm_crtc.c
drm_damage_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_debugfs_crc.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_debugfs.c drm: add debugfs support on per client-id basis 2025-07-04 15:59:06 +02:00
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: move drm based debugfs funcs to drm_debugfs.c 2025-07-04 15:58:22 +02:00
drm_dumb_buffers.c
drm_edid_load.c
drm_edid.c drm-misc-next for 6.17: 2025-06-27 09:58:05 +10:00
drm_eld.c
drm_encoder.c
drm_exec.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_fb_dma_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_fb_helper.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_fbdev_dma.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_fbdev_shmem.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_fbdev_ttm.c drm/client: Include <linux/export.h> 2025-06-16 09:02:29 +02:00
drm_file.c drm: add debugfs support on per client-id basis 2025-07-04 15:59:06 +02:00
drm_flip_work.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_format_helper.c drm/format-helper: Split off byte swapping from drm_fb_xrgb8888_to_rgb565() 2025-06-27 15:59:23 +02:00
drm_format_internal.h drm/format-helper: Split off byte swapping from drm_fb_xrgb8888_to_rgb565() 2025-06-27 15:59:23 +02:00
drm_fourcc.c drm: Pass pixel_format+modifier directly to drm_get_format_info() 2025-07-16 20:01:13 +03:00
drm_framebuffer.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_gem_atomic_helper.c drm/gem: Include <linux/export.h> 2025-06-16 09:02:35 +02:00
drm_gem_dma_helper.c Revert "drm/gem-dma: Use dma_buf from GEM object instance" 2025-07-17 12:26:19 +02:00
drm_gem_framebuffer_helper.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_gem_shmem_helper.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_gem_ttm_helper.c drm/gem: Include <linux/export.h> 2025-06-16 09:02:35 +02:00
drm_gem_vram_helper.c drm/gem: Include <linux/export.h> 2025-06-16 09:02:35 +02:00
drm_gem.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_gpusvm.c drm/pagemap: Add a populate_mm op 2025-06-26 18:00:09 +02:00
drm_gpuvm.c drm/gpuvm: Add locking helpers 2025-07-04 11:09:43 -07:00
drm_internal.h drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_ioc32.c
drm_ioctl.c
drm_kms_helper_common.c
drm_lease.c
drm_managed.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_mipi_dbi.c drm/format-helper: Split off byte swapping from drm_fb_xrgb8888_to_rgb565() 2025-06-27 15:59:23 +02:00
drm_mipi_dsi.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_mm.c
drm_mode_config.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_mode_object.c
drm_modes.c
drm_modeset_helper.c drm: Make passing of format info to drm_helper_mode_fill_fb_struct() mandatory 2025-07-16 20:12:35 +03:00
drm_modeset_lock.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_of.c
drm_pagemap.c drm/xe: Implement and use the drm_pagemap populate_mm op 2025-06-26 18:00:10 +02:00
drm_panel_backlight_quirks.c drm/panel: Include <linux/export.h> 2025-06-16 09:02:39 +02:00
drm_panel_orientation_quirks.c drm/panel: Include <linux/export.h> 2025-06-16 09:02:39 +02:00
drm_panel.c drm/panel: Include <linux/export.h> 2025-06-16 09:02:39 +02:00
drm_panic_qr.rs Rust changes for v6.17 2025-08-03 13:49:10 -07:00
drm_panic.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_pci.c drm: Do not include <linux/export.h> 2025-06-16 09:00:09 +02:00
drm_plane_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_plane.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_prime.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
drm_print.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_privacy_screen_x86.c
drm_privacy_screen.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_self_refresh_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_simple_kms_helper.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_suballoc.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_syncobj.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_sysfs.c sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
drm_trace_points.c
drm_trace.h
drm_vblank_work.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_vblank.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
drm_vma_manager.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_writeback.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
Kconfig pci-v6.16-changes 2025-06-04 11:26:17 -07:00
Kconfig.debug drm/format-helper: Move drm_fb_build_fourcc_list() to sysfb helpers 2025-06-18 10:46:03 +02:00
Makefile drm/gpusvm, drm/pagemap: Move migration functionality to drm_pagemap 2025-06-26 18:00:07 +02:00