]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/gmc9: set vram_width properly for SR-IOV
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 17 May 2019 14:31:43 +0000 (09:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2019 17:49:10 +0000 (12:49 -0500)
commit7e4eeb6d04f3ed7b168219658339dddf2fcfdb0d
treee752b1b16102010d5118114727e288803328e4c8
parentfae08332dacf1b82eadeb1c94209cce53a9ca49f
drm/amdgpu/gmc9: set vram_width properly for SR-IOV

For SR-IOV, vram_width can't be read from ATOM as
RAVEN, and DF related registers is not readable, so hardcord
is the only way to set the correct vram_width.

Reviewed-by: Yintian Tao <yttao@amd.com>
Signed-off-by: Trigger Huang <Trigger.Huang@amd.com>
Signed-off-by: Yintian Tao <yttao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c