From: David Herrmann Date: Sun, 25 May 2014 10:45:39 +0000 (+0200) Subject: drm/omap: use __GFP_DMA32 for shmem-backed gem X-Git-Tag: omap-for-v3.17/fixes-against-rc2~125^2~87^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab5a60c3ee41ff22304e2bcf63c151aa2851df0c;p=pandora-kernel.git drm/omap: use __GFP_DMA32 for shmem-backed gem OMAP requires bo-pages to be in the DMA32 zone. Explicitly request this by setting __GFP_DMA32 as mapping-gfp-mask during shmem initialization. This drops HIGHMEM from the gfp-mask and uses DMA32 instead. shmem-core takes care to relocate pages during swap-in in case they have been loaded into the wrong zone. It is _not_ possible to pass __GFP_DMA32 to shmem_read_mapping_page_gfp() as the page might have already been swapped-in at that time. The zone-mask must be set during initialization and be kept constant for now. Remove the now superfluous TODO in omap_gem.c. Reviewed-by: Rob Clark Tested-by: Tomi Valkeinen Signed-off-by: David Herrmann --- Reading git-diff-tree failed