drm/amd/display: Add missing CW4 programming for DCN30
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 7 Jul 2020 15:37:14 +0000 (11:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:04:14 +0000 (09:04 -0400)
commit497f15f2bdef0124b0803ba9cceadf7a9b670079
treeb87abc672e5a98db5ce43dbdc324c032954d9c7f
parent714ec7a2bd136a3dc5930bdcefc5f9e40035e4d8
drm/amd/display: Add missing CW4 programming for DCN30

[Why]
To support inbox1 in CW4 we need to actually program CW4 instead of
region 4 for newer firmware.

This is done correctly on DCN20/DCN21 but this code wasn't added to
DCN30.

[How]
Copy over the missing code. It doesn't need address translation since
DCN30 uses virtual addressing.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn30.c