Add a query for the CE ram size. User mode drivers
will want to use this to determine how much size
of the cache on the CE.
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com>
Reviewd-by: Jammy Zhou <Jammy.Zhou@amd.com>
uint32_t gfx_current_status;
/* sync signal for const engine */
unsigned ce_sync_offs;
+ /* ce ram size*/
+ unsigned ce_ram_size;
};
int amdgpu_ib_get(struct amdgpu_ring *ring, struct amdgpu_vm *vm,
amdgpu_asic_get_cu_info(adev, &cu_info);
dev_info.cu_active_number = cu_info.number;
dev_info.cu_ao_mask = cu_info.ao_cu_mask;
+ dev_info.ce_ram_size = adev->gfx.ce_ram_size;
memcpy(&dev_info.cu_bitmap[0], &cu_info.bitmap[0], sizeof(cu_info.bitmap));
return copy_to_user(out, &dev_info,
if (r)
return r;
+ adev->gfx.ce_ram_size = 0x8000;
+
return r;
}
if (r)
return r;
+ adev->gfx.ce_ram_size = 0x8000;
+
return 0;
}
/** Page table entry - fragment size */
uint32_t pte_fragment_size;
uint32_t gart_page_size;
+ /** constant engine ram size*/
+ uint32_t ce_ram_size;
};
struct drm_amdgpu_info_hw_ip {