Skip to content

Commit 2ca5a7b

Browse files
committed
drm/i915: Handle max_bpc==16
EDID can declare the maximum supported bpc up to 16, and apparently there are displays that do so. Currently we assume 12 bpc is tha max. Fix the assumption and toss in a MISSING_CASE() for any other value we don't expect to see. This fixes modesets with a display with EDID max bpc > 12. Previously any modeset would just silently fail on platforms that didn't otherwise limit this via the max_bpc property. In particular we don't add the max_bpc property to HDMI ports on gmch platforms, and thus we would see the raw max_bpc coming from the EDID. I suppose we could already adjust this to also allow 16bpc, but seeing as no current platform supports that there is little point. Cc: [email protected] Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2632 Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: José Roberto de Souza <[email protected]>
1 parent c9afbf5 commit 2ca5a7b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13043,10 +13043,11 @@ compute_sink_pipe_bpp(const struct drm_connector_state *conn_state,
1304313043
case 10 ... 11:
1304413044
bpp = 10 * 3;
1304513045
break;
13046-
case 12:
13046+
case 12 ... 16:
1304713047
bpp = 12 * 3;
1304813048
break;
1304913049
default:
13050+
MISSING_CASE(conn_state->max_bpc);
1305013051
return -EINVAL;
1305113052
}
1305213053

0 commit comments

Comments
 (0)