amdgpu: add VCE harvesting instance query
authorLeo Liu <leo.liu@amd.com>
Mon, 13 Jul 2015 16:51:34 +0000 (12:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Aug 2015 17:47:52 +0000 (13:47 -0400)
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
amdgpu/amdgpu.h
amdgpu/amdgpu_gpu_info.c
include/drm/amdgpu_drm.h

index f14b7f4..06020d9 100644 (file)
@@ -464,6 +464,8 @@ struct amdgpu_gpu_info {
        uint32_t vram_bit_width;
        /** constant engine ram size*/
        uint32_t ce_ram_size;
+       /* vce harvesting instance */
+       uint32_t vce_harvest_config;
 };
 
 
index 515ee78..41679b6 100644 (file)
@@ -161,6 +161,7 @@ int amdgpu_query_gpu_info_init(amdgpu_device_handle dev)
        dev->info.vram_type = dev->dev_info.vram_type;
        dev->info.vram_bit_width = dev->dev_info.vram_bit_width;
        dev->info.ce_ram_size = dev->dev_info.ce_ram_size;
+       dev->info.vce_harvest_config = dev->dev_info.vce_harvest_config;
 
        for (i = 0; i < (int)dev->info.num_shader_engines; i++) {
                unsigned instance = (i << AMDGPU_INFO_MMR_SE_INDEX_SHIFT) |
index b6fce90..d708a53 100644 (file)
@@ -614,6 +614,8 @@ struct drm_amdgpu_info_device {
        uint32_t vram_type;
        /** video memory bit width*/
        uint32_t vram_bit_width;
+       /* vce harvesting instance */
+       uint32_t vce_harvest_config;
 };
 
 struct drm_amdgpu_info_hw_ip {