diff options
| author | Alex Deucher <[email protected]> | 2024-10-18 18:15:12 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-04-08 20:48:18 +0000 |
| commit | ab328d9a7b614ba8c6f63096eae817dd6e7f72f1 (patch) | |
| tree | ee9b6fc15a6fb0c4d5ae533ddfc7e62181865ca2 /drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | |
| parent | drm/amdgpu: fix IGT CI regression with eviction fence (diff) | |
| download | kernel-ab328d9a7b614ba8c6f63096eae817dd6e7f72f1.tar.gz kernel-ab328d9a7b614ba8c6f63096eae817dd6e7f72f1.zip | |
drm/amdgpu/gfx12: update mqd init for UQ
Set the addresses for the UQ metadata.
V2: Fix lower address mask (Shashank)
V3: Use lower_32_bits() for MQD objects (Alex)
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Shashank Sharma <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c index 4f9a73bae332..8b409b4a1cb3 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c @@ -3027,6 +3027,12 @@ static int gfx_v12_0_gfx_mqd_init(struct amdgpu_device *adev, void *m, /* active the queue */ mqd->cp_gfx_hqd_active = 1; + /* set gfx UQ items */ + mqd->shadow_base_lo = lower_32_bits(prop->shadow_addr); + mqd->shadow_base_hi = upper_32_bits(prop->shadow_addr); + mqd->fw_work_area_base_lo = lower_32_bits(prop->csa_addr); + mqd->fw_work_area_base_hi = upper_32_bits(prop->csa_addr); + return 0; } |
