Re: [PATCH mlx5-next v1 06/11] vdpa/mlx5: Connect mlx5_vdpa to auxiliary bus

2020-11-04 Thread Dan Williams
On Wed, Nov 4, 2020 at 11:32 PM gregkh wrote: > > On Wed, Nov 04, 2020 at 03:21:23PM -0800, Dan Williams wrote: > > On Tue, Nov 3, 2020 at 7:45 AM Jason Gunthorpe wrote: > > [..] > > > > +MODULE_DEVICE_TABLE(auxiliary, mlx5v_id_table); > > > >

Re: linux-next: build failure after merge of the akpm-current tree

2020-11-04 Thread Dan Williams
On Wed, Nov 4, 2020 at 9:05 PM Stephen Rothwell wrote: > > Hi all, > > After merging the akpm-current tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > In file included from include/linux/numa.h:25, > from include/linux/nodemask.h:96, >

Re: [PATCH mlx5-next v1 06/11] vdpa/mlx5: Connect mlx5_vdpa to auxiliary bus

2020-11-04 Thread Dan Williams
On Tue, Nov 3, 2020 at 7:45 AM Jason Gunthorpe wrote: [..] > > +MODULE_DEVICE_TABLE(auxiliary, mlx5v_id_table); > > + > > +static struct auxiliary_driver mlx5v_driver = { > > + .name = "vnet", > > + .probe = mlx5v_probe, > > + .remove = mlx5v_remove, > > + .id_table =

Re: [PATCH v5 11/15] PCI: Obey iomem restrictions for procfs mmap

2020-11-04 Thread Dan Williams
On Wed, Nov 4, 2020 at 8:50 AM Bjorn Helgaas wrote: > > On Wed, Nov 04, 2020 at 09:44:04AM +0100, Daniel Vetter wrote: > > On Tue, Nov 3, 2020 at 11:09 PM Dan Williams > > wrote: > > > On Tue, Nov 3, 2020 at 1:28 PM Bjorn Helgaas wrote: > > > > On Fri, O

Re: [PATCH v5 11/15] PCI: Obey iomem restrictions for procfs mmap

2020-11-03 Thread Dan Williams
On Tue, Nov 3, 2020 at 1:28 PM Bjorn Helgaas wrote: > > On Fri, Oct 30, 2020 at 11:08:11AM +0100, Daniel Vetter wrote: > > There's three ways to access PCI BARs from userspace: /dev/mem, sysfs > > files, and the old proc interface. Two check against > > iomem_is_exclusive, proc never did. And

Re: [PATCH v4 00/17] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-11-02 Thread Dan Williams
On Mon, Nov 2, 2020 at 10:52 AM Jason Gunthorpe wrote: > > On Mon, Nov 02, 2020 at 10:38:28AM -0800, Dan Williams wrote: > > > > I think you will be the first to use the namespace stuff for this, it > > > seems like a good idea and others should probably do so as w

Re: [PATCH v4 00/17] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-11-02 Thread Dan Williams
On Mon, Nov 2, 2020 at 10:26 AM Jason Gunthorpe wrote: > > On Mon, Nov 02, 2020 at 11:18:33AM -0700, Dave Jiang wrote: > > > > > > On 11/2/2020 10:19 AM, Jason Gunthorpe wrote: > > > On Mon, Nov 02, 2020 at 08:20:43AM -0800, Raj, Ashok wrote: > > > > Creating these private interfaces for

Re: [PATCH v5 15/15] PCI: Revoke mappings like devmem

2020-10-30 Thread Dan Williams
fore not a problem. > > The only difference in access checks left is that sysfs PCI mmap does > not check for CAP_RAWIO. I'm not really sure whether that should be > added or not. > > Signed-off-by: Daniel Vetter > Cc: Jason Gunthorpe > Cc: Kees Cook > Cc: Dan Williams > Cc: Andrew Morton > Cc: John Hubbard > Cc: Jérôme Glisse > Cc: Jan Kara > Cc: Dan Williams Looks good to me: Reviewed-by: Dan Williams

Re: [Build fail] i386 & nvdimm is unhappy

2020-10-29 Thread Dan Williams
On Thu, Oct 29, 2020 at 4:49 PM Dan Williams wrote: > > On Thu, Oct 29, 2020 at 4:29 PM Randy Dunlap wrote: > > > > On 10/29/20 4:13 PM, Randy Dunlap wrote: > > > On 10/29/20 4:09 PM, Philip Li wrote: > > >> On Thu, Oct 29, 2020 at 03:52:42PM -0700, Dan

Re: [Build fail] i386 & nvdimm is unhappy

2020-10-29 Thread Dan Williams
On Thu, Oct 29, 2020 at 4:29 PM Randy Dunlap wrote: > > On 10/29/20 4:13 PM, Randy Dunlap wrote: > > On 10/29/20 4:09 PM, Philip Li wrote: > >> On Thu, Oct 29, 2020 at 03:52:42PM -0700, Dan Williams wrote: > >>> On Thu, Oct 29, 2020 at 3:44 PM Thomas Gleixner

Re: [Build fail] i386 & nvdimm is unhappy

2020-10-29 Thread Dan Williams
On Thu, Oct 29, 2020 at 3:44 PM Thomas Gleixner wrote: > > Dan, > > x86 32bit build fails with the config below with this: > > ERROR: modpost: "phys_to_target_node" [drivers/nvdimm/nd_e820.ko] > undefined! Acknowledged, I'm on it. Wonder how 0-day missed this or I missed the 0-day report?

[tip: x86/cleanups] x86, libnvdimm/test: Remove COPY_MC_TEST

2020-10-26 Thread tip-bot2 for Dan Williams
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 3adb776384f2042ef6bda876e91a7a7ac2872c5e Gitweb: https://git.kernel.org/tip/3adb776384f2042ef6bda876e91a7a7ac2872c5e Author:Dan Williams AuthorDate:Mon, 19 Oct 2020 21:08:03 -07:00

Re: [PATCH v9 3/4] docs: Add documentation for userspace client interface

2020-10-26 Thread Dan Williams
On Mon, 2020-10-26 at 07:38 -0600, Jeffrey Hugo wrote: > On 10/25/2020 3:46 PM, Jakub Kicinski wrote: > > On Fri, 23 Oct 2020 16:17:54 -0700 Hemant Kumar wrote: > > > +UCI driver enables userspace clients to communicate to external > > > MHI devices > > > +like modem and WLAN. UCI driver probe

Re: linux-next: build failure after merge of the akpm-current tree

2020-10-21 Thread Dan Williams
On Fri, Oct 16, 2020 at 12:45 PM Miklos Szeredi wrote: [..] > > This is broken... it needs to be converted to 'struct range'. I'll take > > care of that when I respin the series. Sorry for the thrash it seems > > this is a new memremap_pages() user since the conversion patches > > landed. > > Hi

Re: [PATCH v3 14/16] resource: Move devmem revoke code to resource framework

2020-10-21 Thread Dan Williams
revoke mappings. > > To prepare for this, move the code from the /dev/kmem driver to > kernel/resource.c. > > Reviewed-by: Greg Kroah-Hartman > Signed-off-by: Daniel Vetter > Cc: Jason Gunthorpe > Cc: Kees Cook > Cc: Dan Williams > Cc: Andrew Morton > Cc: John Hubbard

Re: [PATCH v3 13/16] /dev/mem: Only set filp->f_mapping

2020-10-21 Thread Dan Williams
> > Signed-off-by: Daniel Vetter > Cc: Jason Gunthorpe > Cc: Kees Cook > Cc: Dan Williams > Cc: Andrew Morton > Cc: John Hubbard > Cc: Jérôme Glisse > Cc: Jan Kara > Cc: Dan Williams Reviewed-by: Dan Williams

Re: [EXT] Re: [PATCH v2 00/22] add Object Storage Media Pool (mpool)

2020-10-21 Thread Dan Williams
On Wed, Oct 21, 2020 at 10:11 AM Nabeel Meeramohideen Mohamed (nmeeramohide) wrote: > > On Tuesday, October 20, 2020 3:36 PM, Dan Williams > wrote: > > > > What does Linux get from merging mpool? > > > > What Linux gets from merging mpool is a generic objec

Re: [EXT] Re: [PATCH v2 00/22] add Object Storage Media Pool (mpool)

2020-10-21 Thread Dan Williams
On Wed, Oct 21, 2020 at 7:24 AM Mike Snitzer wrote: > > Hey Dan, > > On Fri, Oct 16, 2020 at 6:38 PM Dan Williams wrote: > > > > On Fri, Oct 16, 2020 at 2:59 PM Nabeel Meeramohideen Mohamed > > (nmeeramohide) wrote: > > > > > (5) Repre

Re: [EXT] Re: [PATCH v2 00/22] add Object Storage Media Pool (mpool)

2020-10-20 Thread Dan Williams
On Mon, Oct 19, 2020 at 3:30 PM Nabeel Meeramohideen Mohamed (nmeeramohide) wrote: > > Hi Dan, > > On Friday, October 16, 2020 4:12 PM, Dan Williams > wrote: > > > > On Fri, Oct 16, 2020 at 2:59 PM Nabeel Meeramohideen Mohamed > > (nmeeramohide) wrote: > >

[PATCH] x86, libnvdimm/test: Remove COPY_MC_TEST

2020-10-19 Thread Dan Williams
Peter Anvin" Cc: Vishal Verma Cc: Dave Jiang Cc: Ira Weiny Signed-off-by: Dan Williams --- arch/x86/Kconfig.debug |3 - arch/x86/include/asm/copy_mc_test.h | 75 - arch/x86/lib/copy_mc.c |4 - arch/x86/lib/copy_mc_64.S

Re: [RFC] treewide: cleanup unreachable breaks

2020-10-17 Thread Dan Williams
/claim.c > +++ b/drivers/nvdimm/claim.c > @@ -200,11 +200,10 @@ ssize_t nd_namespace_store(struct device *dev, > } > break; > default: > len = -EBUSY; > goto out_attach; > - break; > } Acked-by: Dan Williams

