From: Thierry Reding Date: Fri, 23 Jan 2015 08:05:06 +0000 (+0100) Subject: drm/mm: Support 4 GiB and larger ranges X-Git-Tag: omap-for-v4.1/wl12xx-dt~53^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=440fd5283a87345cdd4237bdf45fb01130ea0056;p=pandora-kernel.git drm/mm: Support 4 GiB and larger ranges The current implementation is limited by the number of addresses that fit into an unsigned long. This causes problems on 32-bit Tegra where unsigned long is 32-bit but drm_mm is used to manage an IOVA space of 4 GiB. Given the 32-bit limitation, the range is limited to 4 GiB - 1 (or 4 GiB - 4 KiB for page granularity). This commit changes the start and size of the range to be an unsigned 64-bit integer, thus allowing much larger ranges to be supported. [airlied: fix i915 warnings and coloring callback] Signed-off-by: Thierry Reding Reviewed-by: Alex Deucher Reviewed-by: Chris Wilson Signed-off-by: Dave Airlie fixupo --- Reading git-diff-tree failed