From 7aa63ddd0097a95308af814109495a41de6edb2e Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 5 Mar 2022 22:37:02 +0200 Subject: [PATCH] Kernel/Graphics: Print contents of offending EDID in Intel Native driver --- Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp b/Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp index 7519863a85..d018b7b2a6 100644 --- a/Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp +++ b/Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp @@ -382,7 +382,15 @@ void IntelNativeGraphicsAdapter::gmbus_read_edid() if (auto parsed_edid = EDID::Parser::from_bytes({ m_crt_edid_bytes, sizeof(m_crt_edid_bytes) }); !parsed_edid.is_error()) { m_crt_edid = parsed_edid.release_value(); } else { - dbgln("IntelNativeGraphicsAdapter: Parsing EDID failed: {}", parsed_edid.error()); + for (size_t x = 0; x < 128; x = x + 16) { + dmesgln("IntelNativeGraphicsAdapter: Print offending EDID"); + dmesgln("{:02x} {:02x} {:02x} {:02x} {:02x} {:02x} {:02x} {:02x} {:02x} {:02x} {:02x} {:02x} {:02x} {:02x} {:02x} {:02x}", + m_crt_edid_bytes[x], m_crt_edid_bytes[x + 1], m_crt_edid_bytes[x + 2], m_crt_edid_bytes[x + 3], + m_crt_edid_bytes[x + 4], m_crt_edid_bytes[x + 5], m_crt_edid_bytes[x + 6], m_crt_edid_bytes[x + 7], + m_crt_edid_bytes[x + 8], m_crt_edid_bytes[x + 9], m_crt_edid_bytes[x + 10], m_crt_edid_bytes[x + 11], + m_crt_edid_bytes[x + 12], m_crt_edid_bytes[x + 13], m_crt_edid_bytes[x + 14], m_crt_edid_bytes[x + 15]); + } + dmesgln("IntelNativeGraphicsAdapter: Parsing EDID failed: {}", parsed_edid.error()); m_crt_edid = {}; } }