[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1373665694-7580-1-git-send-email-santosh.shilimkar@ti.com>
Date: Fri, 12 Jul 2013 17:48:09 -0400
From: Santosh Shilimkar <santosh.shilimkar@...com>
To: <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
CC: Santosh Shilimkar <santosh.shilimkar@...com>,
Russell King <linux@....linux.org.uk>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will.deacon@....com>,
Nicolas Pitre <nicolas.pitre@...aro.org>,
Tejun Heo <tj@...nel.org>, Jens Axboe <axboe@...nel.dk>
Subject: [RFC/RFT PATCH 0/5] mm: ARM nobootmem and few dma_mask fixes
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@....linux.org.uk>
Cc: Catalin Marinas <catalin.marinas@....com>
Cc: Will Deacon <will.deacon@....com>
Cc: Nicolas Pitre <nicolas.pitre@...aro.org>
Cc: Tejun Heo <tj@...nel.org>
Cc: Jens Axboe <axboe@...nel.dk>
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists