drm/display: Don't block HDR_OUTPUT_METADATA on unknown EOTF
authorjsg <jsg@openbsd.org>
Tue, 28 Mar 2023 00:16:13 +0000 (00:16 +0000)
committerjsg <jsg@openbsd.org>
Tue, 28 Mar 2023 00:16:13 +0000 (00:16 +0000)
From Harry Wentland
9f6f6f42b9ef6b6ad2fcd01623593bef7eb5a47b in linux-6.1.y/6.1.20
e5eef23e267c72521d81f23f7f82d1f523d4a253 in mainline linux

sys/dev/pci/drm/display/drm_hdmi_helper.c

index 0264abe..faf5e9e 100644 (file)
@@ -44,10 +44,8 @@ int drm_hdmi_infoframe_set_hdr_metadata(struct hdmi_drm_infoframe *frame,
 
        /* Sink EOTF is Bit map while infoframe is absolute values */
        if (!is_eotf_supported(hdr_metadata->hdmi_metadata_type1.eotf,
-           connector->hdr_sink_metadata.hdmi_type1.eotf)) {
-               DRM_DEBUG_KMS("EOTF Not Supported\n");
-               return -EINVAL;
-       }
+           connector->hdr_sink_metadata.hdmi_type1.eotf))
+               DRM_DEBUG_KMS("Unknown EOTF %d\n", hdr_metadata->hdmi_metadata_type1.eotf);
 
        err = hdmi_drm_infoframe_init(frame);
        if (err < 0)