summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-05-18 11:51:51 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-13 19:52:17 +0200
commita3de0436c51b8e3027f9f710d463c6518efdac73 (patch)
tree9b0461e99c6e581d9d55c8cab20001f0d69f0299 /block
parent8fe9dcbadf023b3ced2a2cc7ad572c8d97f8fff4 (diff)
downloadlinux-stable-a3de0436c51b8e3027f9f710d463c6518efdac73.tar.gz
linux-stable-a3de0436c51b8e3027f9f710d463c6518efdac73.tar.bz2
linux-stable-a3de0436c51b8e3027f9f710d463c6518efdac73.zip
drm/omap: fix tiled buffer stride calculations
[ Upstream commit cc8dd7661ccc2d8dc88921da8e6cc7c2fcdb0341 ] omap_gem uses page alignment for buffer stride. The related calculations are a bit off, though, as byte stride of 4096 gets aligned to 8192, instead of 4096. This patch changes the code to use DIV_ROUND_UP(), which fixes those calculations and makes them more readable. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions