From: Hong-lu Cheng Date: Thu, 14 Sep 2023 15:32:56 +0000 (-0400) Subject: drm/amd/display: Update OPP counter from new interface X-Git-Tag: microblaze-v6.8~11^2~16^2~232 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=40de8403b998020a7bf3e356ef64feefa77f096b;p=linux-2.6-microblaze.git drm/amd/display: Update OPP counter from new interface [Description] Change to new interface for notifying OS of cursor support changes Reviewed-by: Gang Chu Reviewed-by: Jaina Han Reviewed-by: Jun Lei Acked-by: Wayne Lin Signed-off-by: Hong-lu Cheng Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 76db20b90302..c5a74b202bc8 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -3507,7 +3507,7 @@ static void wait_for_outstanding_hw_updates(struct dc *dc, const struct dc_state */ int pipe_idx; int opp_inst; - int opp_count = dc->res_pool->pipe_count; + int opp_count = dc->res_pool->res_cap->num_opp; struct hubp *hubp; int mpcc_inst; const struct pipe_ctx *pipe_ctx;