From: Thierry Reding Date: Tue, 16 Dec 2014 15:41:47 +0000 (+0100) Subject: drm/tegra: gem: Use the proper size for GEM objects X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~356^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73c42c79767a03ae64d11457e3ce80e80e09e514;p=pandora-kernel.git drm/tegra: gem: Use the proper size for GEM objects If the requested buffer size wasn't a multiple of the page size, the IOMMU code would round down the size to the next multiple of the page size, thereby causing translation errors. To fix this we no longer pass around the requested size but reuse the computed size of the GEM object. This is already rounded to the next page boundary, so mapping that size works out fine. Signed-off-by: Thierry Reding --- Reading git-diff-tree failed