From: Carlo Caione Date: Mon, 9 Feb 2015 09:38:35 +0000 (+0100) Subject: ARM: 8304/1: Respect NO_KERNEL_MAPPING when we don't have an IOMMU X-Git-Tag: omap-for-v4.1/fixes-rc1~142^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e8266e3333bd01700decf9866725e254d84f21a;p=pandora-kernel.git ARM: 8304/1: Respect NO_KERNEL_MAPPING when we don't have an IOMMU Even without an iommu, NO_KERNEL_MAPPING is still convenient to save on kernel address space in places where we don't need a kernel mapping. Implement support for it in the two places where we're creating an expensive mapping. __alloc_from_pool uses an internal pool from which we already have virtual addresses, so it's not relevant, and __alloc_simple_buffer uses alloc_pages, which will always return a lowmem page, which is already mapped into kernel space, so we can't prevent a mapping for it in that case. Signed-off-by: Jasper St. Pierre Signed-off-by: Carlo Caione Reviewed-by: Rob Clark Reviewed-by: Daniel Drake Acked-by: Marek Szyprowski Signed-off-by: Russell King --- Reading git-diff-tree failed