summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Liu <leo.liu@amd.com>2015-07-13 12:51:34 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-07-30 00:11:13 -0400
commitc1f08d472a9cc1d45ad3878fdad4540f639a2351 (patch)
treeca4e569d12818ed987218ff93715dcb14f5fe67a
parent8a5a89c7a28ceea0449eb6674d25d29704a22ffd (diff)
amdgpu: add VCE harvesting instance query
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>
-rw-r--r--amdgpu/amdgpu.h2
-rw-r--r--amdgpu/amdgpu_gpu_info.c1
-rw-r--r--include/drm/amdgpu_drm.h2
3 files changed, 5 insertions, 0 deletions
diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h
index f14b7f45..06020d96 100644
--- a/amdgpu/amdgpu.h
+++ b/amdgpu/amdgpu.h
@@ -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;
};
diff --git a/amdgpu/amdgpu_gpu_info.c b/amdgpu/amdgpu_gpu_info.c
index 515ee78a..41679b62 100644
--- a/amdgpu/amdgpu_gpu_info.c
+++ b/amdgpu/amdgpu_gpu_info.c
@@ -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) |
diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h
index b6fce900..d708a53b 100644
--- a/include/drm/amdgpu_drm.h
+++ b/include/drm/amdgpu_drm.h
@@ -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 {