From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754922AbbHKDnv (ORCPT ); Mon, 10 Aug 2015 23:43:51 -0400 Received: from mga11.intel.com ([192.55.52.93]:59124 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933632AbbHKDns (ORCPT ); Mon, 10 Aug 2015 23:43:48 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,650,1432623600"; d="scan'208";a="780941822" Subject: [PATCH v4 00/10] memremap for 4.3 From: Dan Williams To: linux-kernel@vger.kernel.org Cc: Toshi Kani , Arnd Bergmann , linux-nvdimm@ml01.01.org, Greg Kroah-Hartman , mcgrof@suse.com, hch@lst.de, Benjamin Romer , David Kershner , ross.zwisler@linux.intel.com Date: Mon, 10 Aug 2015 23:37:50 -0400 Message-ID: <20150811033345.4987.17983.stgit@otcpl-bsw-rvp-2.jf.intel.com> User-Agent: StGit/0.17.1-8-g92dd MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v3: [1] 1/ Include devm_memremap() support (Christoph) 2/ Rebase the series to defer the removal of ioremap_cache() and drop any of the ioremap_cache()-to-memremap() conversions that have yet to be acked by the appropriate maintainer. This avoids any potential for bisection breakage during the 4.3 merge and the cleanup can be done for 4.4. (Christoph) [1]: https://lists.01.org/pipermail/linux-nvdimm/2015-July/001649.html --- While developing the pmem driver we noticed that the __iomem annotation on the return value from ioremap_cache() was being mishandled by several callers. We also observed that all of the call sites expected to be able to treat the return value from ioremap_cache() as normal (non-__iomem) pointer to memory. See also, the LWN write up: https://lwn.net/Articles/653585/ This has passed a 0day run and will appear in libnvdimm-for-next shortly. --- Christoph Hellwig (2): devres: add devm_memremap pmem: switch to devm_ allocations Dan Williams (8): mm: enhance region_is_ram() to region_intersects() arch, drivers: don't include directly, use instead cleanup IORESOURCE_CACHEABLE vs ioremap() arch: introduce memremap() visorbus: switch from ioremap_cache to memremap libnvdimm, pmem: push call to ioremap_cache out of line pmem: switch from ioremap_wt to memremap pmem: convert to generic memremap arch/arm/mach-clps711x/board-cdb89712.c | 2 arch/arm/mach-shmobile/pm-rcar.c | 2 arch/ia64/include/asm/io.h | 1 arch/ia64/kernel/cyclone.c | 2 arch/powerpc/kernel/pci_of_scan.c | 2 arch/sh/include/asm/io.h | 1 arch/sparc/kernel/pci.c | 3 - arch/x86/include/asm/io.h | 7 - arch/x86/mm/ioremap.c | 10 ++ arch/xtensa/include/asm/io.h | 1 drivers/isdn/icn/icn.h | 2 drivers/mtd/devices/slram.c | 2 drivers/mtd/nand/diskonchip.c | 2 drivers/mtd/onenand/generic.c | 2 drivers/nvdimm/pmem.c | 36 ++---- drivers/pci/probe.c | 3 - drivers/pnp/manager.c | 2 drivers/scsi/aic94xx/aic94xx_init.c | 7 - drivers/scsi/arcmsr/arcmsr_hba.c | 5 - drivers/scsi/mvsas/mv_init.c | 15 +-- drivers/scsi/sun3x_esp.c | 2 drivers/staging/comedi/drivers/ii_pci20kc.c | 1 drivers/staging/unisys/visorbus/visorchannel.c | 16 ++- drivers/staging/unisys/visorbus/visorchipset.c | 17 ++- drivers/tty/serial/8250/8250_core.c | 2 drivers/video/fbdev/ocfb.c | 1 drivers/video/fbdev/s1d13xxxfb.c | 3 - drivers/video/fbdev/stifb.c | 1 include/linux/io-mapping.h | 2 include/linux/io.h | 13 ++ include/linux/mm.h | 9 +- include/linux/mtd/map.h | 2 include/linux/pmem.h | 30 +++-- include/video/vga.h | 2 kernel/Makefile | 2 kernel/memremap.c | 138 ++++++++++++++++++++++++ kernel/resource.c | 61 ++++++----- lib/devres.c | 13 +- lib/pci_iomap.c | 7 - tools/testing/nvdimm/Kbuild | 4 - tools/testing/nvdimm/test/iomap.c | 46 ++++++-- 41 files changed, 323 insertions(+), 156 deletions(-) create mode 100644 kernel/memremap.c