]> git.baikalelectronics.ru Git - kernel.git/commit
drm/pl111: Use max memory bandwidth for resolution
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Mar 2018 21:58:19 +0000 (22:58 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Mar 2018 22:14:24 +0000 (23:14 +0100)
commitc9d97793c34ee5d7dd46877f1f202e0f1e0ec7fd
treeee75d257bc640dec1ff405deca483e83b63216e2
parent29f54f117582307005ed04a7acc403668d1a88fd
drm/pl111: Use max memory bandwidth for resolution

We were previously selecting 1024x768 and 32BPP as the default
set-up for the PL111 consumers.

This does not work on elder systems: the device tree bindings
support a property "max-memory-bandwidth" in bytes/second that
states that if you exceed this the memory bus will saturate.
The result is flickering and unstable images.

Parse the "max-memory-bandwidth" and respect it when
intializing the driver. On the RealView PB11MP, Versatile and
Integrator/CP we get a nice console as default with this code.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180307215819.15814-1-linus.walleij@linaro.org
drivers/gpu/drm/pl111/pl111_display.c
drivers/gpu/drm/pl111/pl111_drm.h
drivers/gpu/drm/pl111/pl111_drv.c