diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c index 9c35cf0916de..fe82b8b19a4e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c @@ -725,6 +725,7 @@ int amdgpu_mes_add_hw_queue(struct amdgpu_device *adev, int gang_id,  	queue->queue_type = qprops->queue_type;  	queue->paging = qprops->paging;  	queue->gang = gang; +	queue->ring->mqd_ptr = queue->mqd_cpu_ptr;  	list_add_tail(&queue->list, &gang->queue_list);  	amdgpu_mes_unlock(&adev->mes); @@ -1081,6 +1082,12 @@ void amdgpu_mes_remove_ring(struct amdgpu_device *adev,  	kfree(ring);  } +uint32_t amdgpu_mes_get_aggregated_doorbell_index(struct amdgpu_device *adev, +						   enum amdgpu_mes_priority_level prio) +{ +	return adev->mes.aggregated_doorbells[prio]; +} +  int amdgpu_mes_ctx_alloc_meta_data(struct amdgpu_device *adev,  				   struct amdgpu_mes_ctx_data *ctx_data)  { | 
