Skip to content

Commit 42ebf3b

Browse files
committed
Merge tag 'drm-intel-next-fixes-2026-02-13' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-next
- Regresion fix for HDR 4k displays (#15503) - Fixup for Dell XPS 13 7390 eDP rate limit - Memory leak fix on ACPI _DSM handling Signed-off-by: Dave Airlie <airlied@redhat.com> From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patch.msgid.link/aY8CtbhijtetQ6P3@jlahtine-mobl
2 parents 218da12 + 57b85fd commit 42ebf3b

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

drivers/gpu/drm/i915/display/intel_acpi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ static void intel_dsm_platform_mux_info(acpi_handle dhandle)
9696

9797
if (!pkg->package.count) {
9898
DRM_DEBUG_DRIVER("no connection in _DSM\n");
99+
ACPI_FREE(pkg);
99100
return;
100101
}
101102

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,6 +2665,7 @@ intel_dp_compute_config_limits(struct intel_dp *intel_dp,
26652665
bool dsc,
26662666
struct link_config_limits *limits)
26672667
{
2668+
struct intel_display *display = to_intel_display(intel_dp);
26682669
bool is_mst = intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST);
26692670
struct intel_connector *connector =
26702671
to_intel_connector(conn_state->connector);
@@ -2677,8 +2678,7 @@ intel_dp_compute_config_limits(struct intel_dp *intel_dp,
26772678
limits->min_lane_count = intel_dp_min_lane_count(intel_dp);
26782679
limits->max_lane_count = intel_dp_max_lane_count(intel_dp);
26792680

2680-
limits->pipe.min_bpp = intel_dp_in_hdr_mode(conn_state) ? 30 :
2681-
intel_dp_min_bpp(crtc_state->output_format);
2681+
limits->pipe.min_bpp = intel_dp_min_bpp(crtc_state->output_format);
26822682
if (is_mst) {
26832683
/*
26842684
* FIXME: If all the streams can't fit into the link with their
@@ -2694,6 +2694,19 @@ intel_dp_compute_config_limits(struct intel_dp *intel_dp,
26942694
respect_downstream_limits);
26952695
}
26962696

2697+
if (!dsc && intel_dp_in_hdr_mode(conn_state)) {
2698+
if (intel_dp_supports_dsc(intel_dp, connector, crtc_state) &&
2699+
limits->pipe.max_bpp >= 30)
2700+
limits->pipe.min_bpp = max(limits->pipe.min_bpp, 30);
2701+
else
2702+
drm_dbg_kms(display->drm,
2703+
"[CONNECTOR:%d:%s] Can't force 30 bpp for HDR (pipe bpp: %d-%d DSC-support: %s)\n",
2704+
connector->base.base.id, connector->base.name,
2705+
limits->pipe.min_bpp, limits->pipe.max_bpp,
2706+
str_yes_no(intel_dp_supports_dsc(intel_dp, connector,
2707+
crtc_state)));
2708+
}
2709+
26972710
if (dsc && !intel_dp_dsc_compute_pipe_bpp_limits(connector, limits))
26982711
return false;
26992712

@@ -2825,10 +2838,11 @@ intel_dp_compute_link_config(struct intel_encoder *encoder,
28252838
}
28262839

28272840
drm_dbg_kms(display->drm,
2828-
"DP lane count %d clock %d bpp input %d compressed " FXP_Q4_FMT " link rate required %d available %d\n",
2841+
"DP lane count %d clock %d bpp input %d compressed " FXP_Q4_FMT " HDR %s link rate required %d available %d\n",
28292842
pipe_config->lane_count, pipe_config->port_clock,
28302843
pipe_config->pipe_bpp,
28312844
FXP_Q4_ARGS(pipe_config->dsc.compressed_bpp_x16),
2845+
str_yes_no(intel_dp_in_hdr_mode(conn_state)),
28322846
intel_dp_config_required_rate(pipe_config),
28332847
intel_dp_max_link_data_rate(intel_dp,
28342848
pipe_config->port_clock,

drivers/gpu/drm/i915/display/intel_quirks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static struct intel_quirk intel_quirks[] = {
239239
{ 0x0f31, 0x103c, 0x220f, quirk_invert_brightness },
240240

241241
/* Dell XPS 13 7390 2-in-1 */
242-
{ 0x8a12, 0x1028, 0x08b0, quirk_edp_limit_rate_hbr2 },
242+
{ 0x8a52, 0x1028, 0x08b0, quirk_edp_limit_rate_hbr2 },
243243
};
244244

245245
static const struct intel_dpcd_quirk intel_dpcd_quirks[] = {

0 commit comments

Comments
 (0)