don't warn on output type 0 result in dm_edid_parser_send_cea()
authorjsg <jsg@openbsd.org>
Mon, 11 Apr 2022 06:50:58 +0000 (06:50 +0000)
committerjsg <jsg@openbsd.org>
Mon, 11 Apr 2022 06:50:58 +0000 (06:50 +0000)
shows on renoir when using HP ZR2440w display via hdmi
[drm] Unknown EDID CEA parser results

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 06a11be..6620de3 100644 (file)
@@ -10751,7 +10751,8 @@ static bool dm_edid_parser_send_cea(struct amdgpu_display_manager *dm,
                vsdb->min_refresh_rate_hz = output->amd_vsdb.min_frame_rate;
                vsdb->max_refresh_rate_hz = output->amd_vsdb.max_frame_rate;
        } else {
-               DRM_WARN("Unknown EDID CEA parser results\n");
+               if (output->type != 0)
+                       DRM_WARN("Unknown EDID CEA parser results\n");
                return false;
        }