]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: fix executability of CMA mappings
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 25 Nov 2013 12:01:03 +0000 (12:01 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 7 Dec 2013 23:21:00 +0000 (23:21 +0000)
commitd12b4c7fba7374d3dd582417c059745962d6576f
tree5fa3cd1cc60a9f08a45dfe4b576a99a4c879bc0c
parenteac70cec1553e15dc520b276fd04a2eb77dfd13f
ARM: fix executability of CMA mappings

The CMA region was being marked executable:

0xdc04e000-0xdc050000           8K     RW x      MEM/CACHED/WBRA
0xdc060000-0xdc100000         640K     RW x      MEM/CACHED/WBRA
0xdc4f5000-0xdc500000          44K     RW x      MEM/CACHED/WBRA
0xdcce9000-0xe0000000       52316K     RW x      MEM/CACHED/WBRA

This is mainly due to the badly worded MT_MEMORY_DMA_READY symbol, but
there are also a few other places in dma-mapping which should be
corrected to use the right constant.  Fix all these places:

0xdc04e000-0xdc050000           8K     RW NX     MEM/CACHED/WBRA
0xdc060000-0xdc100000         640K     RW NX     MEM/CACHED/WBRA
0xdc280000-0xdc300000         512K     RW NX     MEM/CACHED/WBRA
0xdc6fc000-0xe0000000       58384K     RW NX     MEM/CACHED/WBRA

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/dma-mapping.c
arch/arm/mm/mmu.c