Commit 516e332d authored by Zongmin Zhou's avatar Zongmin Zhou Committed by Greg Kroah-Hartman
Browse files

drm/amdgpu: fixup bad vram size on gmc v8



[ Upstream commit 11544d77 ]

Some boards(like RX550) seem to have garbage in the upper
16 bits of the vram size register.  Check for
this and clamp the size properly.  Fixes
boards reporting bogus amounts of vram.

after add this patch,the maximum GPU VRAM size is 64GB,
otherwise only 64GB vram size will be used.

Signed-off-by: default avatarZongmin <Zhou&lt;zhouzongmin@kylinos.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ee88ff14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment