[PATCH 5/9] drm/amdgpu/sdma7: update mqd init for UQ
Alex Deucher
alexdeucher at gmail.com
Thu Nov 21 20:19:07 UTC 2024
On Thu, Nov 21, 2024 at 8:42 AM Shashank Sharma <shashank.sharma at amd.com> wrote:
>
> From: Alex Deucher <alexander.deucher at amd.com>
>
> Set the addresses for the UQ metadata.
>
> V2: Fix lower offset mask (Shashank)
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> Signed-off-by: Shashank Sharma <shashank.sharma at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
> index eb35ec9f3da2..fc9cb989aa6b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
> @@ -887,6 +887,9 @@ static int sdma_v7_0_mqd_init(struct amdgpu_device *adev, void *mqd,
> m->sdmax_rlcx_rb_aql_cntl = 0x4000; //regSDMA0_QUEUE0_RB_AQL_CNTL_DEFAULT;
> m->sdmax_rlcx_dummy_reg = 0xf; //regSDMA0_QUEUE0_DUMMY_REG_DEFAULT;
>
> + m->sdmax_rlcx_csa_addr_lo = prop->csa_addr & 0xFFFFFFFC;
Same comment here as the previous patch.
Alex
> + m->sdmax_rlcx_csa_addr_hi = upper_32_bits(prop->csa_addr);
> +
> return 0;
> }
>
> --
> 2.46.2
>
More information about the amd-gfx
mailing list