Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965546Ab3GLVtq (ORCPT ); Fri, 12 Jul 2013 17:49:46 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:48890 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965502Ab3GLVt2 (ORCPT ); Fri, 12 Jul 2013 17:49:28 -0400 From: Santosh Shilimkar To: , CC: Santosh Shilimkar , Russell King , Catalin Marinas , Will Deacon , Nicolas Pitre , Tejun Heo , Jens Axboe Subject: [RFC/RFT PATCH 0/5] mm: ARM nobootmem and few dma_mask fixes Date: Fri, 12 Jul 2013 17:48:09 -0400 Message-ID: <1373665694-7580-1-git-send-email-santosh.shilimkar@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2352 Lines: 56 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 Cc: Catalin Marinas Cc: Will Deacon Cc: Nicolas Pitre Cc: Tejun Heo Cc: Jens Axboe 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/