Commit abe6af16 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915/bios: Switch to kms debugs

The VBT code is all about displays, so switch to UT_KMS debugs
from UT_DRIVER.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240208151720.7866-7-ville.syrjala@linux.intel.comReviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 5f67258c
...@@ -2911,17 +2911,17 @@ bool intel_bios_is_valid_vbt(const void *buf, size_t size) ...@@ -2911,17 +2911,17 @@ bool intel_bios_is_valid_vbt(const void *buf, size_t size)
return false; return false;
if (sizeof(struct vbt_header) > size) { if (sizeof(struct vbt_header) > size) {
DRM_DEBUG_DRIVER("VBT header incomplete\n"); DRM_DEBUG_KMS("VBT header incomplete\n");
return false; return false;
} }
if (memcmp(vbt->signature, "$VBT", 4)) { if (memcmp(vbt->signature, "$VBT", 4)) {
DRM_DEBUG_DRIVER("VBT invalid signature\n"); DRM_DEBUG_KMS("VBT invalid signature\n");
return false; return false;
} }
if (vbt->vbt_size > size) { if (vbt->vbt_size > size) {
DRM_DEBUG_DRIVER("VBT incomplete (vbt_size overflows)\n"); DRM_DEBUG_KMS("VBT incomplete (vbt_size overflows)\n");
return false; return false;
} }
...@@ -2931,13 +2931,13 @@ bool intel_bios_is_valid_vbt(const void *buf, size_t size) ...@@ -2931,13 +2931,13 @@ bool intel_bios_is_valid_vbt(const void *buf, size_t size)
vbt->bdb_offset, vbt->bdb_offset,
sizeof(struct bdb_header), sizeof(struct bdb_header),
size)) { size)) {
DRM_DEBUG_DRIVER("BDB header incomplete\n"); DRM_DEBUG_KMS("BDB header incomplete\n");
return false; return false;
} }
bdb = get_bdb_header(vbt); bdb = get_bdb_header(vbt);
if (range_overflows_t(size_t, vbt->bdb_offset, bdb->bdb_size, size)) { if (range_overflows_t(size_t, vbt->bdb_offset, bdb->bdb_size, size)) {
DRM_DEBUG_DRIVER("BDB incomplete\n"); DRM_DEBUG_KMS("BDB incomplete\n");
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment