diff options
author | Liav A <liavalb@gmail.com> | 2022-03-05 22:37:02 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-08 21:56:14 +0100 |
commit | 7aa63ddd0097a95308af814109495a41de6edb2e (patch) | |
tree | e52a108fbfc22a3ef748b5da6df1ab3ee542bea3 /Kernel/Graphics | |
parent | bd48e738518e285d449d213d06de8ff065daddea (diff) | |
download | serenity-7aa63ddd0097a95308af814109495a41de6edb2e.zip |
Kernel/Graphics: Print contents of offending EDID in Intel Native driver
Diffstat (limited to 'Kernel/Graphics')
-rw-r--r-- | Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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 = {}; } } |