]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu:properly fix some JumpTable issues
authorMonk Liu <Monk.Liu@amd.com>
Tue, 27 Sep 2016 08:39:58 +0000 (16:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Oct 2016 18:38:23 +0000 (14:38 -0400)
commit597b203f881718ab2930f80aceb90611fa422569
treeb96f0d2e60cecaa71b44d3ceda72ff50629fa4bf
parent3558b3c5502dfe102a27b7b9ff10595907272c79
drm/amdgpu:properly fix some JumpTable issues

we found some MEC ucode leads to IB test fail or even
ring test fail if Jump Table of it is not start in
FW bo with page aligned address, fixed by always make
JT address page aligned.

we don't need to patch JT2 for MEC2, because for VI,
MEC2 is a copy of MEC1, thus when converting fw_type
for MEC_JT2 we just return MEC1,hw can use the same
JT for both MEC1 & MEC2.

above two change fixed some ring/ib test failure issue
for some version of MEC ucode.

Signed-off-by: Frank Min <Frank.Min@amd.com>
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c