amdgpu: add ce_ram_size for interface query
authorKen Wang <Qingqing.Wang@amd.com>
Wed, 3 Jun 2015 09:21:27 +0000 (17:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Aug 2015 17:47:50 +0000 (13:47 -0400)
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
amdgpu/amdgpu.h
amdgpu/amdgpu_gpu_info.c
include/drm/amdgpu_drm.h

index 94fc647..302f1dc 100644 (file)
@@ -520,6 +520,8 @@ struct amdgpu_gpu_info {
        uint32_t vram_type;
        /* video memory bit width*/
        uint32_t vram_bit_width;
+       /** constant engine ram size*/
+       uint32_t ce_ram_size;
 };
 
 
index 18cff4c..793062b 100644 (file)
@@ -160,6 +160,7 @@ int amdgpu_query_gpu_info_init(amdgpu_device_handle dev)
                dev->dev_info.num_shader_arrays_per_engine;
        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;
 
        for (i = 0; i < (int)dev->info.num_shader_engines; i++) {
                unsigned instance = (i << AMDGPU_INFO_MMR_SE_INDEX_SHIFT) |
index 772f803..a18ad8f 100644 (file)
@@ -586,6 +586,8 @@ struct drm_amdgpu_info_device {
        uint32_t vram_type;
        /** video memory bit width*/
        uint32_t vram_bit_width;
+       /** constant engine ram size*/
+       uint32_t ce_ram_size;
 };
 
 struct drm_amdgpu_info_hw_ip {