mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/amdgpu: enable userqueue secure sem for GFX 12
- Add a field in struct amdgpu_mqd_prop for userqueue
secure sem fence address since now we have a generic
file for mes_userqueue.c
- Add secure sem fence address mqd support to gfx12 into
their corresponding init functions.
- Enable secure semaphore IRQ handling
V2: Address review comment from Alex:
Use fence_address instead of fenceaddress (Shashank)
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian Koenig <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Signed-off-by: Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
988c9e7046
commit
dd5a376cd2
@@ -185,14 +185,6 @@ static int mes_userq_create_ctx_space(struct amdgpu_userq_mgr *uq_mgr,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void mes_userq_set_fence_space(struct amdgpu_usermode_queue *queue)
|
||||
{
|
||||
struct v11_gfx_mqd *mqd = queue->mqd.cpu_ptr;
|
||||
|
||||
mqd->fenceaddress_lo = lower_32_bits(queue->fence_drv->gpu_addr);
|
||||
mqd->fenceaddress_hi = upper_32_bits(queue->fence_drv->gpu_addr);
|
||||
}
|
||||
|
||||
static int mes_userq_mqd_create(struct amdgpu_userq_mgr *uq_mgr,
|
||||
struct drm_amdgpu_userq_in *args_in,
|
||||
struct amdgpu_usermode_queue *queue)
|
||||
@@ -231,6 +223,7 @@ static int mes_userq_mqd_create(struct amdgpu_userq_mgr *uq_mgr,
|
||||
userq_props->mqd_gpu_addr = queue->mqd.gpu_addr;
|
||||
userq_props->use_doorbell = true;
|
||||
userq_props->doorbell_index = queue->doorbell_index;
|
||||
userq_props->fence_address = queue->fence_drv->gpu_addr;
|
||||
|
||||
if (queue->queue_type == AMDGPU_HW_IP_COMPUTE) {
|
||||
struct drm_amdgpu_userq_mqd_compute_gfx11 *compute_mqd;
|
||||
@@ -307,8 +300,6 @@ static int mes_userq_mqd_create(struct amdgpu_userq_mgr *uq_mgr,
|
||||
goto free_mqd;
|
||||
}
|
||||
|
||||
mes_userq_set_fence_space(queue);
|
||||
|
||||
/* FW expects WPTR BOs to be mapped into GART */
|
||||
r = mes_userq_create_wptr_mapping(uq_mgr, queue, userq_props->wptr_gpu_addr);
|
||||
if (r) {
|
||||
|
||||
Reference in New Issue
Block a user