]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Fix allocating extra dwords for rings (v2)
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 9 Sep 2025 14:49:35 +0000 (16:49 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 20:52:52 +0000 (16:52 -0400)
commitae5c2bee1680436d9bf8bfaca7416496adff0ee0
treeb7e542d26d9cc602a6372232dcc77aa4da77b52f
parent156db7d353286b7bfd7f43f548a4046a97fe67c6
drm/amdgpu: Fix allocating extra dwords for rings (v2)

Rename extra_dw to extra_bytes and document what it's for.

The value is already used as if it were bytes in vcn_v4_0.c
and in amdgpu_ring_init. Just adjust the dword count in
jpeg_v1_0.c so that it becomes a byte count.

v2:
Rename extra_dw to extra_bytes as discussed during review.

Fixes: c8c1a1d2ef04 ("drm/amdgpu: define and add extra dword for jpeg ring")
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c