Skip to content

Commit a9273da

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: add AMDGPU_IDS_FLAGS_GANG_SUBMIT
Add a UAPI flag indicating if gang submit is supported or not. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 6cbe6e0 commit a9273da

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,10 @@ int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
939939
if (adev->gfx.config.ta_cntl2_truncate_coord_mode)
940940
dev_info->ids_flags |= AMDGPU_IDS_FLAGS_CONFORMANT_TRUNC_COORD;
941941

942+
/* Gang submit is not supported under SRIOV currently */
943+
if (!amdgpu_sriov_vf(adev))
944+
dev_info->ids_flags |= AMDGPU_IDS_FLAGS_GANG_SUBMIT;
945+
942946
if (amdgpu_passthrough(adev))
943947
dev_info->ids_flags |= (AMDGPU_IDS_FLAGS_MODE_PT <<
944948
AMDGPU_IDS_FLAGS_MODE_SHIFT) &

include/uapi/drm/amdgpu_drm.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,10 +1088,11 @@ struct drm_amdgpu_cs_chunk_cp_gfx_shadow {
10881088
* Query h/w info: Flag that this is integrated (a.h.a. fusion) GPU
10891089
*
10901090
*/
1091-
#define AMDGPU_IDS_FLAGS_FUSION 0x1
1092-
#define AMDGPU_IDS_FLAGS_PREEMPTION 0x2
1093-
#define AMDGPU_IDS_FLAGS_TMZ 0x4
1094-
#define AMDGPU_IDS_FLAGS_CONFORMANT_TRUNC_COORD 0x8
1091+
#define AMDGPU_IDS_FLAGS_FUSION 0x01
1092+
#define AMDGPU_IDS_FLAGS_PREEMPTION 0x02
1093+
#define AMDGPU_IDS_FLAGS_TMZ 0x04
1094+
#define AMDGPU_IDS_FLAGS_CONFORMANT_TRUNC_COORD 0x08
1095+
#define AMDGPU_IDS_FLAGS_GANG_SUBMIT 0x10
10951096

10961097
/*
10971098
* Query h/w info: Flag identifying VF/PF/PT mode

0 commit comments

Comments
 (0)