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
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -763,6 +763,16 @@ struct drm_amdgpu_cs_chunk_cp_gfx_shadow { · 762 unmodified lines | ||
| 763 | 763 | #define AMDGPU_IDS_FLAGS_TMZ 0x4 |
| 764 | 764 | #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 | 776 | /* indicate if acceleration can be working */ |
| 767 | 777 | #define AMDGPU_INFO_ACCEL_WORKING 0x00 |
| 768 | 778 | /* get the crtc_id from the mode object id? */ |