drm/amd: Move `enum drm_amdgpu_ta_fw_type` to uapi
Subsystems (3)
PATCH 1/1 drm/amd: Move `enum drm_amdgpu_ta_fw_type` to uapi
Enum values used by the ioctl AMDGPU_INFO_FW_VERSION/AMDGPU_INFO_FW_TA are not exported so clients need to keep their own copy of the definitions while looking up firmware versions for the TA.
Move this to uapi instead.
Signed-off-by Mario Limonciello <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 12 ------------ include/uapi/drm/amdgpu_drm.h | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h +0 -12
@@ -145,18 +145,6 @@ struct ta_firmware_header_v1_0 {struct psp_fw_legacy_bin_desc securedisplay; }; -enum ta_fw_type { -TA_FW_TYPE_UNKOWN , -TA_FW_TYPE_PSP_ASD , -TA_FW_TYPE_PSP_XGMI , -TA_FW_TYPE_PSP_RAS , -TA_FW_TYPE_PSP_HDCP , -TA_FW_TYPE_PSP_DTM , -TA_FW_TYPE_PSP_RAP , -TA_FW_TYPE_PSP_SECUREDISPLAY , -TA_FW_TYPE_MAX_INDEX , -}; -/* version_major=2, version_minor=0 */ struct ta_firmware_header_v2_0 {struct common_firmware_header header;
include/uapi/drm/amdgpu_drm.h +12 -0
@@ -912,6 +912,18 @@ struct drm_amdgpu_cs_chunk_cp_gfx_shadow {#define AMDGPU_INFO_MMR_SH_INDEX_SHIFT 8#define AMDGPU_INFO_MMR_SH_INDEX_MASK 0xff +enum drm_amdgpu_ta_fw_type { +TA_FW_TYPE_UNKOWN , +TA_FW_TYPE_PSP_ASD , +TA_FW_TYPE_PSP_XGMI , +TA_FW_TYPE_PSP_RAS , +TA_FW_TYPE_PSP_HDCP , +TA_FW_TYPE_PSP_DTM , +TA_FW_TYPE_PSP_RAP , +TA_FW_TYPE_PSP_SECUREDISPLAY , +TA_FW_TYPE_MAX_INDEX , +}; +struct drm_amdgpu_query_fw {/** AMDGPU_INFO_FW_* */ __u32 fw_type;
Signature · 1 line
2.34.1
Quoted 45 lines · Mario Limonciello
Enum values used by the ioctl
AMDGPU_INFO_FW_VERSION/AMDGPU_INFO_FW_TAare not exported so clients need to keep their own copy of the definitions while looking up firmware versions for the TA.Move this to uapi instead.
Signed-off-by Mario Limonciello <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 12 ------------ include/uapi/drm/amdgpu_drm.h | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h +0
-12@@ -145,18 +145,6 @@ struct ta_firmware_header_v1_0 {struct psp_fw_legacy_bin_desc securedisplay; }; -enum ta_fw_type { -TA_FW_TYPE_UNKOWN , -TA_FW_TYPE_PSP_ASD , -TA_FW_TYPE_PSP_XGMI , -TA_FW_TYPE_PSP_RAS , -TA_FW_TYPE_PSP_HDCP , -TA_FW_TYPE_PSP_DTM , -TA_FW_TYPE_PSP_RAP , -TA_FW_TYPE_PSP_SECUREDISPLAY , -TA_FW_TYPE_MAX_INDEX , -}; -/* version_major=2, version_minor=0 */ struct ta_firmware_header_v2_0 {struct common_firmware_header header;include/uapi/drm/amdgpu_drm.h +1
-0@@ -912,6 +912,18 @@ struct drm_amdgpu_cs_chunk_cp_gfx_shadow {#define AMDGPU_INFO_MMR_SH_INDEX_SHIFT 8#define AMDGPU_INFO_MMR_SH_INDEX_MASK 0xff +enum drm_amdgpu_ta_fw_type {
include/uapi/drm/amdgpu_drm.h struct drm_amdgpu_cs_chunk_cp_gfx_shadow { · line 925
Quoted 10 lines
include/uapi/drm/amdgpu_drm.h +10
-0+TA_FW_TYPE_UNKOWN , +TA_FW_TYPE_PSP_ASD , +TA_FW_TYPE_PSP_XGMI , +TA_FW_TYPE_PSP_RAS , +TA_FW_TYPE_PSP_HDCP , +TA_FW_TYPE_PSP_DTM , +TA_FW_TYPE_PSP_RAP , +TA_FW_TYPE_PSP_SECUREDISPLAY , + TA_FW_TYPE_MAX_INDEX, +};
Prefix these with AMDGPU_?
Alex
Quoted 7 lines
include/uapi/drm/amdgpu_drm.h +1
-1+struct drm_amdgpu_query_fw {/** AMDGPU_INFO_FW_* */ __u32 fw_type; --2.34.1