]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Remove a few holes from struct amdgpu_ctx
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Mon, 12 Jan 2026 10:22:37 +0000 (10:22 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Feb 2026 19:16:31 +0000 (14:16 -0500)
commitd5e53ff42fa53fcf9ce7e9b9fef6876ebd14378e
tree9d933b9fbabac2b28642b855cc8f4dc578d0af4c
parentcb9a5ff7ad2c568ec6084906fc8b1cb6298cfeee
drm/amdgpu: Remove a few holes from struct amdgpu_ctx

Re-order the struct members a bit to avoid some holes:

 /* size: 408, cachelines: 7, members: 15 */
 /* sum members: 393, holes: 4, sum holes: 15 */
 /* last cacheline: 24 bytes */

 /* size: 400, cachelines: 7, members: 15 */
 /* sum members: 393, holes: 1, sum holes: 7 */
 /* last cacheline: 16 bytes */

While doing so we notice a duplicate but will address than in the
following patch.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.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_ctx.h