]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: Fix the high buffer address mask
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 19 Sep 2016 19:53:08 +0000 (21:53 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 22 Sep 2016 07:13:22 +0000 (10:13 +0300)
commitf0188ef8301ccbb128bbfd10751a9aeca8c9172e
treeb3730dc09934535060c25607e2c7694ec0e71afc
parente4192089fe5320537fd88aa29721277efef64af4
drm/sun4i: Fix the high buffer address mask

The highest 3bits of the 4 layers buffers are all part of the same
register. However, our mask computation was wrong, leading to all the
lowest register bits being removed when we use regmap_update_bits, which
will lead to the buffers being set to some random part of the RAM.

Fix our mask.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_backend.h