diff options
| author | Thomas Zimmermann <tzimmermann@suse.de> | 2026-06-18 16:11:35 +0200 |
|---|---|---|
| committer | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2026-07-31 16:50:01 +0300 |
| commit | 6cf3fb14f33ea73ee4a05fe4c406a6623c72d353 (patch) | |
| tree | c1ef972c58a6970ce5503a7abe20ba00665836f0 /scripts/const_structs.checkpatch | |
| parent | e78d1bc9e4d062d1c95cd262ffe0c6fd66c40e1f (diff) | |
| download | linux-6cf3fb14f33ea73ee4a05fe4c406a6623c72d353.tar.gz linux-6cf3fb14f33ea73ee4a05fe4c406a6623c72d353.zip | |
drm/msm: fbdev: Calculate buffer geometry with format helpers
Replace the geometry and size calculation in msm's fbdev emulation
with DRM format helpers. This consists of a 4CC lookup from the fbdev
parameters, format lookup, pitch calculation and size calculation.
Then allocate the GEM buffer object for the framebuffer memory from
the calculated size.
Explicitly align the size of the allocated GEM buffer object to full
pages. The contained memory is the framebuffer memory as seen by fbdev.
The page alignment is required for mmap.
v2:
- clarify the page alignment of the buffer size (Dmitry)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/733885/
Link: https://lore.kernel.org/r/20260618141249.151338-5-tzimmermann@suse.de
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
