summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
diff options
context:
space:
mode:
authorJoshua Aberback <joshua.aberback@amd.com>2024-03-07 05:13:04 -0500
committerAlex Deucher <alexander.deucher@amd.com>2024-04-09 22:04:39 -0400
commitcc263c3a0c9f38ea245393daa07eaa8e21ee17ae (patch)
tree6087e971e0bfdf0363d0d86be334721b9fb116a0 /drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
parentc435bce6af9b2a277662698875a689c389358f17 (diff)
downloadlinux-stable-cc263c3a0c9f38ea245393daa07eaa8e21ee17ae.tar.gz
linux-stable-cc263c3a0c9f38ea245393daa07eaa8e21ee17ae.tar.bz2
linux-stable-cc263c3a0c9f38ea245393daa07eaa8e21ee17ae.zip
drm/amd/display: remove context->dml2 dependency from DML21 wrapper
[Why] When the DML2 wrapper explicitly accesses context->dml2, that creates a dependency on where dc saves the DML object. This dependency makes it harder to have multiple co-existing DML objects, which we would like to have for upcoming functionality. [How] - make all DML21 interfaces take in a DML2 object as parameter - remove all references to context->dml2, use parameter instead Reviewed-by: Jun Lei <jun.lei@amd.com> Reviewed-by: Aric Cyr <aric.cyr@amd.com> Acked-by: Roman Li <roman.li@amd.com> Signed-off-by: Joshua Aberback <joshua.aberback@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
index 479641fedcd4..e0544484e8c0 100644
--- a/drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
@@ -1734,7 +1734,7 @@ static bool dcn35_validate_bandwidth(struct dc *dc,
{
bool out = false;
- out = dml2_validate(dc, context, fast_validate);
+ out = dml2_validate(dc, context, context->bw_ctx.dml2, fast_validate);
if (fast_validate)
return out;