drm/mali-dp: Align pitch size to be multiple of bus burst read size.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 5 Dec 2017 15:29:00 +0000 (15:29 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 14 Mar 2018 11:38:02 +0000 (11:38 +0000)
commit5ed4fdfa58f091a65cb533cc6b8f47ade4cc4475
treefa5ef33e97a42b3305fadf3f9b8b06049cd4013a
parentfcad73b9b1fb9580fd43f1349fd8ab34d5d456e9
drm/mali-dp: Align pitch size to be multiple of bus burst read size.

Mali DP hardware needs pitch line sizes aligned to the bus burst
size for reads, so take that into consideration when allocating dumb
buffers. If the layer is rotated then the stride size requirement is
even larger for some hardware versions, so allocate for the worst case
scenario. Update the ->dumb_create() hook to a driver specific function
that sets the correct pitch size.

Reported-by: Ayan Halder <ayan.halder@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/malidp_drv.c