[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cc8e898d-b0d2-4e18-a516-864ec6b9145d@intel.com>
Date: Wed, 7 Aug 2024 11:30:06 -0700
From: Dave Jiang <dave.jiang@...el.com>
To: Zhihao Cheng <chengzhihao1@...wei.com>, dan.j.williams@...el.com,
vishal.l.verma@...el.com, hch@....de, ira.weiny@...el.com,
dlemoal@...nel.org, hare@...e.de, axboe@...nel.dk
Cc: nvdimm@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nvdimm/pmem: Set dax flag for all 'PFN_MAP' cases
On 7/31/24 5:25 AM, Zhihao Cheng wrote:
> The dax is only supportted on pfn type pmem devices since commit
> f467fee48da4 ("block: move the dax flag to queue_limits"), fix it
> by adding dax flag setting for the missed case.
>
> Fixes: f467fee48da4 ("block: move the dax flag to queue_limits")
> Signed-off-by: Zhihao Cheng <chengzhihao1@...wei.com>
Reviewed-by: Dave Jiang <dave.jiang@...el.com>
> ---
> drivers/nvdimm/pmem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c
> index 1ae8b2351654..210fb77f51ba 100644
> --- a/drivers/nvdimm/pmem.c
> +++ b/drivers/nvdimm/pmem.c
> @@ -498,7 +498,7 @@ static int pmem_attach_disk(struct device *dev,
> }
> if (fua)
> lim.features |= BLK_FEAT_FUA;
> - if (is_nd_pfn(dev))
> + if (is_nd_pfn(dev) || pmem_should_map_pages(dev))
> lim.features |= BLK_FEAT_DAX;
>
> if (!devm_request_mem_region(dev, res->start, resource_size(res),
Powered by blists - more mailing lists