Re: [EXT] Re: [PATCH v2 00/22] add Object Storage Media Pool (mpool)

2020-10-16 Thread Dan Williams
On Fri, Oct 16, 2020 at 2:59 PM Nabeel Meeramohideen Mohamed (nmeeramohide) wrote: > > On Thursday, October 15, 2020 2:03 AM, Christoph Hellwig > wrote: > > I don't think this belongs into the kernel. It is a classic case for > > infrastructure that should be built in userspace. If anything

Re: [PATCH 00/35] Enhance memory utilization with DMEMFS

2020-10-14 Thread Dan Williams
On Mon, Oct 12, 2020 at 4:00 AM Joao Martins wrote: [..] > On 10/10/20 9:15 AM, yulei zhang wrote: > > On Fri, Oct 9, 2020 at 7:53 PM Joao Martins > > wrote: > >> On 10/9/20 12:39 PM, yulei zhang wrote: > >>> Joao, thanks a lot for the feedback. One more thing needs to mention > >>> is that

[PATCH 1/2] device-dax/kmem: Fix resource release

2020-10-14 Thread Dan Williams
Cc: Dave Hansen Cc: Pavel Tatashin Cc: Brice Goglin Cc: Dave Jiang Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/kmem.c | 48 ++-- 1 file changed, 34 insertions(+), 14 deletions(-)

[PATCH 0/2] device-dax subdivision v5 to v6 fixups

2020-10-14 Thread Dan Williams
tree at its own pace. My thanks to Andrew for wrangling the thrash up to v5, and my apologies to Andrew et al for not highlighting this gap sooner. [1]: http://lore.kernel.org/r/160196728453.2166475.12832711415715687418.st...@dwillia2-desk3.amr.corp.intel.com --- Dan Williams (2): device

[PATCH 2/2] xen/unpopulated-alloc: Consolidate pgmap manipulation

2020-10-14 Thread Dan Williams
-by: Boris Ostrovsky Signed-off-by: Dan Williams --- drivers/xen/unpopulated-alloc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/xen/unpopulated-alloc.c b/drivers/xen/unpopulated-alloc.c index 8c512ea550bb..75ab5de99868 100644 --- a/drivers/xen

Re: [PATCH RFC PKS/PMEM 33/58] fs/cramfs: Utilize new kmap_thread()

2020-10-13 Thread Dan Williams
On Tue, Oct 13, 2020 at 12:37 PM Matthew Wilcox wrote: > > On Tue, Oct 13, 2020 at 11:44:29AM -0700, Dan Williams wrote: > > On Fri, Oct 9, 2020 at 12:52 PM wrote: > > > > > > From: Ira Weiny > > > > > > The kmap() calls in this FS are localized t

Re: [PATCH RFC PKS/PMEM 33/58] fs/cramfs: Utilize new kmap_thread()

2020-10-13 Thread Dan Williams
On Fri, Oct 9, 2020 at 12:52 PM wrote: > > From: Ira Weiny > > The kmap() calls in this FS are localized to a single thread. To avoid > the over head of global PKRS updates use the new kmap_thread() call. > > Cc: Nicolas Pitre > Signed-off-by: Ira Weiny > --- > fs/cramfs/inode.c | 10

Re: [PATCH v2] mm/hmm: make device private reference counts zero based

2020-10-12 Thread Dan Williams
On Mon, Oct 12, 2020 at 10:46 AM Ralph Campbell wrote: > > ZONE_DEVICE struct pages have an extra reference count that complicates the > code for put_page() and several places in the kernel that need to check the > reference count to see that a page is not being used (gup, compaction, >

Re: [PATCH v2 14/17] resource: Move devmem revoke code to resource framework

2020-10-09 Thread Dan Williams
On Fri, Oct 9, 2020 at 7:32 AM Jason Gunthorpe wrote: > > On Fri, Oct 09, 2020 at 04:24:45PM +0200, Daniel Vetter wrote: > > On Fri, Oct 9, 2020 at 2:31 PM Jason Gunthorpe wrote: > > > > > > On Fri, Oct 09, 2020 at 09:59:31AM +0200, Daniel Vetter wrote: > > > > > > > +struct address_space

Re: [tip: ras/core] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-10-08 Thread Dan Williams
On Wed, Oct 7, 2020 at 12:54 PM Borislav Petkov wrote: > > On Wed, Oct 07, 2020 at 11:53:15AM -0700, Dan Williams wrote: > > Oh nice! I just sent a patch [1] to fix this up as well, > > Yeah, for some reason it took you a while to see it - wondering if your > mail s

Re: [PATCH 10/13] PCI: revoke mappings like devmem

2020-10-08 Thread Dan Williams
On Thu, Oct 8, 2020 at 1:13 AM Daniel Vetter wrote: > > On Thu, Oct 8, 2020 at 9:50 AM Dan Williams wrote: > > > > On Wed, Oct 7, 2020 at 4:25 PM Jason Gunthorpe wrote: > > > > > > On Wed, Oct 07, 2020 at 12:33:06PM -0700, Dan Williams wrote: > >

Re: [PATCH 10/13] PCI: revoke mappings like devmem

2020-10-08 Thread Dan Williams
On Wed, Oct 7, 2020 at 4:25 PM Jason Gunthorpe wrote: > > On Wed, Oct 07, 2020 at 12:33:06PM -0700, Dan Williams wrote: > > On Wed, Oct 7, 2020 at 11:11 AM Daniel Vetter > > wrote: > > > > > > Since 3234ac664a87 ("/dev/mem: Revoke mappings when a driver

Re: [PATCH 10/13] PCI: revoke mappings like devmem

2020-10-07 Thread Dan Williams
On Wed, Oct 7, 2020 at 3:23 PM Dan Williams wrote: > > On Wed, Oct 7, 2020 at 12:49 PM Daniel Vetter wrote: > > > > On Wed, Oct 7, 2020 at 9:33 PM Dan Williams > > wrote: > > > > > > On Wed, Oct 7, 2020 at 11:11 AM Daniel Vetter > > > w

Re: [PATCH 10/13] PCI: revoke mappings like devmem

2020-10-07 Thread Dan Williams
On Wed, Oct 7, 2020 at 12:49 PM Daniel Vetter wrote: > > On Wed, Oct 7, 2020 at 9:33 PM Dan Williams wrote: > > > > On Wed, Oct 7, 2020 at 11:11 AM Daniel Vetter > > wrote: > > > > > > Since 3234ac664a87 ("/dev/mem: Revoke mappings when a drive

Re: [PATCH] ext4/xfs: add page refcount helper

2020-10-07 Thread Dan Williams
On Wed, Oct 7, 2020 at 1:25 AM Jan Kara wrote: > > On Tue 06-10-20 16:09:30, Ralph Campbell wrote: > > There are several places where ZONE_DEVICE struct pages assume a reference > > count == 1 means the page is idle and free. Instead of open coding this, > > add a helper function to hide this

Re: [PATCH 10/13] PCI: revoke mappings like devmem

2020-10-07 Thread Dan Williams
On Wed, Oct 7, 2020 at 11:11 AM Daniel Vetter wrote: > > Since 3234ac664a87 ("/dev/mem: Revoke mappings when a driver claims > the region") /dev/kmem zaps ptes when the kernel requests exclusive > acccess to an iomem region. And with CONFIG_IO_STRICT_DEVMEM, this is > the default for all driver

Re: [tip: ras/core] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-10-07 Thread Dan Williams
On Wed, Oct 7, 2020 at 11:47 AM Borislav Petkov wrote: > > On Wed, Oct 07, 2020 at 06:45:36PM +0200, Borislav Petkov wrote: > > It doesn't look like it is toolchain-specific and in both cases, > > copy_mc_fragile's checksum is 0. > > > > SUSE Leap 15.1: > > > > Name : binutils > >

[PATCH] x86/mce: Gate copy_mc_fragile() export by CONFIG_COPY_MC_TEST=y

2020-10-07 Thread Dan Williams
pendency to the test. Fixes: ec6347bb4339 ("x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()") Reported-by: Borislav Petkov Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: x...@kernel.org Cc: "H. Peter Anvin" Cc: Tony Luck Signed-off-by: D

Re: [tip: ras/core] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-10-07 Thread Dan Williams
[ add kbuild robot so they can add this check to their reports ] On Wed, Oct 7, 2020 at 9:47 AM Borislav Petkov wrote: > > On Wed, Oct 07, 2020 at 01:14:47PM +0200, Borislav Petkov wrote: > > On Tue, Oct 06, 2020 at 09:57:09AM -, tip-bot2 for Dan Williams wrote: > > > +

Re: [PATCH] ext4/xfs: add page refcount helper

2020-10-06 Thread Dan Williams
On Tue, Oct 6, 2020 at 4:09 PM Ralph Campbell wrote: > > There are several places where ZONE_DEVICE struct pages assume a reference > count == 1 means the page is idle and free. Instead of open coding this, > add a helper function to hide this detail. > > Signed-off-by: Ralph Campbell >

Re: [RFC] Status of orinoco_usb

2020-10-06 Thread Dan Williams
On Tue, 2020-10-06 at 08:40 -0400, Jes Sorensen wrote: > On 10/6/20 3:45 AM, Arend Van Spriel wrote: > > + Jes > > > > On 10/5/2020 4:12 PM, Kalle Valo wrote: > > > Greg Kroah-Hartman writes: > > > > > > > On Fri, Oct 02, 2020 at 01:53:58PM +0200, Sebastian Andrzej > > > > Siewior > > > >

[tip: ras/core] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-10-06 Thread tip-bot2 for Dan Williams
The following commit has been merged into the ras/core branch of tip: Commit-ID: ec6347bb43395cb92126788a1a5b25302543f815 Gitweb: https://git.kernel.org/tip/ec6347bb43395cb92126788a1a5b25302543f815 Author:Dan Williams AuthorDate:Mon, 05 Oct 2020 20:40:16 -07:00 Committer

[tip: ras/core] x86/copy_mc: Introduce copy_mc_enhanced_fast_string()

2020-10-06 Thread tip-bot2 for Dan Williams
The following commit has been merged into the ras/core branch of tip: Commit-ID: 5da8e4a658109e3b7e1f45ae672b7c06ac3e7158 Gitweb: https://git.kernel.org/tip/5da8e4a658109e3b7e1f45ae672b7c06ac3e7158 Author:Dan Williams AuthorDate:Mon, 05 Oct 2020 20:40:25 -07:00 Committer

[PATCH v6 11/11] device-dax: add dis-contiguous resource support

2020-10-06 Thread Dan Williams
nk: https://lkml.kernel.org/r/159643104304.4062302.16561669534797528660.st...@dwillia2-desk3.amr.corp.intel.com Reported-by: Joao Martins Signed-off-by: Dan Williams --- drivers/dax/bus.c | 233 +++- drivers/dax/dax-private.h |9 +- d

[PATCH v6 10/11] mm/memremap_pages: support multiple ranges per invocation

2020-10-06 Thread Dan Williams
Airlie Cc: Daniel Vetter Cc: Ira Weiny Cc: Bjorn Helgaas Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Cc: "Jérôme Glisse" Cc: Andrew Morton Signed-off-by: Dan Williams --- arch/powerpc/kvm/book3s_hv_uvmem.c |1 drivers/dax/device.c

[PATCH v6 00/11] device-dax: support sub-dividing soft-reserved ranges

2020-10-06 Thread Dan Williams
.intel.com [4]: http://lore.kernel.org/r/20200110190313.17144-1-joao.m.mart...@oracle.com --- Dan Williams (11): device-dax: make pgmap optional for instance creation device-dax/kmem: introduce dax_kmem_range() device-dax/kmem: move resource tracking to drvdata device-dax: ad

[PATCH v6 04/11] device-dax: add an allocation interface for device-dax instances

2020-10-06 Thread Dan Williams
.amr.corp.intel.com Cc: Vishal Verma Cc: Brice Goglin Cc: Dave Hansen Cc: Dave Jiang Cc: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/bus.c | 120 + drivers/dax/bus.h

[PATCH v6 06/11] device-dax: introduce 'seed' devices

2020-10-06 Thread Dan Williams
sk3.amr.corp.intel.com Cc: Vishal Verma Cc: Brice Goglin Cc: Dave Hansen Cc: Dave Jiang Cc: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/bus.c | 301 +++-- drivers/dax/

[PATCH v6 01/11] device-dax: make pgmap optional for instance creation

2020-10-06 Thread Dan Williams
: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/bus.c | 29 +++-- drivers/dax/bus.h |2 ++ drivers/dax/dax-private.h |4 +++- drivers/dax/device.c

[PATCH v6 02/11] device-dax/kmem: introduce dax_kmem_range()

2020-10-06 Thread Dan Williams
range. Cc: David Hildenbrand Cc: Vishal Verma Cc: Dave Hansen Cc: Pavel Tatashin Cc: Brice Goglin Cc: Dave Jiang Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Reviewed-by: David Hildenbrand Signed-off-by: Dan Williams --- drivers/dax/kmem.c | 40

[PATCH v6 07/11] drivers/base: make device_find_child_by_name() compatible with sysfs inputs

2020-10-06 Thread Dan Williams
rnel.org/r/159643102106.4062302.12229802117645312104.st...@dwillia2-desk3.amr.corp.intel.com Reviewed-by: Greg Kroah-Hartman Signed-off-by: Dan Williams --- drivers/base/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index bb5806a2bd4c..8d

[PATCH v6 05/11] device-dax: introduce 'struct dev_dax' typed-driver operations

2020-10-06 Thread Dan Williams
Vishal Verma Cc: Brice Goglin Cc: Dave Hansen Cc: Dave Jiang Cc: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Reported-by: Hulk Robot Signed-off-by: Dan Williams --- drivers/dax/bus.c | 18 ++ drivers/dax/bus.h

[PATCH v6 09/11] mm/memremap_pages: convert to 'struct range'

2020-10-06 Thread Dan Williams
chmidt Cc: Vishal Verma Cc: Vivek Goyal Cc: Dave Jiang Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: Ira Weiny Cc: Bjorn Helgaas Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Cc: "Jérôme Glisse" Cc: Andrew Morton Reported-by: Dan Carpenter Signed-

[PATCH v6 03/11] device-dax/kmem: move resource tracking to drvdata

2020-10-06 Thread Dan Williams
Tatashin Cc: Brice Goglin Cc: Dave Jiang Cc: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/dax-private.h |3 -- drivers/dax/kmem.c| 55 + 2 files changed

[PATCH v6 08/11] device-dax: add resize support

2020-10-06 Thread Dan Williams
Cc: Brice Goglin Cc: Dave Hansen Cc: Dave Jiang Cc: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/bus.c | 161 ++--- 1 file changed, 152 insertions(+), 9 del

[PATCH v10 0/2] Renovate memcpy_mcsafe with copy_mc_to_{user, kernel}

2020-10-05 Thread Dan Williams
that may write-fault, if it is a user page. So copy_to_user_mcsafe() becomes copy_mc_to_user() to indicate the separate precautions taken on source and destination. copy_mc_to_kernel() is introduced as a non-SMAP version that does not expect write-faults on the destination, but is still prepared to abort

[PATCH v10 2/2] x86/copy_mc: Introduce copy_mc_enhanced_fast_string()

2020-10-05 Thread Dan Williams
()") Signed-off-by: Dan Williams --- arch/x86/lib/copy_mc.c| 32 +++- arch/x86/lib/copy_mc_64.S | 36 tools/objtool/check.c |1 + 3 files changed, 60 insertions(+), 9 deletions(-) diff --git a/arch/x86/lib/copy

[PATCH v10 1/2] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-10-05 Thread Dan Williams
Apr 30, 2020 at 6:21 PM Dan Williams wrote: > > > > However now I see that copy_user_generic() works for the wrong reason. > > It works because the exception on the source address due to poison > > looks no different than a write fault on the user address to the

Re: [RFC PATCH v3 0/2] mm: remove extra ZONE_DEVICE struct page refcount

2020-10-05 Thread Dan Williams
On Thu, Oct 1, 2020 at 11:17 AM Ralph Campbell wrote: > > This is still an RFC because after looking at the pmem/dax code some > more, I realized that the ZONE_DEVICE struct pages are being inserted > into the process' page tables with vmf_insert_mixed() and a zero > refcount on the ZONE_DEVICE

Re: [PATCH v5 01/17] device-dax: make pgmap optional for instance creation

2020-10-01 Thread Dan Williams
On Thu, Oct 1, 2020 at 10:39 AM David Hildenbrand wrote: [..] > >> include/linux/range.h seems to have this function - why is this here > >> needed? > > > > It's there because I add it later in this series. I waited until > > "mm/memremap_pages: convert to 'struct range'" to make it global as >

Re: [PATCH v5 01/17] device-dax: make pgmap optional for instance creation

2020-10-01 Thread Dan Williams
On Thu, Oct 1, 2020 at 1:41 AM David Hildenbrand wrote: > > On 25.09.20 21:11, Dan Williams wrote: > > The passed in dev_pagemap is only required in the pmem case as the > > libnvdimm core may have reserved a vmem_altmap for dev_memremap_pages() to > > place the

Re: [PATCH v5 04/17] device-dax/kmem: replace release_resource() with release_mem_region()

2020-09-30 Thread Dan Williams
On Wed, Sep 30, 2020 at 9:23 AM David Hildenbrand wrote: > > On 25.09.20 21:12, Dan Williams wrote: > > Towards removing the mode specific @dax_kmem_res attribute from the > > generic 'struct dev_dax', and preparing for multi-range support, change > > the kmem dri

Re: [PATCH v9 1/2] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-09-30 Thread Dan Williams
On Tue, Sep 29, 2020 at 3:25 AM Borislav Petkov wrote: > > On Wed, Sep 23, 2020 at 09:41:33AM -0700, Dan Williams wrote: > > The rename replaces a single top-level memcpy_mcsafe() with either > > copy_mc_to_user(), or copy_mc_to_kernel(). > > What is "copy_mc&

Re: [PATCH v9 0/2] Renovate memcpy_mcsafe with copy_mc_to_{user, kernel}

2020-09-30 Thread Dan Williams
On Tue, Sep 29, 2020 at 10:05 PM Borislav Petkov wrote: > > On Tue, Sep 29, 2020 at 03:32:07PM -0700, Dan Williams wrote: > > Given that Linus was the primary source of review feedback on these > > patches and a version of them have been soaking in -next with only a > &g

Re: [PATCH v9 0/2] Renovate memcpy_mcsafe with copy_mc_to_{user, kernel}

2020-09-29 Thread Dan Williams
On Wed, Sep 23, 2020 at 10:00 AM Dan Williams wrote: > > Changes since v8 [1]: > - Rebase on v5.9-rc6 > > - Fix a performance regression in the x86 copy_mc_to_user() > implementation that was duplicating copies in the "fragile" case. > > - Refreshed

Re: [PATCH v3] mm/hmm/test: use after free in dmirror_allocate_chunk()

2020-09-28 Thread Dan Williams
> > > > > lib/test_hmm.c | 44 ++-- > > > 1 file changed, 22 insertions(+), 22 deletions(-) > > > > Hi Andrew, > > > > I don't have have any hmm related patches this cycle, can you take > > this into your tree? > > > > Reviewed-by: Jason Gunthorpe > > Thanks. > > It's actually a fix against Dan Williams' -mm patch "mm/memremap_pages: > convert to 'struct range'" Yes, sorry, for the fix: Acked-by: Dan Williams

Re: [PATCH v5 15/17] device-dax: add an 'align' attribute

2020-09-25 Thread Dan Williams
On Fri, Sep 25, 2020 at 7:22 PM Andrew Morton wrote: > > On Fri, 25 Sep 2020 12:13:04 -0700 Dan Williams > wrote: > > > Introduce a device align attribute. While doing so, rename the region > > align attribute to be more explicitly named as so, but keep it named as >

[PATCH v5 12/17] device-dax: add dis-contiguous resource support

2020-09-25 Thread Dan Williams
nk: https://lkml.kernel.org/r/159643104304.4062302.16561669534797528660.st...@dwillia2-desk3.amr.corp.intel.com Reported-by: Joao Martins Signed-off-by: Dan Williams --- drivers/dax/bus.c | 233 +++- drivers/dax/dax-private.h |9 +- d

[PATCH v5 09/17] device-dax: add resize support

2020-09-25 Thread Dan Williams
Cc: Brice Goglin Cc: Dave Hansen Cc: Dave Jiang Cc: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/bus.c | 161 ++--- 1 file changed, 152 insertions(+), 9 del

[PATCH v5 14/17] device-dax: make align a per-device property

2020-09-25 Thread Dan Williams
/159643105377.4062302.4159447829955683131.st...@dwillia2-desk3.amr.corp.intel.com Link: https://lore.kernel.org/r/20200716172913.19658-2-joao.m.mart...@oracle.com Signed-off-by: Joao Martins Signed-off-by: Dan Williams --- drivers/dax/bus.c |1 + drivers/dax/dax-private.h |3

[PATCH v5 06/17] device-dax: introduce 'struct dev_dax' typed-driver operations

2020-09-25 Thread Dan Williams
Vishal Verma Cc: Brice Goglin Cc: Dave Hansen Cc: Dave Jiang Cc: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Reported-by: Hulk Robot Signed-off-by: Dan Williams --- drivers/dax/bus.c | 18 ++ drivers/dax/bus.h

[PATCH v5 05/17] device-dax: add an allocation interface for device-dax instances

2020-09-25 Thread Dan Williams
.amr.corp.intel.com Cc: Vishal Verma Cc: Brice Goglin Cc: Dave Hansen Cc: Dave Jiang Cc: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/bus.c | 120 + drivers/dax/bus.h

Re: [PATCH v5 00/17] device-dax: support sub-dividing soft-reserved ranges

2020-09-25 Thread Dan Williams
On Fri, Sep 25, 2020 at 1:52 PM Joao Martins wrote: > > Hey Dan, > > On 9/25/20 8:11 PM, Dan Williams wrote: > > Changes since v4 [1]: > > - Rebased on > > device-dax-move-instance-creation-parameters-to-struct-dev_dax_data.patch > > in -mm [2]. I.e. patc

Re: [PATCH 1/2] ext4/xfs: add page refcount helper

2020-09-25 Thread Dan Williams
On Fri, Sep 25, 2020 at 1:45 PM Ralph Campbell wrote: > > There are several places where ZONE_DEVICE struct pages assume a reference > count == 1 means the page is idle and free. Instead of open coding this, > add a helper function to hide this detail. > > Signed-off-by: Ralph Campbell > --- >

[PATCH v5 00/17] device-dax: support sub-dividing soft-reserved ranges

2020-09-25 Thread Dan Williams
lore.kernel.org/r/20200110190313.17144-1-joao.m.mart...@oracle.com --- Dan Williams (14): device-dax: make pgmap optional for instance creation device-dax/kmem: introduce dax_kmem_range() device-dax/kmem: move resource name tracking to drvdata device-dax/kmem: replace re

[PATCH v5 17/17] device-dax: add a range mapping allocation attribute

2020-09-25 Thread Dan Williams
722.st...@dwillia2-desk3.amr.corp.intel.com Link: https://lore.kernel.org/r/20200716172913.19658-5-joao.m.mart...@oracle.com Signed-off-by: Joao Martins Signed-off-by: Dan Williams --- drivers/dax/bus.c | 64 + 1 file changed, 64 insertions(+) diff

[PATCH v5 02/17] device-dax/kmem: introduce dax_kmem_range()

2020-09-25 Thread Dan Williams
range. Cc: David Hildenbrand Cc: Vishal Verma Cc: Dave Hansen Cc: Pavel Tatashin Cc: Brice Goglin Cc: Dave Jiang Cc: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/kmem.c | 40

[PATCH v5 11/17] mm/memremap_pages: support multiple ranges per invocation

2020-09-25 Thread Dan Williams
Airlie Cc: Daniel Vetter Cc: Ira Weiny Cc: Bjorn Helgaas Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Cc: "Jérôme Glisse" Cc: Andrew Morton Signed-off-by: Dan Williams --- arch/powerpc/kvm/book3s_hv_uvmem.c |1 drivers/dax/device.c

[PATCH v5 10/17] mm/memremap_pages: convert to 'struct range'

2020-09-25 Thread Dan Williams
Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: Ira Weiny Cc: Bjorn Helgaas Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Cc: "Jérôme Glisse" Cc: Andrew Morton Signed-off-by: Dan Williams --- arch/powerpc/kvm/book3s_hv_uvmem.c | 13 +++-

[PATCH v5 07/17] device-dax: introduce 'seed' devices

2020-09-25 Thread Dan Williams
sk3.amr.corp.intel.com Cc: Vishal Verma Cc: Brice Goglin Cc: Dave Hansen Cc: Dave Jiang Cc: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/bus.c | 301 +++-- drivers/dax/

[PATCH v5 13/17] device-dax: introduce 'mapping' devices

2020-09-25 Thread Dan Williams
is enabled. Link: https://lkml.kernel.org/r/159643104819.4062302.13691281391423291589.st...@dwillia2-desk3.amr.corp.intel.com Cc: Joao Martins Signed-off-by: Dan Williams --- drivers/dax/bus.c | 191 + drivers/dax/dax-private.h | 14 +++ 2 files

[PATCH v5 08/17] drivers/base: make device_find_child_by_name() compatible with sysfs inputs

2020-09-25 Thread Dan Williams
rnel.org/r/159643102106.4062302.12229802117645312104.st...@dwillia2-desk3.amr.corp.intel.com Reviewed-by: Greg Kroah-Hartman Signed-off-by: Dan Williams --- drivers/base/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index bb5806a2bd4c..8d

[PATCH v5 01/17] device-dax: make pgmap optional for instance creation

2020-09-25 Thread Dan Williams
: David Hildenbrand Cc: Ira Weiny Cc: Jia He Cc: Joao Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/bus.c | 29 +++-- drivers/dax/bus.h |2 ++ drivers/dax/dax-private.h |9 - drivers/dax/device.c

[PATCH v5 04/17] device-dax/kmem: replace release_resource() with release_mem_region()

2020-09-25 Thread Dan Williams
Martins Cc: Jonathan Cameron Signed-off-by: Dan Williams --- drivers/dax/dax-private.h |3 --- drivers/dax/kmem.c| 20 +++- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h index 6779f683671d

[PATCH v5 16/17] dax/hmem: introduce dax_hmem.region_idle parameter

2020-09-25 Thread Dan Williams
: https://lkml.kernel.org/r/159643106460.4062302.5868522341307530091.st...@dwillia2-desk3.amr.corp.intel.com Link: https://lore.kernel.org/r/20200716172913.19658-4-joao.m.mart...@oracle.com Signed-off-by: Joao Martins Signed-off-by: Dan Williams --- drivers/dax/hmem/hmem.c |5 - 1 file

[PATCH v5 03/17] device-dax/kmem: move resource name tracking to drvdata

2020-09-25 Thread Dan Williams
-off-by: Dan Williams --- drivers/dax/kmem.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/dax/kmem.c b/drivers/dax/kmem.c index b0d6a99cf12d..6fe2cb1c5f7c 100644 --- a/drivers/dax/kmem.c +++ b/drivers/dax/kmem.c @@ -34,7 +34,7 @@ int

Re: [PATCH v4 11/23] device-dax: Kill dax_kmem_res

2020-09-24 Thread Dan Williams
On Thu, Sep 24, 2020 at 2:42 PM David Hildenbrand wrote: > > > > > Am 24.09.2020 um 23:26 schrieb Dan Williams : > > > > [..] > >>> I'm not suggesting to busy the whole "virtio" range, just the portion > >>> that's about to be passed

Re: [PATCH v4 11/23] device-dax: Kill dax_kmem_res

2020-09-24 Thread Dan Williams
[..] > > I'm not suggesting to busy the whole "virtio" range, just the portion > > that's about to be passed to add_memory_driver_managed(). > > I'm afraid I don't get your point. For virtio-mem: > > Before: > > 1. Create virtio0 container resource > > 2. (somewhen in the future)

Re: [PATCH v5 2/3] memremap: rename MEMORY_DEVICE_DEVDAX to MEMORY_DEVICE_GENERIC

2020-09-24 Thread Dan Williams
On Tue, Sep 1, 2020 at 1:33 AM Roger Pau Monne wrote: > > This is in preparation for the logic behind MEMORY_DEVICE_DEVDAX also > being used by non DAX devices. > FWIW I would not call this MEMORY_DEVICE_GENERIC. This is really MEMORY_DEVICE_SIMPLE and the kernel-doc can clarify in contrast to

Re: linux-next: manual merge of the nvdimm tree with the vfs tree

2020-09-24 Thread Dan Williams
[ add Ingo ] On Thu, Sep 24, 2020 at 7:10 AM Dan Williams wrote: > > On Wed, Sep 23, 2020 at 11:45 PM Stephen Rothwell > wrote: > > > > Hi all, > > > > Today's linux-next merge of the nvdimm tree got a conflict in: > > > > lib/iov_iter.c > &g

Re: linux-next: manual merge of the nvdimm tree with the vfs tree

2020-09-24 Thread Dan Williams
On Wed, Sep 23, 2020 at 11:45 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the nvdimm tree got a conflict in: > > lib/iov_iter.c > > between commit: > > e33ea6e5ba6a ("x86/uaccess: Use pointer masking to limit uaccess > speculation") > > from the vfs tree and

Re: [PATCH v4 11/23] device-dax: Kill dax_kmem_res

2020-09-24 Thread Dan Williams
On Thu, Sep 24, 2020 at 12:26 AM David Hildenbrand wrote: > > On 23.09.20 23:41, Dan Williams wrote: > > On Wed, Sep 23, 2020 at 1:04 AM David Hildenbrand wrote: > >> > >> On 08.09.20 17:33, Joao Martins wrote: > >>> [Sorry for the late respon

Re: [PATCH v4 11/23] device-dax: Kill dax_kmem_res

2020-09-23 Thread Dan Williams
On Wed, Sep 23, 2020 at 1:04 AM David Hildenbrand wrote: > > On 08.09.20 17:33, Joao Martins wrote: > > [Sorry for the late response] > > > > On 8/21/20 11:06 AM, David Hildenbrand wrote: > >> On 03.08.20 07:03, Dan Williams wrote: > >>> @@ -37,109 +

[PATCH v9 2/2] x86/copy_mc: Introduce copy_mc_generic()

2020-09-23 Thread Dan Williams
Goyal Cc: "H. Peter Anvin" Cc: Andy Lutomirski Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Linus Torvalds Reviewed-by: Tony Luck Reported-by: Erwin Tsaur Tested-by: Erwin Tsaur Reported-by: 0day robot Fixes: 92b0729c34ca ("x86/mm, x86/mce: Add memcpy_mcsafe()") Signed-

[PATCH v9 1/2] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-09-23 Thread Dan Williams
Apr 30, 2020 at 6:21 PM Dan Williams wrote: > > > > However now I see that copy_user_generic() works for the wrong reason. > > It works because the exception on the source address due to poison > > looks no different than a write fault on the user address to the

[PATCH v9 0/2] Renovate memcpy_mcsafe with copy_mc_to_{user, kernel}

2020-09-23 Thread Dan Williams
d a kbuild-robot build success notification across 114 configs, the rebase to v5.9-rc6 did not encounter any conflicts, and the merge with tip/master is conflict-free. --- Dan Williams (2): x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user,kernel}() x86/copy_mc: I

Re: [PATCH v4 00/23] device-dax: Support sub-dividing soft-reserved ranges

2020-09-22 Thread Dan Williams
On Tue, Sep 8, 2020 at 3:46 AM David Hildenbrand wrote: > > On 22.08.20 01:21, Andrew Morton wrote: > > On Wed, 19 Aug 2020 18:53:57 -0700 Dan Williams > > wrote: > > > >>> I think I am missing some important pieces. Bear with me. > >> > >>

Re: [x86/copy_mc] a0ac629ebe: fio.read_iops -43.3% regression

2020-09-22 Thread Dan Williams
On Thu, Aug 6, 2020 at 8:35 AM Ingo Molnar wrote: > > > * Dan Williams wrote: > > > On Thu, Aug 6, 2020 at 6:35 AM Ingo Molnar wrote: > > > > > > > > > * kernel test robot wrote: > > > > > > > Greeting, > > > &

Re: error: redefinition of ‘dax_supported’

2020-09-21 Thread Dan Williams
On Mon, Sep 21, 2020 at 11:35 AM Nick Desaulniers wrote: > > Hello DAX maintainers, > I noticed our PPC64LE builds failing last night: > https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/388047043 >

<    2   3   4   5   6   7   8   9   10   11   >