Files
linux/drivers/gpu/drm/xe
Thomas Zimmermann a8f81ee99f drm/xe: Compute dumb-buffer sizes with drm_mode_size_dumb()
Call drm_mode_size_dumb() to compute dumb-buffer scanline pitch
and buffer size. Align the pitch to a multiple of 8. Align the
buffer size according to hardware requirements.

Xe's internal calculation allowed for 64-bit wide buffer sizes, but
the ioctl's internal checks always verified against 32-bit wide limits.
Hance, it is safe to limit the driver code to 32-bit calculations as
well.

v3:
- mention 32-bit calculation in commit description (Matthew)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250821081918.79786-24-tzimmermann@suse.de
2025-09-29 17:50:40 +02:00
..
2025-08-22 11:46:44 -07:00
2025-09-15 17:51:07 +10:00
2024-05-09 21:28:25 +02:00
2025-01-09 17:58:09 +01:00
2025-09-15 17:51:07 +10:00
2025-06-27 14:52:31 -07:00
2025-07-01 13:58:50 -07:00
2025-08-08 10:50:45 -04:00
2025-08-08 10:50:45 -04:00
2025-03-25 20:51:29 -07:00
2024-11-15 15:59:51 -08:00
2025-08-22 11:46:44 -07:00
2024-05-13 21:36:50 +02:00
2025-08-22 11:46:44 -07:00
2025-06-27 14:52:31 -07:00
2025-07-01 13:55:19 -07:00
2025-08-22 11:46:44 -07:00
2025-06-27 14:52:31 -07:00
2024-05-22 12:03:55 +02:00
2025-08-08 10:50:45 -04:00
2024-09-19 10:15:40 +02:00
2024-05-07 12:03:49 +02:00
2025-08-28 06:33:05 -07:00
2025-08-08 10:50:45 -04:00
2025-08-14 10:30:53 -04:00
2025-08-27 11:49:00 -07:00
2025-09-15 17:51:07 +10:00
2025-01-27 08:54:06 -08:00
2025-02-03 11:51:26 -08:00
2025-08-08 10:50:45 -04:00
2024-05-13 21:36:52 +02:00
2025-08-22 11:46:43 -07:00
2025-08-22 11:46:43 -07:00
2025-06-27 14:52:31 -07:00
2025-07-28 10:22:28 -04:00
2025-01-17 00:01:58 +05:30
2025-09-15 17:51:07 +10:00
2025-09-15 17:51:07 +10:00