hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/nouveau/nouveau_dp.c
....@@ -220,8 +220,6 @@
220220 }
221221
222222 /* TODO:
223
- * - Use the minimum possible BPC here, once we add support for the max bpc
224
- * property.
225223 * - Validate against the DP caps advertised by the GPU (we don't check these
226224 * yet)
227225 */
....@@ -233,7 +231,11 @@
233231 {
234232 const unsigned int min_clock = 25000;
235233 unsigned int max_rate, mode_rate, ds_max_dotclock, clock = mode->clock;
236
- const u8 bpp = connector->display_info.bpc * 3;
234
+ /* Check with the minmum bpc always, so we can advertise better modes.
235
+ * In particlar not doing this causes modes to be dropped on HDR
236
+ * displays as we might check with a bpc of 16 even.
237
+ */
238
+ const u8 bpp = 6 * 3;
237239
238240 if (mode->flags & DRM_MODE_FLAG_INTERLACE && !outp->caps.dp_interlace)
239241 return MODE_NO_INTERLACE;