Skip to contentSkip to conversation

ACPI: video: Add backlight=native DMI quirk for Apple iMac12,1 and iMac12,2

PATCH Applied Hans de Goede 3 participants 4 messages Aug 7, 2023 – Aug 17, 2023 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: video: Add backlight=native DMI quirk for Apple iMac12,1 and iMac12,2

Linux defaults to picking the non-working ACPI video backlight interface on the Apple iMac12,1 and iMac12,2.

Add a DMI quirk to pick the working native radeon_bl0 interface instead.

---
 drivers/acpi/video_detect.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
drivers/acpi/video_detect.c +18 -0
index 18cc08c858cf..7cceaf31d928 100644
@@ -486,6 +486,24 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "iMac11,3"),
 		},
 	},
+	{
+	 /* https://gitlab.freedesktop.org/drm/amd/-/issues/1838 */
+	 .callback = video_detect_force_native,
+	 /* Apple iMac12,1 */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,1"),
+		},
+	},
+	{
+	 /* https://gitlab.freedesktop.org/drm/amd/-/issues/2753 */
+	 .callback = video_detect_force_native,
+	 /* Apple iMac12,2 */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,2"),
+		},
+	},
 	{
 	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
 	 .callback = video_detect_force_native,
Signature · 1 line
2.41.0
#1 lore raw
Quoted 11 lines · Hans de Goede

Linux defaults to picking the non-working ACPI video backlight interface on the Apple iMac12,1 and iMac12,2.

Add a DMI quirk to pick the working native radeon_bl0 interface instead.

---
  drivers/acpi/video_detect.c | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)

I'm wondering if you also in the same series should be reverting these two commits?

05eacc198c68 ("drm/radeon: Fix eDP for single-display iMac11,2") 564d8a2cf3ab ("drm/radeon: Fix eDP for single-display iMac10,1 (v2)")

Quoted 30 lines
drivers/acpi/video_detect.c +18 -0
index 18cc08c858cf..7cceaf31d928 100644
@@ -486,6 +486,24 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
  		DMI_MATCH(DMI_PRODUCT_NAME, "iMac11,3"),
  		},
  	},
+	{
+	 /* https://gitlab.freedesktop.org/drm/amd/-/issues/1838 */
+	 .callback = video_detect_force_native,
+	 /* Apple iMac12,1 */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,1"),
+		},
+	},
+	{
+	 /* https://gitlab.freedesktop.org/drm/amd/-/issues/2753 */
+	 .callback = video_detect_force_native,
+	 /* Apple iMac12,2 */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,2"),
+		},
+	},
  	{
  	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
  	 .callback = video_detect_force_native,
#2 lore raw

Hi Mario,

Quoted 13 lines · Mario Limonciello
Quoted 11 lines · Hans de Goede

Linux defaults to picking the non-working ACPI video backlight interface on the Apple iMac12,1 and iMac12,2.

Add a DMI quirk to pick the working native radeon_bl0 interface instead.

---
  drivers/acpi/video_detect.c | 18 ++++++++++++++++++

  1 file changed, 18 insertions(+)
Quoted 4 lines

I'm wondering if you also in the same series should be reverting these two commits?

05eacc198c68 ("drm/radeon: Fix eDP for single-display iMac11,2") 564d8a2cf3ab ("drm/radeon: Fix eDP for single-display iMac10,1 (v2)")

Those 2 patches select which encoder to use to driver the eDP link, this seems to be something independent of / orthogonal to which backlight contrl method to use which is what this patch is about.

Regards,

Hans

Quoted 32 lines
Quoted 31 lines
drivers/acpi/video_detect.c +18 -0
index 18cc08c858cf..7cceaf31d928 100644
@@ -486,6 +486,24 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
           DMI_MATCH(DMI_PRODUCT_NAME, "iMac11,3"),
           },
       },
+    {
+     /* https://gitlab.freedesktop.org/drm/amd/-/issues/1838 */
+     .callback = video_detect_force_native,
+     /* Apple iMac12,1 */
+     .matches = {
+        DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+        DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,1"),
+        },
+    },
+    {
+     /* https://gitlab.freedesktop.org/drm/amd/-/issues/2753 */
+     .callback = video_detect_force_native,
+     /* Apple iMac12,2 */
+     .matches = {
+        DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+        DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,2"),
+        },
+    },
       {
        /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
        .callback = video_detect_force_native,
maintainer Applied
#3 lore raw
In reply to Hans de Goede
Quoted 33 lines · Hans de Goede

Linux defaults to picking the non-working ACPI video backlight interface on the Apple iMac12,1 and iMac12,2.

Add a DMI quirk to pick the working native radeon_bl0 interface instead.

---
 drivers/acpi/video_detect.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
drivers/acpi/video_detect.c +12 -0
index 18cc08c858cf..7cceaf31d928 100644
@@ -486,6 +486,24 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
                DMI_MATCH(DMI_PRODUCT_NAME, "iMac11,3"),
                },
        },
+       {
+        /* https://gitlab.freedesktop.org/drm/amd/-/issues/1838 */
+        .callback = video_detect_force_native,
+        /* Apple iMac12,1 */
+        .matches = {
+               DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+               DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,1"),
+               },
+       },
+       {
+        /* https://gitlab.freedesktop.org/drm/amd/-/issues/2753 */
+        .callback = video_detect_force_native,

drivers/acpi/video_detect.c static const struct dmi_system_id video_detect_dmi_table[] = {

Quoted 10 lines
drivers/acpi/video_detect.c +6 -1
+        /* Apple iMac12,2 */
+        .matches = {
+               DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+               DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,2"),
+               },
+       },
        {
         /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
         .callback = video_detect_force_native,
--

Applied as 6.6 material, thanks!