]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Add log for MALL entry on DCN32x
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Fri, 24 Jan 2025 21:10:57 +0000 (16:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Feb 2025 20:13:55 +0000 (15:13 -0500)
[Why&How]
Add a dyndbg log entry to check whether the driver requested scanout
from MALL cache to PMFW via DMCUB

Reviewed-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Reviewed-by: Roman Li <roman.li@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c

index dd46db67d033ff99d1fcc86b324986ca648fd41b..cd0adf72b22309cd6adb5928a8aa81a2aefb6c6e 100644 (file)
@@ -316,10 +316,12 @@ bool dcn32_apply_idle_power_optimizations(struct dc *dc, bool enable)
                        cmd.cab.cab_alloc_ways = (uint8_t)ways;
 
                        dc_wake_and_execute_dmub_cmd(dc->ctx, &cmd, DM_DMUB_WAIT_TYPE_NO_WAIT);
+                       DC_LOG_MALL("enable scanout from MALL");
 
                        return true;
                }
 
+               DC_LOG_MALL("surface cannot fit in CAB, disabling scanout from MALL\n");
                return false;
        }