drm/amd/display: Add hubp cache reset when powergating[Why]When HUBP is power gated, the SW state can get out of sync with thehardware state causing cursor to not be programmed correctly.[How]
drm/amd/display: Add hubp cache reset when powergating[Why]When HUBP is power gated, the SW state can get out of sync with thehardware state causing cursor to not be programmed correctly.[How]Similar to DPP, add a HUBP reset function which is called whereverHUBP is initialized or powergated. This function will clear the cursorposition and attribute cache allowing for proper programming when theHUBP is brought back up.Cc: Mario Limonciello <mario.limonciello@amd.com>Cc: Alex Deucher <alexander.deucher@amd.com>Cc: stable@vger.kernel.orgReviewed-by: Sung Lee <sung.lee@amd.com>Signed-off-by: Aric Cyr <Aric.Cyr@amd.com>Signed-off-by: Wayne Lin <wayne.lin@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
drm/amd/display: Update dc_tiling_info union to structure[WHY]The `dc_tiling_info` union previously did not have a field tospecify the active GFX format, assuming only one format wouldbe used pe
drm/amd/display: Update dc_tiling_info union to structure[WHY]The `dc_tiling_info` union previously did not have a field tospecify the active GFX format, assuming only one format wouldbe used per DCN version. from DCN4+, support for switchingbetween different GFX formats is introduced, requiring a wayto track which format is currently in use.[HOW]Updated the `dc_tiling_info` union to include a new field thatexplicitly indicates the currently used GFX format.This allows the system to determine the active GFX formatand take the correct programming path accordingly.[Description]The union `dc_tiling_info` has been updated to support multipleGFX formats by adding a new field for identifying the active format.This update ensures that the correct programming path is followedbased on the selected format. All references to `dc_tiling_info`in the codebase have been updated to reflect the new structure.Reviewed-by: Alvin Lee <alvin.lee2@amd.com>Signed-off-by: Karthi Kandasamy <karthi.kandasamy@amd.com>Signed-off-by: Roman Li <roman.li@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: add clear_tiling hubp callbacksThis adds clear_tiling callbacks to the hubp structure thatwill be used for drm panic support to clear the tiling ona display. hubp3 support from
drm/amd/display: add clear_tiling hubp callbacksThis adds clear_tiling callbacks to the hubp structure thatwill be used for drm panic support to clear the tiling ona display. hubp3 support from Jocelyn's original patchand the rest from me.Reviewed-by: Harry Wentland <harry.wentland@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>Cc: Lu Yao <yaolu@kylinos.cn>Cc: Jocelyn Falempe <jfalempe@redhat.com>Cc: Harry Wentland <harry.wentland@amd.com>
drm/amd/display: Check null pointers before used[WHAT & HOW]Poniters, such as dc->clk_mgr, are null checked previously in the samefunction, so Coverity warns "implies that "dc->clk_mgr" might be
drm/amd/display: Check null pointers before used[WHAT & HOW]Poniters, such as dc->clk_mgr, are null checked previously in the samefunction, so Coverity warns "implies that "dc->clk_mgr" might be null".As a result, these pointers need to be checked when used again.This fixes 10 FORWARD_NULL issues reported by Coverity.Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>Signed-off-by: Alex Hung <alex.hung@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Refactor HUBP into component folder.[why]cleaning up the code refactor requires hubp to be in its own component.[how]move all files under newly created hubp folder and fixing t
drm/amd/display: Refactor HUBP into component folder.[why]cleaning up the code refactor requires hubp to be in its own component.[how]move all files under newly created hubp folder and fixing the makefiles.Reviewed-by: Martin Leung <martin.leung@amd.com>Acked-by: Tom Chung <chiahsuan.chung@amd.com>Signed-off-by: Bhuvana Chandra Pinninti <bhuvanachandra.pinninti@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>