]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Copy MEC FW version to MEC2 if we skipped loading MEC2
authorJoseph Greathouse <Joseph.Greathouse@amd.com>
Thu, 15 Apr 2021 06:02:46 +0000 (14:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:32:45 +0000 (16:32 -0400)
commitad901760acb8bf04d1a9d2601e5dfd4a9229b892
tree0974d269f366de1299fd9830ac9515428000e03f
parent926c7b6e2fda6f2bacdd8345e6878a9abdaffa3f
drm/amdgpu: Copy MEC FW version to MEC2 if we skipped loading MEC2

If we skipped loading MEC2 firmware separately
from MEC, then MEC2 will be running the same
firmware image. Copy the MEC version and feature
numbers into MEC2 version and feature numbers.
This is needed for things like GWS support, where
we rely on knowing what version of firmware is
running on MEC2. Leaving these MEC2 entries blank
breaks our ability to version-check enables and
workarounds.

Signed-off-by: Joseph Greathouse <Joseph.Greathouse@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c