drm/amdgpu: add VCN to firmware query interface
Subsystems (3)
PATCH 1/1 drm/amdgpu: add VCN to firmware query interface
Need to be able to query the VCN firmware version from userspace to determine supported features, etc.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 12 ++++++++++++ include/uapi/drm/amdgpu_drm.h | 2 ++ 2 files changed, 14 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +12 -0
@@ -213,6 +213,10 @@ static int amdgpu_firmware_info(struct drm_amdgpu_info_firmware *fw_info, fw_info->ver = adev->uvd.fw_version; fw_info->feature =0 ;break ; +case AMDGPU_INFO_FW_VCN : + fw_info->ver = adev->vcn.fw_version; + fw_info->feature =0 ; +break ;case AMDGPU_INFO_FW_GMC : fw_info->ver = adev->gmc.fw_version; fw_info->feature =0 ;
@@ -1314,6 +1318,14 @@ static int amdgpu_debugfs_firmware_info(struct seq_file *m, void *data) i, fw_info.feature, fw_info.ver); } +/* VCN */ + query_fw.fw_type =AMDGPU_INFO_FW_VCN ; + ret =amdgpu_firmware_info (&fw_info, &query_fw, adev); +if (ret) +return ret; +seq_printf (m,"VCN feature version: %u, firmware version: 0x%08x\n" , + fw_info.feature, fw_info.ver); +return 0 ; }
include/uapi/drm/amdgpu_drm.h +2 -0
@@ -687,6 +687,8 @@ struct drm_amdgpu_cs_chunk_data {#define AMDGPU_INFO_FW_SOS 0x0c/* Subquery id: Query PSP ASD firmware version */ #define AMDGPU_INFO_FW_ASD 0x0d +/* Subquery id: Query VCN firmware version */ +#define AMDGPU_INFO_FW_VCN 0x0e/* number of bytes moved for TTM migration */ #define AMDGPU_INFO_NUM_BYTES_MOVED 0x0f/* the used VRAM size */
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180316160708.21719-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Quoted 4 lines · Alex Deucher
Need to be able to query the VCN firmware version from userspace to determine supported features, etc.
Signed-off-by Alex Deucher <[email protected]>
Ping?
Alex
Quoted 49 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 12 ++++++++++++ include/uapi/drm/amdgpu_drm.h | 2 ++ 2 files changed, 14 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +12
-0@@ -213,6 +213,10 @@ static int amdgpu_firmware_info(struct drm_amdgpu_info_firmware *fw_info, fw_info->ver = adev->uvd.fw_version; fw_info->feature =0 ;break ; +case AMDGPU_INFO_FW_VCN : + fw_info->ver = adev->vcn.fw_version; + fw_info->feature =0 ; +break ;case AMDGPU_INFO_FW_GMC : fw_info->ver = adev->gmc.fw_version; fw_info->feature =0 ;@@ -1314,6 +1318,14 @@ static int amdgpu_debugfs_firmware_info(struct seq_file *m, void *data) i, fw_info.feature, fw_info.ver); } +/* VCN */ + query_fw.fw_type =AMDGPU_INFO_FW_VCN ; + ret =amdgpu_firmware_info (&fw_info, &query_fw, adev); +if (ret) +return ret; +seq_printf (m,"VCN feature version: %u, firmware version: 0x%08x\n" , + fw_info.feature, fw_info.ver); +return 0 ; }include/uapi/drm/amdgpu_drm.h +2
-1@@ -687,6 +687,8 @@ struct drm_amdgpu_cs_chunk_data {#define AMDGPU_INFO_FW_SOS 0x0c/* Subquery id: Query PSP ASD firmware version */ #define AMDGPU_INFO_FW_ASD 0x0d +/* Subquery id: Query VCN firmware version */ +#define AMDGPU_INFO_FW_VCN 0x0e/* number of bytes moved for TTM migration */ #define AMDGPU_INFO_NUM_BYTES_MOVED 0x0f/* the used VRAM size */ --
Quoted 2 lines
2.13.6
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): CADnq5_NKC1m+XiAfJ3rx-D+tMOXHOXwrvL4=gogFWsyncue73A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Leo Liu
Acked-byQuoted 56 lines · Alex Deucher
Quoted 4 lines · Alex Deucher
Need to be able to query the VCN firmware version from userspace to determine supported features, etc.
Signed-off-by Alex Deucher <[email protected]>Ping?
Alex
Quoted 47 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 12 ++++++++++++ include/uapi/drm/amdgpu_drm.h | 2 ++ 2 files changed, 14 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +12
-0@@ -213,6 +213,10 @@ static int amdgpu_firmware_info(struct drm_amdgpu_info_firmware *fw_info, fw_info->ver = adev->uvd.fw_version; fw_info->feature =0 ;break ; +case AMDGPU_INFO_FW_VCN : + fw_info->ver = adev->vcn.fw_version; + fw_info->feature =0 ; +break ;case AMDGPU_INFO_FW_GMC : fw_info->ver = adev->gmc.fw_version; fw_info->feature =0 ;@@ -1314,6 +1318,14 @@ static int amdgpu_debugfs_firmware_info(struct seq_file *m, void *data) i, fw_info.feature, fw_info.ver); } +/* VCN */ + query_fw.fw_type =AMDGPU_INFO_FW_VCN ; + ret =amdgpu_firmware_info (&fw_info, &query_fw, adev); +if (ret) +return ret; +seq_printf (m,"VCN feature version: %u, firmware version: 0x%08x\n" , + fw_info.feature, fw_info.ver); +return 0 ; }include/uapi/drm/amdgpu_drm.h +2
-0@@ -687,6 +687,8 @@ struct drm_amdgpu_cs_chunk_data {#define AMDGPU_INFO_FW_SOS 0x0c/* Subquery id: Query PSP ASD firmware version */ #define AMDGPU_INFO_FW_ASD 0x0d +/* Subquery id: Query VCN firmware version */ +#define AMDGPU_INFO_FW_VCN 0x0e/* number of bytes moved for TTM migration */ #define AMDGPU_INFO_NUM_BYTES_MOVED 0x0f
Quoted 8 lines
Quoted 4 lines
include/uapi/drm/amdgpu_drm.h +0
-1/* the used VRAM size */ --2.13.6
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Huang Rui
Reviewed-byQuoted 3 lines · Alex Deucher
Need to be able to query the VCN firmware version from userspace to determine supported features, etc.
Quoted 56 lines
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 12 ++++++++++++ include/uapi/drm/amdgpu_drm.h | 2 ++ 2 files changed, 14 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +12
-0@@ -213,6 +213,10 @@ static int amdgpu_firmware_info(struct drm_amdgpu_info_firmware *fw_info, fw_info->ver = adev->uvd.fw_version; fw_info->feature =0 ;break ; +case AMDGPU_INFO_FW_VCN : + fw_info->ver = adev->vcn.fw_version; + fw_info->feature =0 ; +break ;case AMDGPU_INFO_FW_GMC : fw_info->ver = adev->gmc.fw_version; fw_info->feature =0 ;@@ -1314,6 +1318,14 @@ static int amdgpu_debugfs_firmware_info(struct seq_file *m, void *data) i, fw_info.feature, fw_info.ver); } +/* VCN */ + query_fw.fw_type =AMDGPU_INFO_FW_VCN ; + ret =amdgpu_firmware_info (&fw_info, &query_fw, adev); +if (ret) +return ret; +seq_printf (m,"VCN feature version: %u, firmware version: 0x%08x\n" , + fw_info.feature, fw_info.ver); +return 0 ; }include/uapi/drm/amdgpu_drm.h +2
-0@@ -687,6 +687,8 @@ struct drm_amdgpu_cs_chunk_data {#define AMDGPU_INFO_FW_SOS 0x0c/* Subquery id: Query PSP ASD firmware version */ #define AMDGPU_INFO_FW_ASD 0x0d +/* Subquery id: Query VCN firmware version */ +#define AMDGPU_INFO_FW_VCN 0x0e/* number of bytes moved for TTM migration */ #define AMDGPU_INFO_NUM_BYTES_MOVED 0x0f/* the used VRAM size */ Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx