Re: [PATCH v11 12/12] drivers/block/pmem: Map NVDIMM with ioremap_wt()

2015-05-29 Thread Dan Williams
uncached writes but cached reads, for improving read performance. Signed-off-by: Toshi Kani toshi.k...@hp.com Acked-by: Dan Williams dan.j.willi...@intel.com ...with the caveat that I'm going to follow in behind this series with generic ioremap_cache() enabling and converting pmem to use

Re: [PATCH v2 3/4] arch: introduce memremap()

2015-05-30 Thread Dan Williams
On Sat, May 30, 2015 at 2:00 PM, Arnd Bergmann a...@arndb.de wrote: On Saturday 30 May 2015, Dan Williams wrote: +/* + * memremap() is ioremap for cases where it is known that the resource + * being mapped does not have i/o side effects and the __iomem + * annotation is not applicable

Re: [GIT PULL v4 00/21] libnd: non-volatile memory device support

2015-05-27 Thread Dan Williams
On Wed, May 27, 2015 at 5:42 PM, Rafael J. Wysocki raf...@kernel.org wrote: On Thu, May 28, 2015 at 2:34 AM, Dan Williams dan.j.willi...@intel.com wrote: On Wed, May 27, 2015 at 4:17 PM, Rafael J. Wysocki raf...@kernel.org wrote: On Thu, May 28, 2015 at 12:52 AM, Dan Williams dan.j.willi

Re: [GIT PULL v4 00/21] libnd: non-volatile memory device support

2015-05-27 Thread Dan Williams
On Wed, May 27, 2015 at 4:17 PM, Rafael J. Wysocki raf...@kernel.org wrote: On Thu, May 28, 2015 at 12:52 AM, Dan Williams dan.j.willi...@intel.com wrote: On Wed, May 27, 2015 at 3:36 PM, Rafael J. Wysocki raf...@kernel.org wrote: Hi, On Thu, May 28, 2015 at 12:24 AM, Dan Williams

Re: [GIT PULL v4 00/21] libnd: non-volatile memory device support

2015-05-28 Thread Dan Williams
On Thu, May 28, 2015 at 1:51 AM, Christoph Hellwig h...@lst.de wrote: On Wed, May 27, 2015 at 06:24:42PM -0400, Dan Williams wrote: Jens, please pull from... git://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm tags/libnd-for-jens I don't really think it's quite ready. I don't

Re: [GIT PULL v4 00/21] libnd: non-volatile memory device support

2015-05-27 Thread Dan Williams
On Wed, May 27, 2015 at 3:36 PM, Rafael J. Wysocki raf...@kernel.org wrote: Hi, On Thu, May 28, 2015 at 12:24 AM, Dan Williams dan.j.willi...@intel.com wrote: Jens, please pull from... git://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm tags/libnd-for-jens ...to receive

[PATCH v4 21/21] libnd: Non-Volatile Devices

2015-05-27 Thread Dan Williams
Cc: Greg KH gre...@linuxfoundation.org Signed-off-by: Dan Williams dan.j.willi...@intel.com --- Documentation/blockdev/libnd.txt | 804 ++ MAINTAINERS | 39 ++ 2 files changed, 837 insertions(+), 6 deletions(-) create mode 100644

[PATCH v4 16/21] libnd: write blk label set

2015-05-27 Thread Dan Williams
, it is useful for userspace to know how many slots are left. Export this information in sysfs. Cc: Greg KH gre...@linuxfoundation.org Cc: Neil Brown ne...@suse.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/block/nd/bus.c|4 drivers/block/nd/dimm_devs.c

[PATCH v4 19/21] libnd, nfit, nd_blk: driver for BLK-mode access persistent memory

2015-05-27 Thread Dan Williams
Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/acpi/nfit.c | 442 +++-- drivers/acpi/nfit.h | 50 drivers/block/nd/Kconfig | 13 + drivers/block/nd/Makefile |3 drivers/block/nd/blk.c

[PATCH v4 20/21] nfit-test: manufactured NFITs for interface development

2015-05-27 Thread Dan Williams
...@intel.com Cc: Robert Moore robert.mo...@intel.com Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/acpi/nfit.c |6 drivers/acpi/nfit.h | 12 drivers/block/nd/Kconfig | 22 + drivers/block/nd

[PATCH v4 12/21] libnd: namespace indices: read and validate

2015-05-27 Thread Dan Williams
... || ++ | labelN | ++ After reading valid labels, store the dpa ranges they claim into per-dimm resource trees. [1]: http://pmem.io/documents/NVDIMM_Namespace_Spec.pdf Cc: Neil Brown ne...@suse.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/block/nd/Makefile|1

[PATCH v4 10/21] pmem: Dynamically allocate partition numbers

2015-05-27 Thread Dan Williams
├─pmem0p16 259:001G 0 part ├─pmem0p17 259:101G 0 part └─pmem0p18 259:201G 0 part Signed-off-by: Ross Zwisler ross.zwis...@linux.intel.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/block/nd/pmem.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions

[GIT PULL v4 00/21] libnd: non-volatile memory device support

2015-05-27 Thread Dan Williams
. Thanks to: Ross Zwisler, Jeff Moyer, Vishal Verma, Christoph Hellwig, Ingo Molnar, Neil Brown, Boaz Harrosh, Robert Elliott, Matthew Wilcox, Andy Rudoff, Linda Knippers, Toshi Kani, Nicholas Moulin, Rafael Wysocki, and Bob Moore. Dan

[PATCH v4 03/21] libnd: control character device and libnd bus sysfs attributes

2015-05-27 Thread Dan Williams
. Wysocki rafael.j.wyso...@intel.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/acpi/nfit.c | 29 ++ drivers/acpi/nfit.h |5 ++ drivers/block/nd/Makefile |1 drivers/block/nd/bus.c| 83

[PATCH v4 05/21] libnd: control (ioctl) messages for libnd bus and dimm devices

2015-05-27 Thread Dan Williams
: Robert Moore robert.mo...@intel.com Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Reported-by: Nicholas Moulin nicholas.w.mou...@linux.intel.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/acpi/Kconfig | 12 ++ drivers/acpi/nfit.c | 213

[PATCH v4 01/21] e820, efi: add ACPI 6.0 persistent memory types

2015-05-27 Thread Dan Williams
Acked-by: Jeff Moyer jmo...@redhat.com Acked-by: Andy Lutomirski l...@amacapital.net Reviewed-by: Ross Zwisler ross.zwis...@linux.intel.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/arm64/kernel/efi.c |1 + arch/ia64/kernel/efi.c |4 arch/x86/boot

[PATCH v4 09/21] libnd, nd_pmem: add libnd support to the pmem driver

2015-05-27 Thread Dan Williams
device. Cc: Andy Lutomirski l...@amacapital.net Cc: Boaz Harrosh b...@plexistor.com Cc: H. Peter Anvin h...@zytor.com Cc: Jens Axboe ax...@fb.com Cc: Ingo Molnar mi...@kernel.org Cc: Christoph Hellwig h...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/x86/Kconfig

[PATCH v4 06/21] libnd, nd_dimm: dimm driver and base libnd device-driver infrastructure

2015-05-27 Thread Dan Williams
...@suse.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/acpi/nfit.c | 13 ++- drivers/block/nd/Makefile |1 drivers/block/nd/bus.c| 168 + drivers/block/nd/core.c | 43 ++ drivers/block/nd/dimm.c

[PATCH v4 11/21] libnd, nfit: add interleave-set state-tracking infrastructure

2015-05-27 Thread Dan Williams
robert.mo...@intel.com Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/acpi/nfit.c| 91 drivers/block/nd/bus.c | 41 ++ drivers/block/nd/core.c| 17

[PATCH v4 14/21] libnd: blk labels and namespace instantiation

2015-05-27 Thread Dan Williams
. As long as a region has 'available_size' != 0 new child namespaces may be created. Cc: Greg KH gre...@linuxfoundation.org Cc: Neil Brown ne...@suse.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/block/nd/core.c | 40 +++ drivers/block/nd/dimm_devs.c | 35

[PATCH v4 13/21] libnd: pmem label sets and namespace instantiation.

2015-05-27 Thread Dan Williams
...@linuxfoundation.org Cc: Neil Brown ne...@suse.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/block/nd/bus.c|6 drivers/block/nd/core.c | 64 ++ drivers/block/nd/dimm_devs.c | 103 drivers/block/nd/label.c | 54 ++ drivers/block/nd/label.h

[PATCH v4 15/21] libnd: write pmem label set

2015-05-27 Thread Dan Williams
the index to make the update valid Label ranges directly mirror the dpa resource values for the given label_id of the namespace. Cc: Greg KH gre...@linuxfoundation.org Cc: Neil Brown ne...@suse.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/block/nd/dimm_devs.c | 49

[PATCH v4 18/21] nd_btt: atomic sector updates

2015-05-27 Thread Dan Williams
in the btt initialization path] [jmoyer: Don't overwrite corrupted arenas] Signed-off-by: Vishal Verma vishal.l.ve...@linux.intel.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- Documentation/blockdev/btt.txt | 273 drivers/acpi/nfit.c|1 drivers/block/nd/Kconfig

[PATCH v4 17/21] libnd: infrastructure for btt devices

2015-05-27 Thread Dan Williams
...@suse.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/block/nd/Kconfig |3 drivers/block/nd/Makefile |1 drivers/block/nd/btt.h| 45 drivers/block/nd/btt_devs.c | 442 + drivers/block/nd/bus.c

[PATCH v4 08/21] libnd: support for legacy (non-aliasing) nvdimms

2015-05-27 Thread Dan Williams
the region boundaries directly to create a child namespace device (nd_namespace_io). Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/acpi/nfit.c |1 drivers/block/nd/Makefile |2 + drivers/block/nd/bus.c| 26 + drivers/block/nd/core.c

[PATCH v4 02/21] libnd, nfit: initial libnd infrastructure and NFIT support

2015-05-27 Thread Dan Williams
...@intel.com Acked-by: Jeff Moyer jmo...@redhat.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/acpi/Kconfig | 15 + drivers/acpi/Makefile |1 drivers/acpi/nfit.c | 444 + drivers/acpi/nfit.h | 89

[PATCH v4 04/21] libnd, nfit: dimm/memory-devices

2015-05-27 Thread Dan Williams
may be used for this purpose. Cc: Neil Brown ne...@suse.de Cc: linux-a...@vger.kernel.org Cc: Greg KH gre...@linuxfoundation.org Cc: Robert Moore robert.mo...@intel.com Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/acpi/nfit.c

[PATCH v4 07/21] libnd, nfit: regions (block-data-window, persistent memory, volatile memory)

2015-05-27 Thread Dan Williams
-a...@vger.kernel.org Cc: Greg KH gre...@linuxfoundation.org Cc: Robert Moore robert.mo...@intel.com Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/acpi/nfit.c| 130 ++ drivers/block/nd/Makefile |1

Re: [PATCH v10 12/12] drivers/block/pmem: Map NVDIMM with ioremap_wt()

2015-05-29 Thread Dan Williams
On Fri, May 29, 2015 at 11:34 AM, Andy Lutomirski l...@amacapital.net wrote: On Fri, May 29, 2015 at 11:19 AM, Dan Williams dan.j.willi...@intel.com wrote: On Fri, May 29, 2015 at 8:03 AM, Toshi Kani toshi.k...@hp.com wrote: On Fri, 2015-05-29 at 07:43 -0700, Dan Williams wrote: On Fri, May

Re: [PATCH v10 12/12] drivers/block/pmem: Map NVDIMM with ioremap_wt()

2015-05-29 Thread Dan Williams
On Fri, May 29, 2015 at 11:32 AM, Toshi Kani toshi.k...@hp.com wrote: On Fri, 2015-05-29 at 11:19 -0700, Dan Williams wrote: On Fri, May 29, 2015 at 8:03 AM, Toshi Kani toshi.k...@hp.com wrote: On Fri, 2015-05-29 at 07:43 -0700, Dan Williams wrote: On Fri, May 29, 2015 at 2:11 AM, Borislav

Re: [PATCH v5 00/11] Add simple NVMEM Framework via regmap.

2015-05-29 Thread Dan Williams
On Fri, May 29, 2015 at 12:09 AM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: On 29/05/15 02:20, Dan Williams wrote: On Thu, May 21, 2015 at 9:42 AM, Srinivas Kandagatla srinivas.kandaga...@linaro.org wrote: Thankyou all for providing inputs and comments on previous versions

Re: [PATCH v7 09/16] libnvdimm, pmem: move pmem to drivers/nvdimm/

2015-07-01 Thread Dan Williams
On Wed, Jul 1, 2015 at 9:49 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Wed, Jul 1, 2015 at 6:41 PM, Dan Williams dan.j.willi...@intel.com wrote: On Wed, Jul 1, 2015 at 6:13 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Thu, Jun 18, 2015 at 1:14 AM, Dan Williams dan.j.willi

Re: [PATCH v7 09/16] libnvdimm, pmem: move pmem to drivers/nvdimm/

2015-07-01 Thread Dan Williams
On Wed, Jul 1, 2015 at 6:13 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: Hi Dan, On Thu, Jun 18, 2015 at 1:14 AM, Dan Williams dan.j.willi...@intel.com wrote: Prepare the pmem driver to consume PMEM namespaces emitted by regions of an nvdimm_bus instance. No functional change

Re: [PATCH v5 2/6] arch: unify ioremap prototypes and macro aliases

2015-07-01 Thread Dan Williams
On Wed, Jul 1, 2015 at 1:09 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Wed, Jul 01, 2015 at 08:55:57AM +0200, Geert Uytterhoeven wrote: On Wed, Jul 1, 2015 at 8:23 AM, Christoph Hellwig h...@lst.de wrote: One useful feature of the ifdef mess as implemented in the patch is

Re: [PATCH 2/8] driver-core: add asynchronous probing support for drivers

2015-06-27 Thread Dan Williams
On Mon, Mar 30, 2015 at 4:20 PM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: Some devices take a long time when initializing, and not all drivers are suited to initialize their devices when they are open. For example, input drivers need to interrogate their devices in order to publish

Re: [PATCH 2/8] driver-core: add asynchronous probing support for drivers

2015-07-05 Thread Dan Williams
On Fri, Jul 3, 2015 at 11:30 AM, Luis R. Rodriguez mcg...@suse.com wrote: On Sat, Jun 27, 2015 at 04:45:25PM -0700, Dan Williams wrote: On Mon, Mar 30, 2015 at 4:20 PM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: Some devices take a long time when initializing, and not all drivers

Re: [PATCH v2 0/3] Add NUMA support for NVDIMM devices

2015-06-11 Thread Dan Williams
with is_visible. (Dan Williams) - Check ACPI_NFIT_PROXIMITY_VALID in spa-flags. --- Toshi Kani (3): 1/3 acpi: Add acpi_map_pxm_to_online_node() 2/3 libnvdimm: Set numa_node to NVDIMM devices 3/3 libnvdimm: Add sysfs numa_node to NVDIMM devices Looks good to me. Once Rafael acks

Re: [PATCH v3 18/21] nd_btt: atomic sector updates

2015-05-22 Thread Dan Williams
On Fri, May 22, 2015 at 2:16 PM, Elliott, Robert (Server Storage) elli...@hp.com wrote: -Original Message- From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On Behalf Of Dan Williams Sent: Wednesday, May 20, 2015 3:58 PM To: ax...@kernel.dk Cc: mi...@kernel.org; linux

Re: [PATCH v3 06/11] scatterlist: support page-less (__pfn_t only) entries

2015-05-23 Thread Dan Williams
On Sat, May 23, 2015 at 7:12 AM, h...@lst.de h...@lst.de wrote: On Wed, May 13, 2015 at 06:35:55PM +, Williams, Dan J wrote: Jens, I'm wondering if you want to take this series(.) as patches or prepare a git branch to pull? Honestly I don't think it should go anyway. It makes a big mess

Re: [PATCH v3 09/21] libnd, nd_pmem: add libnd support to the pmem driver

2015-05-23 Thread Dan Williams
On Sat, May 23, 2015 at 7:39 AM, Christoph Hellwig h...@infradead.org wrote: On Wed, May 20, 2015 at 04:57:00PM -0400, Dan Williams wrote: nd_pmem attaches to persistent memory regions and namespaces emitted by the libnd subsystem, and, same as the original pmem driver, presents the system

Re: [PATCH v3 02/21] libnd, nfit: initial libnd infrastructure and NFIT support

2015-05-21 Thread Dan Williams
On Thu, May 21, 2015 at 1:59 PM, Linda Knippers linda.knipp...@hp.com wrote: On 05/21/2015 03:59 PM, Toshi Kani wrote: On Thu, 2015-05-21 at 13:44 -0600, Toshi Kani wrote: On Thu, 2015-05-21 at 12:06 -0700, Dan Williams wrote: On Thu, May 21, 2015 at 11:01 AM, Toshi Kani toshi.k...@hp.com

Re: [PATCH v3 02/21] libnd, nfit: initial libnd infrastructure and NFIT support

2015-05-21 Thread Dan Williams
On Thu, May 21, 2015 at 11:01 AM, Toshi Kani toshi.k...@hp.com wrote: On Thu, 2015-05-21 at 17:49 +, Moore, Robert wrote: What ACPICA has done here is to define these values consistently with the ToUUID ASL macro: Byte encoding of UUID/GUID strings into ACPI Buffer objects (use ToUUID

Re: [PATCH v3 14/21] libnd: blk labels and namespace instantiation

2015-05-22 Thread Dan Williams
On Fri, May 22, 2015 at 11:37 AM, Elliott, Robert (Server Storage) elli...@hp.com wrote: -Original Message- From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On Behalf Of Dan Williams Sent: Wednesday, May 20, 2015 3:57 PM To: ax...@kernel.dk Cc: linux-nvd...@lists.01.org

Re: [PATCH v3 02/21] libnd, nfit: initial libnd infrastructure and NFIT support

2015-05-21 Thread Dan Williams
On Thu, May 21, 2015 at 6:55 AM, Toshi Kani toshi.k...@hp.com wrote: On Wed, 2015-05-20 at 16:56 -0400, Dan Williams wrote: : +/* NVDIMM - NFIT table */ + +#define UUID_VOLATILE_MEMORY 4f940573-dafd-e344-b16c-3f22d252e5d0 +#define UUID_PERSISTENT_MEMORY 79d3f066-f3b4

Re: [PATCH 0/8] ARM: mvebu: Add support for RAID6 PQ offloading

2015-05-26 Thread Dan Williams
[ adding Boaz as this discussion has implications for ore_raid ] On Tue, May 26, 2015 at 2:45 AM, Maxime Ripard maxime.rip...@free-electrons.com wrote: On Mon, May 18, 2015 at 10:06:55AM -0700, Dan Williams wrote: On Mon, May 18, 2015 at 2:14 AM, Maxime Ripard maxime.rip...@free-electrons.com

Re: [PATCH v2 08/25] arch: introduce memremap()

2015-08-11 Thread Dan Williams
+0200, Luis R. Rodriguez wrote: On Wed, Jul 29, 2015 at 03:00:38PM -0600, Toshi Kani wrote: On Wed, 2015-07-29 at 11:33 -0700, Dan Williams wrote: : That would depend on the purpose of the region and the driver developer should in theory know best. One issue with this of course

Re: [PATCH v4 4/9] dax: fix mapping lifetime handling, convert to __pfn_t + kmap_atomic_pfn_t()

2015-08-07 Thread Dan Williams
On Sat, Jun 6, 2015 at 4:58 AM, Matthew Wilcox wi...@linux.intel.com wrote: On Fri, Jun 05, 2015 at 05:19:24PM -0400, Dan Williams wrote: @@ -35,13 +35,16 @@ int dax_clear_blocks(struct inode *inode, sector_t block, long size) might_sleep(); do { void *addr

Re: [PATCH 6/6] scatterlist: use sg_phys()

2015-08-07 Thread Dan Williams
On Fri, Aug 7, 2015 at 9:15 AM, Christoph Hellwig h...@lst.de wrote: From: Dan Williams dan.j.willi...@intel.com Coccinelle cleanup to replace open coded sg to physical address translations. This is in preparation for introducing scatterlists that reference __pfn_t. // sg_phys.cocci

[PATCH v5 7/8] devres: add devm_memremap

2015-08-12 Thread Dan Williams
From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- include/linux/io.h |4 kernel/memremap.c | 39 +++ 2 files changed, 43 insertions(+) diff --git a/include

[PATCH v5 4/8] arch: introduce memremap()

2015-08-12 Thread Dan Williams
...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/ia64/include/asm/io.h |1 arch/sh/include/asm/io.h |1 arch/xtensa/include/asm/io.h |1 include/linux/io.h |9 kernel/Makefile |2 + kernel/memremap.c| 98

[PATCH v5 8/8] pmem: switch to devm_ allocations

2015-08-12 Thread Dan Williams
From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de [djbw: tools/testing/nvdimm/ and memumap_pmem support] Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/nvdimm/pmem.c | 36 + include/linux/pmem.h

[PATCH v5 3/8] cleanup IORESOURCE_CACHEABLE vs ioremap()

2015-08-12 Thread Dan Williams
back to plain ioremap(). Clean this up as the new direction we want is to convert ioremap_type() usages to memremap(..., flags). Suggested-by: Arnd Bergmann a...@arndb.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/arm/mach-clps711x/board-cdb89712.c |2 +- arch/powerpc

[PATCH v5 6/8] pmem: convert to generic memremap

2015-08-12 Thread Dan Williams
Kill arch_memremap_pmem() and just let the architecture specify the flags to be passed to memremap(). Default to writethrough by default. Cc: Ross Zwisler ross.zwis...@linux.intel.com Suggested-by: Christoph Hellwig h...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/x86

[PATCH v5 5/8] visorbus: switch from ioremap_cache to memremap

2015-08-12 Thread Dan Williams
In preparation for deprecating ioremap_cache() convert its usage in visorbus to memremap. Cc: Benjamin Romer benjamin.ro...@unisys.com Cc: David Kershner david.kersh...@unisys.com Acked-by: Greg Kroah-Hartman gre...@linuxfoundation.org Signed-off-by: Dan Williams dan.j.willi...@intel.com

[PATCH v5 1/8] mm: enhance region_is_ram() to region_intersects()

2015-08-12 Thread Dan Williams
, the implementation treats overlaps between unknown and the requested memory type as REGION_INTERSECTS. Finally, other memory types can be passed in by name, for now the only usage System RAM. Suggested-by: Luis R. Rodriguez mcg...@suse.com Reviewed-by: Toshi Kani toshi.k...@hp.com Signed-off-by: Dan Williams

[PATCH v5 2/8] arch, drivers: don't include asm/io.h directly, use linux/io.h instead

2015-08-12 Thread Dan Williams
Preparation for uniform definition of ioremap, ioremap_wc, ioremap_wt, and ioremap_cache, tree-wide. Acked-by: Christoph Hellwig h...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/arm/mach-shmobile/pm-rcar.c|2 +- arch/ia64/kernel/cyclone.c

[PATCH v5 0/8] memremap for 4.3

2015-08-12 Thread Dan Williams
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/ --- Christoph Hellwig (2): devres: add devm_memremap pmem: switch to devm_ allocations Dan Williams (6

[RFC PATCH 5/7] libnvdimm, e820: make CONFIG_X86_PMEM_LEGACY a tristate option

2015-08-12 Thread Dan Williams
as it no longer depends on asm/e820.h. Cc: Christoph Hellwig h...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/x86/Kconfig |6 ++- arch/x86/include/uapi/asm/e820.h |2 - arch/x86/kernel/Makefile |2 - arch/x86/kernel/pmem.c

[RFC PATCH 6/7] libnvdimm, pfn: 'struct page' provider infrastructure

2015-08-12 Thread Dan Williams
this is just the basic libnvdimm-device-model for configuring the base PFN device. As the namespace claiming mechanism for PFN devices is mostly identical to BTT devices drivers/nvdimm/claim.c is created to house the common bits. Cc: Ross Zwisler ross.zwis...@linux.intel.com Signed-off-by: Dan

[RFC PATCH 0/7] 'struct page' driver for persistent memory

2015-08-12 Thread Dan Williams
. Only lightly tested so far to confirm valid pfn_to_page() and page_address() conversions across a range of persistent memory specified by 'memmap=ss!nn' (kernel command line option to simulate a PMEM range). [1]: https://lists.01.org/pipermail/linux-nvdimm/2015-May/000748.html --- Dan Williams

[RFC PATCH 1/7] x86, mm: ZONE_DEVICE for device memory

2015-08-12 Thread Dan Williams
to the memory hotplug code. Cc: H. Peter Anvin h...@zytor.com Cc: Ingo Molnar mi...@redhat.com Cc: Dave Hansen dave.han...@linux.intel.com Cc: Rik van Riel r...@redhat.com Cc: Mel Gorman mgor...@suse.de Cc: linux...@kvack.org Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/x86/Kconfig

[RFC PATCH 7/7] libnvdimm, pmem: 'struct page' for pmem

2015-08-12 Thread Dan Williams
-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/nvdimm/Kconfig|4 + drivers/nvdimm/pfn_devs.c |3 - drivers/nvdimm/pmem.c | 213 - tools/testing/nvdimm/Kbuild |1 tools/testing/nvdimm/test/iomap.c

[RFC PATCH 2/7] x86, mm: introduce struct vmem_altmap

2015-08-12 Thread Dan Williams
of this capability will be the pmem driver for persistent memory. Cc: H. Peter Anvin h...@zytor.com Cc: Ingo Molnar mi...@redhat.com Cc: Dave Hansen dave.han...@linux.intel.com Cc: Rik van Riel r...@redhat.com Cc: Mel Gorman mgor...@suse.de Cc: linux...@kvack.org Signed-off-by: Dan Williams dan.j.willi

[RFC PATCH 4/7] mm: register_dev_memmap()

2015-08-12 Thread Dan Williams
: linux...@kvack.org Signed-off-by: Dan Williams dan.j.willi...@intel.com --- include/linux/kmap_pfn.h | 33 include/linux/mm.h |4 + mm/kmap_pfn.c| 195 ++ 3 files changed, 231 insertions(+), 1 deletion(-) diff --git

[RFC PATCH 3/7] x86, mm: arch_add_dev_memory()

2015-08-12 Thread Dan Williams
Hansen dave.han...@linux.intel.com Cc: Rik van Riel r...@redhat.com Cc: Mel Gorman mgor...@suse.de Cc: linux...@kvack.org Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/x86/mm/init_64.c | 55 +--- include/linux/memory_hotplug.h |4

[PATCH v5 2/5] allow mapping page-less memremaped areas into KVA

2015-08-12 Thread Dan Williams
a kmap_atomic_pfn_t() a PAGE_SIZE at a time the caller can take advantage of the fact that the lookup can be amortized for all kmap operations it needs to perform in a given range. [hch: various changes] Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com

[PATCH v5 0/5] introduce __pfn_t for unmapped pfn I/O and DAX lifetime

2015-08-12 Thread Dan Williams
, memory. We also use kmap_atomic_pfn_t() to solve races of pmem driver unbind vs usage in DAX. rcu_read_lock() protects the driver from unbinding while a mapping is held. --- Christoph Hellwig (1): mm: move __phys_to_pfn and __pfn_to_phys to asm/generic/memory_model.h Dan Williams (4

[PATCH v5 4/5] dax: fix mapping lifetime handling, convert to __pfn_t + kmap_atomic_pfn_t()

2015-08-12 Thread Dan Williams
: various minor updates] Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/powerpc/platforms/Kconfig |1 + arch/powerpc/sysdev/axonram.c | 24 drivers/block/brd.c|5 +-- drivers/nvdimm/Kconfig |1

[PATCH v5 1/5] mm: move __phys_to_pfn and __pfn_to_phys to asm/generic/memory_model.h

2015-08-12 Thread Dan Williams
From: Christoph Hellwig h...@lst.de Three architectures already define these, and we'll need them genericly soon. Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/arm/include/asm/memory.h |6 -- arch/arm64/include/asm

[PATCH v5 3/5] dax: drop size parameter to -direct_access()

2015-08-12 Thread Dan Williams
None of the implementations currently use it. The common bdev_direct_access() entry point handles all the size checks before calling -direct_access(). Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/powerpc/sysdev/axonram.c |2

[PATCH v5 5/5] scatterlist: convert to __pfn_t

2015-08-12 Thread Dan Williams
__pfn_t has flags for sg_chain and sg_last, use it to replace the (struct page *) entry in struct scatterlist. Signed-off-by: Dan Williams dan.j.willi...@intel.com --- include/linux/mm.h |9 +++ include/linux/scatterlist.h | 111 ++- samples

Re: [PATCH v5 2/5] allow mapping page-less memremaped areas into KVA

2015-08-13 Thread Dan Williams
On Wed, Aug 12, 2015 at 10:58 PM, Boaz Harrosh b...@plexistor.com wrote: On 08/13/2015 06:01 AM, Dan Williams wrote: [..] +void *kmap_atomic_pfn_t(__pfn_t pfn) +{ + struct page *page = __pfn_t_to_page(pfn); + resource_size_t addr; + struct kmap *kmap; + + rcu_read_lock

Re: [PATCH v5 4/5] dax: fix mapping lifetime handling, convert to __pfn_t + kmap_atomic_pfn_t()

2015-08-13 Thread Dan Williams
On Wed, Aug 12, 2015 at 11:26 PM, Boaz Harrosh b...@plexistor.com wrote: B. Here this all set is a joke. The all pmem disable vs still-in-use argument is mute here below you have inserted a live, used for ever, pfn into a process vm without holding a map. Careful, don't confuse unbind

Re: [RFC PATCH 1/7] x86, mm: ZONE_DEVICE for device memory

2015-08-17 Thread Dan Williams
On Mon, Aug 17, 2015 at 2:45 PM, Jerome Glisse j.gli...@gmail.com wrote: On Fri, Aug 14, 2015 at 07:11:27PM -0700, Dan Williams wrote: Although it does not offer perfect protection if device memory is at a physically lower address than RAM, skipping the update of these variables does seem

Re: [RFC PATCH 1/7] x86, mm: ZONE_DEVICE for device memory

2015-08-18 Thread Dan Williams
On Tue, Aug 18, 2015 at 9:55 AM, Jerome Glisse j.gli...@gmail.com wrote: On Mon, Aug 17, 2015 at 05:46:43PM -0700, Dan Williams wrote: On Mon, Aug 17, 2015 at 2:45 PM, Jerome Glisse j.gli...@gmail.com wrote: On Fri, Aug 14, 2015 at 07:11:27PM -0700, Dan Williams wrote: Although it does

[PATCH v2] libnvdimm, e820: make CONFIG_X86_PMEM_LEGACY a tristate option

2015-08-18 Thread Dan Williams
iomem_resource rather than e820.map means any other architecture can take advantage of this simple nvdimm resource discovery mechanism by registering a resource named Persistent Memory (legacy) Cc: Christoph Hellwig h...@lst.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- No code changes

Re: [PATCH v2] nd_blk: add support for read flush DSM flag

2015-08-19 Thread Dan Williams
(). This is protected by the ARCH_HAS_MMIO_FLUSH Kconfig variable, and is currently only supported on x86. Signed-off-by: Ross Zwisler ross.zwis...@linux.intel.com Cc: Dan Williams dan.j.willi...@intel.com [..] diff --git a/drivers/acpi/nfit.c b/drivers/acpi/nfit.c index 7c2638f..56fff01 100644

Re: [RFC PATCH 1/7] x86, mm: ZONE_DEVICE for device memory

2015-08-19 Thread Dan Williams
On Tue, Aug 18, 2015 at 12:06 PM, Jerome Glisse j.gli...@gmail.com wrote: On Tue, Aug 18, 2015 at 10:23:38AM -0700, Dan Williams wrote: Thought maybe you don't need a new ZONE_DEV and all you need is valid struct page for this device memory, and you don't want this page to be useable

Re: [RFC PATCH 1/7] x86, mm: ZONE_DEVICE for device memory

2015-08-21 Thread Dan Williams
[ Adding David Woodhouse ] On Sat, Aug 15, 2015 at 1:59 AM, Christoph Hellwig h...@lst.de wrote: On Fri, Aug 14, 2015 at 02:52:15PM -0700, Dan Williams wrote: The idea is that this memory is not meant to be available to the page allocator and should not count as new memory capacity. We're

Re: [PATCH v2] nd_blk: add support for read flush DSM flag

2015-08-22 Thread Dan Williams
On Thu, Aug 20, 2015 at 2:15 PM, Ross Zwisler ross.zwis...@linux.intel.com wrote: On Thu, 2015-08-20 at 13:27 -0700, Dan Williams wrote: [...] With regards to the fencing, since we already take care to flush writes we don't need to fence at all for the flush, right? All we care about

Re: [PATCH v2] nd_blk: add support for read flush DSM flag

2015-08-20 Thread Dan Williams
On Thu, Aug 20, 2015 at 11:17 AM, Ross Zwisler ross.zwis...@linux.intel.com wrote: On Thu, 2015-08-20 at 10:59 -0700, Dan Williams wrote: [..] Ah, I think we're getting confused about the deinterleave part. The aperture is a set of contiguous addresses from the perspective of the DIMM

Re: [PATCH v2] nd_blk: add support for read flush DSM flag

2015-08-20 Thread Dan Williams
On Thu, Aug 20, 2015 at 9:44 AM, Ross Zwisler ross.zwis...@linux.intel.com wrote: On Wed, 2015-08-19 at 16:06 -0700, Dan Williams wrote: On Wed, Aug 19, 2015 at 3:48 PM, Ross Zwisler ross.zwis...@linux.intel.com wrote: Add support for the read flush _DSM flag, as outlined in the DSM spec

Re: [RFC PATCH 5/7] libnvdimm, e820: make CONFIG_X86_PMEM_LEGACY a tristate option

2015-08-17 Thread Dan Williams
On Mon, Aug 17, 2015 at 8:01 AM, Christoph Hellwig h...@lst.de wrote: On Sat, Aug 15, 2015 at 09:04:02AM -0700, Dan Williams wrote: What other layer? /sys/devices/platform/e820_pmem is that exact same device we had before this patch. We just have a proper driver for it now. We're adding

Re: [PATCH v2] nd_blk: add support for read flush DSM flag

2015-08-20 Thread Dan Williams
On Thu, Aug 20, 2015 at 12:00 PM, Ross Zwisler ross.zwis...@linux.intel.com wrote: On Thu, 2015-08-20 at 11:26 -0700, Dan Williams wrote: On Thu, Aug 20, 2015 at 11:17 AM, Ross Zwisler ross.zwis...@linux.intel.com wrote: On Thu, 2015-08-20 at 10:59 -0700, Dan Williams wrote: [..] Ah, I

Re: [PATCH] nvdimm: Fix return value of nvdimm_bus_init() if class_create() fails

2015-06-30 Thread Dan Williams
On Sun, Jun 28, 2015 at 2:00 AM, Axel Lin axel@ingics.com wrote: Return proper error if class_create() fails. Signed-off-by: Axel Lin axel@ingics.com Thanks, applied. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH v5 2/6] arch: unify ioremap prototypes and macro aliases

2015-06-30 Thread Dan Williams
On Mon, Jun 22, 2015 at 9:10 AM, Christoph Hellwig h...@lst.de wrote: On Mon, Jun 22, 2015 at 04:24:27AM -0400, Dan Williams wrote: Some archs define the first parameter to ioremap() as unsigned long, while the balance define it as resource_size_t. Unify on resource_size_t to enable passing

Re: [PATCH v2 18/25] libnvdimm, pmem: switch from ioremap_cache to memremap

2015-07-28 Thread Dan Williams
On Tue, Jul 28, 2015 at 3:51 PM, Ross Zwisler ross.zwis...@linux.intel.com wrote: On Fri, 2015-07-24 at 22:39 -0400, Dan Williams wrote: In preparation for deprecating ioremap_cache() convert its usage in libnvdimm and the PMEM API to memremap. Signed-off-by: Dan Williams dan.j.willi

Re: [PATCH v2 24/25] arch: remove ioremap_wt, replace with arch_memremap

2015-07-29 Thread Dan Williams
On Mon, Jul 27, 2015 at 1:03 AM, Christoph Hellwig h...@lst.de wrote: +++ b/arch/frv/include/asm/io.h @@ -17,8 +17,6 @@ #ifdef __KERNEL__ -#define ARCH_HAS_IOREMAP_WT - #include linux/types.h #include asm/virtconvert.h #include asm/string.h @@ -267,20 +265,17 @@ static inline void

Re: [PATCH v2 08/25] arch: introduce memremap()

2015-07-29 Thread Dan Williams
On Wed, Jul 29, 2015 at 2:43 PM, Luis R. Rodriguez mcg...@suse.com wrote: While at it, Dan, will / should memremap() support overlapping calls ? What is the expectation on behaviour ? It will be the same as ioremap(). Each mapping gets its own virtual address and overlapping calls are

Re: [PATCH v2 08/25] arch: introduce memremap()

2015-07-29 Thread Dan Williams
On Wed, Jul 29, 2015 at 11:27 AM, Luis R. Rodriguez mcg...@suse.com wrote: On Wed, Jul 29, 2015 at 08:50:04AM +0200, Christoph Hellwig wrote: On Mon, Jul 27, 2015 at 04:26:03PM -0700, Dan Williams wrote: Oh, because all we have at this point is ioremap_cache() which silently falls back

Re: [PATCH v3 01/24] mm: enhance region_is_ram() to region_intersects()

2015-07-30 Thread Dan Williams
On Thu, Jul 30, 2015 at 1:42 PM, Luis R. Rodriguez mcg...@suse.com wrote: On Thu, Jul 30, 2015 at 12:53:45PM -0400, Dan Williams wrote: diff --git a/include/linux/mm.h b/include/linux/mm.h index 2e872f92dbac..84b05ebedb2d 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -369,7

Re: [PATCH v3 05/24] arch: introduce memremap()

2015-07-30 Thread Dan Williams
On Thu, Jul 30, 2015 at 2:02 PM, Luis R. Rodriguez mcg...@suse.com wrote: On Thu, Jul 30, 2015 at 12:54:07PM -0400, Dan Williams wrote: diff --git a/include/linux/io.h b/include/linux/io.h index fb5a99800e77..3fcf6256c088 100644 --- a/include/linux/io.h +++ b/include/linux/io.h @@ -121,4

Re: [PATCH v3 01/24] mm: enhance region_is_ram() to region_intersects()

2015-07-30 Thread Dan Williams
On Thu, Jul 30, 2015 at 1:54 PM, Luis R. Rodriguez mcg...@suse.com wrote: On Thu, Jul 30, 2015 at 01:44:44PM -0700, Dan Williams wrote: On Thu, Jul 30, 2015 at 1:42 PM, Luis R. Rodriguez mcg...@suse.com wrote: On Thu, Jul 30, 2015 at 12:53:45PM -0400, Dan Williams wrote: diff --git a/include

Re: [PATCH] nvdimm: fix inline function return type warning

2015-07-31 Thread Dan Williams
to 'int' [-Wreturn-type] static inline nd_btt_probe(struct nd_namespace_common *ndns, void *drvdata) ^ Signed-off-by: Randy Dunlap rdun...@infradead.org Cc: Dan Williams dan.j.willi...@intel.com Cc: linux-nvd...@lists.01.org Applied to libnvdimm-for-next. Thanks Randy

Re: [PATCH v2] ioatdma: fix overflow of u16 in ring_reshape

2015-08-05 Thread Dan Williams
On Wed, Aug 5, 2015 at 7:55 AM, Allen Hubbe allen.hu...@emc.com wrote: If the allocation order is 16, then the u16 index will overflow and wrap to zero instead of being equal or greater than 1 16. The loop condition will always be true, and the loop will run until all the memory resources

Re: [PATCH v3 24/24] pmem: convert to generic memremap

2015-08-03 Thread Dan Williams
On Mon, Aug 3, 2015 at 10:21 AM, Ross Zwisler ross.zwis...@linux.intel.com wrote: On Thu, 2015-07-30 at 12:55 -0400, Dan Williams wrote: Update memremap_pmem() to query the architecture for the mapping type of the given persistent memory range and then pass those flags to generic memremap

[PATCH v3 16/24] pxa2xx-flash: switch from ioremap_cache to memremap

2015-07-30 Thread Dan Williams
In preparation for deprecating ioremap_cache() convert its usage in pxa2xx-flash to memremap. Cc: David Woodhouse dw...@infradead.org Cc: Brian Norris computersforpe...@gmail.com Signed-off-by: Dan Williams dan.j.willi...@intel.com --- drivers/mtd/maps/pxa2xx-flash.c |4 ++-- 1 file changed

[PATCH v3 20/24] arch: kill ioremap_cached()

2015-07-30 Thread Dan Williams
Nothing calls this helper, and now that ioremap_cache() is being deprecated these can also be removed. Signed-off-by: Dan Williams dan.j.willi...@intel.com --- arch/arm/mm/mmu.c |2 +- arch/metag/include/asm/io.h |3 --- arch/unicore32/include/asm/io.h |4 +--- arch

[PATCH v3 22/24] arch: remove ioremap_cache, replace with arch_memremap

2015-07-30 Thread Dan Williams
rmk+ker...@arm.linux.org.uk Cc: Tony Luck tony.l...@intel.com Cc: Thomas Gleixner t...@linutronix.de Cc: H. Peter Anvin h...@zytor.com Cc: Ingo Molnar mi...@redhat.com Cc: Borislav Petkov b...@alien8.de Signed-off-by: Dan Williams dan.j.willi...@intel.com --- Documentation/x86/pat.txt|4

[PATCH v3 14/24] intel-iommu: switch from ioremap_cache to memremap

2015-07-30 Thread Dan Williams
In preparation for deprecating ioremap_cache() convert its usage in intel-iommu to memremap. This also eliminates the mishandling of the __iomem annotation in the implementation. Cc: David Woodhouse dw...@infradead.org Cc: Joerg Roedel j...@8bytes.org Signed-off-by: Dan Williams dan.j.willi

<    6   7   8   9   10   11   12   13   14   15   >