[RFC/RFT PATCH 0/5] mm: ARM nobootmem and few dma_mask fixes
From: Santosh Shilimkar
Date: Fri Jul 12 2013 - 17:50:03 EST
The series is an attempt to move ARM port to NO_BOOTMEM. As discussed
on list NO_BOOTMEM move needed updates to max*pfn meaning to be maximum
PFNs but that breaks the dma_mask for few block layer drivers since
ARM start of physical memory is not PFN0 unlike most of the architectures.
Some more read on it is here:
http://lwn.net/Articles/543408/
http://lwn.net/Articles/543424/
To address this issue, we introduce generic dma_max_pfn() helper which
can be overridden from the architectures.
Another intention behind move to nobootmem is also to convert ARM to
switch to memblock and getting rid of bootmem allocator dependency which
don't work for LPAE machines which has physical memory starting beyond
4 GB boundary. It needs changes to core kernel and also a new memblock
API. More on this can be found here:
https://lkml.org/lkml/2013/6/29/77
I have been trying to cook up these patches with kind help from Russell
and we know series don't solve all the dma_mask bad assumptions. But at
least I am hoping that it can get the ball rolling.
Comments/testing help is welcome !!
Cc: Russell King <linux@xxxxxxxxxxxxxxxx>
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Will Deacon <will.deacon@xxxxxxx>
Cc: Nicolas Pitre <nicolas.pitre@xxxxxxxxxx>
Cc: Tejun Heo <tj@xxxxxxxxxx>
Cc: Jens Axboe <axboe@xxxxxxxxx>
Santosh Shilimkar (5):
block: Rename parameter dma_mask to max_addr for
blk_queue_bounce_limit()
mm: dma-mapping: Add dma_max_pfn(dev) helper function
scsi: Use dma_max_pfn(dev) helper for bounce_limit calculations
ARM: mm: change max*pfn to include the physical offset of memory
ARM: mm: Remove bootmem code and switch to NO_BOOTMEM
arch/arm/Kconfig | 1 +
arch/arm/include/asm/dma-mapping.h | 16 ++++++---
arch/arm/kernel/setup.c | 2 +-
arch/arm/mm/init.c | 68 ++++--------------------------------
block/blk-settings.c | 8 ++---
drivers/scsi/scsi_lib.c | 2 +-
include/linux/dma-mapping.h | 7 ++++
7 files changed, 32 insertions(+), 72 deletions(-)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/