[RESEND PATCH v4 4/4] powerpc/papr_scm: Document papr_scm sysfs event format entries

2021-09-02 Thread Kajol Jain
Details is added for the event, cpumask and format attributes in the ABI documentation. Acked-by: Peter Zijlstra (Intel) Reviewed-by: Madhavan Srinivasan Tested-by: Nageswara R Sastry Signed-off-by: Kajol Jain --- Documentation/ABI/testing/sysfs-bus-papr-pmem | 31 +++ 1 file

[RESEND PATCH v4 3/4] powerpc/papr_scm: Add perf interface support

2021-09-02 Thread Kajol Jain
Performance monitoring support for papr-scm nvdimm devices via perf interface is added which includes addition of pmu functions like add/del/read/event_init for nvdimm_pmu struture. A new parameter 'priv' in added to the pdev_archdata structure to save nvdimm_pmu device pointer, to handle the unre

[RESEND PATCH v4 2/4] drivers/nvdimm: Add perf interface to expose nvdimm performance stats

2021-09-02 Thread Kajol Jain
A common interface is added to get performance stats reporting support for nvdimm devices. Added interface includes support for pmu register/unregister functions, cpu hotplug and pmu event functions like event_init/add/read/del. User could use the standard perf tool to access perf events exposed vi

[RESEND PATCH v4 1/4] drivers/nvdimm: Add nvdimm pmu structure

2021-09-02 Thread Kajol Jain
A structure is added, called nvdimm_pmu, for performance stats reporting support of nvdimm devices. It can be used to add nvdimm pmu data such as supported events and pmu event functions like event_init/add/read/del with cpu hotplug support. Acked-by: Peter Zijlstra (Intel) Reviewed-by: Madhavan

[RESEND PATCH v4 0/4] Add perf interface to expose nvdimm

2021-09-02 Thread Kajol Jain
Patchset adds performance stats reporting support for nvdimm. Added interface includes support for pmu register/unregister functions. A structure is added called nvdimm_pmu to be used for adding arch/platform specific data such as supported events, cpumask pmu event functions like event_init/add/re

Re: [PATCH v8 6/7] xfs: support CoW in fsdax mode

2021-09-02 Thread Darrick J. Wong
On Thu, Sep 02, 2021 at 09:43:08AM +0200, Christoph Hellwig wrote: > On Sun, Aug 29, 2021 at 08:25:16PM +0800, Shiyang Ruan wrote: > > In fsdax mode, WRITE and ZERO on a shared extent need CoW performed. > > After that, new allocated extents needs to be remapped to the file. Add > > an implementat

Re: [PATCH v8 7/7] xfs: Add dax dedupe support

2021-09-02 Thread Christoph Hellwig
On Sun, Aug 29, 2021 at 08:25:17PM +0800, Shiyang Ruan wrote: > Introduce xfs_mmaplock_two_inodes_and_break_dax_layout() for dax files > who are going to be deduped. After that, call compare range function > only when files are both DAX or not. > > Signed-off-by: Shiyang Ruan > Reviewed-by: Darr

Re: [PATCH v8 6/7] xfs: support CoW in fsdax mode

2021-09-02 Thread Christoph Hellwig
On Sun, Aug 29, 2021 at 08:25:16PM +0800, Shiyang Ruan wrote: > In fsdax mode, WRITE and ZERO on a shared extent need CoW performed. > After that, new allocated extents needs to be remapped to the file. Add > an implementation of ->iomap_end() for dax write ops to do the remapping > work. Please

Re: [PATCH v8 5/7] fsdax: Dedup file range to use a compare function

2021-09-02 Thread Christoph Hellwig
> +EXPORT_SYMBOL(vfs_dedupe_file_range_compare); I don't see why this would need to be exported. > @@ -370,6 +384,15 @@ int generic_remap_file_range_prep(struct file *file_in, > loff_t pos_in, > > return ret; > } > +EXPORT_SYMBOL(__generic_remap_file_range_prep); Same here.

Re: [PATCH v8 4/7] fsdax: Add dax_iomap_cow_copy() for dax_iomap_zero

2021-09-02 Thread Christoph Hellwig
On Sun, Aug 29, 2021 at 08:25:14PM +0800, Shiyang Ruan wrote: > Punch hole on a reflinked file needs dax_iomap_cow_copy() too. > Otherwise, data in not aligned area will be not correct. So, add the > srcmap to dax_iomap_zero() and replace memset() as dax_iomap_cow_copy(). > > Signed-off-by: Shiya

Re: [PATCH v8 3/7] fsdax: Replace mmap entry in case of CoW

2021-09-02 Thread Christoph Hellwig
On Sun, Aug 29, 2021 at 08:25:13PM +0800, Shiyang Ruan wrote: > We replace the existing entry to the newly allocated one in case of CoW. > Also, we mark the entry as PAGECACHE_TAG_TOWRITE so writeback marks this > entry as writeprotected. This helps us snapshots so new write > pagefaults after sna