[PATCH REQUEST] drm/i915/mst: include series 171576 (MST DSC modes pruned at 18bpp on 2-lane USB-C docks)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 54/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- c, linux
- Ambito
- operating-systems
Direzione di ricerca
The requested change targets drivers/gpu/drm/i915/display/intel_dp_mst.c, in mst_connector_mode_valid_ctx(). Read the function’s existing link bandwidth and PBN checks, then compare them with the supplied backport and upstream series 171576. Done means the source-link check permits DSC-decoded MST modes while the sink-side PBN check retains its 18bpp limit; the report includes hardware and mode testing details.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Pre-flight checklist
- I have searched existing issues/PRs and this has not been requested before.
- I have read the Contributing Guidelines.
Request type
- New patch / patchset inclusion
- Kernel config change (enable/disable option)
- New kernel variant
- Scheduler tuning / addition
- Compiler / LTO / PGO optimization
- Security hardening
- Driver or hardware enablement
- Other
Summary
Please consider carrying Arun R Murthy's i915 fix "drm/i915/mst: let the branch-sink check uncompressed with 18bpp" (patchwork series 171576) until it lands upstream. A 7.2 backport is attached below. It applies cleanly to cachyos-7.2.11-1.
Motivation / use case
On USB-C docks and hubs that run DP alt mode on 2 lanes (2x HBR3, about 12.96 Gb/s) and decompress DSC in the branch device, i915 drops high refresh rate modes. The same hardware runs them on Windows.
mst_connector_mode_valid_ctx() checks every mode against the source link at an uncompressed 18bpp floor and only uses the compressed minimum when the branch is in DSC pass-through mode. A branch that decodes DSC itself is not pass-through, so the mode is pruned with MODE_CLOCK_HIGH before DSC is tried, although compute_config would run it compressed.
Affected setups reported so far:
- RPL-P, generic USB-C MST hub, 2560x1440@240 (drm/i915/kernel#16640)
- MTL, Lenovo 40AY dock, 3440x1440@165 (drm/i915/kernel#17207)
- ADL-P (mine), Lenovo 40AY dock, 2560x1440@180
The 40AY is a common Lenovo dock, so I expect more Intel laptop users hit this without reporting it.
Patch / upstream reference (if available)
- Patch: https://patchwork.freedesktop.org/series/171576/ (posted 2026-08-04 to intel-gfx and intel-xe, CI passed, not reviewed yet)
- Tested-by on the list: https://patchwork.freedesktop.org/patch/744163/
The upstream version targets drm-tip, which has intel_dp_link_caps_get_max_bw_config(). 7.2 still uses intel_dp_max_link_rate(), so the backport swaps that one call and changes nothing else.
0001-drm-i915-mst-let-the-branch-sink-check-uncompressed-with-18bpp.patch (7.2 backport)
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Arun R Murthy <[email protected]>
Date: Tue, 4 Aug 2026 15:14:50 +0530
Subject: [PATCH] drm/i915/mst: let the branch-sink check uncompressed with 18bpp
mst_connector_mode_valid_ctx() uses a single 18bpp floor for both
the source-link BW check and the last-branch→sink PBN check, and
only drops it to the DSC-compressed minimum when the branch is in
DSC pass-through mode. This rejects modes on topologies where the
branch decodes DSC locally - the source→branch segment is actually
compressed and should not be gated by the 18bpp floor, while only
the last-branch→sink segment needs to remain at 18bpp.
The source-to-first-branch MST link carries DSC-compressed data
whenever any device along the path (a DSC pass-through branch, an
intermediate decoder-in-branch, or the endpoint sink) is able to
decode DSC. In all those cases the source can emit the stream
compressed and the check against the source link BW should use the
minimum compressed bpp, not the uncompressed 18bpp floor.
The last-branch-to-sink segment however is only compressed when the
path is true DSC pass-through; if the branch decodes locally and
re-transmits uncompressed, that segment must still fit at the
uncompressed 18bpp floor. That case is handled via port->full_pbn
below.
Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/16640
Signed-off-by: Arun R Murthy <[email protected]>
Link: https://patchwork.freedesktop.org/series/171576/
Tested-by: Andrés Gorea Olari <[email protected]>
Tested-by: Ioann Komarov <[email protected]>
[Backported to 7.2, which uses intel_dp_max_link_rate() instead of
intel_dp_link_caps_get_max_bw_config(). No functional change.]
---
diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
index bcdc504..77911b3 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
@@ -1471,7 +1471,8 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
int max_rate, mode_rate, max_lanes, max_link_clock;
unsigned long bw_overhead_flags =
DRM_DP_BW_OVERHEAD_MST | DRM_DP_BW_OVERHEAD_SSC_REF_CLK;
- int min_link_bpp_x16 = fxp_q4_from_int(18);
+ int src_min_link_bpp_x16 = fxp_q4_from_int(18);
+ int sink_min_link_bpp_x16 = fxp_q4_from_int(18);
static bool supports_dsc;
int ret;
bool dsc = false;
@@ -1500,9 +1501,13 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
supports_dsc = intel_dp_has_dsc(connector) &&
drm_dp_sink_supports_fec(connector->dp.fec_capability);
+ if (supports_dsc && connector->dp.dsc_decompression_aux)
+ src_min_link_bpp_x16 =
+ intel_dp_compute_min_compressed_bpp_x16(connector,
+ INTEL_OUTPUT_FORMAT_RGB);
+
if (supports_dsc && connector->mst.port->passthrough_aux)
- min_link_bpp_x16 = intel_dp_compute_min_compressed_bpp_x16(connector,
- INTEL_OUTPUT_FORMAT_RGB);
+ sink_min_link_bpp_x16 = src_min_link_bpp_x16;
max_link_clock = intel_dp_max_link_rate(intel_dp);
max_lanes = intel_dp_max_lane_count(intel_dp);
@@ -1511,19 +1516,11 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
max_link_clock, max_lanes);
mode_rate = intel_dp_link_required(max_link_clock, max_lanes,
mode->clock, mode->hdisplay,
- min_link_bpp_x16,
+ src_min_link_bpp_x16,
bw_overhead_flags);
/*
* TODO:
- * - Also check if compression would allow for the mode
- * in non-passthrough mode, i.e. the last branch device
- * decompressing the stream. This makes a difference only if
- * the BW on the link between the last branch device and the
- * sink is higher than the BW on the whole MST path from the
- * source to the last branch device. Relying on the extra BW
- * this provides also requires the
- * DFP_Link_Available_Payload_Bandwidth_Number described below.
* - Calculate the overhead using drm_dp_bw_overhead() /
* drm_dp_bw_channel_coding_efficiency(), similarly to the
* compute config code, as drm_dp_calc_pbn_mode() doesn't
@@ -1538,7 +1535,7 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
return ret;
if (mode_rate > max_rate ||
- drm_dp_calc_pbn_mode(mode->clock, min_link_bpp_x16) > port->full_pbn) {
+ drm_dp_calc_pbn_mode(mode->clock, sink_min_link_bpp_x16) > port->full_pbn) {
*status = MODE_CLOCK_HIGH;
return 0;
}
Testing / benchmarks
ThinkPad T14 Gen 3 (i5-1240P, 8086:46a6), Lenovo 40AY dock (Synaptics MST branch, fw 5.6), Xiaomi Mi Monitor 27" 2560x1440@180 without DSC, stock EDID.
- Stock
linux-cachyos(checked on 7.2.8 and 7.2.11): 2560x1440 tops out at 144Hz, and the 180Hz mode is pruned withCLOCK_HIGH. - 7.2.8 with this backport (i915 built out of tree with LLVM=1 from the
cachyos-7.2.8-1tag): 180Hz is listed and was in daily use for about two weeks, until a kernel update replaced the module.i915_display_infoshows DSC at compressed-bpp 16, port_clock 810000, lane_count 2.
[CRTC:269:pipe B]:
uapi: enable=yes, active=yes, mode="2560x1440": 180 720200 2560 2608 2640 2720 1440 1443 1448 1471 0x40 0x9
pipe src=2560x1440+0+0, dither=no, bpp=24
port_clock=810000, lane_count=2
dsc-dss: compressed-bpp:16.0000, slice-count: 4, num_streams: 2
The reporter of drm/i915/kernel#16640 got 240Hz with the same fix on CachyOS 7.1.5.
Additional context
The change only affects mode_valid for MST connectors where the branch decodes DSC (dsc_decompression_aux set without pass-through). The sink side check against port->full_pbn stays at 18bpp, so modes the last hop cannot carry are still rejected. I can test new versions of the patch on this hardware.
- Lingua principale
- Shell
- Stelle
- 4.9k
- Fork
- 190
- Merge medio
- 8h 53m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CachyOS/linux-cachyos
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
CachyOS/linux-cachyos#1196 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
CachyOS/linux-cachyos#1091 · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
CachyOS/linux-cachyos#961 · 1 commento ·
-
[BUG] linux-cachyos-eac: USB RTL8153 (r8152) ethernet never establishes link — works fine on normal linux-cachyosForse già presa @ventureoo l’ha presa oggi. Apertabug
CachyOS/linux-cachyos#1211 · 3 assegnatari ·
-
CachyOS/linux-cachyos#1210 ·
Tutte le issue di CachyOS/linux-cachyos
Issue simili
-
documentation enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
aws/aws-networking-best-practices#256 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
fossi-foundation/globalfoundries-pdk-libs-gf180mcu_fd_pv#61 ·
-
openai-directory
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
smores56/homelab-platform#289 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
omacom/omarchy#21787 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno