mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 07:02:29 -04:00
drm/amd/display: Fix assert being hit with GAMCOR memory shut down
[Why] A call to BREAK_TO_DEBUGGER is triggered when powering down memory [How] Remove the check for GAMCOR_MEM_PWR_STATE when powering off the memory Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Jacky Liao <ziyu.liao@amd.com> Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -133,7 +133,6 @@ static void dpp3_power_on_gamcor_lut(
|
||||
struct dpp *dpp_base,
|
||||
bool power_on)
|
||||
{
|
||||
uint32_t power_status;
|
||||
struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base);
|
||||
|
||||
if (dpp_base->ctx->dc->debug.enable_mem_low_power.bits.cm) {
|
||||
@@ -143,12 +142,6 @@ static void dpp3_power_on_gamcor_lut(
|
||||
} else
|
||||
REG_SET(CM_MEM_PWR_CTRL, 0,
|
||||
GAMCOR_MEM_PWR_DIS, power_on == true ? 0:1);
|
||||
|
||||
REG_GET(CM_MEM_PWR_STATUS, GAMCOR_MEM_PWR_STATE, &power_status);
|
||||
if (power_status != 0)
|
||||
BREAK_TO_DEBUGGER();
|
||||
|
||||
|
||||
}
|
||||
|
||||
void dpp3_program_cm_dealpha(
|
||||
|
||||
Reference in New Issue
Block a user