All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC/RFT PATCH 0/5] mm: ARM nobootmem and few dma_mask fixes
@ 2013-07-12 21:48 ` Santosh Shilimkar
  0 siblings, 0 replies; 45+ messages in thread
From: Santosh Shilimkar @ 2013-07-12 21:48 UTC (permalink / raw)
  To: linux-kernel, linux-arm-kernel
  Cc: Santosh Shilimkar, Russell King, Catalin Marinas, Will Deacon,
	Nicolas Pitre, Tejun Heo, Jens Axboe

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@arm.linux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.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


^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2013-08-01  2:15 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-12 21:48 [RFC/RFT PATCH 0/5] mm: ARM nobootmem and few dma_mask fixes Santosh Shilimkar
2013-07-12 21:48 ` Santosh Shilimkar
2013-07-12 21:48 ` [RFC/RFT PATCH 1/5] block: Rename parameter dma_mask to max_addr for blk_queue_bounce_limit() Santosh Shilimkar
2013-07-12 21:48   ` Santosh Shilimkar
2013-07-12 21:48 ` [RFC/RFT PATCH 2/5] mm: dma-mapping: Add dma_max_pfn(dev) helper function Santosh Shilimkar
2013-07-12 21:48   ` Santosh Shilimkar
2013-07-12 21:48 ` [RFC/RFT PATCH 3/5] scsi: Use dma_max_pfn(dev) helper for bounce_limit calculations Santosh Shilimkar
2013-07-12 21:48   ` Santosh Shilimkar
2013-07-12 21:48   ` Santosh Shilimkar
2013-07-12 21:55   ` Sergei Shtylyov
2013-07-12 21:55     ` Sergei Shtylyov
2013-07-12 22:25     ` Russell King - ARM Linux
2013-07-12 22:25       ` Russell King - ARM Linux
2013-07-12 23:08       ` Sergei Shtylyov
2013-07-12 23:08         ` Sergei Shtylyov
2013-07-12 23:42         ` Sergei Shtylyov
2013-07-12 23:42           ` Sergei Shtylyov
2013-07-12 23:57           ` Russell King - ARM Linux
2013-07-12 23:57             ` Russell King - ARM Linux
2013-07-12 21:48 ` [RFC/RFT PATCH 4/5] ARM: mm: change max*pfn to include the physical offset of memory Santosh Shilimkar
2013-07-12 21:48   ` Santosh Shilimkar
2013-07-13  0:14   ` Russell King - ARM Linux
2013-07-13  0:14     ` Russell King - ARM Linux
2013-07-31 10:56   ` Russell King - ARM Linux
2013-07-31 10:56     ` Russell King - ARM Linux
2013-08-01  2:14     ` Santosh Shilimkar
2013-08-01  2:14       ` Santosh Shilimkar
2013-07-12 21:48 ` [RFC/RFT PATCH 5/5] ARM: mm: Remove bootmem code and switch to NO_BOOTMEM Santosh Shilimkar
2013-07-12 21:48   ` Santosh Shilimkar
2013-07-26 15:10 ` [RFC/RFT PATCH 0/5] mm: ARM nobootmem and few dma_mask fixes Russell King - ARM Linux
2013-07-26 15:10   ` Russell King - ARM Linux
2013-07-26 16:28   ` Santosh Shilimkar
2013-07-26 16:28     ` Santosh Shilimkar
2013-07-26 16:28     ` Santosh Shilimkar
2013-07-29 11:15     ` Russell King - ARM Linux
2013-07-29 11:15       ` Russell King - ARM Linux
2013-07-29 13:26       ` Santosh Shilimkar
2013-07-29 13:26         ` Santosh Shilimkar
2013-07-29 13:26         ` Santosh Shilimkar
2013-07-29 13:40         ` Russell King - ARM Linux
2013-07-29 13:40           ` Russell King - ARM Linux
2013-07-29 13:40           ` Russell King - ARM Linux
2013-07-29 13:42           ` Santosh Shilimkar
2013-07-29 13:42             ` Santosh Shilimkar
2013-07-29 13:42             ` Santosh Shilimkar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.