diff options
author | Samson Tam | 2023-01-11 13:31:31 -0500 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-03-17 08:50:32 +0100 |
commit | 38327b6cb1fa2bb098bca0db7dd25ee80a6d64b1 (patch) | |
tree | 718f206c109b80aa8963fe3d00a401ad8b636371 /fs/locks.c | |
parent | 02c8fa11f545938f3f5af3cd02fe343803539213 (diff) |
drm/amd/display: adjust MALL size available for DCN32 and DCN321
commit 235fef6c7fd341026eee90cc546e6e8ff8b2c315 upstream.
[Why]
MALL size available can vary for different SKUs.
Use num_chans read from VBIOS to determine the available MALL size we can use
[How]
Define max_chans for DCN32 and DCN321.
If num_chans is max_chans, then return max_chans as we can access the
entire MALL space.
Otherwise, define avail_chans as the number of available channels we are
allowed instead.
Return corresponding number of channels back and use this to calculate
available MALL size.
Reviewed-by: Nevenko Stupar <Nevenko.Stupar@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions