[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAA9_cmcQaPmF_uGP1FwUW0tO-4xtyJq07opfKcj9FGdADkedgg@mail.gmail.com>
Date: Thu, 20 Apr 2017 21:59:42 -0700
From: Dan Williams <dan.j.williams@...el.com>
To: Stephen Bates <sbates@...thlin.com>
Cc: Jens Axboe <axboe@...nel.dk>, Keith Busch <keith.busch@...el.com>,
"James E.J. Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
"linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Steve Wise <swise@...ngridcomputing.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-nvme@...ts.infradead.org" <linux-nvme@...ts.infradead.org>,
Jason Gunthorpe <jgunthorpe@...idianresearch.com>,
Jerome Glisse <jglisse@...hat.com>,
Bjorn Helgaas <helgaas@...nel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
linux-nvdimm <linux-nvdimm@...1.01.org>,
Max Gurtovoy <maxg@...lanox.com>,
linux-scsi <linux-scsi@...r.kernel.org>,
Christoph Hellwig <hch@....de>
Subject: Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory
On Thu, Apr 20, 2017 at 4:07 PM, Stephen Bates <sbates@...thlin.com> wrote:
>>> Yes, this makes sense I think we really just want to distinguish host
>>> memory or not in terms of the dev_pagemap type.
>>
>>> I would like to see mutually exclusive flags for host memory (or not) and persistence (or not).
>>>
>>
>> Why persistence? It has zero meaning to the mm.
>
> I like the idea of having properties of the memory in one place.
We do have memory type data in the global iomem_resource tree, see
IORES_DESC_PERSISTENT_MEMORY.
> While mm might not use persistence today it may make use certain things that
> persistence implies (like finite endurance and/or higher write latency) in the future.
A persistence flag does not convey endurance or latency information.
> Also the persistence of the memory must have issues for mm security?
Not for the mm, data at rest security might be a property of the
device, but that's not the mm's concern.
>Again not addressed today but useful in the future.
Maybe, but to me "Useful for the future" == "don't add it to the
kernel until that future arrives".
> In addition I am not sure where else would be an appropriate place to put something like a persistence property flag. I know the NVDIMM section of the kernel uses things like NFIT to describe properties of the memory but we don’t yet (to my knowledge) have something similar for IO memory.
Do the IORES_DESC flags give you what you need?
Powered by blists - more mailing lists