History

drm/amdgpu: Add flags to distinguish vf/pf/pt mode

Add extra flag definition for ids_flag field to distinguish between vf/pf/pt modes v2: Updated kms driver minor version & removed pf check as default is 0 v3: Fix up version (Alex) v4: rebase (Alex) Proposed userspace: https://github.com/ROCm/amdsmi/commit/e663bed7d6b3df79f5959e73981749b1f22ec698

Asad Kamal committed 2 years ago

Commit aafe1811 parent 759e7643 files · +21 −1Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/drm/amdgpu_drm.h+10−0
@@ -763,6 +763,16 @@ struct drm_amdgpu_cs_chunk_cp_gfx_shadow { · 762 unmodified lines
763#define AMDGPU_IDS_FLAGS_TMZ 0x4763#define AMDGPU_IDS_FLAGS_TMZ 0x4
764#define AMDGPU_IDS_FLAGS_CONFORMANT_TRUNC_COORD 0x8764#define AMDGPU_IDS_FLAGS_CONFORMANT_TRUNC_COORD 0x8
765 765
766/*
767 * Query h/w info: Flag identifying VF/PF/PT mode
768 *
769 */
770#define AMDGPU_IDS_FLAGS_MODE_MASK 0x300
771#define AMDGPU_IDS_FLAGS_MODE_SHIFT 0x8
772#define AMDGPU_IDS_FLAGS_MODE_PF 0x0
773#define AMDGPU_IDS_FLAGS_MODE_VF 0x1
774#define AMDGPU_IDS_FLAGS_MODE_PT 0x2
775
766/* indicate if acceleration can be working */776/* indicate if acceleration can be working */
767#define AMDGPU_INFO_ACCEL_WORKING 0x00777#define AMDGPU_INFO_ACCEL_WORKING 0x00
768/* get the crtc_id from the mode object id? */778/* get the crtc_id from the mode object id? */