From ce8f386d865b944b6aff12fdfa6caf7cd73d83a6 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sat, 5 Oct 2019 17:12:38 +0200 Subject: [PATCH] intel_extreme: extra tracing around overlay memory block init To help understand the problem in #14276 Change-Id: I334a5cdfa149d335068f2135d13ed729b53fe6ab Reviewed-on: https://review.haiku-os.org/c/haiku/+/1900 Reviewed-by: waddlesplash --- .../kernel/drivers/graphics/intel_extreme/intel_extreme.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/add-ons/kernel/drivers/graphics/intel_extreme/intel_extreme.cpp b/src/add-ons/kernel/drivers/graphics/intel_extreme/intel_extreme.cpp index 386ef14d83..3383fdd4de 100644 --- a/src/add-ons/kernel/drivers/graphics/intel_extreme/intel_extreme.cpp +++ b/src/add-ons/kernel/drivers/graphics/intel_extreme/intel_extreme.cpp @@ -507,6 +507,10 @@ intel_extreme_init(intel_info &info) if (status == B_OK) { info.shared_info->overlay_offset = (addr_t)info.overlay_registers - info.aperture_base; + TRACE("Overlay registers mapped at %" B_PRIxADDR " = %p - %" + B_PRIxADDR " (%" B_PRIxPHYSADDR ")\n", + info.shared_info->overlay_offset, info.overlay_registers, + info.aperture_base, info.shared_info->physical_overlay_registers); init_overlay_registers(info.overlay_registers); } else { ERROR("error: could not allocate overlay memory! %s\n", @@ -514,6 +518,7 @@ intel_extreme_init(intel_info &info) } // Allocate hardware status page and the cursor memory + TRACE("Allocating hardware status page"); if (intel_allocate_memory(info, B_PAGE_SIZE, 0, B_APERTURE_NEED_PHYSICAL, (addr_t*)info.shared_info->status_page,