Skip to contentSkip to conversation

drm/edid: Add HTC Vive Cosmos to the non-desktop quirk list

PATCH In review Jonathan Steffan 2 participants 2 messages Aug 8 – Aug 10

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/edid: Add HTC Vive Cosmos to the non-desktop quirk list

The HTC Vive Cosmos and Cosmos Elite head-mounted displays report an EDID with manufacturer ID "HVR" and product code 0xaa03. Like the original Vive (0xaa01) and the Vive Pro (0xaa02), they are VR headsets whose panel must not be treated as a regular desktop output. Flag it non-desktop so userspace leaves it alone and can acquire it via DRM leasing / direct mode instead of extending the desktop onto it.

---
 drivers/gpu/drm/drm_edid.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_edid.c +2 -1
index df3c25bac..437751ed3 100644
@@ -245,9 +245,10 @@ static const struct edid_quirk {
 	EDID_QUIRK('V', 'L', 'V', 0x91be, BIT(EDID_QUIRK_NON_DESKTOP)),
 	EDID_QUIRK('V', 'L', 'V', 0x91bf, BIT(EDID_QUIRK_NON_DESKTOP)),
 
-	/* HTC Vive and Vive Pro VR Headsets */
+	/* HTC Vive, Vive Pro and Vive Cosmos VR Headsets */
 	EDID_QUIRK('H', 'V', 'R', 0xaa01, BIT(EDID_QUIRK_NON_DESKTOP)),
 	EDID_QUIRK('H', 'V', 'R', 0xaa02, BIT(EDID_QUIRK_NON_DESKTOP)),
+	EDID_QUIRK('H', 'V', 'R', 0xaa03, BIT(EDID_QUIRK_NON_DESKTOP)),
 
 	/* Oculus Rift DK1, DK2, CV1 and Rift S VR Headsets */
 	EDID_QUIRK('O', 'V', 'R', 0x0001, BIT(EDID_QUIRK_NON_DESKTOP)),
Signature · 1 line
2.55.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 30 lines · Jonathan Steffan

The HTC Vive Cosmos and Cosmos Elite head-mounted displays report an EDID with manufacturer ID "HVR" and product code 0xaa03. Like the original Vive (0xaa01) and the Vive Pro (0xaa02), they are VR headsets whose panel must not be treated as a regular desktop output. Flag it non-desktop so userspace leaves it alone and can acquire it via DRM leasing / direct mode instead of extending the desktop onto it.

---
 drivers/gpu/drm/drm_edid.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_edid.c +2 -2
index df3c25bac..437751ed3 100644
@@ -245,9 +245,10 @@ static const struct edid_quirk {
        EDID_QUIRK('V', 'L', 'V', 0x91be, BIT(EDID_QUIRK_NON_DESKTOP)),
        EDID_QUIRK('V', 'L', 'V', 0x91bf, BIT(EDID_QUIRK_NON_DESKTOP)),
 
-       /* HTC Vive and Vive Pro VR Headsets */
+       /* HTC Vive, Vive Pro and Vive Cosmos VR Headsets */
        EDID_QUIRK('H', 'V', 'R', 0xaa01, BIT(EDID_QUIRK_NON_DESKTOP)),
        EDID_QUIRK('H', 'V', 'R', 0xaa02, BIT(EDID_QUIRK_NON_DESKTOP)),
+       EDID_QUIRK('H', 'V', 'R', 0xaa03, BIT(EDID_QUIRK_NON_DESKTOP)),
 
        /* Oculus Rift DK1, DK2, CV1 and Rift S VR Headsets */
        EDID_QUIRK('O', 'V', 'R', 0x0001, BIT(EDID_QUIRK_NON_DESKTOP)),
--
Quoted 2 lines

2.55.0