From: Jack Xiao Date: Wed, 29 May 2019 05:24:22 +0000 (+0800) Subject: drm/amdgpu: add field indicating if has PCIE atomics support X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bae17d2a1b6a2f1d539c77a581bb6b88ce622851;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu: add field indicating if has PCIE atomics support The new field in amdgpu device is used to record whether the system has PCIE atomics support. The field can be exposed to UMD or kfd whether PCIE atomics have supported. Signed-off-by: Jack Xiao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 10c4ce69347c..f88d8141447c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -775,6 +775,7 @@ struct amdgpu_device { struct mutex grbm_idx_mutex; struct dev_pm_domain vga_pm_domain; bool have_disp_power_ref; + bool have_atomics_support; /* BIOS */ bool is_atom_fw;