drm/amdgpu: add field indicating if has PCIE atomics support
authorJack Xiao <Jack.Xiao@amd.com>
Wed, 29 May 2019 05:24:22 +0000 (13:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Jul 2019 19:54:31 +0000 (14:54 -0500)
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 <Jack.Xiao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h

index 10c4ce69347cfa72eba94f4fe312105fe8cc448f..f88d8141447c81e1f69f4a536ba04a47e25931b3 100644 (file)
@@ -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;