mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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>
This commit is contained in:
parent
6cbe6e072c
commit
a9273da04f
|
|
@ -939,6 +939,10 @@ int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
|
|||
if (adev->gfx.config.ta_cntl2_truncate_coord_mode)
|
||||
dev_info->ids_flags |= AMDGPU_IDS_FLAGS_CONFORMANT_TRUNC_COORD;
|
||||
|
||||
/* Gang submit is not supported under SRIOV currently */
|
||||
if (!amdgpu_sriov_vf(adev))
|
||||
dev_info->ids_flags |= AMDGPU_IDS_FLAGS_GANG_SUBMIT;
|
||||
|
||||
if (amdgpu_passthrough(adev))
|
||||
dev_info->ids_flags |= (AMDGPU_IDS_FLAGS_MODE_PT <<
|
||||
AMDGPU_IDS_FLAGS_MODE_SHIFT) &
|
||||
|
|
|
|||
|
|
@ -1088,10 +1088,11 @@ struct drm_amdgpu_cs_chunk_cp_gfx_shadow {
|
|||
* Query h/w info: Flag that this is integrated (a.h.a. fusion) GPU
|
||||
*
|
||||
*/
|
||||
#define AMDGPU_IDS_FLAGS_FUSION 0x1
|
||||
#define AMDGPU_IDS_FLAGS_PREEMPTION 0x2
|
||||
#define AMDGPU_IDS_FLAGS_TMZ 0x4
|
||||
#define AMDGPU_IDS_FLAGS_CONFORMANT_TRUNC_COORD 0x8
|
||||
#define AMDGPU_IDS_FLAGS_FUSION 0x01
|
||||
#define AMDGPU_IDS_FLAGS_PREEMPTION 0x02
|
||||
#define AMDGPU_IDS_FLAGS_TMZ 0x04
|
||||
#define AMDGPU_IDS_FLAGS_CONFORMANT_TRUNC_COORD 0x08
|
||||
#define AMDGPU_IDS_FLAGS_GANG_SUBMIT 0x10
|
||||
|
||||
/*
|
||||
* Query h/w info: Flag identifying VF/PF/PT mode
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user