]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: make needs_pcie_atomics FW-version dependent
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 31 Aug 2021 21:42:15 +0000 (17:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Sep 2021 13:56:23 +0000 (09:56 -0400)
commit26d437ab61b0530345b628d35921ea660d5bee45
tree79799a4b9f51cf1965163b9eb8d02a33cf5c0ed9
parent08b4fe5d72c6cf747721057a237ab15777a7fa1d
drm/amdkfd: make needs_pcie_atomics FW-version dependent

On some GPUs the PCIe atomic requirement for KFD depends on the MEC
firmware version. Add a firmware version check for this. The minimum
firmware version that works without atomics can be updated in the
device_info structure for each GPU type.

Move PCIe atomic detection from kgd2kfd_probe into kgd2kfd_device_init
because the MEC firmware is not loaded yet at the probe stage.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h