diff options
| author | Aric Cyr <[email protected]> | 2025-01-09 20:03:48 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-01-24 14:56:22 +0000 |
| commit | 01130f5260e5868fb6b15ab8c00dbc894139f48e (patch) | |
| tree | 58e65b35b1bb2373c66d2a9a1e22b72af30a49f1 /drivers/gpu/drm/amd/display/dc/inc/hw | |
| parent | drm/amd/amdgpu: Enable scratch data dump for mes 12 (diff) | |
| download | kernel-01130f5260e5868fb6b15ab8c00dbc894139f48e.tar.gz kernel-01130f5260e5868fb6b15ab8c00dbc894139f48e.zip | |
drm/amd/display: Add hubp cache reset when powergating
[Why]
When HUBP is power gated, the SW state can get out of sync with the
hardware state causing cursor to not be programmed correctly.
[How]
Similar to DPP, add a HUBP reset function which is called wherever
HUBP is initialized or powergated. This function will clear the cursor
position and attribute cache allowing for proper programming when the
HUBP is brought back up.
Cc: Mario Limonciello <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: [email protected]
Reviewed-by: Sung Lee <[email protected]>
Signed-off-by: Aric Cyr <[email protected]>
Signed-off-by: Wayne Lin <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h b/drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h index 2a530a4a39f7..b610beb075d5 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h @@ -163,6 +163,8 @@ struct hubp_funcs { void (*dcc_control)(struct hubp *hubp, bool enable, enum hubp_ind_block_size blk_size); + void (*hubp_reset)(struct hubp *hubp); + void (*mem_program_viewport)( struct hubp *hubp, const struct rect *viewport, |
