]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/gem-dma: revert the 8-byte alignment constraint
authorLudovic Desroches <ludovic.desroches@microchip.com>
Wed, 26 Nov 2025 14:44:44 +0000 (15:44 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 3 Dec 2025 09:52:18 +0000 (10:52 +0100)
commit56715b45e3bfecf82e6404df19a10699a67c3a74
tree5875e828575e9672a84bc25f69f885acdd9f4015
parenteec7e23d848d2194dd8791fcd0f4a54d4378eecd
drm/gem-dma: revert the 8-byte alignment constraint

Using drm_mode_size_dumb() to compute the size of dumb buffers introduced
an 8-byte alignment constraint on the pitch that wasn’t present before.
Let’s remove this constraint, which isn’t necessarily required and may
cause buffers to be allocated larger than needed.

Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: dcacfcd35cef ("drm/gem-dma: Compute dumb-buffer sizes with drm_mode_size_dumb()")
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20251126-lcd_pitch_alignment-v1-1-991610a1e369@microchip.com
drivers/gpu/drm/drm_gem_dma_helper.c