]> git.baikalelectronics.ru Git - kernel.git/commit
drm/meson: add size and alignment requirements for dumb buffers
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 8 Apr 2019 09:01:37 +0000 (11:01 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 17 Apr 2019 18:19:41 +0000 (20:19 +0200)
commit76eade6bf2841b6abe170e27edadd70db7784821
tree12a8be69c0ba974acf6a74c075880776dffd28a9
parent5edb2bbf7a7e907bb62de38f185a67fd6fccea9c
drm/meson: add size and alignment requirements for dumb buffers

The Amlogic SoCs Canvas buffers stride must be aligned on 64bytes
and overall size should be aligned on PAGE width.

Adds a custom dumb_create op to adds these requirements.

Fixes: e5a2f708e761 ("drm: Add support for Amlogic Meson Graphic Controller")
Suggested-by: Sky Zhou <sky.zhou@amlogic.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Sky Zhou <sky.zhou@amlogic.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190408090137.2402-1-narmstrong@baylibre.com
drivers/gpu/drm/meson/meson_drv.c