hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/radeon/atombios_encoders.c
....@@ -2191,11 +2191,12 @@
21912191
21922192 /*
21932193 * On DCE32 any encoder can drive any block so usually just use crtc id,
2194
- * but Apple thinks different at least on iMac10,1, so there use linkb,
2194
+ * but Apple thinks different at least on iMac10,1 and iMac11,2, so there use linkb,
21952195 * otherwise the internal eDP panel will stay dark.
21962196 */
21972197 if (ASIC_IS_DCE32(rdev)) {
2198
- if (dmi_match(DMI_PRODUCT_NAME, "iMac10,1"))
2198
+ if (dmi_match(DMI_PRODUCT_NAME, "iMac10,1") ||
2199
+ dmi_match(DMI_PRODUCT_NAME, "iMac11,2"))
21992200 enc_idx = (dig->linkb) ? 1 : 0;
22002201 else
22012202 enc_idx = radeon_crtc->crtc_id;