Files
linux/drivers/gpu/drm/msm
Xianting Tian 0566722753 drm/msm: Fix wrong size calculation
commit 0a727b459e upstream.

For example, memory-region in .dts as below,
	reg = <0x0 0x50000000 0x0 0x20000000>

We can get below values,
struct resource r;
r.start = 0x50000000;
r.end	= 0x6fffffff;

So the size should be:
size = r.end - r.start + 1 = 0x20000000

Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
Fixes: 072f1f9168 ("drm/msm: add support for "stolen" mem")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220112123334.749776-1-xianting.tian@linux.alibaba.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 12:35:04 +09:00
..
2016-09-15 17:39:49 -04:00
2016-07-16 10:09:06 -04:00
2023-05-16 12:35:04 +09:00
2016-05-08 10:22:15 -04:00
2016-08-07 23:38:48 -04:00
2013-08-24 14:57:18 -04:00
2014-01-09 14:44:06 -05:00