Skip to contentSkip to conversation

convert the majority of file systems to mmap_prepare

PATCH Applied Lorenzo Stoakes 22 participants 59 messages Jun 16, 2025 – Aug 1, 2025

Subsystems (46)
lore
Share & tools
lore
#0 lore raw

cover convert the majority of file systems to mmap_prepare

REVIEWER'S NOTES
================

I am basing this on the mm-new branch in Andrew's tree, so let me know if I should rebase anything here. Given the mm bits touched I did think perhaps we should take it through the mm tree, however it may be more sensible to take it through an fs tree - let me know!

Apologies for the noise/churn, but there are some prerequisite steps here that inform an ordering - "fs: consistently use file_has_valid_mmap_hooks() helper" being especially critical, and so I put the bulk of the work in the same series.

Let me know if there's anything I can do to make life easier here.

Thanks!

===============

In commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), a new hook for mmap was introduced - f_op->mmap_prepare().

This is preferred to the existing f_op->mmap() hook as it does require a VMA to be established yet, thus allowing the mmap logic to invoke this hook far, far earlier, prior to inserting a VMA into the virtual address space, or performing any other heavy handed operations.

This allows for much simpler unwinding on error, and for there to be a single attempt at merging a VMA rather than having to possibly reattempt a merge based on potentially altered VMA state.

Far more importantly, it prevents inappropriate manipulation of incompletely initialised VMA state, which is something that has been the cause of bugs and complexity in the past.

The intent is to gradually deprecate f_op->mmap, and in that vein this series coverts the majority of file systems to using f_op->mmap_prepare.

Prerequisite steps are taken - firstly ensuring all checks for mmap capabilities use the file_has_valid_mmap_hooks() helper rather than directly checking for f_op->mmap (which is now not a valid check) and secondly updating daxdev_mapping_supported() to not require a VMA parameter to allow ext4 and xfs to be converted.

Commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems") handles the nasty edge-case of nested file systems like overlayfs, which introduces a compatibility shim to allow f_op->mmap_prepare() to be invoked from an f_op->mmap() callback.

This allows for nested filesystems to continue to function correctly with all file systems regardless of which callback is used. Once we finally convert all file systems, this shim can be removed.

As a result, ecryptfs, fuse, and overlayfs remain unaltered so they can nest all other file systems.

We additionally do not update resctl - as this requires an update to remap_pfn_range() (or an alternative to it) which we defer to a later series, equally we do not update cramfs which needs a mixed mapping insertion with the same issue, nor do we update procfs, hugetlbfs, syfs or kernfs all of which require VMAs for internal state and hooks. We shall return to all of these later.

Lorenzo Stoakes (10):
mm: rename call_mmap/mmap_prepare to vfs_mmap/mmap_prepare mm/nommu: use file_has_valid_mmap_hooks() helper
fs: consistently use file_has_valid_mmap_hooks() helper fs/dax: make it possible to check dev dax support without a VMA fs/ext4: transition from deprecated .mmap hook to .mmap_prepare fs/xfs: transition from deprecated .mmap hook to .mmap_prepare mm/filemap: introduce generic_file_*_mmap_prepare() helpers
fs: convert simple use of generic_file_*_mmap() to .mmap_prepare()
fs: convert most other generic_file_*mmap() users to .mmap_prepare()
fs: replace mmap hook with .mmap_prepare for simple mappings

 block/fops.c                               |  9 +++---
 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c |  2 +-
 fs/9p/vfs_file.c                           | 13 +++++----
 fs/adfs/file.c                             |  2 +-
 fs/affs/file.c                             |  2 +-
 fs/afs/file.c                              | 11 ++++----
 fs/aio.c                                   |  8 +++---
 fs/backing-file.c                          |  4 +--
 fs/bcachefs/fs.c                           |  8 +++---
 fs/bfs/file.c                              |  2 +-
 fs/binfmt_elf.c                            |  4 +--
 fs/binfmt_elf_fdpic.c                      |  2 +-
 fs/btrfs/file.c                            |  7 +++--
 fs/ceph/addr.c                             |  5 ++--
 fs/ceph/file.c                             |  2 +-
 fs/ceph/super.h                            |  2 +-
 fs/coda/file.c                             |  6 ++--
 fs/ecryptfs/file.c                         |  2 +-
 fs/erofs/data.c                            | 16 ++++++-----
 fs/exfat/file.c                            |  7 +++--
 fs/ext2/file.c                             | 12 ++++----
 fs/ext4/file.c                             | 13 +++++----
 fs/f2fs/file.c                             |  7 +++--
 fs/fat/file.c                              |  2 +-
 fs/hfs/inode.c                             |  2 +-
 fs/hfsplus/inode.c                         |  2 +-
 fs/hostfs/hostfs_kern.c                    |  2 +-
 fs/hpfs/file.c                             |  2 +-
 fs/jffs2/file.c                            |  2 +-
 fs/jfs/file.c                              |  2 +-
 fs/minix/file.c                            |  2 +-
 fs/nfs/file.c                              | 13 +++++----
 fs/nfs/internal.h                          |  2 +-
 fs/nfs/nfs4file.c                          |  2 +-
 fs/nilfs2/file.c                           |  8 +++---
 fs/ntfs3/file.c                            | 15 +++++-----
 fs/ocfs2/file.c                            |  4 +--
 fs/ocfs2/mmap.c                            |  5 ++--
 fs/ocfs2/mmap.h                            |  2 +-
 fs/omfs/file.c                             |  2 +-
 fs/orangefs/file.c                         | 10 ++++---
 fs/ramfs/file-mmu.c                        |  2 +-
 fs/ramfs/file-nommu.c                      | 12 ++++----
 fs/read_write.c                            |  2 +-
 fs/romfs/mmap-nommu.c                      |  6 ++--
 fs/smb/client/cifsfs.c                     | 12 ++++----
 fs/smb/client/cifsfs.h                     |  4 +--
 fs/smb/client/file.c                       | 14 ++++++----
 fs/ubifs/file.c                            |  8 +++---
 fs/ufs/file.c                              |  2 +-
 fs/vboxsf/file.c                           |  8 +++---
 fs/xfs/xfs_file.c                          | 15 +++++-----
 fs/zonefs/file.c                           | 10 ++++---
 include/linux/dax.h                        | 16 ++++++-----
 include/linux/fs.h                         | 11 ++++----
 ipc/shm.c                                  |  2 +-
 mm/filemap.c                               | 29 ++++++++++++++++++++
 mm/internal.h                              |  2 +-
 mm/nommu.c                                 |  2 +-
 mm/vma.c                                   |  2 +-
 tools/testing/vma/vma_internal.h           | 32 ++++++++++++++++++----
 61 files changed, 245 insertions(+), 171 deletions(-)

--
2.49.0

#1 lore raw

PATCH 1/10 mm: rename call_mmap/mmap_prepare to vfs_mmap/mmap_prepare

The call_mmap() function violates the existing convention in include/linux/fs.h whereby invocations of virtual file system hooks is performed by functions prefixed with vfs_xxx().

Correct this by renaming call_mmap() to vfs_mmap(). This also avoids confusion as to the fact that f_op->mmap_prepare may be invoked here.

Also rename __call_mmap_prepare() function to vfs_mmap_prepare() and adjust to accept a file parameter, this is useful later for nested file systems.

Finally, fix up the VMA userland tests and ensure the mmap_prepare -> mmap shim is implemented there.

---
 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c |  2 +-
 fs/backing-file.c                          |  2 +-
 fs/coda/file.c                             |  4 +--
 include/linux/fs.h                         |  5 ++--
 ipc/shm.c                                  |  2 +-
 mm/internal.h                              |  2 +-
 mm/vma.c                                   |  2 +-
 tools/testing/vma/vma_internal.h           | 32 ++++++++++++++++++----
 8 files changed, 35 insertions(+), 16 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c +1 -1
index 05e440643aa2..f4f1c979d1b9 100644
@@ -105,7 +105,7 @@ static int i915_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *
 	if (!obj->base.filp)
 		return -ENODEV;
 
-	ret = call_mmap(obj->base.filp, vma);
+	ret = vfs_mmap(obj->base.filp, vma);
 	if (ret)
 		return ret;
 
fs/backing-file.c +1 -1
index 763fbe9b72b2..04018679bf69 100644
@@ -339,7 +339,7 @@ int backing_file_mmap(struct file *file, struct vm_area_struct *vma,
 	vma_set_file(vma, file);
 
 	old_cred = override_creds(ctx->cred);
-	ret = call_mmap(vma->vm_file, vma);
+	ret = vfs_mmap(vma->vm_file, vma);
 	revert_creds(old_cred);
 
 	if (ctx->accessed)
fs/coda/file.c +2 -2
index 148856a582a9..2e6ea9319b35 100644
@@ -199,10 +199,10 @@ coda_file_mmap(struct file *coda_file, struct vm_area_struct *vma)
 	spin_unlock(&cii->c_lock);
 
 	vma->vm_file = get_file(host_file);
-	ret = call_mmap(vma->vm_file, vma);
+	ret = vfs_mmap(vma->vm_file, vma);
 
 	if (ret) {
-		/* if call_mmap fails, our caller will put host_file so we
+		/* if vfs_mmap fails, our caller will put host_file so we
 		 * should drop the reference to the coda_file that we got.
 		 */
 		fput(coda_file);
include/linux/fs.h +2 -3
index 93ee0d2d6f1a..7120f80255b3 100644
@@ -2278,7 +2278,7 @@ static inline bool file_has_valid_mmap_hooks(struct file *file)
 
 int compat_vma_mmap_prepare(struct file *file, struct vm_area_struct *vma);
 
-static inline int call_mmap(struct file *file, struct vm_area_struct *vma)
+static inline int vfs_mmap(struct file *file, struct vm_area_struct *vma)
 {
 	if (file->f_op->mmap_prepare)
 		return compat_vma_mmap_prepare(file, vma);
@@ -2286,8 +2286,7 @@ static inline int call_mmap(struct file *file, struct vm_area_struct *vma)
 	return file->f_op->mmap(file, vma);
 }
 
-static inline int __call_mmap_prepare(struct file *file,
-		struct vm_area_desc *desc)
+static inline int vfs_mmap_prepare(struct file *file, struct vm_area_desc *desc)
 {
 	return file->f_op->mmap_prepare(desc);
 }
ipc/shm.c +1 -1
index 492fcc699985..a9310b6dbbc3 100644
@@ -602,7 +602,7 @@ static int shm_mmap(struct file *file, struct vm_area_struct *vma)
 	if (ret)
 		return ret;
 
-	ret = call_mmap(sfd->file, vma);
+	ret = vfs_mmap(sfd->file, vma);
 	if (ret) {
 		__shm_close(sfd);
 		return ret;
mm/internal.h +1 -1
index 3823fb356d3b..a55c88afff6d 100644
@@ -165,7 +165,7 @@ static inline void *folio_raw_mapping(const struct folio *folio)
  */
 static inline int mmap_file(struct file *file, struct vm_area_struct *vma)
 {
-	int err = call_mmap(file, vma);
+	int err = vfs_mmap(file, vma);
 
 	if (likely(!err))
 		return 0;
mm/vma.c +1 -1
index 5d35adadf2b5..f548bede3bbe 100644
@@ -2582,7 +2582,7 @@ static int call_mmap_prepare(struct mmap_state *map)
 	};
 
 	/* Invoke the hook. */
-	err = __call_mmap_prepare(map->file, &desc);
+	err = vfs_mmap_prepare(map->file, &desc);
 	if (err)
 		return err;
 
tools/testing/vma/vma_internal.h +26 -6
index d7fea56e3bb3..51dd122b8d50 100644
@@ -1458,6 +1458,27 @@ static inline void free_anon_vma_name(struct vm_area_struct *vma)
 	(void)vma;
 }
 
+/* Declared in vma.h. */
+static inline void set_vma_from_desc(struct vm_area_struct *vma,
+		struct vm_area_desc *desc);
+
+static inline struct vm_area_desc *vma_to_desc(struct vm_area_struct *vma,
+		struct vm_area_desc *desc);
+
+static int compat_vma_mmap_prepare(struct file *file,
+		struct vm_area_struct *vma)
+{
+	struct vm_area_desc desc;
+	int err;
+
+	err = file->f_op->mmap_prepare(vma_to_desc(vma, &desc));
+	if (err)
+		return err;
+	set_vma_from_desc(vma, &desc);
+
+	return 0;
+}
+
 /* Did the driver provide valid mmap hook configuration? */
 static inline bool file_has_valid_mmap_hooks(struct file *file)
 {
@@ -1467,22 +1488,21 @@ static inline bool file_has_valid_mmap_hooks(struct file *file)
 	/* Hooks are mutually exclusive. */
 	if (WARN_ON_ONCE(has_mmap && has_mmap_prepare))
 		return false;
-	if (WARN_ON_ONCE(!has_mmap && !has_mmap_prepare))
+	if (!has_mmap && !has_mmap_prepare)
 		return false;
 
 	return true;
 }
 
-static inline int call_mmap(struct file *file, struct vm_area_struct *vma)
+static inline int vfs_mmap(struct file *file, struct vm_area_struct *vma)
 {
-	if (WARN_ON_ONCE(file->f_op->mmap_prepare))
-		return -EINVAL;
+	if (file->f_op->mmap_prepare)
+		return compat_vma_mmap_prepare(file, vma);
 
 	return file->f_op->mmap(file, vma);
 }
 
-static inline int __call_mmap_prepare(struct file *file,
-		struct vm_area_desc *desc)
+static inline int vfs_mmap_prepare(struct file *file, struct vm_area_desc *desc)
 {
 	return file->f_op->mmap_prepare(desc);
 }
Signature · 1 line
2.49.0
#2 lore raw

Re: [PATCH 01/10] mm: rename call_mmap/mmap_prepare to vfs_mmap/mmap_prepare

Quoted 4 lines · Lorenzo Stoakes

The call_mmap() function violates the existing convention in include/linux/fs.h whereby invocations of virtual file system hooks is performed by functions prefixed with vfs_xxx().

Quoted 8 lines

Correct this by renaming call_mmap() to vfs_mmap(). This also avoids confusion as to the fact that f_op->mmap_prepare may be invoked here.

Also rename __call_mmap_prepare() function to vfs_mmap_prepare() and adjust to accept a file parameter, this is useful later for nested file systems.

Finally, fix up the VMA userland tests and ensure the mmap_prepare -> mmap shim is implemented there.

Can we please just kill these silly call_* helpers instead?

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#3 lore raw

Re: [PATCH 01/10] mm: rename call_mmap/mmap_prepare to vfs_mmap/mmap_prepare

Quoted 8 lines · Christoph Hellwig
Quoted 7 lines · Lorenzo Stoakes

The call_mmap() function violates the existing convention in include/linux/fs.h whereby invocations of virtual file system hooks is performed by functions prefixed with vfs_xxx().

Correct this by renaming call_mmap() to vfs_mmap(). This also avoids confusion as to the fact that f_op->mmap_prepare may be invoked here.

Quoted 7 lines
Quoted 5 lines

Also rename __call_mmap_prepare() function to vfs_mmap_prepare() and adjust to accept a file parameter, this is useful later for nested file systems.

Finally, fix up the VMA userland tests and ensure the mmap_prepare -> mmap shim is implemented there.

Can we please just kill these silly call_* helpers instead?

The vfs_mmap() function now has some actual meaningful logic added in commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

Quoted 5 lines

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Acked-by on v1 1/10
#4 lore raw

Re: [PATCH 01/10] mm: rename call_mmap/mmap_prepare to vfs_mmap/mmap_prepare

In reply to Lorenzo Stoakes
Quoted 7 lines · Lorenzo Stoakes

The call_mmap() function violates the existing convention in include/linux/fs.h whereby invocations of virtual file system hooks is performed by functions prefixed with vfs_xxx().

Correct this by renaming call_mmap() to vfs_mmap(). This also avoids confusion as to the fact that f_op->mmap_prepare may be invoked here.

Quoted 7 lines

Also rename __call_mmap_prepare() function to vfs_mmap_prepare() and adjust to accept a file parameter, this is useful later for nested file systems.

Finally, fix up the VMA userland tests and ensure the mmap_prepare -> mmap shim is implemented there.

Quoted 176 lines
---
 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c |  2 +-
 fs/backing-file.c                          |  2 +-
 fs/coda/file.c                             |  4 +--
 include/linux/fs.h                         |  5 ++--
 ipc/shm.c                                  |  2 +-
 mm/internal.h                              |  2 +-
 mm/vma.c                                   |  2 +-
 tools/testing/vma/vma_internal.h           | 32 ++++++++++++++++++----
 8 files changed, 35 insertions(+), 16 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c +1 -1
index 05e440643aa2..f4f1c979d1b9 100644
@@ -105,7 +105,7 @@ static int i915_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *
 	if (!obj->base.filp)
 		return -ENODEV;
 
-	ret = call_mmap(obj->base.filp, vma);
+	ret = vfs_mmap(obj->base.filp, vma);
 	if (ret)
 		return ret;
 
fs/backing-file.c +1 -1
index 763fbe9b72b2..04018679bf69 100644
@@ -339,7 +339,7 @@ int backing_file_mmap(struct file *file, struct vm_area_struct *vma,
 	vma_set_file(vma, file);
 
 	old_cred = override_creds(ctx->cred);
-	ret = call_mmap(vma->vm_file, vma);
+	ret = vfs_mmap(vma->vm_file, vma);
 	revert_creds(old_cred);
 
 	if (ctx->accessed)
fs/coda/file.c +2 -2
index 148856a582a9..2e6ea9319b35 100644
@@ -199,10 +199,10 @@ coda_file_mmap(struct file *coda_file, struct vm_area_struct *vma)
 	spin_unlock(&cii->c_lock);
 
 	vma->vm_file = get_file(host_file);
-	ret = call_mmap(vma->vm_file, vma);
+	ret = vfs_mmap(vma->vm_file, vma);
 
 	if (ret) {
-		/* if call_mmap fails, our caller will put host_file so we
+		/* if vfs_mmap fails, our caller will put host_file so we
 		 * should drop the reference to the coda_file that we got.
 		 */
 		fput(coda_file);
include/linux/fs.h +2 -3
index 93ee0d2d6f1a..7120f80255b3 100644
@@ -2278,7 +2278,7 @@ static inline bool file_has_valid_mmap_hooks(struct file *file)
 
 int compat_vma_mmap_prepare(struct file *file, struct vm_area_struct *vma);
 
-static inline int call_mmap(struct file *file, struct vm_area_struct *vma)
+static inline int vfs_mmap(struct file *file, struct vm_area_struct *vma)
 {
 	if (file->f_op->mmap_prepare)
 		return compat_vma_mmap_prepare(file, vma);
@@ -2286,8 +2286,7 @@ static inline int call_mmap(struct file *file, struct vm_area_struct *vma)
 	return file->f_op->mmap(file, vma);
 }
 
-static inline int __call_mmap_prepare(struct file *file,
-		struct vm_area_desc *desc)
+static inline int vfs_mmap_prepare(struct file *file, struct vm_area_desc *desc)
 {
 	return file->f_op->mmap_prepare(desc);
 }
ipc/shm.c +1 -1
index 492fcc699985..a9310b6dbbc3 100644
@@ -602,7 +602,7 @@ static int shm_mmap(struct file *file, struct vm_area_struct *vma)
 	if (ret)
 		return ret;
 
-	ret = call_mmap(sfd->file, vma);
+	ret = vfs_mmap(sfd->file, vma);
 	if (ret) {
 		__shm_close(sfd);
 		return ret;
mm/internal.h +1 -1
index 3823fb356d3b..a55c88afff6d 100644
@@ -165,7 +165,7 @@ static inline void *folio_raw_mapping(const struct folio *folio)
  */
 static inline int mmap_file(struct file *file, struct vm_area_struct *vma)
 {
-	int err = call_mmap(file, vma);
+	int err = vfs_mmap(file, vma);
 
 	if (likely(!err))
 		return 0;
mm/vma.c +1 -1
index 5d35adadf2b5..f548bede3bbe 100644
@@ -2582,7 +2582,7 @@ static int call_mmap_prepare(struct mmap_state *map)
 	};
 
 	/* Invoke the hook. */
-	err = __call_mmap_prepare(map->file, &desc);
+	err = vfs_mmap_prepare(map->file, &desc);
 	if (err)
 		return err;
 
tools/testing/vma/vma_internal.h +26 -6
index d7fea56e3bb3..51dd122b8d50 100644
@@ -1458,6 +1458,27 @@ static inline void free_anon_vma_name(struct vm_area_struct *vma)
 	(void)vma;
 }
 
+/* Declared in vma.h. */
+static inline void set_vma_from_desc(struct vm_area_struct *vma,
+		struct vm_area_desc *desc);
+
+static inline struct vm_area_desc *vma_to_desc(struct vm_area_struct *vma,
+		struct vm_area_desc *desc);
+
+static int compat_vma_mmap_prepare(struct file *file,
+		struct vm_area_struct *vma)
+{
+	struct vm_area_desc desc;
+	int err;
+
+	err = file->f_op->mmap_prepare(vma_to_desc(vma, &desc));
+	if (err)
+		return err;
+	set_vma_from_desc(vma, &desc);
+
+	return 0;
+}
+
 /* Did the driver provide valid mmap hook configuration? */
 static inline bool file_has_valid_mmap_hooks(struct file *file)
 {
@@ -1467,22 +1488,21 @@ static inline bool file_has_valid_mmap_hooks(struct file *file)
 	/* Hooks are mutually exclusive. */
 	if (WARN_ON_ONCE(has_mmap && has_mmap_prepare))
 		return false;
-	if (WARN_ON_ONCE(!has_mmap && !has_mmap_prepare))
+	if (!has_mmap && !has_mmap_prepare)
 		return false;
 
 	return true;
 }
 
-static inline int call_mmap(struct file *file, struct vm_area_struct *vma)
+static inline int vfs_mmap(struct file *file, struct vm_area_struct *vma)
 {
-	if (WARN_ON_ONCE(file->f_op->mmap_prepare))
-		return -EINVAL;
+	if (file->f_op->mmap_prepare)
+		return compat_vma_mmap_prepare(file, vma);
 
 	return file->f_op->mmap(file, vma);
 }
 
-static inline int __call_mmap_prepare(struct file *file,
-		struct vm_area_desc *desc)
+static inline int vfs_mmap_prepare(struct file *file, struct vm_area_desc *desc)
 {
 	return file->f_op->mmap_prepare(desc);
 }
#5 lore raw

PATCH 2/10 mm/nommu: use file_has_valid_mmap_hooks() helper

In reply to Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

Therefore, update the check for file operations supporting mmap() by using the file_has_valid_mmap_hooks() helper function, which checks for either f_op->mmap or f_op->mmap_prepare rather than checking only for f_op->mmap directly.

---
 mm/nommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/nommu.c +1 -1
index b624acec6d2e..38c22ea0a95c 100644
@@ -719,7 +719,7 @@ static int validate_mmap_request(struct file *file,
 
 	if (file) {
 		/* files must support mmap */
-		if (!file->f_op->mmap)
+		if (!file_has_valid_mmap_hooks(file))
 			return -ENODEV;
 
 		/* work out if what we've got could possibly be shared
Signature · 1 line
2.49.0
maintainer Reviewed-by on v1 2/10
#6 lore raw

Re: [PATCH 02/10] mm/nommu: use file_has_valid_mmap_hooks() helper

Quoted 10 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

Therefore, update the check for file operations supporting mmap() by using the file_has_valid_mmap_hooks() helper function, which checks for either f_op->mmap or f_op->mmap_prepare rather than checking only for f_op->mmap directly.

Looks good. Feel free to add:

Maybe Fixes tag would be appropriate here?

Honza

Quoted 20 lines
---
 mm/nommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/nommu.c +1 -1
index b624acec6d2e..38c22ea0a95c 100644
@@ -719,7 +719,7 @@ static int validate_mmap_request(struct file *file,
 
 	if (file) {
 		/* files must support mmap */
-		if (!file->f_op->mmap)
+		if (!file_has_valid_mmap_hooks(file))
 			return -ENODEV;
 
 		/* work out if what we've got could possibly be shared
Signature · 1 line
2.49.0
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
Acked-by on v1 2/10
#7 lore raw

Re: [PATCH 02/10] mm/nommu: use file_has_valid_mmap_hooks() helper

In reply to Lorenzo Stoakes
Quoted 10 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

Therefore, update the check for file operations supporting mmap() by using the file_has_valid_mmap_hooks() helper function, which checks for either f_op->mmap or f_op->mmap_prepare rather than checking only for f_op->mmap directly.

Quoted 17 lines
---
 mm/nommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/nommu.c +1 -1
index b624acec6d2e..38c22ea0a95c 100644
@@ -719,7 +719,7 @@ static int validate_mmap_request(struct file *file,
 
 	if (file) {
 		/* files must support mmap */
-		if (!file->f_op->mmap)
+		if (!file_has_valid_mmap_hooks(file))
 			return -ENODEV;
 
 		/* work out if what we've got could possibly be shared
#8 lore raw

PATCH 3/10 fs: consistently use file_has_valid_mmap_hooks() helper

In reply to Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

Additionally, commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems") permits the use of the .mmap_prepare() hook even in nested filesystems like overlayfs.

There are a number of places where we check only for f_op->mmap - this is incorrect now mmap_prepare exists, so update all of these to use the general helper file_has_valid_mmap_hooks().

Most notably, this updates the elf logic to allow for the ability to execute binaries on filesystems which have the .mmap_prepare hook, but additionally we update nested filesystems.

---
 fs/backing-file.c     | 2 +-
 fs/binfmt_elf.c       | 4 ++--
 fs/binfmt_elf_fdpic.c | 2 +-
 fs/coda/file.c        | 2 +-
 fs/ecryptfs/file.c    | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
fs/backing-file.c +1 -1
index 04018679bf69..5761db9a52a9 100644
@@ -333,7 +333,7 @@ int backing_file_mmap(struct file *file, struct vm_area_struct *vma,
 	if (WARN_ON_ONCE(!(file->f_mode & FMODE_BACKING)))
 		return -EIO;
 
-	if (!file->f_op->mmap)
+	if (!file_has_valid_mmap_hooks(file))
 		return -ENODEV;
 
 	vma_set_file(vma, file);
fs/binfmt_elf.c +2 -2
index a43363d593e5..a6750bd9392a 100644
@@ -646,7 +646,7 @@ static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex,
 	if (!elf_check_arch(interp_elf_ex) ||
 	    elf_check_fdpic(interp_elf_ex))
 		goto out;
-	if (!interpreter->f_op->mmap)
+	if (!file_has_valid_mmap_hooks(interpreter))
 		goto out;
 
 	total_size = total_mapping_size(interp_elf_phdata,
@@ -848,7 +848,7 @@ static int load_elf_binary(struct linux_binprm *bprm)
 		goto out;
 	if (elf_check_fdpic(elf_ex))
 		goto out;
-	if (!bprm->file->f_op->mmap)
+	if (!file_has_valid_mmap_hooks(bprm->file))
 		goto out;
 
 	elf_phdata = load_elf_phdrs(elf_ex, bprm->file);
fs/binfmt_elf_fdpic.c +1 -1
index 9133f3827f90..699bb9a65c27 100644
@@ -109,7 +109,7 @@ static int is_elf(struct elfhdr *hdr, struct file *file)
 		return 0;
 	if (!elf_check_arch(hdr))
 		return 0;
-	if (!file->f_op->mmap)
+	if (!file_has_valid_mmap_hooks(file))
 		return 0;
 	return 1;
 }
fs/coda/file.c +1 -1
index 2e6ea9319b35..eed45a80e9bc 100644
@@ -160,7 +160,7 @@ coda_file_mmap(struct file *coda_file, struct vm_area_struct *vma)
 	size_t count;
 	int ret;
 
-	if (!host_file->f_op->mmap)
+	if (!file_has_valid_mmap_hooks(host_file))
 		return -ENODEV;
 
 	if (WARN_ON(coda_file != vma->vm_file))
fs/ecryptfs/file.c +1 -1
index ce0a3c5ed0ca..2bd50d1de5ef 100644
@@ -193,7 +193,7 @@ static int ecryptfs_mmap(struct file *file, struct vm_area_struct *vma)
 	 * natively.  If FILESYSTEM_MAX_STACK_DEPTH > 2 or ecryptfs
 	 * allows recursive mounting, this will need to be extended.
 	 */
-	if (!lower_file->f_op->mmap)
+	if (!file_has_valid_mmap_hooks(lower_file))
 		return -ENODEV;
 	return generic_file_mmap(file, vma);
 }
Signature · 1 line
2.49.0
maintainer Acked-by on v1 3/10
#9 lore raw

Re: [PATCH 03/10] fs: consistently use file_has_valid_mmap_hooks() helper

Quoted 16 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

Additionally, commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems") permits the use of the .mmap_prepare() hook even in nested filesystems like overlayfs.

There are a number of places where we check only for f_op->mmap - this is incorrect now mmap_prepare exists, so update all of these to use the general helper file_has_valid_mmap_hooks().

Most notably, this updates the elf logic to allow for the ability to execute binaries on filesystems which have the .mmap_prepare hook, but additionally we update nested filesystems.

Quoted 5 lines

---

fs/backing-file.c     | 2 +-
fs/binfmt_elf.c       | 4 ++--
fs/binfmt_elf_fdpic.c | 2 +-

Thanks for the refactoring!

Signature · 1 line
Kees Cook
#10 lore raw

Re: [PATCH 03/10] fs: consistently use file_has_valid_mmap_hooks() helper

In reply to Lorenzo Stoakes
Quoted 8 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

Additionally, commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems") permits the use of the .mmap_prepare() hook even in nested filesystems like overlayfs.

Quoted 7 lines

There are a number of places where we check only for f_op->mmap - this is incorrect now mmap_prepare exists, so update all of these to use the general helper file_has_valid_mmap_hooks().

Most notably, this updates the elf logic to allow for the ability to execute binaries on filesystems which have the .mmap_prepare hook, but additionally we update nested filesystems.

Can you please give the function a better name before spreading it? file operations aren't hooks by any classic definition.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#11 lore raw

Re: [PATCH 03/10] fs: consistently use file_has_valid_mmap_hooks() helper

Quoted 13 lines · Christoph Hellwig
Quoted 12 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

Additionally, commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems") permits the use of the .mmap_prepare() hook even in nested filesystems like overlayfs.

There are a number of places where we check only for f_op->mmap - this is incorrect now mmap_prepare exists, so update all of these to use the general helper file_has_valid_mmap_hooks().

Quoted 7 lines
Quoted 3 lines

Most notably, this updates the elf logic to allow for the ability to execute binaries on filesystems which have the .mmap_prepare hook, but additionally we update nested filesystems.

Can you please give the function a better name before spreading it? file operations aren't hooks by any classic definition.

can_mmap_file()?

#12 lore raw

Re: [PATCH 03/10] fs: consistently use file_has_valid_mmap_hooks() helper

Quoted 9 lines · Lorenzo Stoakes
Quoted 7 lines
Quoted 3 lines

Most notably, this updates the elf logic to allow for the ability to execute binaries on filesystems which have the .mmap_prepare hook, but additionally we update nested filesystems.

Can you please give the function a better name before spreading it? file operations aren't hooks by any classic definition.

can_mmap_file()?

Sounds reasonable.

maintainer
#13 lore raw

Re: [PATCH 03/10] fs: consistently use file_has_valid_mmap_hooks() helper

In reply to Lorenzo Stoakes
Quoted 18 lines · Lorenzo Stoakes
Quoted 17 lines · Christoph Hellwig
Quoted 15 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

Additionally, commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems") permits the use of the .mmap_prepare() hook even in nested filesystems like overlayfs.

There are a number of places where we check only for f_op->mmap - this is incorrect now mmap_prepare exists, so update all of these to use the general helper file_has_valid_mmap_hooks().

Most notably, this updates the elf logic to allow for the ability to execute binaries on filesystems which have the .mmap_prepare hook, but additionally we update nested filesystems.

Quoted 5 lines
Quoted 3 lines

Can you please give the function a better name before spreading it? file operations aren't hooks by any classic definition.

can_mmap_file()?

I like this name more as well :). With this patch looks good to me. Again a note that Fixes tag would be probably appropriate for this patch...

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#14 lore raw

Re: [PATCH 03/10] fs: consistently use file_has_valid_mmap_hooks() helper

Quoted 19 lines · Jan Kara
Quoted 18 lines · Lorenzo Stoakes
Quoted 17 lines · Christoph Hellwig
Quoted 15 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

Additionally, commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems") permits the use of the .mmap_prepare() hook even in nested filesystems like overlayfs.

There are a number of places where we check only for f_op->mmap - this is incorrect now mmap_prepare exists, so update all of these to use the general helper file_has_valid_mmap_hooks().

Most notably, this updates the elf logic to allow for the ability to execute binaries on filesystems which have the .mmap_prepare hook, but additionally we update nested filesystems.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Can you please give the function a better name before spreading it? file operations aren't hooks by any classic definition.

can_mmap_file()?

I like this name more as well :). With this patch looks good to me. Again a

Fixed in-tree.

#15 lore raw

PATCH 4/10 fs/dax: make it possible to check dev dax support without a VMA

In reply to Lorenzo Stoakes

This is a prerequisite for adapting those filesystems to use the .mmap_prepare() hook for mmap()'ing which invoke this check as this hook does not have access to a VMA pointer.

To effect this, change the signature of daxdev_mapping_supported() and update its callers (ext4 and xfs mmap()'ing hook code).

---
 fs/ext4/file.c      |  2 +-
 fs/xfs/xfs_file.c   |  3 ++-
 include/linux/dax.h | 16 +++++++++-------
 3 files changed, 12 insertions(+), 9 deletions(-)
fs/ext4/file.c +1 -1
index 21df81347147..08a814fcd956 100644
@@ -821,7 +821,7 @@ static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)
 	 * We don't support synchronous mappings for non-DAX files and
 	 * for DAX files if underneath dax_device is not synchronous.
 	 */
-	if (!daxdev_mapping_supported(vma, dax_dev))
+	if (!daxdev_mapping_supported(vma->vm_flags, vma->vm_file, dax_dev))
 		return -EOPNOTSUPP;
 
 	file_accessed(file);
fs/xfs/xfs_file.c +2 -1
index 48254a72071b..ab97ce1f9087 100644
@@ -1924,7 +1924,8 @@ xfs_file_mmap(
 	 * We don't support synchronous mappings for non-DAX files and
 	 * for DAX files if underneath dax_device is not synchronous.
 	 */
-	if (!daxdev_mapping_supported(vma, target->bt_daxdev))
+	if (!daxdev_mapping_supported(vma->vm_flags, vma->vm_file,
+				      target->bt_daxdev))
 		return -EOPNOTSUPP;
 
 	file_accessed(file);
include/linux/dax.h +9 -7
index dcc9fcdf14e4..d0092cefb963 100644
@@ -65,12 +65,13 @@ size_t dax_recovery_write(struct dax_device *dax_dev, pgoff_t pgoff,
 /*
  * Check if given mapping is supported by the file / underlying device.
  */
-static inline bool daxdev_mapping_supported(struct vm_area_struct *vma,
-					     struct dax_device *dax_dev)
+static inline bool daxdev_mapping_supported(vm_flags_t vm_flags,
+					    struct file *file,
+					    struct dax_device *dax_dev)
 {
-	if (!(vma->vm_flags & VM_SYNC))
+	if (!(vm_flags & VM_SYNC))
 		return true;
-	if (!IS_DAX(file_inode(vma->vm_file)))
+	if (!IS_DAX(file_inode(file)))
 		return false;
 	return dax_synchronous(dax_dev);
 }
@@ -110,10 +111,11 @@ static inline void set_dax_nomc(struct dax_device *dax_dev)
 static inline void set_dax_synchronous(struct dax_device *dax_dev)
 {
 }
-static inline bool daxdev_mapping_supported(struct vm_area_struct *vma,
-				struct dax_device *dax_dev)
+static inline bool daxdev_mapping_supported(vm_flags_t vm_flags,
+					    struct file *file,
+					    struct dax_device *dax_dev)
 {
-	return !(vma->vm_flags & VM_SYNC);
+	return !(vm_flags & VM_SYNC);
 }
 static inline size_t dax_recovery_write(struct dax_device *dax_dev,
 		pgoff_t pgoff, void *addr, size_t bytes, struct iov_iter *i)
Signature · 1 line
2.49.0
maintainer
#16 lore raw

Re: [PATCH 04/10] fs/dax: make it possible to check dev dax support without a VMA

Quoted 2 lines · Lorenzo Stoakes
 fs/ext4/file.c      |  2 +-
 fs/xfs/xfs_file.c   |  3 ++-

Both of these already have the inode from the file ...

include/linux/dax.h size_t dax_recovery_write(struct dax_device *dax_dev, pgoff_t pgoff, · line 76

Quoted 11 lines
include/linux/dax.h +5 -2
+static inline bool daxdev_mapping_supported(vm_flags_t vm_flags,
+					    struct file *file,
+					    struct dax_device *dax_dev)
 {
-	if (!(vma->vm_flags & VM_SYNC))
+	if (!(vm_flags & VM_SYNC))
 		return true;
-	if (!IS_DAX(file_inode(vma->vm_file)))
+	if (!IS_DAX(file_inode(file)))
 		return false;
 	return dax_synchronous(dax_dev);

... and the only thing this function uses from the file is the inode. So maybe pass in the inode rather than the file?

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#17 lore raw

Re: [PATCH 04/10] fs/dax: make it possible to check dev dax support without a VMA

Quoted 6 lines · Matthew Wilcox
Quoted 2 lines · Lorenzo Stoakes
 fs/ext4/file.c      |  2 +-
 fs/xfs/xfs_file.c   |  3 ++-

Both of these already have the inode from the file ...

Quoted 14 lines

include/linux/dax.h size_t dax_recovery_write(struct dax_device *dax_dev, pgoff_t pgoff, · line 76

Quoted 11 lines
include/linux/dax.h +5 -2
+static inline bool daxdev_mapping_supported(vm_flags_t vm_flags,
+					    struct file *file,
+					    struct dax_device *dax_dev)
 {
-	if (!(vma->vm_flags & VM_SYNC))
+	if (!(vm_flags & VM_SYNC))
 		return true;
-	if (!IS_DAX(file_inode(vma->vm_file)))
+	if (!IS_DAX(file_inode(file)))
 		return false;
 	return dax_synchronous(dax_dev);

... and the only thing this function uses from the file is the inode. So maybe pass in the inode rather than the file?

Agreed. I've converted this to take const struct inode *.

#18 lore raw

PATCH 5/10 fs/ext4: transition from deprecated .mmap hook to .mmap_prepare

In reply to Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

---
 fs/ext4/file.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
fs/ext4/file.c +7 -6
index 08a814fcd956..38180e527dbe 100644
@@ -804,9 +804,10 @@ static const struct vm_operations_struct ext4_file_vm_ops = {
 	.page_mkwrite   = ext4_page_mkwrite,
 };
 
-static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int ext4_file_mmap_prepare(struct vm_area_desc *desc)
 {
 	int ret;
+	struct file *file = desc->file;
 	struct inode *inode = file->f_mapping->host;
 	struct dax_device *dax_dev = EXT4_SB(inode->i_sb)->s_daxdev;
 
@@ -821,15 +822,15 @@ static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)
 	 * We don't support synchronous mappings for non-DAX files and
 	 * for DAX files if underneath dax_device is not synchronous.
 	 */
-	if (!daxdev_mapping_supported(vma->vm_flags, vma->vm_file, dax_dev))
+	if (!daxdev_mapping_supported(desc->vm_flags, file, dax_dev))
 		return -EOPNOTSUPP;
 
 	file_accessed(file);
 	if (IS_DAX(file_inode(file))) {
-		vma->vm_ops = &ext4_dax_vm_ops;
-		vm_flags_set(vma, VM_HUGEPAGE);
+		desc->vm_ops = &ext4_dax_vm_ops;
+		desc->vm_flags |= VM_HUGEPAGE;
 	} else {
-		vma->vm_ops = &ext4_file_vm_ops;
+		desc->vm_ops = &ext4_file_vm_ops;
 	}
 	return 0;
 }
@@ -968,7 +969,7 @@ const struct file_operations ext4_file_operations = {
 #ifdef CONFIG_COMPAT
 	.compat_ioctl	= ext4_compat_ioctl,
 #endif
-	.mmap		= ext4_file_mmap,
+	.mmap_prepare	= ext4_file_mmap_prepare,
 	.open		= ext4_file_open,
 	.release	= ext4_release_file,
 	.fsync		= ext4_sync_file,
Signature · 1 line
2.49.0
maintainer Reviewed-by on v1 5/10
#19 lore raw

Re: [PATCH 05/10] fs/ext4: transition from deprecated .mmap hook to .mmap_prepare

Quoted 16 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Quoted 5 lines

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

Looks good. Feel free to add:

Honza

Quoted 52 lines
---
 fs/ext4/file.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
fs/ext4/file.c +7 -6
index 08a814fcd956..38180e527dbe 100644
@@ -804,9 +804,10 @@ static const struct vm_operations_struct ext4_file_vm_ops = {
 	.page_mkwrite   = ext4_page_mkwrite,
 };
 
-static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int ext4_file_mmap_prepare(struct vm_area_desc *desc)
 {
 	int ret;
+	struct file *file = desc->file;
 	struct inode *inode = file->f_mapping->host;
 	struct dax_device *dax_dev = EXT4_SB(inode->i_sb)->s_daxdev;
 
@@ -821,15 +822,15 @@ static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)
 	 * We don't support synchronous mappings for non-DAX files and
 	 * for DAX files if underneath dax_device is not synchronous.
 	 */
-	if (!daxdev_mapping_supported(vma->vm_flags, vma->vm_file, dax_dev))
+	if (!daxdev_mapping_supported(desc->vm_flags, file, dax_dev))
 		return -EOPNOTSUPP;
 
 	file_accessed(file);
 	if (IS_DAX(file_inode(file))) {
-		vma->vm_ops = &ext4_dax_vm_ops;
-		vm_flags_set(vma, VM_HUGEPAGE);
+		desc->vm_ops = &ext4_dax_vm_ops;
+		desc->vm_flags |= VM_HUGEPAGE;
 	} else {
-		vma->vm_ops = &ext4_file_vm_ops;
+		desc->vm_ops = &ext4_file_vm_ops;
 	}
 	return 0;
 }
@@ -968,7 +969,7 @@ const struct file_operations ext4_file_operations = {
 #ifdef CONFIG_COMPAT
 	.compat_ioctl	= ext4_compat_ioctl,
 #endif
-	.mmap		= ext4_file_mmap,
+	.mmap_prepare	= ext4_file_mmap_prepare,
 	.open		= ext4_file_open,
 	.release	= ext4_release_file,
 	.fsync		= ext4_sync_file,
Signature · 1 line
2.49.0
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#20 lore raw

PATCH 6/10 fs/xfs: transition from deprecated .mmap hook to .mmap_prepare

In reply to Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

---
 fs/xfs/xfs_file.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
fs/xfs/xfs_file.c +7 -7
index ab97ce1f9087..f7b76647d675 100644
@@ -1913,10 +1913,10 @@ static const struct vm_operations_struct xfs_file_vm_ops = {
 };
 
 STATIC int
-xfs_file_mmap(
-	struct file		*file,
-	struct vm_area_struct	*vma)
+xfs_file_mmap_prepare(
+	struct vm_area_desc *desc)
 {
+	struct file		*file = desc->file;
 	struct inode		*inode = file_inode(file);
 	struct xfs_buftarg	*target = xfs_inode_buftarg(XFS_I(inode));
 
@@ -1924,14 +1924,14 @@ xfs_file_mmap(
 	 * We don't support synchronous mappings for non-DAX files and
 	 * for DAX files if underneath dax_device is not synchronous.
 	 */
-	if (!daxdev_mapping_supported(vma->vm_flags, vma->vm_file,
+	if (!daxdev_mapping_supported(desc->vm_flags, file,
 				      target->bt_daxdev))
 		return -EOPNOTSUPP;
 
 	file_accessed(file);
-	vma->vm_ops = &xfs_file_vm_ops;
+	desc->vm_ops = &xfs_file_vm_ops;
 	if (IS_DAX(inode))
-		vm_flags_set(vma, VM_HUGEPAGE);
+		desc->vm_flags |= VM_HUGEPAGE;
 	return 0;
 }
 
@@ -1946,7 +1946,7 @@ const struct file_operations xfs_file_operations = {
 #ifdef CONFIG_COMPAT
 	.compat_ioctl	= xfs_file_compat_ioctl,
 #endif
-	.mmap		= xfs_file_mmap,
+	.mmap_prepare	= xfs_file_mmap_prepare,
 	.open		= xfs_file_open,
 	.release	= xfs_file_release,
 	.fsync		= xfs_file_fsync,
Signature · 1 line
2.49.0
#21 lore raw

Re: [PATCH 06/10] fs/xfs: transition from deprecated .mmap hook to .mmap_prepare

fs/xfs/xfs_file.c static const struct vm_operations_struct xfs_file_vm_ops = { · line 1917

Quoted 6 lines · Lorenzo Stoakes

STATIC int

fs/xfs/xfs_file.c +2 -3
-xfs_file_mmap(
-	struct file		*file,
-	struct vm_area_struct	*vma)
+xfs_file_mmap_prepare(
+	struct vm_area_desc *desc)

Please stick to the existing alignment for the declarations.

Otherwise this looks good.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#22 lore raw

Re: [PATCH 06/10] fs/xfs: transition from deprecated .mmap hook to .mmap_prepare

Quoted 11 lines · Christoph Hellwig

fs/xfs/xfs_file.c static const struct vm_operations_struct xfs_file_vm_ops = { · line 1917

Quoted 6 lines · Lorenzo Stoakes

STATIC int

fs/xfs/xfs_file.c +2 -3
-xfs_file_mmap(
-	struct file		*file,
-	struct vm_area_struct	*vma)
+xfs_file_mmap_prepare(
+	struct vm_area_desc *desc)

Please stick to the existing alignment for the declarations.

Otherwise this looks good.

Fixed in-tree.

#23 lore raw

PATCH 7/10 mm/filemap: introduce generic_file_*_mmap_prepare() helpers

In reply to Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

The generic mmap handlers are very simple, so we can very easily convert these in advance of converting file systems which use them.

This patch does so.

---
 include/linux/fs.h |  6 ++++--
 mm/filemap.c       | 29 +++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 2 deletions(-)
include/linux/fs.h +4 -2
index 7120f80255b3..65cffc445fcc 100644
@@ -3395,8 +3395,10 @@ extern void inode_add_lru(struct inode *inode);
 extern int sb_set_blocksize(struct super_block *, int);
 extern int sb_min_blocksize(struct super_block *, int);
 
-extern int generic_file_mmap(struct file *, struct vm_area_struct *);
-extern int generic_file_readonly_mmap(struct file *, struct vm_area_struct *);
+int generic_file_mmap(struct file *, struct vm_area_struct *);
+int generic_file_mmap_prepare(struct vm_area_desc *desc);
+int generic_file_readonly_mmap(struct file *, struct vm_area_struct *);
+int generic_file_readonly_mmap_prepare(struct vm_area_desc *desc);
 extern ssize_t generic_write_checks(struct kiocb *, struct iov_iter *);
 int generic_write_checks_count(struct kiocb *iocb, loff_t *count);
 extern int generic_write_check_limits(struct file *file, loff_t pos,
mm/filemap.c +29 -0
index 93fbc2ef232a..e75608cbf420 100644
@@ -3847,6 +3847,18 @@ int generic_file_mmap(struct file *file, struct vm_area_struct *vma)
 	return 0;
 }
 
+int generic_file_mmap_prepare(struct vm_area_desc *desc)
+{
+	struct file *file = desc->file;
+	struct address_space *mapping = file->f_mapping;
+
+	if (!mapping->a_ops->read_folio)
+		return -ENOEXEC;
+	file_accessed(file);
+	desc->vm_ops = &generic_file_vm_ops;
+	return 0;
+}
+
 /*
  * This is for filesystems which do not implement ->writepage.
  */
@@ -3856,6 +3868,13 @@ int generic_file_readonly_mmap(struct file *file, struct vm_area_struct *vma)
 		return -EINVAL;
 	return generic_file_mmap(file, vma);
 }
+
+int generic_file_readonly_mmap_prepare(struct vm_area_desc *desc)
+{
+	if (is_shared_maywrite(desc->vm_flags))
+		return -EINVAL;
+	return generic_file_mmap_prepare(desc);
+}
 #else
 vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)
 {
@@ -3865,15 +3884,25 @@ int generic_file_mmap(struct file *file, struct vm_area_struct *vma)
 {
 	return -ENOSYS;
 }
+int generic_file_mmap_prepare(struct vm_area_desc *desc)
+{
+	return -ENOSYS;
+}
 int generic_file_readonly_mmap(struct file *file, struct vm_area_struct *vma)
 {
 	return -ENOSYS;
 }
+int generic_file_readonly_mmap_prepare(struct vm_area_desc *desc)
+{
+	return -ENOSYS;
+}
 #endif /* CONFIG_MMU */
 
 EXPORT_SYMBOL(filemap_page_mkwrite);
 EXPORT_SYMBOL(generic_file_mmap);
+EXPORT_SYMBOL(generic_file_mmap_prepare);
 EXPORT_SYMBOL(generic_file_readonly_mmap);
+EXPORT_SYMBOL(generic_file_readonly_mmap_prepare);
 
 static struct folio *do_read_cache_folio(struct address_space *mapping,
 		pgoff_t index, filler_t filler, struct file *file, gfp_t gfp)
Signature · 1 line
2.49.0
maintainer Reviewed-by on v1 7/10
#24 lore raw

Re: [PATCH 07/10] mm/filemap: introduce generic_file_*_mmap_prepare() helpers

Quoted 10 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

The generic mmap handlers are very simple, so we can very easily convert these in advance of converting file systems which use them.

This patch does so.

Looks good. Feel free to add:

Honza

Quoted 88 lines
---
 include/linux/fs.h |  6 ++++--
 mm/filemap.c       | 29 +++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 2 deletions(-)
include/linux/fs.h +4 -2
index 7120f80255b3..65cffc445fcc 100644
@@ -3395,8 +3395,10 @@ extern void inode_add_lru(struct inode *inode);
 extern int sb_set_blocksize(struct super_block *, int);
 extern int sb_min_blocksize(struct super_block *, int);
 
-extern int generic_file_mmap(struct file *, struct vm_area_struct *);
-extern int generic_file_readonly_mmap(struct file *, struct vm_area_struct *);
+int generic_file_mmap(struct file *, struct vm_area_struct *);
+int generic_file_mmap_prepare(struct vm_area_desc *desc);
+int generic_file_readonly_mmap(struct file *, struct vm_area_struct *);
+int generic_file_readonly_mmap_prepare(struct vm_area_desc *desc);
 extern ssize_t generic_write_checks(struct kiocb *, struct iov_iter *);
 int generic_write_checks_count(struct kiocb *iocb, loff_t *count);
 extern int generic_write_check_limits(struct file *file, loff_t pos,
mm/filemap.c +29 -0
index 93fbc2ef232a..e75608cbf420 100644
@@ -3847,6 +3847,18 @@ int generic_file_mmap(struct file *file, struct vm_area_struct *vma)
 	return 0;
 }
 
+int generic_file_mmap_prepare(struct vm_area_desc *desc)
+{
+	struct file *file = desc->file;
+	struct address_space *mapping = file->f_mapping;
+
+	if (!mapping->a_ops->read_folio)
+		return -ENOEXEC;
+	file_accessed(file);
+	desc->vm_ops = &generic_file_vm_ops;
+	return 0;
+}
+
 /*
  * This is for filesystems which do not implement ->writepage.
  */
@@ -3856,6 +3868,13 @@ int generic_file_readonly_mmap(struct file *file, struct vm_area_struct *vma)
 		return -EINVAL;
 	return generic_file_mmap(file, vma);
 }
+
+int generic_file_readonly_mmap_prepare(struct vm_area_desc *desc)
+{
+	if (is_shared_maywrite(desc->vm_flags))
+		return -EINVAL;
+	return generic_file_mmap_prepare(desc);
+}
 #else
 vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)
 {
@@ -3865,15 +3884,25 @@ int generic_file_mmap(struct file *file, struct vm_area_struct *vma)
 {
 	return -ENOSYS;
 }
+int generic_file_mmap_prepare(struct vm_area_desc *desc)
+{
+	return -ENOSYS;
+}
 int generic_file_readonly_mmap(struct file *file, struct vm_area_struct *vma)
 {
 	return -ENOSYS;
 }
+int generic_file_readonly_mmap_prepare(struct vm_area_desc *desc)
+{
+	return -ENOSYS;
+}
 #endif /* CONFIG_MMU */
 
 EXPORT_SYMBOL(filemap_page_mkwrite);
 EXPORT_SYMBOL(generic_file_mmap);
+EXPORT_SYMBOL(generic_file_mmap_prepare);
 EXPORT_SYMBOL(generic_file_readonly_mmap);
+EXPORT_SYMBOL(generic_file_readonly_mmap_prepare);
 
 static struct folio *do_read_cache_folio(struct address_space *mapping,
 		pgoff_t index, filler_t filler, struct file *file, gfp_t gfp)
Signature · 1 line
2.49.0
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
Acked-by on v1 7/10
#25 lore raw

Re: [PATCH 07/10] mm/filemap: introduce generic_file_*_mmap_prepare() helpers

In reply to Lorenzo Stoakes
Quoted 10 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

The generic mmap handlers are very simple, so we can very easily convert these in advance of converting file systems which use them.

This patch does so.

Quoted 85 lines
---
 include/linux/fs.h |  6 ++++--
 mm/filemap.c       | 29 +++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 2 deletions(-)
include/linux/fs.h +4 -2
index 7120f80255b3..65cffc445fcc 100644
@@ -3395,8 +3395,10 @@ extern void inode_add_lru(struct inode *inode);
 extern int sb_set_blocksize(struct super_block *, int);
 extern int sb_min_blocksize(struct super_block *, int);
 
-extern int generic_file_mmap(struct file *, struct vm_area_struct *);
-extern int generic_file_readonly_mmap(struct file *, struct vm_area_struct *);
+int generic_file_mmap(struct file *, struct vm_area_struct *);
+int generic_file_mmap_prepare(struct vm_area_desc *desc);
+int generic_file_readonly_mmap(struct file *, struct vm_area_struct *);
+int generic_file_readonly_mmap_prepare(struct vm_area_desc *desc);
 extern ssize_t generic_write_checks(struct kiocb *, struct iov_iter *);
 int generic_write_checks_count(struct kiocb *iocb, loff_t *count);
 extern int generic_write_check_limits(struct file *file, loff_t pos,
mm/filemap.c +29 -0
index 93fbc2ef232a..e75608cbf420 100644
@@ -3847,6 +3847,18 @@ int generic_file_mmap(struct file *file, struct vm_area_struct *vma)
 	return 0;
 }
 
+int generic_file_mmap_prepare(struct vm_area_desc *desc)
+{
+	struct file *file = desc->file;
+	struct address_space *mapping = file->f_mapping;
+
+	if (!mapping->a_ops->read_folio)
+		return -ENOEXEC;
+	file_accessed(file);
+	desc->vm_ops = &generic_file_vm_ops;
+	return 0;
+}
+
 /*
  * This is for filesystems which do not implement ->writepage.
  */
@@ -3856,6 +3868,13 @@ int generic_file_readonly_mmap(struct file *file, struct vm_area_struct *vma)
 		return -EINVAL;
 	return generic_file_mmap(file, vma);
 }
+
+int generic_file_readonly_mmap_prepare(struct vm_area_desc *desc)
+{
+	if (is_shared_maywrite(desc->vm_flags))
+		return -EINVAL;
+	return generic_file_mmap_prepare(desc);
+}
 #else
 vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)
 {
@@ -3865,15 +3884,25 @@ int generic_file_mmap(struct file *file, struct vm_area_struct *vma)
 {
 	return -ENOSYS;
 }
+int generic_file_mmap_prepare(struct vm_area_desc *desc)
+{
+	return -ENOSYS;
+}
 int generic_file_readonly_mmap(struct file *file, struct vm_area_struct *vma)
 {
 	return -ENOSYS;
 }
+int generic_file_readonly_mmap_prepare(struct vm_area_desc *desc)
+{
+	return -ENOSYS;
+}
 #endif /* CONFIG_MMU */
 
 EXPORT_SYMBOL(filemap_page_mkwrite);
 EXPORT_SYMBOL(generic_file_mmap);
+EXPORT_SYMBOL(generic_file_mmap_prepare);
 EXPORT_SYMBOL(generic_file_readonly_mmap);
+EXPORT_SYMBOL(generic_file_readonly_mmap_prepare);
 
 static struct folio *do_read_cache_folio(struct address_space *mapping,
 		pgoff_t index, filler_t filler, struct file *file, gfp_t gfp)
#26 lore raw

PATCH 8/10 fs: convert simple use of generic_file_*_mmap() to .mmap_prepare()

In reply to Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

We have provided generic .mmap_prepare() equivalents, so update all file systems that specify these directly in their file_operations structures.

This updates 9p, adfs, affs, bfs, fat, hfs, hfsplus, hostfs, hpfs, jffs2, jfs, minix, omfs, ramfs and ufs file systems directly.

It updates generic_ro_fops which impacts qnx4, cramfs, befs, squashfs, frebxfs, qnx6, efs, romfs, erofs and isofs file systems.

There are remaining file systems which use generic hooks in a less direct way which we address in a subsequent commit.

---
 fs/9p/vfs_file.c        | 2 +-
 fs/adfs/file.c          | 2 +-
 fs/affs/file.c          | 2 +-
 fs/bfs/file.c           | 2 +-
 fs/fat/file.c           | 2 +-
 fs/hfs/inode.c          | 2 +-
 fs/hfsplus/inode.c      | 2 +-
 fs/hostfs/hostfs_kern.c | 2 +-
 fs/hpfs/file.c          | 2 +-
 fs/jffs2/file.c         | 2 +-
 fs/jfs/file.c           | 2 +-
 fs/minix/file.c         | 2 +-
 fs/omfs/file.c          | 2 +-
 fs/ramfs/file-mmu.c     | 2 +-
 fs/read_write.c         | 2 +-
 fs/ufs/file.c           | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)
fs/9p/vfs_file.c +1 -1
index 348cc90bf9c5..2ff3e0ac7266 100644
@@ -516,7 +516,7 @@ const struct file_operations v9fs_file_operations = {
 	.open = v9fs_file_open,
 	.release = v9fs_dir_release,
 	.lock = v9fs_file_lock,
-	.mmap = generic_file_readonly_mmap,
+	.mmap_prepare = generic_file_readonly_mmap_prepare,
 	.splice_read = v9fs_file_splice_read,
 	.splice_write = iter_file_splice_write,
 	.fsync = v9fs_file_fsync,
fs/adfs/file.c +1 -1
index ee80718aaeec..cd13165fd904 100644
@@ -25,7 +25,7 @@
 const struct file_operations adfs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.fsync		= generic_file_fsync,
 	.write_iter	= generic_file_write_iter,
 	.splice_read	= filemap_splice_read,
fs/affs/file.c +1 -1
index 7a71018e3f67..fbac204b7055 100644
@@ -999,7 +999,7 @@ const struct file_operations affs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.open		= affs_file_open,
 	.release	= affs_file_release,
 	.fsync		= affs_file_fsync,
fs/bfs/file.c +1 -1
index fa66a09e496a..6685c3411fe7 100644
@@ -27,7 +27,7 @@ const struct file_operations bfs_file_operations = {
 	.llseek 	= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 };
 
fs/fat/file.c +1 -1
index e887e9ab7472..4fc49a614fb8 100644
@@ -204,7 +204,7 @@ const struct file_operations fat_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.release	= fat_file_release,
 	.unlocked_ioctl	= fat_generic_ioctl,
 	.compat_ioctl	= compat_ptr_ioctl,
fs/hfs/inode.c +1 -1
index a81ce7a740b9..d419586d668d 100644
@@ -690,7 +690,7 @@ static const struct file_operations hfs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 	.fsync		= hfs_file_fsync,
 	.open		= hfs_file_open,
fs/hfsplus/inode.c +1 -1
index f331e9574217..0af7e302730c 100644
@@ -366,7 +366,7 @@ static const struct file_operations hfsplus_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 	.fsync		= hfsplus_file_fsync,
 	.open		= hfsplus_file_open,
fs/hostfs/hostfs_kern.c +1 -1
index 702c41317589..bc22b6cc72af 100644
@@ -382,7 +382,7 @@ static const struct file_operations hostfs_file_fops = {
 	.splice_write	= iter_file_splice_write,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.open		= hostfs_open,
 	.release	= hostfs_file_release,
 	.fsync		= hostfs_fsync,
fs/hpfs/file.c +1 -1
index 449a3fc1b8d9..a1a44e3edb19 100644
@@ -255,7 +255,7 @@ const struct file_operations hpfs_file_ops =
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.release	= hpfs_file_release,
 	.fsync		= hpfs_file_fsync,
 	.splice_read	= filemap_splice_read,
fs/jffs2/file.c +1 -1
index 13c18ccc13b0..1e05f7fe5dd4 100644
@@ -54,7 +54,7 @@ const struct file_operations jffs2_file_operations =
  	.read_iter =	generic_file_read_iter,
  	.write_iter =	generic_file_write_iter,
 	.unlocked_ioctl=jffs2_ioctl,
-	.mmap =		generic_file_readonly_mmap,
+	.mmap_prepare =	generic_file_readonly_mmap_prepare,
 	.fsync =	jffs2_fsync,
 	.splice_read =	filemap_splice_read,
 	.splice_write = iter_file_splice_write,
fs/jfs/file.c +1 -1
index 01b6912e60f8..5e47951db630 100644
@@ -143,7 +143,7 @@ const struct file_operations jfs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 	.splice_write	= iter_file_splice_write,
 	.fsync		= jfs_fsync,
fs/minix/file.c +1 -1
index 906d192ab7f3..dca7ac71f049 100644
@@ -17,7 +17,7 @@ const struct file_operations minix_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.fsync		= generic_file_fsync,
 	.splice_read	= filemap_splice_read,
 };
fs/omfs/file.c +1 -1
index 98358d405b6a..319c04e63964 100644
@@ -332,7 +332,7 @@ const struct file_operations omfs_file_operations = {
 	.llseek = generic_file_llseek,
 	.read_iter = generic_file_read_iter,
 	.write_iter = generic_file_write_iter,
-	.mmap = generic_file_mmap,
+	.mmap_prepare = generic_file_mmap_prepare,
 	.fsync = generic_file_fsync,
 	.splice_read = filemap_splice_read,
 };
fs/ramfs/file-mmu.c +1 -1
index b45c7edc3225..b11f5b20b78b 100644
@@ -41,7 +41,7 @@ static unsigned long ramfs_mmu_get_unmapped_area(struct file *file,
 const struct file_operations ramfs_file_operations = {
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.fsync		= noop_fsync,
 	.splice_read	= filemap_splice_read,
 	.splice_write	= iter_file_splice_write,
fs/read_write.c +1 -1
index 0ef70e128c4a..80fdab99f9e4 100644
@@ -28,7 +28,7 @@
 const struct file_operations generic_ro_fops = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
-	.mmap		= generic_file_readonly_mmap,
+	.mmap_prepare	= generic_file_readonly_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 };
 
fs/ufs/file.c +1 -1
index 487ad1fc2de6..c2a391c17df7 100644
@@ -38,7 +38,7 @@ const struct file_operations ufs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.open           = generic_file_open,
 	.fsync		= generic_file_fsync,
 	.splice_read	= filemap_splice_read,
Signature · 1 line
2.49.0
Reviewed-by on v1 8/10
#27 lore raw

Re: [PATCH 08/10] fs: convert simple use of generic_file_*_mmap() to .mmap_prepare()

Quoted 119 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

We have provided generic .mmap_prepare() equivalents, so update all file systems that specify these directly in their file_operations structures.

This updates 9p, adfs, affs, bfs, fat, hfs, hfsplus, hostfs, hpfs, jffs2, jfs, minix, omfs, ramfs and ufs file systems directly.

It updates generic_ro_fops which impacts qnx4, cramfs, befs, squashfs, frebxfs, qnx6, efs, romfs, erofs and isofs file systems.

There are remaining file systems which use generic hooks in a less direct way which we address in a subsequent commit.

---
 fs/9p/vfs_file.c        | 2 +-
 fs/adfs/file.c          | 2 +-
 fs/affs/file.c          | 2 +-
 fs/bfs/file.c           | 2 +-
 fs/fat/file.c           | 2 +-
 fs/hfs/inode.c          | 2 +-
 fs/hfsplus/inode.c      | 2 +-
 fs/hostfs/hostfs_kern.c | 2 +-
 fs/hpfs/file.c          | 2 +-
 fs/jffs2/file.c         | 2 +-
 fs/jfs/file.c           | 2 +-
 fs/minix/file.c         | 2 +-
 fs/omfs/file.c          | 2 +-
 fs/ramfs/file-mmu.c     | 2 +-
 fs/read_write.c         | 2 +-
 fs/ufs/file.c           | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)
fs/9p/vfs_file.c +1 -1
index 348cc90bf9c5..2ff3e0ac7266 100644
@@ -516,7 +516,7 @@ const struct file_operations v9fs_file_operations = {
 	.open = v9fs_file_open,
 	.release = v9fs_dir_release,
 	.lock = v9fs_file_lock,
-	.mmap = generic_file_readonly_mmap,
+	.mmap_prepare = generic_file_readonly_mmap_prepare,
 	.splice_read = v9fs_file_splice_read,
 	.splice_write = iter_file_splice_write,
 	.fsync = v9fs_file_fsync,
fs/adfs/file.c +1 -1
index ee80718aaeec..cd13165fd904 100644
@@ -25,7 +25,7 @@
 const struct file_operations adfs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.fsync		= generic_file_fsync,
 	.write_iter	= generic_file_write_iter,
 	.splice_read	= filemap_splice_read,
fs/affs/file.c +1 -1
index 7a71018e3f67..fbac204b7055 100644
@@ -999,7 +999,7 @@ const struct file_operations affs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.open		= affs_file_open,
 	.release	= affs_file_release,
 	.fsync		= affs_file_fsync,
fs/bfs/file.c +1 -1
index fa66a09e496a..6685c3411fe7 100644
@@ -27,7 +27,7 @@ const struct file_operations bfs_file_operations = {
 	.llseek 	= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 };
 
fs/fat/file.c +1 -1
index e887e9ab7472..4fc49a614fb8 100644
@@ -204,7 +204,7 @@ const struct file_operations fat_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.release	= fat_file_release,
 	.unlocked_ioctl	= fat_generic_ioctl,
 	.compat_ioctl	= compat_ptr_ioctl,
fs/hfs/inode.c +1 -1
index a81ce7a740b9..d419586d668d 100644
@@ -690,7 +690,7 @@ static const struct file_operations hfs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 	.fsync		= hfs_file_fsync,
 	.open		= hfs_file_open,
fs/hfsplus/inode.c +0 -0
index f331e9574217..0af7e302730c 100644

fs/hfsplus/inode.c static const struct file_operations hfsplus_file_operations = { · line 372

Quoted 8 lines
fs/hfsplus/inode.c +1 -1
@@ -366,7 +366,7 @@ static const struct file_operations hfsplus_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 	.fsync		= hfsplus_file_fsync,
 	.open		= hfsplus_file_open,

Looks good for HFS/HFS+.

Thanks,
Slava.

Quoted 117 lines
fs/hostfs/hostfs_kern.c +1 -1
index 702c41317589..bc22b6cc72af 100644
@@ -382,7 +382,7 @@ static const struct file_operations hostfs_file_fops = {
 	.splice_write	= iter_file_splice_write,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.open		= hostfs_open,
 	.release	= hostfs_file_release,
 	.fsync		= hostfs_fsync,
fs/hpfs/file.c +1 -1
index 449a3fc1b8d9..a1a44e3edb19 100644
@@ -255,7 +255,7 @@ const struct file_operations hpfs_file_ops =
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.release	= hpfs_file_release,
 	.fsync		= hpfs_file_fsync,
 	.splice_read	= filemap_splice_read,
fs/jffs2/file.c +1 -1
index 13c18ccc13b0..1e05f7fe5dd4 100644
@@ -54,7 +54,7 @@ const struct file_operations jffs2_file_operations =
  	.read_iter =	generic_file_read_iter,
  	.write_iter =	generic_file_write_iter,
 	.unlocked_ioctl=jffs2_ioctl,
-	.mmap =		generic_file_readonly_mmap,
+	.mmap_prepare =	generic_file_readonly_mmap_prepare,
 	.fsync =	jffs2_fsync,
 	.splice_read =	filemap_splice_read,
 	.splice_write = iter_file_splice_write,
fs/jfs/file.c +1 -1
index 01b6912e60f8..5e47951db630 100644
@@ -143,7 +143,7 @@ const struct file_operations jfs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 	.splice_write	= iter_file_splice_write,
 	.fsync		= jfs_fsync,
fs/minix/file.c +1 -1
index 906d192ab7f3..dca7ac71f049 100644
@@ -17,7 +17,7 @@ const struct file_operations minix_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.fsync		= generic_file_fsync,
 	.splice_read	= filemap_splice_read,
 };
fs/omfs/file.c +1 -1
index 98358d405b6a..319c04e63964 100644
@@ -332,7 +332,7 @@ const struct file_operations omfs_file_operations = {
 	.llseek = generic_file_llseek,
 	.read_iter = generic_file_read_iter,
 	.write_iter = generic_file_write_iter,
-	.mmap = generic_file_mmap,
+	.mmap_prepare = generic_file_mmap_prepare,
 	.fsync = generic_file_fsync,
 	.splice_read = filemap_splice_read,
 };
fs/ramfs/file-mmu.c +1 -1
index b45c7edc3225..b11f5b20b78b 100644
@@ -41,7 +41,7 @@ static unsigned long ramfs_mmu_get_unmapped_area(struct file *file,
 const struct file_operations ramfs_file_operations = {
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.fsync		= noop_fsync,
 	.splice_read	= filemap_splice_read,
 	.splice_write	= iter_file_splice_write,
fs/read_write.c +1 -1
index 0ef70e128c4a..80fdab99f9e4 100644
@@ -28,7 +28,7 @@
 const struct file_operations generic_ro_fops = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
-	.mmap		= generic_file_readonly_mmap,
+	.mmap_prepare	= generic_file_readonly_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 };
 
fs/ufs/file.c +1 -1
index 487ad1fc2de6..c2a391c17df7 100644
@@ -38,7 +38,7 @@ const struct file_operations ufs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.open           = generic_file_open,
 	.fsync		= generic_file_fsync,
 	.splice_read	= filemap_splice_read,
Signature · 1 line
Viacheslav Dubeyko <[email protected]>
maintainer Reviewed-by on v1 8/10
#28 lore raw

Re: [PATCH 08/10] fs: convert simple use of generic_file_*_mmap() to .mmap_prepare()

In reply to Lorenzo Stoakes
Quoted 10 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

We have provided generic .mmap_prepare() equivalents, so update all file systems that specify these directly in their file_operations structures.

This updates 9p, adfs, affs, bfs, fat, hfs, hfsplus, hostfs, hpfs, jffs2, jfs, minix, omfs, ramfs and ufs file systems directly.

Quoted 7 lines

It updates generic_ro_fops which impacts qnx4, cramfs, befs, squashfs, frebxfs, qnx6, efs, romfs, erofs and isofs file systems.

There are remaining file systems which use generic hooks in a less direct way which we address in a subsequent commit.

Looks good. Feel free to add:

Honza

Quoted 230 lines
---
 fs/9p/vfs_file.c        | 2 +-
 fs/adfs/file.c          | 2 +-
 fs/affs/file.c          | 2 +-
 fs/bfs/file.c           | 2 +-
 fs/fat/file.c           | 2 +-
 fs/hfs/inode.c          | 2 +-
 fs/hfsplus/inode.c      | 2 +-
 fs/hostfs/hostfs_kern.c | 2 +-
 fs/hpfs/file.c          | 2 +-
 fs/jffs2/file.c         | 2 +-
 fs/jfs/file.c           | 2 +-
 fs/minix/file.c         | 2 +-
 fs/omfs/file.c          | 2 +-
 fs/ramfs/file-mmu.c     | 2 +-
 fs/read_write.c         | 2 +-
 fs/ufs/file.c           | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)
fs/9p/vfs_file.c +1 -1
index 348cc90bf9c5..2ff3e0ac7266 100644
@@ -516,7 +516,7 @@ const struct file_operations v9fs_file_operations = {
 	.open = v9fs_file_open,
 	.release = v9fs_dir_release,
 	.lock = v9fs_file_lock,
-	.mmap = generic_file_readonly_mmap,
+	.mmap_prepare = generic_file_readonly_mmap_prepare,
 	.splice_read = v9fs_file_splice_read,
 	.splice_write = iter_file_splice_write,
 	.fsync = v9fs_file_fsync,
fs/adfs/file.c +1 -1
index ee80718aaeec..cd13165fd904 100644
@@ -25,7 +25,7 @@
 const struct file_operations adfs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.fsync		= generic_file_fsync,
 	.write_iter	= generic_file_write_iter,
 	.splice_read	= filemap_splice_read,
fs/affs/file.c +1 -1
index 7a71018e3f67..fbac204b7055 100644
@@ -999,7 +999,7 @@ const struct file_operations affs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.open		= affs_file_open,
 	.release	= affs_file_release,
 	.fsync		= affs_file_fsync,
fs/bfs/file.c +1 -1
index fa66a09e496a..6685c3411fe7 100644
@@ -27,7 +27,7 @@ const struct file_operations bfs_file_operations = {
 	.llseek 	= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 };
 
fs/fat/file.c +1 -1
index e887e9ab7472..4fc49a614fb8 100644
@@ -204,7 +204,7 @@ const struct file_operations fat_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.release	= fat_file_release,
 	.unlocked_ioctl	= fat_generic_ioctl,
 	.compat_ioctl	= compat_ptr_ioctl,
fs/hfs/inode.c +1 -1
index a81ce7a740b9..d419586d668d 100644
@@ -690,7 +690,7 @@ static const struct file_operations hfs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 	.fsync		= hfs_file_fsync,
 	.open		= hfs_file_open,
fs/hfsplus/inode.c +1 -1
index f331e9574217..0af7e302730c 100644
@@ -366,7 +366,7 @@ static const struct file_operations hfsplus_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 	.fsync		= hfsplus_file_fsync,
 	.open		= hfsplus_file_open,
fs/hostfs/hostfs_kern.c +1 -1
index 702c41317589..bc22b6cc72af 100644
@@ -382,7 +382,7 @@ static const struct file_operations hostfs_file_fops = {
 	.splice_write	= iter_file_splice_write,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.open		= hostfs_open,
 	.release	= hostfs_file_release,
 	.fsync		= hostfs_fsync,
fs/hpfs/file.c +1 -1
index 449a3fc1b8d9..a1a44e3edb19 100644
@@ -255,7 +255,7 @@ const struct file_operations hpfs_file_ops =
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.release	= hpfs_file_release,
 	.fsync		= hpfs_file_fsync,
 	.splice_read	= filemap_splice_read,
fs/jffs2/file.c +1 -1
index 13c18ccc13b0..1e05f7fe5dd4 100644
@@ -54,7 +54,7 @@ const struct file_operations jffs2_file_operations =
  	.read_iter =	generic_file_read_iter,
  	.write_iter =	generic_file_write_iter,
 	.unlocked_ioctl=jffs2_ioctl,
-	.mmap =		generic_file_readonly_mmap,
+	.mmap_prepare =	generic_file_readonly_mmap_prepare,
 	.fsync =	jffs2_fsync,
 	.splice_read =	filemap_splice_read,
 	.splice_write = iter_file_splice_write,
fs/jfs/file.c +1 -1
index 01b6912e60f8..5e47951db630 100644
@@ -143,7 +143,7 @@ const struct file_operations jfs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 	.splice_write	= iter_file_splice_write,
 	.fsync		= jfs_fsync,
fs/minix/file.c +1 -1
index 906d192ab7f3..dca7ac71f049 100644
@@ -17,7 +17,7 @@ const struct file_operations minix_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.fsync		= generic_file_fsync,
 	.splice_read	= filemap_splice_read,
 };
fs/omfs/file.c +1 -1
index 98358d405b6a..319c04e63964 100644
@@ -332,7 +332,7 @@ const struct file_operations omfs_file_operations = {
 	.llseek = generic_file_llseek,
 	.read_iter = generic_file_read_iter,
 	.write_iter = generic_file_write_iter,
-	.mmap = generic_file_mmap,
+	.mmap_prepare = generic_file_mmap_prepare,
 	.fsync = generic_file_fsync,
 	.splice_read = filemap_splice_read,
 };
fs/ramfs/file-mmu.c +1 -1
index b45c7edc3225..b11f5b20b78b 100644
@@ -41,7 +41,7 @@ static unsigned long ramfs_mmu_get_unmapped_area(struct file *file,
 const struct file_operations ramfs_file_operations = {
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.fsync		= noop_fsync,
 	.splice_read	= filemap_splice_read,
 	.splice_write	= iter_file_splice_write,
fs/read_write.c +1 -1
index 0ef70e128c4a..80fdab99f9e4 100644
@@ -28,7 +28,7 @@
 const struct file_operations generic_ro_fops = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
-	.mmap		= generic_file_readonly_mmap,
+	.mmap_prepare	= generic_file_readonly_mmap_prepare,
 	.splice_read	= filemap_splice_read,
 };
 
fs/ufs/file.c +1 -1
index 487ad1fc2de6..c2a391c17df7 100644
@@ -38,7 +38,7 @@ const struct file_operations ufs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= generic_file_read_iter,
 	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
 	.open           = generic_file_open,
 	.fsync		= generic_file_fsync,
 	.splice_read	= filemap_splice_read,
Signature · 1 line
2.49.0
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
Acked-by on v1 8/10
#29 lore raw

Re: [PATCH 08/10] fs: convert simple use of generic_file_*_mmap() to .mmap_prepare()

In reply to Lorenzo Stoakes
Quoted 10 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

We have provided generic .mmap_prepare() equivalents, so update all file systems that specify these directly in their file_operations structures.

This updates 9p, adfs, affs, bfs, fat, hfs, hfsplus, hostfs, hpfs, jffs2, jfs, minix, omfs, ramfs and ufs file systems directly.

Quoted 7 lines

It updates generic_ro_fops which impacts qnx4, cramfs, befs, squashfs, frebxfs, qnx6, efs, romfs, erofs and isofs file systems.

There are remaining file systems which use generic hooks in a less direct way which we address in a subsequent commit.

For JFS,

Quoted 227 lines
---
  fs/9p/vfs_file.c        | 2 +-
  fs/adfs/file.c          | 2 +-
  fs/affs/file.c          | 2 +-
  fs/bfs/file.c           | 2 +-
  fs/fat/file.c           | 2 +-
  fs/hfs/inode.c          | 2 +-
  fs/hfsplus/inode.c      | 2 +-
  fs/hostfs/hostfs_kern.c | 2 +-
  fs/hpfs/file.c          | 2 +-
  fs/jffs2/file.c         | 2 +-
  fs/jfs/file.c           | 2 +-
  fs/minix/file.c         | 2 +-
  fs/omfs/file.c          | 2 +-
  fs/ramfs/file-mmu.c     | 2 +-
  fs/read_write.c         | 2 +-
  fs/ufs/file.c           | 2 +-
  16 files changed, 16 insertions(+), 16 deletions(-)
fs/9p/vfs_file.c +1 -1
index 348cc90bf9c5..2ff3e0ac7266 100644
@@ -516,7 +516,7 @@ const struct file_operations v9fs_file_operations = {
  	.open = v9fs_file_open,
  	.release = v9fs_dir_release,
  	.lock = v9fs_file_lock,
-	.mmap = generic_file_readonly_mmap,
+	.mmap_prepare = generic_file_readonly_mmap_prepare,
  	.splice_read = v9fs_file_splice_read,
  	.splice_write = iter_file_splice_write,
  	.fsync = v9fs_file_fsync,
fs/adfs/file.c +1 -1
index ee80718aaeec..cd13165fd904 100644
@@ -25,7 +25,7 @@
  const struct file_operations adfs_file_operations = {
  	.llseek		= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.fsync		= generic_file_fsync,
  	.write_iter	= generic_file_write_iter,
  	.splice_read	= filemap_splice_read,
fs/affs/file.c +1 -1
index 7a71018e3f67..fbac204b7055 100644
@@ -999,7 +999,7 @@ const struct file_operations affs_file_operations = {
  	.llseek		= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.open		= affs_file_open,
  	.release	= affs_file_release,
  	.fsync		= affs_file_fsync,
fs/bfs/file.c +1 -1
index fa66a09e496a..6685c3411fe7 100644
@@ -27,7 +27,7 @@ const struct file_operations bfs_file_operations = {
  	.llseek 	= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.splice_read	= filemap_splice_read,
  };
 
fs/fat/file.c +1 -1
index e887e9ab7472..4fc49a614fb8 100644
@@ -204,7 +204,7 @@ const struct file_operations fat_file_operations = {
  	.llseek		= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.release	= fat_file_release,
  	.unlocked_ioctl	= fat_generic_ioctl,
  	.compat_ioctl	= compat_ptr_ioctl,
fs/hfs/inode.c +1 -1
index a81ce7a740b9..d419586d668d 100644
@@ -690,7 +690,7 @@ static const struct file_operations hfs_file_operations = {
  	.llseek		= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.splice_read	= filemap_splice_read,
  	.fsync		= hfs_file_fsync,
  	.open		= hfs_file_open,
fs/hfsplus/inode.c +1 -1
index f331e9574217..0af7e302730c 100644
@@ -366,7 +366,7 @@ static const struct file_operations hfsplus_file_operations = {
  	.llseek		= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.splice_read	= filemap_splice_read,
  	.fsync		= hfsplus_file_fsync,
  	.open		= hfsplus_file_open,
fs/hostfs/hostfs_kern.c +1 -1
index 702c41317589..bc22b6cc72af 100644
@@ -382,7 +382,7 @@ static const struct file_operations hostfs_file_fops = {
  	.splice_write	= iter_file_splice_write,
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.open		= hostfs_open,
  	.release	= hostfs_file_release,
  	.fsync		= hostfs_fsync,
fs/hpfs/file.c +1 -1
index 449a3fc1b8d9..a1a44e3edb19 100644
@@ -255,7 +255,7 @@ const struct file_operations hpfs_file_ops =
  	.llseek		= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.release	= hpfs_file_release,
  	.fsync		= hpfs_file_fsync,
  	.splice_read	= filemap_splice_read,
fs/jffs2/file.c +1 -1
index 13c18ccc13b0..1e05f7fe5dd4 100644
@@ -54,7 +54,7 @@ const struct file_operations jffs2_file_operations =
   	.read_iter =	generic_file_read_iter,
   	.write_iter =	generic_file_write_iter,
  	.unlocked_ioctl=jffs2_ioctl,
-	.mmap =		generic_file_readonly_mmap,
+	.mmap_prepare =	generic_file_readonly_mmap_prepare,
  	.fsync =	jffs2_fsync,
  	.splice_read =	filemap_splice_read,
  	.splice_write = iter_file_splice_write,
fs/jfs/file.c +1 -1
index 01b6912e60f8..5e47951db630 100644
@@ -143,7 +143,7 @@ const struct file_operations jfs_file_operations = {
  	.llseek		= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.splice_read	= filemap_splice_read,
  	.splice_write	= iter_file_splice_write,
  	.fsync		= jfs_fsync,
fs/minix/file.c +1 -1
index 906d192ab7f3..dca7ac71f049 100644
@@ -17,7 +17,7 @@ const struct file_operations minix_file_operations = {
  	.llseek		= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.fsync		= generic_file_fsync,
  	.splice_read	= filemap_splice_read,
  };
fs/omfs/file.c +1 -1
index 98358d405b6a..319c04e63964 100644
@@ -332,7 +332,7 @@ const struct file_operations omfs_file_operations = {
  	.llseek = generic_file_llseek,
  	.read_iter = generic_file_read_iter,
  	.write_iter = generic_file_write_iter,
-	.mmap = generic_file_mmap,
+	.mmap_prepare = generic_file_mmap_prepare,
  	.fsync = generic_file_fsync,
  	.splice_read = filemap_splice_read,
  };
fs/ramfs/file-mmu.c +1 -1
index b45c7edc3225..b11f5b20b78b 100644
@@ -41,7 +41,7 @@ static unsigned long ramfs_mmu_get_unmapped_area(struct file *file,
  const struct file_operations ramfs_file_operations = {
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.fsync		= noop_fsync,
  	.splice_read	= filemap_splice_read,
  	.splice_write	= iter_file_splice_write,
fs/read_write.c +1 -1
index 0ef70e128c4a..80fdab99f9e4 100644
@@ -28,7 +28,7 @@
  const struct file_operations generic_ro_fops = {
  	.llseek		= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
-	.mmap		= generic_file_readonly_mmap,
+	.mmap_prepare	= generic_file_readonly_mmap_prepare,
  	.splice_read	= filemap_splice_read,
  };
 
fs/ufs/file.c +1 -1
index 487ad1fc2de6..c2a391c17df7 100644
@@ -38,7 +38,7 @@ const struct file_operations ufs_file_operations = {
  	.llseek		= generic_file_llseek,
  	.read_iter	= generic_file_read_iter,
  	.write_iter	= generic_file_write_iter,
-	.mmap		= generic_file_mmap,
+	.mmap_prepare	= generic_file_mmap_prepare,
  	.open           = generic_file_open,
  	.fsync		= generic_file_fsync,
  	.splice_read	= filemap_splice_read,
#30 lore raw

PATCH 9/10 fs: convert most other generic_file_*mmap() users to .mmap_prepare()

In reply to Lorenzo Stoakes

Update nearly all generic_file_mmap() and generic_file_readonly_mmap() callers to use generic_file_mmap_prepare() and generic_file_readonly_mmap_prepare() respectively.

We update blkdev, 9p, afs, erofs, ext2, nfs, ntfs3, smb, ubifs and vboxsf file systems this way.

Remaining users we cannot yet update are ecryptfs, fuse and cramfs. The former two are nested file systems that must support any underlying file ssytem, and cramfs inserts a mixed mapping which currently requires a VMA.

Once all file systems have been converted to mmap_prepare(), we can then update nested file systems.

---
 block/fops.c           |  9 +++++----
 fs/9p/vfs_file.c       | 11 ++++++-----
 fs/afs/file.c          | 11 ++++++-----
 fs/erofs/data.c        | 16 +++++++++-------
 fs/ext2/file.c         | 12 +++++++-----
 fs/nfs/file.c          | 13 +++++++------
 fs/nfs/internal.h      |  2 +-
 fs/nfs/nfs4file.c      |  2 +-
 fs/ntfs3/file.c        | 15 ++++++++-------
 fs/smb/client/cifsfs.c | 12 ++++++------
 fs/smb/client/cifsfs.h |  4 ++--
 fs/smb/client/file.c   | 14 ++++++++------
 fs/ubifs/file.c        |  8 ++++----
 fs/vboxsf/file.c       |  8 ++++----
 14 files changed, 74 insertions(+), 63 deletions(-)
block/fops.c +5 -4
index 1309861d4c2c..5a0ebc81e489 100644
@@ -911,14 +911,15 @@ static long blkdev_fallocate(struct file *file, int mode, loff_t start,
 	return error;
 }
 
-static int blkdev_mmap(struct file *file, struct vm_area_struct *vma)
+static int blkdev_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct inode *bd_inode = bdev_file_inode(file);
 
 	if (bdev_read_only(I_BDEV(bd_inode)))
-		return generic_file_readonly_mmap(file, vma);
+		return generic_file_readonly_mmap_prepare(desc);
 
-	return generic_file_mmap(file, vma);
+	return generic_file_mmap_prepare(desc);
 }
 
 const struct file_operations def_blk_fops = {
@@ -928,7 +929,7 @@ const struct file_operations def_blk_fops = {
 	.read_iter	= blkdev_read_iter,
 	.write_iter	= blkdev_write_iter,
 	.iopoll		= iocb_bio_iopoll,
-	.mmap		= blkdev_mmap,
+	.mmap_prepare	= blkdev_mmap_prepare,
 	.fsync		= blkdev_fsync,
 	.unlocked_ioctl	= blkdev_ioctl,
 #ifdef CONFIG_COMPAT
fs/9p/vfs_file.c +6 -5
index 2ff3e0ac7266..eb0b083da269 100644
@@ -454,9 +454,10 @@ int v9fs_file_fsync_dotl(struct file *filp, loff_t start, loff_t end,
 }
 
 static int
-v9fs_file_mmap(struct file *filp, struct vm_area_struct *vma)
+v9fs_file_mmap_prepare(struct vm_area_desc *desc)
 {
 	int retval;
+	struct file *filp = desc->file;
 	struct inode *inode = file_inode(filp);
 	struct v9fs_session_info *v9ses = v9fs_inode2v9ses(inode);
 
@@ -464,12 +465,12 @@ v9fs_file_mmap(struct file *filp, struct vm_area_struct *vma)
 
 	if (!(v9ses->cache & CACHE_WRITEBACK)) {
 		p9_debug(P9_DEBUG_CACHE, "(read-only mmap mode)");
-		return generic_file_readonly_mmap(filp, vma);
+		return generic_file_readonly_mmap_prepare(desc);
 	}
 
-	retval = generic_file_mmap(filp, vma);
+	retval = generic_file_mmap_prepare(desc);
 	if (!retval)
-		vma->vm_ops = &v9fs_mmap_file_vm_ops;
+		desc->vm_ops = &v9fs_mmap_file_vm_ops;
 
 	return retval;
 }
@@ -531,7 +532,7 @@ const struct file_operations v9fs_file_operations_dotl = {
 	.release = v9fs_dir_release,
 	.lock = v9fs_file_lock_dotl,
 	.flock = v9fs_file_flock_dotl,
-	.mmap = v9fs_file_mmap,
+	.mmap_prepare = v9fs_file_mmap_prepare,
 	.splice_read = v9fs_file_splice_read,
 	.splice_write = iter_file_splice_write,
 	.fsync = v9fs_file_fsync_dotl,
fs/afs/file.c +6 -5
index fc15497608c6..aa899292979b 100644
@@ -19,7 +19,7 @@
 #include <trace/events/netfs.h>
 #include "internal.h"
 
-static int afs_file_mmap(struct file *file, struct vm_area_struct *vma);
+static int afs_file_mmap_prepare(struct vm_area_desc *desc);
 
 static ssize_t afs_file_read_iter(struct kiocb *iocb, struct iov_iter *iter);
 static ssize_t afs_file_splice_read(struct file *in, loff_t *ppos,
@@ -35,7 +35,7 @@ const struct file_operations afs_file_operations = {
 	.llseek		= generic_file_llseek,
 	.read_iter	= afs_file_read_iter,
 	.write_iter	= netfs_file_write_iter,
-	.mmap		= afs_file_mmap,
+	.mmap_prepare	= afs_file_mmap_prepare,
 	.splice_read	= afs_file_splice_read,
 	.splice_write	= iter_file_splice_write,
 	.fsync		= afs_fsync,
@@ -492,16 +492,17 @@ static void afs_drop_open_mmap(struct afs_vnode *vnode)
 /*
  * Handle setting up a memory mapping on an AFS file.
  */
-static int afs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int afs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct afs_vnode *vnode = AFS_FS_I(file_inode(file));
 	int ret;
 
 	afs_add_open_mmap(vnode);
 
-	ret = generic_file_mmap(file, vma);
+	ret = generic_file_mmap_prepare(desc);
 	if (ret == 0)
-		vma->vm_ops = &afs_vm_ops;
+		desc->vm_ops = &afs_vm_ops;
 	else
 		afs_drop_open_mmap(vnode);
 	return ret;
fs/erofs/data.c +9 -7
index 6a329c329f43..52dfd1a44c43 100644
@@ -409,20 +409,22 @@ static const struct vm_operations_struct erofs_dax_vm_ops = {
 	.huge_fault	= erofs_dax_huge_fault,
 };
 
-static int erofs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int erofs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
+
 	if (!IS_DAX(file_inode(file)))
-		return generic_file_readonly_mmap(file, vma);
+		return generic_file_readonly_mmap_prepare(desc);
 
-	if ((vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_MAYWRITE))
+	if ((desc->vm_flags & VM_SHARED) && (desc->vm_flags & VM_MAYWRITE))
 		return -EINVAL;
 
-	vma->vm_ops = &erofs_dax_vm_ops;
-	vm_flags_set(vma, VM_HUGEPAGE);
+	desc->vm_ops = &erofs_dax_vm_ops;
+	desc->vm_flags |= VM_HUGEPAGE;
 	return 0;
 }
 #else
-#define erofs_file_mmap	generic_file_readonly_mmap
+#define erofs_file_mmap_prepare	generic_file_readonly_mmap_prepare
 #endif
 
 static loff_t erofs_file_llseek(struct file *file, loff_t offset, int whence)
@@ -452,7 +454,7 @@ static loff_t erofs_file_llseek(struct file *file, loff_t offset, int whence)
 const struct file_operations erofs_file_fops = {
 	.llseek		= erofs_file_llseek,
 	.read_iter	= erofs_file_read_iter,
-	.mmap		= erofs_file_mmap,
+	.mmap_prepare	= erofs_file_mmap_prepare,
 	.get_unmapped_area = thp_get_unmapped_area,
 	.splice_read	= filemap_splice_read,
 };
fs/ext2/file.c +7 -5
index 10b061ac5bc0..76bddce462fc 100644
@@ -122,17 +122,19 @@ static const struct vm_operations_struct ext2_dax_vm_ops = {
 	.pfn_mkwrite	= ext2_dax_fault,
 };
 
-static int ext2_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int ext2_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
+
 	if (!IS_DAX(file_inode(file)))
-		return generic_file_mmap(file, vma);
+		return generic_file_mmap_prepare(desc);
 
 	file_accessed(file);
-	vma->vm_ops = &ext2_dax_vm_ops;
+	desc->vm_ops = &ext2_dax_vm_ops;
 	return 0;
 }
 #else
-#define ext2_file_mmap	generic_file_mmap
+#define ext2_file_mmap_prepare	generic_file_mmap_prepare
 #endif
 
 /*
@@ -316,7 +318,7 @@ const struct file_operations ext2_file_operations = {
 #ifdef CONFIG_COMPAT
 	.compat_ioctl	= ext2_compat_ioctl,
 #endif
-	.mmap		= ext2_file_mmap,
+	.mmap_prepare	= ext2_file_mmap_prepare,
 	.open		= ext2_file_open,
 	.release	= ext2_release_file,
 	.fsync		= ext2_fsync,
fs/nfs/file.c +7 -6
index 033feeab8c34..b51b75cf981d 100644
@@ -207,24 +207,25 @@ nfs_file_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe
 EXPORT_SYMBOL_GPL(nfs_file_splice_read);
 
 int
-nfs_file_mmap(struct file *file, struct vm_area_struct *vma)
+nfs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct inode *inode = file_inode(file);
 	int	status;
 
 	dprintk("NFS: mmap(%pD2)\n", file);
 
-	/* Note: generic_file_mmap() returns ENOSYS on nommu systems
+	/* Note: generic_file_mmap_prepare() returns ENOSYS on nommu systems
 	 *       so we call that before revalidating the mapping
 	 */
-	status = generic_file_mmap(file, vma);
+	status = generic_file_mmap_prepare(desc);
 	if (!status) {
-		vma->vm_ops = &nfs_file_vm_ops;
+		desc->vm_ops = &nfs_file_vm_ops;
 		status = nfs_revalidate_mapping(inode, file->f_mapping);
 	}
 	return status;
 }
-EXPORT_SYMBOL_GPL(nfs_file_mmap);
+EXPORT_SYMBOL_GPL(nfs_file_mmap_prepare);
 
 /*
  * Flush any dirty pages for this process, and check for write errors.
@@ -899,7 +900,7 @@ const struct file_operations nfs_file_operations = {
 	.llseek		= nfs_file_llseek,
 	.read_iter	= nfs_file_read,
 	.write_iter	= nfs_file_write,
-	.mmap		= nfs_file_mmap,
+	.mmap_prepare	= nfs_file_mmap_prepare,
 	.open		= nfs_file_open,
 	.flush		= nfs_file_flush,
 	.release	= nfs_file_release,
fs/nfs/internal.h +1 -1
index 69c2c10ee658..26551ff09a52 100644
@@ -432,7 +432,7 @@ loff_t nfs_file_llseek(struct file *, loff_t, int);
 ssize_t nfs_file_read(struct kiocb *, struct iov_iter *);
 ssize_t nfs_file_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe,
 			     size_t len, unsigned int flags);
-int nfs_file_mmap(struct file *, struct vm_area_struct *);
+int nfs_file_mmap_prepare(struct vm_area_desc *);
 ssize_t nfs_file_write(struct kiocb *, struct iov_iter *);
 int nfs_file_release(struct inode *, struct file *);
 int nfs_lock(struct file *, int, struct file_lock *);
fs/nfs/nfs4file.c +1 -1
index 5e9d66f3466c..5c749b6117bb 100644
@@ -456,7 +456,7 @@ static int nfs4_setlease(struct file *file, int arg, struct file_lease **lease,
 const struct file_operations nfs4_file_operations = {
 	.read_iter	= nfs_file_read,
 	.write_iter	= nfs_file_write,
-	.mmap		= nfs_file_mmap,
+	.mmap_prepare	= nfs_file_mmap_prepare,
 	.open		= nfs4_file_open,
 	.flush		= nfs4_file_flush,
 	.release	= nfs_file_release,
fs/ntfs3/file.c +8 -7
index 1e99a35691cd..7f2ec1c7106c 100644
@@ -261,14 +261,15 @@ static int ntfs_zero_range(struct inode *inode, u64 vbo, u64 vbo_to)
 }
 
 /*
- * ntfs_file_mmap - file_operations::mmap
+ * ntfs_file_mmap_prepare - file_operations::mmap_prepare
  */
-static int ntfs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int ntfs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct inode *inode = file_inode(file);
 	struct ntfs_inode *ni = ntfs_i(inode);
-	u64 from = ((u64)vma->vm_pgoff << PAGE_SHIFT);
-	bool rw = vma->vm_flags & VM_WRITE;
+	u64 from = ((u64)desc->pgoff << PAGE_SHIFT);
+	bool rw = desc->vm_flags & VM_WRITE;
 	int err;
 
 	if (unlikely(ntfs3_forced_shutdown(inode->i_sb)))
@@ -291,7 +292,7 @@ static int ntfs_file_mmap(struct file *file, struct vm_area_struct *vma)
 
 	if (rw) {
 		u64 to = min_t(loff_t, i_size_read(inode),
-			       from + vma->vm_end - vma->vm_start);
+			       from + desc->end - desc->start);
 
 		if (is_sparsed(ni)) {
 			/* Allocate clusters for rw map. */
@@ -319,7 +320,7 @@ static int ntfs_file_mmap(struct file *file, struct vm_area_struct *vma)
 		}
 	}
 
-	err = generic_file_mmap(file, vma);
+	err = generic_file_mmap_prepare(desc);
 out:
 	return err;
 }
@@ -1331,7 +1332,7 @@ const struct file_operations ntfs_file_operations = {
 #endif
 	.splice_read	= ntfs_file_splice_read,
 	.splice_write	= ntfs_file_splice_write,
-	.mmap		= ntfs_file_mmap,
+	.mmap_prepare	= ntfs_file_mmap_prepare,
 	.open		= ntfs_file_open,
 	.fsync		= generic_file_fsync,
 	.fallocate	= ntfs_fallocate,
fs/smb/client/cifsfs.c +6 -6
index 0a5266ecfd15..d1e6b5cf7d99 100644
@@ -1525,7 +1525,7 @@ const struct file_operations cifs_file_ops = {
 	.flock = cifs_flock,
 	.fsync = cifs_fsync,
 	.flush = cifs_flush,
-	.mmap  = cifs_file_mmap,
+	.mmap_prepare = cifs_file_mmap_prepare,
 	.splice_read = filemap_splice_read,
 	.splice_write = iter_file_splice_write,
 	.llseek = cifs_llseek,
@@ -1545,7 +1545,7 @@ const struct file_operations cifs_file_strict_ops = {
 	.flock = cifs_flock,
 	.fsync = cifs_strict_fsync,
 	.flush = cifs_flush,
-	.mmap = cifs_file_strict_mmap,
+	.mmap_prepare = cifs_file_strict_mmap_prepare,
 	.splice_read = filemap_splice_read,
 	.splice_write = iter_file_splice_write,
 	.llseek = cifs_llseek,
@@ -1565,7 +1565,7 @@ const struct file_operations cifs_file_direct_ops = {
 	.flock = cifs_flock,
 	.fsync = cifs_fsync,
 	.flush = cifs_flush,
-	.mmap = cifs_file_mmap,
+	.mmap_prepare = cifs_file_mmap_prepare,
 	.splice_read = copy_splice_read,
 	.splice_write = iter_file_splice_write,
 	.unlocked_ioctl  = cifs_ioctl,
@@ -1583,7 +1583,7 @@ const struct file_operations cifs_file_nobrl_ops = {
 	.release = cifs_close,
 	.fsync = cifs_fsync,
 	.flush = cifs_flush,
-	.mmap  = cifs_file_mmap,
+	.mmap_prepare = cifs_file_mmap_prepare,
 	.splice_read = filemap_splice_read,
 	.splice_write = iter_file_splice_write,
 	.llseek = cifs_llseek,
@@ -1601,7 +1601,7 @@ const struct file_operations cifs_file_strict_nobrl_ops = {
 	.release = cifs_close,
 	.fsync = cifs_strict_fsync,
 	.flush = cifs_flush,
-	.mmap = cifs_file_strict_mmap,
+	.mmap_prepare = cifs_file_strict_mmap_prepare,
 	.splice_read = filemap_splice_read,
 	.splice_write = iter_file_splice_write,
 	.llseek = cifs_llseek,
@@ -1619,7 +1619,7 @@ const struct file_operations cifs_file_direct_nobrl_ops = {
 	.release = cifs_close,
 	.fsync = cifs_fsync,
 	.flush = cifs_flush,
-	.mmap = cifs_file_mmap,
+	.mmap_prepare = cifs_file_mmap_prepare,
 	.splice_read = copy_splice_read,
 	.splice_write = iter_file_splice_write,
 	.unlocked_ioctl  = cifs_ioctl,
fs/smb/client/cifsfs.h +2 -2
index b9ec9fe16a98..487f39cff77e 100644
@@ -103,8 +103,8 @@ extern int cifs_lock(struct file *, int, struct file_lock *);
 extern int cifs_fsync(struct file *, loff_t, loff_t, int);
 extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int);
 extern int cifs_flush(struct file *, fl_owner_t id);
-extern int cifs_file_mmap(struct file *file, struct vm_area_struct *vma);
-extern int cifs_file_strict_mmap(struct file *file, struct vm_area_struct *vma);
+int cifs_file_mmap_prepare(struct vm_area_desc *desc);
+int cifs_file_strict_mmap_prepare(struct vm_area_desc *desc);
 extern const struct file_operations cifs_dir_ops;
 extern int cifs_readdir(struct file *file, struct dir_context *ctx);
 
fs/smb/client/file.c +8 -6
index 9835672267d2..2ed5173cfa73 100644
@@ -2995,8 +2995,9 @@ static const struct vm_operations_struct cifs_file_vm_ops = {
 	.page_mkwrite = cifs_page_mkwrite,
 };
 
-int cifs_file_strict_mmap(struct file *file, struct vm_area_struct *vma)
+int cifs_file_strict_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	int xid, rc = 0;
 	struct inode *inode = file_inode(file);
 
@@ -3005,16 +3006,17 @@ int cifs_file_strict_mmap(struct file *file, struct vm_area_struct *vma)
 	if (!CIFS_CACHE_READ(CIFS_I(inode)))
 		rc = cifs_zap_mapping(inode);
 	if (!rc)
-		rc = generic_file_mmap(file, vma);
+		rc = generic_file_mmap_prepare(desc);
 	if (!rc)
-		vma->vm_ops = &cifs_file_vm_ops;
+		desc->vm_ops = &cifs_file_vm_ops;
 
 	free_xid(xid);
 	return rc;
 }
 
-int cifs_file_mmap(struct file *file, struct vm_area_struct *vma)
+int cifs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	int rc, xid;
 
 	xid = get_xid();
@@ -3024,9 +3026,9 @@ int cifs_file_mmap(struct file *file, struct vm_area_struct *vma)
 		cifs_dbg(FYI, "Validation prior to mmap failed, error=%d\n",
 			 rc);
 	if (!rc)
-		rc = generic_file_mmap(file, vma);
+		rc = generic_file_mmap_prepare(desc);
 	if (!rc)
-		vma->vm_ops = &cifs_file_vm_ops;
+		desc->vm_ops = &cifs_file_vm_ops;
 
 	free_xid(xid);
 	return rc;
fs/ubifs/file.c +4 -4
index bf311c38d9a8..9dcb69fbf5c2 100644
@@ -1579,17 +1579,17 @@ static const struct vm_operations_struct ubifs_file_vm_ops = {
 	.page_mkwrite = ubifs_vm_page_mkwrite,
 };
 
-static int ubifs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int ubifs_file_mmap_prepare(struct vm_area_desc *desc)
 {
 	int err;
 
-	err = generic_file_mmap(file, vma);
+	err = generic_file_mmap_prepare(desc);
 	if (err)
 		return err;
 	vma->vm_ops = &ubifs_file_vm_ops;
 
 	if (IS_ENABLED(CONFIG_UBIFS_ATIME_SUPPORT))
-		file_accessed(file);
+		file_accessed(desc->file);
 
 	return 0;
 }
@@ -1652,7 +1652,7 @@ const struct file_operations ubifs_file_operations = {
 	.llseek         = generic_file_llseek,
 	.read_iter      = generic_file_read_iter,
 	.write_iter     = ubifs_write_iter,
-	.mmap           = ubifs_file_mmap,
+	.mmap_prepare   = ubifs_file_mmap_prepare,
 	.fsync          = ubifs_fsync,
 	.unlocked_ioctl = ubifs_ioctl,
 	.splice_read	= filemap_splice_read,
fs/vboxsf/file.c +4 -4
index b492794f8e9a..82afb9430033 100644
@@ -165,13 +165,13 @@ static const struct vm_operations_struct vboxsf_file_vm_ops = {
 	.map_pages	= filemap_map_pages,
 };
 
-static int vboxsf_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int vboxsf_file_mmap_prepare(struct vm_area_desc *desc)
 {
 	int err;
 
-	err = generic_file_mmap(file, vma);
+	err = generic_file_mmap_prepare(desc);
 	if (!err)
-		vma->vm_ops = &vboxsf_file_vm_ops;
+		desc->vm_ops = &vboxsf_file_vm_ops;
 
 	return err;
 }
@@ -213,7 +213,7 @@ const struct file_operations vboxsf_reg_fops = {
 	.llseek = generic_file_llseek,
 	.read_iter = generic_file_read_iter,
 	.write_iter = generic_file_write_iter,
-	.mmap = vboxsf_file_mmap,
+	.mmap_prepare = vboxsf_file_mmap_prepare,
 	.open = vboxsf_file_open,
 	.release = vboxsf_file_release,
 	.fsync = noop_fsync,
Signature · 1 line
2.49.0
#31 lore raw

Re: [PATCH 09/10] fs: convert most other generic_file_*mmap() users to .mmap_prepare()

kernel test robot noticed the following build errors:

Hi Lorenzo,

kernel test robot noticed the following build errors:

[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on cifs/for-next linus/master v6.16-rc2 next-20250616]
[cannot apply to brauner-vfs/vfs.all trondmy-nfs/linux-next ceph-client/testing ceph-client/for-linus] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Lorenzo-Stoakes/mm-rename-call_mmap-mmap_prepare-to-vfs_mmap-mmap_prepare/20250617-033629
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/08db85970d89b17a995d2cffae96fb4cc462377f.1750099179.git.lorenzo.stoakes%40oracle.com
patch subject: [PATCH 09/10] fs: convert most other generic_file_*mmap() users to .mmap_prepare()
config: i386-buildonly-randconfig-004-20250617 (https://download.01.org/0day-ci/archive/20250617/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250617/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

fs/ubifs/file.c: In function 'ubifs_file_mmap_prepare':

>> fs/ubifs/file.c:1589:9: error: 'vma' undeclared (first use in this function); did you mean 'vmap'?
    1589 |         vma->vm_ops = &ubifs_file_vm_ops;
         |         ^~~
         |         vmap

fs/ubifs/file.c:1589:9: note: each undeclared identifier is reported only once for each function it appears in

vim +1589 fs/ubifs/file.c

1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1581  
de03a8cfdadf57d Lorenzo Stoakes  2025-06-16  1582  static int ubifs_file_mmap_prepare(struct vm_area_desc *desc)
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1583  {
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1584  	int err;
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1585  
de03a8cfdadf57d Lorenzo Stoakes  2025-06-16  1586  	err = generic_file_mmap_prepare(desc);
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1587  	if (err)
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1588  		return err;
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14 @1589  	vma->vm_ops = &ubifs_file_vm_ops;
e3d73dead4988f3 Sascha Hauer     2019-03-26  1590  
e3d73dead4988f3 Sascha Hauer     2019-03-26  1591  	if (IS_ENABLED(CONFIG_UBIFS_ATIME_SUPPORT))
de03a8cfdadf57d Lorenzo Stoakes  2025-06-16  1592  		file_accessed(desc->file);
e3d73dead4988f3 Sascha Hauer     2019-03-26  1593  
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1594  	return 0;
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1595  }
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1596  
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#32 lore raw

Re: [PATCH 09/10] fs: convert most other generic_file_*mmap() users to .mmap_prepare()

Quoted 24 lines · kernel test robot

Hi Lorenzo,

kernel test robot noticed the following build errors:

[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on cifs/for-next linus/master v6.16-rc2 next-20250616]
[cannot apply to brauner-vfs/vfs.all trondmy-nfs/linux-next ceph-client/testing ceph-client/for-linus] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Lorenzo-Stoakes/mm-rename-call_mmap-mmap_prepare-to-vfs_mmap-mmap_prepare/20250617-033629
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/08db85970d89b17a995d2cffae96fb4cc462377f.1750099179.git.lorenzo.stoakes%40oracle.com
patch subject: [PATCH 09/10] fs: convert most other generic_file_*mmap() users to .mmap_prepare()
config: i386-buildonly-randconfig-004-20250617 (https://download.01.org/0day-ci/archive/20250617/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250617/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

Quoted 8 lines

All errors (new ones prefixed by >>):

fs/ubifs/file.c: In function 'ubifs_file_mmap_prepare':

Quoted 1 line
Quoted 1 line

fs/ubifs/file.c:1589:9: error: 'vma' undeclared (first use in this function); did you mean 'vmap'?

    1589 |         vma->vm_ops = &ubifs_file_vm_ops;
         |         ^~~
         |         vmap

fs/ubifs/file.c:1589:9: note: each undeclared identifier is reported only once for each function it appears in

Thanks Andrew I see you fixed this up! A silly typo on my part...

Quoted 24 lines

vim +1589 fs/ubifs/file.c

1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1581
de03a8cfdadf57d Lorenzo Stoakes  2025-06-16  1582  static int ubifs_file_mmap_prepare(struct vm_area_desc *desc)
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1583  {
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1584  	int err;
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1585
de03a8cfdadf57d Lorenzo Stoakes  2025-06-16  1586  	err = generic_file_mmap_prepare(desc);
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1587  	if (err)
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1588  		return err;
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14 @1589  	vma->vm_ops = &ubifs_file_vm_ops;
e3d73dead4988f3 Sascha Hauer     2019-03-26  1590
e3d73dead4988f3 Sascha Hauer     2019-03-26  1591  	if (IS_ENABLED(CONFIG_UBIFS_ATIME_SUPPORT))
de03a8cfdadf57d Lorenzo Stoakes  2025-06-16  1592  		file_accessed(desc->file);
e3d73dead4988f3 Sascha Hauer     2019-03-26  1593
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1594  	return 0;
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1595  }
1e51764a3c2ac05 Artem Bityutskiy 2008-07-14  1596

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

maintainer
#33 lore raw

Re: [PATCH 09/10] fs: convert most other generic_file_*mmap() users to .mmap_prepare()

In reply to Lorenzo Stoakes
Quoted 7 lines · Lorenzo Stoakes

Update nearly all generic_file_mmap() and generic_file_readonly_mmap() callers to use generic_file_mmap_prepare() and generic_file_readonly_mmap_prepare() respectively.

We update blkdev, 9p, afs, erofs, ext2, nfs, ntfs3, smb, ubifs and vboxsf file systems this way.

Quoted 8 lines

Remaining users we cannot yet update are ecryptfs, fuse and cramfs. The former two are nested file systems that must support any underlying file ssytem, and cramfs inserts a mixed mapping which currently requires a VMA.

Once all file systems have been converted to mmap_prepare(), we can then update nested file systems.

Overall the patch looks good. Just a couple of notes regarding pointless local variable being created...

Quoted 22 lines
---
 block/fops.c           |  9 +++++----
 fs/9p/vfs_file.c       | 11 ++++++-----
 fs/afs/file.c          | 11 ++++++-----
 fs/erofs/data.c        | 16 +++++++++-------
 fs/ext2/file.c         | 12 +++++++-----
 fs/nfs/file.c          | 13 +++++++------
 fs/nfs/internal.h      |  2 +-
 fs/nfs/nfs4file.c      |  2 +-
 fs/ntfs3/file.c        | 15 ++++++++-------
 fs/smb/client/cifsfs.c | 12 ++++++------
 fs/smb/client/cifsfs.h |  4 ++--
 fs/smb/client/file.c   | 14 ++++++++------
 fs/ubifs/file.c        |  8 ++++----
 fs/vboxsf/file.c       |  8 ++++----
 14 files changed, 74 insertions(+), 63 deletions(-)
block/fops.c +0 -0
index 1309861d4c2c..5a0ebc81e489 100644

block/fops.c static long blkdev_fallocate(struct file *file, int mode, loff_t start, · line 917

Quoted 8 lines
block/fops.c +2 -1
@@ -911,14 +911,15 @@ static long blkdev_fallocate(struct file *file, int mode, loff_t start,
 	return error;
 }
 
-static int blkdev_mmap(struct file *file, struct vm_area_struct *vma)
+static int blkdev_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct inode *bd_inode = bdev_file_inode(file);

I guess no need to create 'file' variable here since it has only one use in the line above...

Quoted 10 lines
block/fops.c +2 -2
 	if (bdev_read_only(I_BDEV(bd_inode)))
-		return generic_file_readonly_mmap(file, vma);
+		return generic_file_readonly_mmap_prepare(desc);
 
-	return generic_file_mmap(file, vma);
+	return generic_file_mmap_prepare(desc);
 }
 
 const struct file_operations def_blk_fops = {

...

block/fops.c static void afs_drop_open_mmap(struct afs_vnode *vnode) · line 498

Quoted 9 lines
block/fops.c +2 -1
@@ -492,16 +492,17 @@ static void afs_drop_open_mmap(struct afs_vnode *vnode)
 /*
  * Handle setting up a memory mapping on an AFS file.
  */
-static int afs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int afs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct afs_vnode *vnode = AFS_FS_I(file_inode(file));

Same comment about pointless local variable here as well.

Quoted 17 lines
block/fops.c +2 -2
 	int ret;
 
 	afs_add_open_mmap(vnode);
 
-	ret = generic_file_mmap(file, vma);
+	ret = generic_file_mmap_prepare(desc);
 	if (ret == 0)
-		vma->vm_ops = &afs_vm_ops;
+		desc->vm_ops = &afs_vm_ops;
 	else
 		afs_drop_open_mmap(vnode);
 	return ret;
fs/erofs/data.c +0 -0
index 6a329c329f43..52dfd1a44c43 100644

fs/erofs/data.c static const struct vm_operations_struct erofs_dax_vm_ops = { · line 416

Quoted 9 lines
fs/erofs/data.c +3 -1
@@ -409,20 +409,22 @@ static const struct vm_operations_struct erofs_dax_vm_ops = {
 	.huge_fault	= erofs_dax_huge_fault,
 };
 
-static int erofs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int erofs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
+
 	if (!IS_DAX(file_inode(file)))

And here...

Quoted 13 lines
fs/erofs/data.c +4 -4
-		return generic_file_readonly_mmap(file, vma);
+		return generic_file_readonly_mmap_prepare(desc);
 
-	if ((vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_MAYWRITE))
+	if ((desc->vm_flags & VM_SHARED) && (desc->vm_flags & VM_MAYWRITE))
 		return -EINVAL;
 
-	vma->vm_ops = &erofs_dax_vm_ops;
-	vm_flags_set(vma, VM_HUGEPAGE);
+	desc->vm_ops = &erofs_dax_vm_ops;
+	desc->vm_flags |= VM_HUGEPAGE;
 	return 0;
 }

...

Quoted 5 lines
fs/smb/client/file.c +0 -0
index 9835672267d2..2ed5173cfa73 100644

fs/smb/client/file.c static const struct vm_operations_struct cifs_file_vm_ops = { · line 3002

Quoted 9 lines
fs/smb/client/file.c +2 -1
@@ -2995,8 +2995,9 @@ static const struct vm_operations_struct cifs_file_vm_ops = {
 	.page_mkwrite = cifs_page_mkwrite,
 };
 
-int cifs_file_strict_mmap(struct file *file, struct vm_area_struct *vma)
+int cifs_file_strict_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	int xid, rc = 0;
 	struct inode *inode = file_inode(file);

Again pointless local variable 'file' here.

Quoted 10 lines
fs/smb/client/file.c +2 -2
@@ -3005,16 +3006,17 @@ int cifs_file_strict_mmap(struct file *file, struct vm_area_struct *vma)
 	if (!CIFS_CACHE_READ(CIFS_I(inode)))
 		rc = cifs_zap_mapping(inode);
 	if (!rc)
-		rc = generic_file_mmap(file, vma);
+		rc = generic_file_mmap_prepare(desc);
 	if (!rc)
-		vma->vm_ops = &cifs_file_vm_ops;
+		desc->vm_ops = &cifs_file_vm_ops;

fs/smb/client/file.c int cifs_file_strict_mmap(struct file *file, struct vm_area_struct *vma) · line 3020

Quoted 10 lines
fs/smb/client/file.c +2 -1
 
 	free_xid(xid);
 	return rc;
 }
 
-int cifs_file_mmap(struct file *file, struct vm_area_struct *vma)
+int cifs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	int rc, xid;

And here (the only use is in cifs_revalidate_file(file)).

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#34 lore raw

Re: [PATCH 09/10] fs: convert most other generic_file_*mmap() users to .mmap_prepare()

Quoted 45 lines · Jan Kara
Quoted 7 lines · Lorenzo Stoakes

Update nearly all generic_file_mmap() and generic_file_readonly_mmap() callers to use generic_file_mmap_prepare() and generic_file_readonly_mmap_prepare() respectively.

We update blkdev, 9p, afs, erofs, ext2, nfs, ntfs3, smb, ubifs and vboxsf file systems this way.

Quoted 8 lines

Remaining users we cannot yet update are ecryptfs, fuse and cramfs. The former two are nested file systems that must support any underlying file ssytem, and cramfs inserts a mixed mapping which currently requires a VMA.

Once all file systems have been converted to mmap_prepare(), we can then update nested file systems.

Overall the patch looks good. Just a couple of notes regarding pointless local variable being created...

Quoted 25 lines
---
 block/fops.c           |  9 +++++----
 fs/9p/vfs_file.c       | 11 ++++++-----
 fs/afs/file.c          | 11 ++++++-----
 fs/erofs/data.c        | 16 +++++++++-------
 fs/ext2/file.c         | 12 +++++++-----
 fs/nfs/file.c          | 13 +++++++------
 fs/nfs/internal.h      |  2 +-
 fs/nfs/nfs4file.c      |  2 +-
 fs/ntfs3/file.c        | 15 ++++++++-------
 fs/smb/client/cifsfs.c | 12 ++++++------
 fs/smb/client/cifsfs.h |  4 ++--
 fs/smb/client/file.c   | 14 ++++++++------
 fs/ubifs/file.c        |  8 ++++----
 fs/vboxsf/file.c       |  8 ++++----
 14 files changed, 74 insertions(+), 63 deletions(-)
block/fops.c +0 -0
index 1309861d4c2c..5a0ebc81e489 100644
@@ -911,14 +911,15 @@ static long blkdev_fallocate(struct file *file, int mode, loff_t start,
 	return error;
 }
 
Quoted 8 lines

block/fops.c static long blkdev_fallocate(struct file *file, int mode, loff_t start, · line 917

Quoted 5 lines
block/fops.c +2 -1
-static int blkdev_mmap(struct file *file, struct vm_area_struct *vma)
+static int blkdev_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct inode *bd_inode = bdev_file_inode(file);

I guess no need to create 'file' variable here since it has only one use in the line above...

Agreed, fixed in-tree.

Quoted 7 lines

block/fops.c static long blkdev_fallocate(struct file *file, int mode, loff_t start, · line 921

Quoted 5 lines
block/fops.c +2 -1
-static int afs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int afs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct afs_vnode *vnode = AFS_FS_I(file_inode(file));

Same comment about pointless local variable here as well.

Same.

Quoted 8 lines

block/fops.c static long blkdev_fallocate(struct file *file, int mode, loff_t start,

Quoted 6 lines
block/fops.c +3 -1
-static int erofs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int erofs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
+
 	if (!IS_DAX(file_inode(file)))

And here...

Same.

Quoted 8 lines

block/fops.c

Quoted 6 lines
block/fops.c +2 -1
-int cifs_file_strict_mmap(struct file *file, struct vm_area_struct *vma)
+int cifs_file_strict_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	int xid, rc = 0;
 	struct inode *inode = file_inode(file);

Again pointless local variable 'file' here.

Same.

Quoted 7 lines

block/fops.c

Quoted 5 lines
block/fops.c +2 -1
-int cifs_file_mmap(struct file *file, struct vm_area_struct *vma)
+int cifs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	int rc, xid;

And here (the only use is in cifs_revalidate_file(file)).

Same.

#35 lore raw

PATCH 10/10 fs: replace mmap hook with .mmap_prepare for simple mappings

In reply to Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

In this patch we apply this change to file systems with relatively simple mmap() hook logic - exfat, ceph, f2fs, bcachefs, zonefs, btrfs, ocfs2, orangefs, nilfs2, romfs, ramfs and aio.

---
 fs/aio.c              |  8 ++++----
 fs/bcachefs/fs.c      |  8 ++++----
 fs/btrfs/file.c       |  7 ++++---
 fs/ceph/addr.c        |  5 +++--
 fs/ceph/file.c        |  2 +-
 fs/ceph/super.h       |  2 +-
 fs/exfat/file.c       |  7 ++++---
 fs/f2fs/file.c        |  7 ++++---
 fs/nilfs2/file.c      |  8 ++++----
 fs/ocfs2/file.c       |  4 ++--
 fs/ocfs2/mmap.c       |  5 +++--
 fs/ocfs2/mmap.h       |  2 +-
 fs/orangefs/file.c    | 10 ++++++----
 fs/ramfs/file-nommu.c | 12 ++++++------
 fs/romfs/mmap-nommu.c |  6 +++---
 fs/zonefs/file.c      | 10 ++++++----
 16 files changed, 56 insertions(+), 47 deletions(-)
fs/aio.c +4 -4
index 793b7b15ec4b..7fc7b6221312 100644
@@ -392,15 +392,15 @@ static const struct vm_operations_struct aio_ring_vm_ops = {
 #endif
 };
 
-static int aio_ring_mmap(struct file *file, struct vm_area_struct *vma)
+static int aio_ring_mmap_prepare(struct vm_area_desc *desc)
 {
-	vm_flags_set(vma, VM_DONTEXPAND);
-	vma->vm_ops = &aio_ring_vm_ops;
+	desc->vm_flags |= VM_DONTEXPAND;
+	desc->vm_ops = &aio_ring_vm_ops;
 	return 0;
 }
 
 static const struct file_operations aio_ring_fops = {
-	.mmap = aio_ring_mmap,
+	.mmap_prepare = aio_ring_mmap_prepare,
 };
 
 #if IS_ENABLED(CONFIG_MIGRATION)
fs/bcachefs/fs.c +4 -4
index 3063a8ddc2df..9c2238edc0e3 100644
@@ -1553,11 +1553,11 @@ static const struct vm_operations_struct bch_vm_ops = {
 	.page_mkwrite   = bch2_page_mkwrite,
 };
 
-static int bch2_mmap(struct file *file, struct vm_area_struct *vma)
+static int bch2_mmap_prepare(struct vm_area_desc *desc)
 {
-	file_accessed(file);
+	file_accessed(desc->file);
 
-	vma->vm_ops = &bch_vm_ops;
+	desc->vm_ops = &bch_vm_ops;
 	return 0;
 }
 
@@ -1740,7 +1740,7 @@ static const struct file_operations bch_file_operations = {
 	.llseek		= bch2_llseek,
 	.read_iter	= bch2_read_iter,
 	.write_iter	= bch2_write_iter,
-	.mmap		= bch2_mmap,
+	.mmap_prepare	= bch2_mmap_prepare,
 	.get_unmapped_area = thp_get_unmapped_area,
 	.fsync		= bch2_fsync,
 	.splice_read	= filemap_splice_read,
fs/btrfs/file.c +4 -3
index 8ce6f45f45e0..06bd30b35b95 100644
@@ -1978,15 +1978,16 @@ static const struct vm_operations_struct btrfs_file_vm_ops = {
 	.page_mkwrite	= btrfs_page_mkwrite,
 };
 
-static int btrfs_file_mmap(struct file	*filp, struct vm_area_struct *vma)
+static int btrfs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *filp = desc->file;
 	struct address_space *mapping = filp->f_mapping;
 
 	if (!mapping->a_ops->read_folio)
 		return -ENOEXEC;
 
 	file_accessed(filp);
-	vma->vm_ops = &btrfs_file_vm_ops;
+	desc->vm_ops = &btrfs_file_vm_ops;
 
 	return 0;
 }
@@ -3765,7 +3766,7 @@ const struct file_operations btrfs_file_operations = {
 	.splice_read	= filemap_splice_read,
 	.write_iter	= btrfs_file_write_iter,
 	.splice_write	= iter_file_splice_write,
-	.mmap		= btrfs_file_mmap,
+	.mmap_prepare	= btrfs_file_mmap_prepare,
 	.open		= btrfs_file_open,
 	.release	= btrfs_release_file,
 	.get_unmapped_area = thp_get_unmapped_area,
fs/ceph/addr.c +3 -2
index 60a621b00c65..37522137c380 100644
@@ -2330,13 +2330,14 @@ static const struct vm_operations_struct ceph_vmops = {
 	.page_mkwrite	= ceph_page_mkwrite,
 };
 
-int ceph_mmap(struct file *file, struct vm_area_struct *vma)
+int ceph_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct address_space *mapping = file->f_mapping;
 
 	if (!mapping->a_ops->read_folio)
 		return -ENOEXEC;
-	vma->vm_ops = &ceph_vmops;
+	desc->vm_ops = &ceph_vmops;
 	return 0;
 }
 
fs/ceph/file.c +1 -1
index d5c674d2ba8a..41b8ec33e864 100644
@@ -3170,7 +3170,7 @@ const struct file_operations ceph_file_fops = {
 	.llseek = ceph_llseek,
 	.read_iter = ceph_read_iter,
 	.write_iter = ceph_write_iter,
-	.mmap = ceph_mmap,
+	.mmap_prepare = ceph_mmap_prepare,
 	.fsync = ceph_fsync,
 	.lock = ceph_lock,
 	.setlease = simple_nosetlease,
fs/ceph/super.h +1 -1
index bb0db0cc8003..cf176aab0f82 100644
@@ -1286,7 +1286,7 @@ extern void __ceph_touch_fmode(struct ceph_inode_info *ci,
 /* addr.c */
 extern const struct address_space_operations ceph_aops;
 extern const struct netfs_request_ops ceph_netfs_ops;
-extern int ceph_mmap(struct file *file, struct vm_area_struct *vma);
+int ceph_mmap_prepare(struct vm_area_desc *desc);
 extern int ceph_uninline_data(struct file *file);
 extern int ceph_pool_perm_check(struct inode *inode, int need);
 extern void ceph_pool_perm_destroy(struct ceph_mds_client* mdsc);
fs/exfat/file.c +4 -3
index 841a5b18e3df..d63213c8a823 100644
@@ -683,13 +683,14 @@ static const struct vm_operations_struct exfat_file_vm_ops = {
 	.page_mkwrite	= exfat_page_mkwrite,
 };
 
-static int exfat_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int exfat_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	if (unlikely(exfat_forced_shutdown(file_inode(file)->i_sb)))
 		return -EIO;
 
 	file_accessed(file);
-	vma->vm_ops = &exfat_file_vm_ops;
+	desc->vm_ops = &exfat_file_vm_ops;
 	return 0;
 }
 
@@ -710,7 +711,7 @@ const struct file_operations exfat_file_operations = {
 #ifdef CONFIG_COMPAT
 	.compat_ioctl = exfat_compat_ioctl,
 #endif
-	.mmap		= exfat_file_mmap,
+	.mmap_prepare	= exfat_file_mmap_prepare,
 	.fsync		= exfat_file_fsync,
 	.splice_read	= exfat_splice_read,
 	.splice_write	= iter_file_splice_write,
fs/f2fs/file.c +4 -3
index 6bd3de64f2a8..7af2b49b7e8a 100644
@@ -532,8 +532,9 @@ static loff_t f2fs_llseek(struct file *file, loff_t offset, int whence)
 	return -EINVAL;
 }
 
-static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int f2fs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct inode *inode = file_inode(file);
 
 	if (unlikely(f2fs_cp_error(F2FS_I_SB(inode))))
@@ -543,7 +544,7 @@ static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)
 		return -EOPNOTSUPP;
 
 	file_accessed(file);
-	vma->vm_ops = &f2fs_file_vm_ops;
+	desc->vm_ops = &f2fs_file_vm_ops;
 
 	f2fs_down_read(&F2FS_I(inode)->i_sem);
 	set_inode_flag(inode, FI_MMAP_FILE);
@@ -5376,7 +5377,7 @@ const struct file_operations f2fs_file_operations = {
 	.iopoll		= iocb_bio_iopoll,
 	.open		= f2fs_file_open,
 	.release	= f2fs_release_file,
-	.mmap		= f2fs_file_mmap,
+	.mmap_prepare	= f2fs_file_mmap_prepare,
 	.flush		= f2fs_file_flush,
 	.fsync		= f2fs_sync_file,
 	.fallocate	= f2fs_fallocate,
fs/nilfs2/file.c +4 -4
index 0e3fc5ba33c7..1b8d754db44d 100644
@@ -125,10 +125,10 @@ static const struct vm_operations_struct nilfs_file_vm_ops = {
 	.page_mkwrite	= nilfs_page_mkwrite,
 };
 
-static int nilfs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int nilfs_file_mmap_prepare(struct vm_area_desc *desc)
 {
-	file_accessed(file);
-	vma->vm_ops = &nilfs_file_vm_ops;
+	file_accessed(desc->file);
+	desc->vm_ops = &nilfs_file_vm_ops;
 	return 0;
 }
 
@@ -144,7 +144,7 @@ const struct file_operations nilfs_file_operations = {
 #ifdef CONFIG_COMPAT
 	.compat_ioctl	= nilfs_compat_ioctl,
 #endif	/* CONFIG_COMPAT */
-	.mmap		= nilfs_file_mmap,
+	.mmap_prepare	= nilfs_file_mmap_prepare,
 	.open		= generic_file_open,
 	/* .release	= nilfs_release_file, */
 	.fsync		= nilfs_sync_file,
fs/ocfs2/file.c +2 -2
index 2056cf08ac1e..21d797ccccd0 100644
@@ -2800,7 +2800,7 @@ const struct inode_operations ocfs2_special_file_iops = {
  */
 const struct file_operations ocfs2_fops = {
 	.llseek		= ocfs2_file_llseek,
-	.mmap		= ocfs2_mmap,
+	.mmap_prepare	= ocfs2_mmap_prepare,
 	.fsync		= ocfs2_sync_file,
 	.release	= ocfs2_file_release,
 	.open		= ocfs2_file_open,
@@ -2850,7 +2850,7 @@ const struct file_operations ocfs2_dops = {
  */
 const struct file_operations ocfs2_fops_no_plocks = {
 	.llseek		= ocfs2_file_llseek,
-	.mmap		= ocfs2_mmap,
+	.mmap_prepare	= ocfs2_mmap_prepare,
 	.fsync		= ocfs2_sync_file,
 	.release	= ocfs2_file_release,
 	.open		= ocfs2_file_open,
fs/ocfs2/mmap.c +3 -2
index 6a314e9f2b49..50e2faf64c19 100644
@@ -159,8 +159,9 @@ static const struct vm_operations_struct ocfs2_file_vm_ops = {
 	.page_mkwrite	= ocfs2_page_mkwrite,
 };
 
-int ocfs2_mmap(struct file *file, struct vm_area_struct *vma)
+int ocfs2_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	int ret = 0, lock_level = 0;
 
 	ret = ocfs2_inode_lock_atime(file_inode(file),
@@ -171,7 +172,7 @@ int ocfs2_mmap(struct file *file, struct vm_area_struct *vma)
 	}
 	ocfs2_inode_unlock(file_inode(file), lock_level);
 out:
-	vma->vm_ops = &ocfs2_file_vm_ops;
+	desc->vm_ops = &ocfs2_file_vm_ops;
 	return 0;
 }
 
fs/ocfs2/mmap.h +1 -1
index 1051507cc684..d21c30de6b8c 100644
@@ -2,6 +2,6 @@
 #ifndef OCFS2_MMAP_H
 #define OCFS2_MMAP_H
 
-int ocfs2_mmap(struct file *file, struct vm_area_struct *vma);
+int ocfs2_mmap_prepare(struct vm_area_desc *desc);
 
 #endif  /* OCFS2_MMAP_H */
fs/orangefs/file.c +6 -4
index 90c49c0de243..919f99b16834 100644
@@ -398,8 +398,9 @@ static const struct vm_operations_struct orangefs_file_vm_ops = {
 /*
  * Memory map a region of a file.
  */
-static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int orangefs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	int ret;
 
 	ret = orangefs_revalidate_mapping(file_inode(file));
@@ -410,10 +411,11 @@ static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma)
 		     "orangefs_file_mmap: called on %pD\n", file);
 
 	/* set the sequential readahead hint */
-	vm_flags_mod(vma, VM_SEQ_READ, VM_RAND_READ);
+	desc->vm_flags |= VM_SEQ_READ;
+	desc->vm_flags &= ~VM_RAND_READ;
 
 	file_accessed(file);
-	vma->vm_ops = &orangefs_file_vm_ops;
+	desc->vm_ops = &orangefs_file_vm_ops;
 	return 0;
 }
 
@@ -574,7 +576,7 @@ const struct file_operations orangefs_file_operations = {
 	.read_iter	= orangefs_file_read_iter,
 	.write_iter	= orangefs_file_write_iter,
 	.lock		= orangefs_lock,
-	.mmap		= orangefs_file_mmap,
+	.mmap_prepare	= orangefs_file_mmap_prepare,
 	.open		= generic_file_open,
 	.splice_read    = orangefs_file_splice_read,
 	.splice_write   = iter_file_splice_write,
fs/ramfs/file-nommu.c +6 -6
index 7a6d980e614d..77b8ca2757e0 100644
@@ -28,7 +28,7 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
 						   unsigned long len,
 						   unsigned long pgoff,
 						   unsigned long flags);
-static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma);
+static int ramfs_nommu_mmap_prepare(struct vm_area_desc *desc);
 
 static unsigned ramfs_mmap_capabilities(struct file *file)
 {
@@ -38,7 +38,7 @@ static unsigned ramfs_mmap_capabilities(struct file *file)
 
 const struct file_operations ramfs_file_operations = {
 	.mmap_capabilities	= ramfs_mmap_capabilities,
-	.mmap			= ramfs_nommu_mmap,
+	.mmap_prepare		= ramfs_nommu_mmap_prepare,
 	.get_unmapped_area	= ramfs_nommu_get_unmapped_area,
 	.read_iter		= generic_file_read_iter,
 	.write_iter		= generic_file_write_iter,
@@ -262,12 +262,12 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
 /*
  * set up a mapping for shared memory segments
  */
-static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma)
+static int ramfs_nommu_mmap_prepare(struct vm_area_desc *desc)
 {
-	if (!is_nommu_shared_mapping(vma->vm_flags))
+	if (!is_nommu_shared_mapping(desc->vm_flags))
 		return -ENOSYS;
 
-	file_accessed(file);
-	vma->vm_ops = &generic_file_vm_ops;
+	file_accessed(desc->file);
+	desc->vm_ops = &generic_file_vm_ops;
 	return 0;
 }
fs/romfs/mmap-nommu.c +3 -3
index 4520ca413867..4b77c6dc4418 100644
@@ -61,9 +61,9 @@ static unsigned long romfs_get_unmapped_area(struct file *file,
  * permit a R/O mapping to be made directly through onto an MTD device if
  * possible
  */
-static int romfs_mmap(struct file *file, struct vm_area_struct *vma)
+static int romfs_mmap_prepare(struct vm_area_desc *desc)
 {
-	return is_nommu_shared_mapping(vma->vm_flags) ? 0 : -ENOSYS;
+	return is_nommu_shared_mapping(desc->vm_flags) ? 0 : -ENOSYS;
 }
 
 static unsigned romfs_mmap_capabilities(struct file *file)
@@ -79,7 +79,7 @@ const struct file_operations romfs_ro_fops = {
 	.llseek			= generic_file_llseek,
 	.read_iter		= generic_file_read_iter,
 	.splice_read		= filemap_splice_read,
-	.mmap			= romfs_mmap,
+	.mmap_prepare		= romfs_mmap_prepare,
 	.get_unmapped_area	= romfs_get_unmapped_area,
 	.mmap_capabilities	= romfs_mmap_capabilities,
 };
fs/zonefs/file.c +6 -4
index 42e2c0065bb3..c1848163b378 100644
@@ -312,8 +312,10 @@ static const struct vm_operations_struct zonefs_file_vm_ops = {
 	.page_mkwrite	= zonefs_filemap_page_mkwrite,
 };
 
-static int zonefs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int zonefs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
+
 	/*
 	 * Conventional zones accept random writes, so their files can support
 	 * shared writable mappings. For sequential zone files, only read
@@ -321,11 +323,11 @@ static int zonefs_file_mmap(struct file *file, struct vm_area_struct *vma)
 	 * ordering between msync() and page cache writeback.
 	 */
 	if (zonefs_inode_is_seq(file_inode(file)) &&
-	    (vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_MAYWRITE))
+	    (desc->vm_flags & VM_SHARED) && (desc->vm_flags & VM_MAYWRITE))
 		return -EINVAL;
 
 	file_accessed(file);
-	vma->vm_ops = &zonefs_file_vm_ops;
+	desc->vm_ops = &zonefs_file_vm_ops;
 
 	return 0;
 }
@@ -850,7 +852,7 @@ const struct file_operations zonefs_file_operations = {
 	.open		= zonefs_file_open,
 	.release	= zonefs_file_release,
 	.fsync		= zonefs_file_fsync,
-	.mmap		= zonefs_file_mmap,
+	.mmap_prepare	= zonefs_file_mmap_prepare,
 	.llseek		= zonefs_file_llseek,
 	.read_iter	= zonefs_file_read_iter,
 	.write_iter	= zonefs_file_write_iter,
Signature · 1 line
2.49.0
maintainer Acked-by on v1 10/10
#36 lore raw

Re: [PATCH 10/10] fs: replace mmap hook with .mmap_prepare for simple mappings

Quoted 20 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

Quoted 5 lines

In this patch we apply this change to file systems with relatively simple mmap() hook logic - exfat, ceph, f2fs, bcachefs, zonefs, btrfs, ocfs2, orangefs, nilfs2, romfs, ramfs and aio.

For zonefs,

Signature · 2 lines
Damien Le Moal
Western Digital Research
Reviewed-by on v1 10/10
#37 lore raw

Re: [PATCH 10/10] fs: replace mmap hook with .mmap_prepare for simple mappings

In reply to Lorenzo Stoakes
Quoted 167 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

In this patch we apply this change to file systems with relatively simple mmap() hook logic - exfat, ceph, f2fs, bcachefs, zonefs, btrfs, ocfs2, orangefs, nilfs2, romfs, ramfs and aio.

---
 fs/aio.c              |  8 ++++----
 fs/bcachefs/fs.c      |  8 ++++----
 fs/btrfs/file.c       |  7 ++++---
 fs/ceph/addr.c        |  5 +++--
 fs/ceph/file.c        |  2 +-
 fs/ceph/super.h       |  2 +-
 fs/exfat/file.c       |  7 ++++---
 fs/f2fs/file.c        |  7 ++++---
 fs/nilfs2/file.c      |  8 ++++----
 fs/ocfs2/file.c       |  4 ++--
 fs/ocfs2/mmap.c       |  5 +++--
 fs/ocfs2/mmap.h       |  2 +-
 fs/orangefs/file.c    | 10 ++++++----
 fs/ramfs/file-nommu.c | 12 ++++++------
 fs/romfs/mmap-nommu.c |  6 +++---
 fs/zonefs/file.c      | 10 ++++++----
 16 files changed, 56 insertions(+), 47 deletions(-)
fs/aio.c +4 -4
index 793b7b15ec4b..7fc7b6221312 100644
@@ -392,15 +392,15 @@ static const struct vm_operations_struct aio_ring_vm_ops = {
 #endif
 };
 
-static int aio_ring_mmap(struct file *file, struct vm_area_struct *vma)
+static int aio_ring_mmap_prepare(struct vm_area_desc *desc)
 {
-	vm_flags_set(vma, VM_DONTEXPAND);
-	vma->vm_ops = &aio_ring_vm_ops;
+	desc->vm_flags |= VM_DONTEXPAND;
+	desc->vm_ops = &aio_ring_vm_ops;
 	return 0;
 }
 
 static const struct file_operations aio_ring_fops = {
-	.mmap = aio_ring_mmap,
+	.mmap_prepare = aio_ring_mmap_prepare,
 };
 
 #if IS_ENABLED(CONFIG_MIGRATION)
fs/bcachefs/fs.c +4 -4
index 3063a8ddc2df..9c2238edc0e3 100644
@@ -1553,11 +1553,11 @@ static const struct vm_operations_struct bch_vm_ops = {
 	.page_mkwrite   = bch2_page_mkwrite,
 };
 
-static int bch2_mmap(struct file *file, struct vm_area_struct *vma)
+static int bch2_mmap_prepare(struct vm_area_desc *desc)
 {
-	file_accessed(file);
+	file_accessed(desc->file);
 
-	vma->vm_ops = &bch_vm_ops;
+	desc->vm_ops = &bch_vm_ops;
 	return 0;
 }
 
@@ -1740,7 +1740,7 @@ static const struct file_operations bch_file_operations = {
 	.llseek		= bch2_llseek,
 	.read_iter	= bch2_read_iter,
 	.write_iter	= bch2_write_iter,
-	.mmap		= bch2_mmap,
+	.mmap_prepare	= bch2_mmap_prepare,
 	.get_unmapped_area = thp_get_unmapped_area,
 	.fsync		= bch2_fsync,
 	.splice_read	= filemap_splice_read,
fs/btrfs/file.c +4 -3
index 8ce6f45f45e0..06bd30b35b95 100644
@@ -1978,15 +1978,16 @@ static const struct vm_operations_struct btrfs_file_vm_ops = {
 	.page_mkwrite	= btrfs_page_mkwrite,
 };
 
-static int btrfs_file_mmap(struct file	*filp, struct vm_area_struct *vma)
+static int btrfs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *filp = desc->file;
 	struct address_space *mapping = filp->f_mapping;
 
 	if (!mapping->a_ops->read_folio)
 		return -ENOEXEC;
 
 	file_accessed(filp);
-	vma->vm_ops = &btrfs_file_vm_ops;
+	desc->vm_ops = &btrfs_file_vm_ops;
 
 	return 0;
 }
@@ -3765,7 +3766,7 @@ const struct file_operations btrfs_file_operations = {
 	.splice_read	= filemap_splice_read,
 	.write_iter	= btrfs_file_write_iter,
 	.splice_write	= iter_file_splice_write,
-	.mmap		= btrfs_file_mmap,
+	.mmap_prepare	= btrfs_file_mmap_prepare,
 	.open		= btrfs_file_open,
 	.release	= btrfs_release_file,
 	.get_unmapped_area = thp_get_unmapped_area,
fs/ceph/addr.c +3 -2
index 60a621b00c65..37522137c380 100644
@@ -2330,13 +2330,14 @@ static const struct vm_operations_struct ceph_vmops = {
 	.page_mkwrite	= ceph_page_mkwrite,
 };
 
-int ceph_mmap(struct file *file, struct vm_area_struct *vma)
+int ceph_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct address_space *mapping = file->f_mapping;
 
 	if (!mapping->a_ops->read_folio)
 		return -ENOEXEC;
-	vma->vm_ops = &ceph_vmops;
+	desc->vm_ops = &ceph_vmops;
 	return 0;
 }
 
fs/ceph/file.c +1 -1
index d5c674d2ba8a..41b8ec33e864 100644
@@ -3170,7 +3170,7 @@ const struct file_operations ceph_file_fops = {
 	.llseek = ceph_llseek,
 	.read_iter = ceph_read_iter,
 	.write_iter = ceph_write_iter,
-	.mmap = ceph_mmap,
+	.mmap_prepare = ceph_mmap_prepare,
 	.fsync = ceph_fsync,
 	.lock = ceph_lock,
 	.setlease = simple_nosetlease,
fs/ceph/super.h +0 -0
index bb0db0cc8003..cf176aab0f82 100644

fs/ceph/super.h extern void __ceph_touch_fmode(struct ceph_inode_info *ci, · line 1292

Quoted 8 lines
fs/ceph/super.h +1 -1
@@ -1286,7 +1286,7 @@ extern void __ceph_touch_fmode(struct ceph_inode_info *ci,
 /* addr.c */
 extern const struct address_space_operations ceph_aops;
 extern const struct netfs_request_ops ceph_netfs_ops;
-extern int ceph_mmap(struct file *file, struct vm_area_struct *vma);
+int ceph_mmap_prepare(struct vm_area_desc *desc);
 extern int ceph_uninline_data(struct file *file);
 extern int ceph_pool_perm_check(struct inode *inode, int need);
 extern void ceph_pool_perm_destroy(struct ceph_mds_client* mdsc);

Looks good for CephFS.

Thanks,
Slava.

Quoted 289 lines
fs/exfat/file.c +4 -3
index 841a5b18e3df..d63213c8a823 100644
@@ -683,13 +683,14 @@ static const struct vm_operations_struct exfat_file_vm_ops = {
 	.page_mkwrite	= exfat_page_mkwrite,
 };
 
-static int exfat_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int exfat_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	if (unlikely(exfat_forced_shutdown(file_inode(file)->i_sb)))
 		return -EIO;
 
 	file_accessed(file);
-	vma->vm_ops = &exfat_file_vm_ops;
+	desc->vm_ops = &exfat_file_vm_ops;
 	return 0;
 }
 
@@ -710,7 +711,7 @@ const struct file_operations exfat_file_operations = {
 #ifdef CONFIG_COMPAT
 	.compat_ioctl = exfat_compat_ioctl,
 #endif
-	.mmap		= exfat_file_mmap,
+	.mmap_prepare	= exfat_file_mmap_prepare,
 	.fsync		= exfat_file_fsync,
 	.splice_read	= exfat_splice_read,
 	.splice_write	= iter_file_splice_write,
fs/f2fs/file.c +4 -3
index 6bd3de64f2a8..7af2b49b7e8a 100644
@@ -532,8 +532,9 @@ static loff_t f2fs_llseek(struct file *file, loff_t offset, int whence)
 	return -EINVAL;
 }
 
-static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int f2fs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct inode *inode = file_inode(file);
 
 	if (unlikely(f2fs_cp_error(F2FS_I_SB(inode))))
@@ -543,7 +544,7 @@ static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)
 		return -EOPNOTSUPP;
 
 	file_accessed(file);
-	vma->vm_ops = &f2fs_file_vm_ops;
+	desc->vm_ops = &f2fs_file_vm_ops;
 
 	f2fs_down_read(&F2FS_I(inode)->i_sem);
 	set_inode_flag(inode, FI_MMAP_FILE);
@@ -5376,7 +5377,7 @@ const struct file_operations f2fs_file_operations = {
 	.iopoll		= iocb_bio_iopoll,
 	.open		= f2fs_file_open,
 	.release	= f2fs_release_file,
-	.mmap		= f2fs_file_mmap,
+	.mmap_prepare	= f2fs_file_mmap_prepare,
 	.flush		= f2fs_file_flush,
 	.fsync		= f2fs_sync_file,
 	.fallocate	= f2fs_fallocate,
fs/nilfs2/file.c +4 -4
index 0e3fc5ba33c7..1b8d754db44d 100644
@@ -125,10 +125,10 @@ static const struct vm_operations_struct nilfs_file_vm_ops = {
 	.page_mkwrite	= nilfs_page_mkwrite,
 };
 
-static int nilfs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int nilfs_file_mmap_prepare(struct vm_area_desc *desc)
 {
-	file_accessed(file);
-	vma->vm_ops = &nilfs_file_vm_ops;
+	file_accessed(desc->file);
+	desc->vm_ops = &nilfs_file_vm_ops;
 	return 0;
 }
 
@@ -144,7 +144,7 @@ const struct file_operations nilfs_file_operations = {
 #ifdef CONFIG_COMPAT
 	.compat_ioctl	= nilfs_compat_ioctl,
 #endif	/* CONFIG_COMPAT */
-	.mmap		= nilfs_file_mmap,
+	.mmap_prepare	= nilfs_file_mmap_prepare,
 	.open		= generic_file_open,
 	/* .release	= nilfs_release_file, */
 	.fsync		= nilfs_sync_file,
fs/ocfs2/file.c +2 -2
index 2056cf08ac1e..21d797ccccd0 100644
@@ -2800,7 +2800,7 @@ const struct inode_operations ocfs2_special_file_iops = {
  */
 const struct file_operations ocfs2_fops = {
 	.llseek		= ocfs2_file_llseek,
-	.mmap		= ocfs2_mmap,
+	.mmap_prepare	= ocfs2_mmap_prepare,
 	.fsync		= ocfs2_sync_file,
 	.release	= ocfs2_file_release,
 	.open		= ocfs2_file_open,
@@ -2850,7 +2850,7 @@ const struct file_operations ocfs2_dops = {
  */
 const struct file_operations ocfs2_fops_no_plocks = {
 	.llseek		= ocfs2_file_llseek,
-	.mmap		= ocfs2_mmap,
+	.mmap_prepare	= ocfs2_mmap_prepare,
 	.fsync		= ocfs2_sync_file,
 	.release	= ocfs2_file_release,
 	.open		= ocfs2_file_open,
fs/ocfs2/mmap.c +3 -2
index 6a314e9f2b49..50e2faf64c19 100644
@@ -159,8 +159,9 @@ static const struct vm_operations_struct ocfs2_file_vm_ops = {
 	.page_mkwrite	= ocfs2_page_mkwrite,
 };
 
-int ocfs2_mmap(struct file *file, struct vm_area_struct *vma)
+int ocfs2_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	int ret = 0, lock_level = 0;
 
 	ret = ocfs2_inode_lock_atime(file_inode(file),
@@ -171,7 +172,7 @@ int ocfs2_mmap(struct file *file, struct vm_area_struct *vma)
 	}
 	ocfs2_inode_unlock(file_inode(file), lock_level);
 out:
-	vma->vm_ops = &ocfs2_file_vm_ops;
+	desc->vm_ops = &ocfs2_file_vm_ops;
 	return 0;
 }
 
fs/ocfs2/mmap.h +1 -1
index 1051507cc684..d21c30de6b8c 100644
@@ -2,6 +2,6 @@
 #ifndef OCFS2_MMAP_H
 #define OCFS2_MMAP_H
 
-int ocfs2_mmap(struct file *file, struct vm_area_struct *vma);
+int ocfs2_mmap_prepare(struct vm_area_desc *desc);
 
 #endif  /* OCFS2_MMAP_H */
fs/orangefs/file.c +6 -4
index 90c49c0de243..919f99b16834 100644
@@ -398,8 +398,9 @@ static const struct vm_operations_struct orangefs_file_vm_ops = {
 /*
  * Memory map a region of a file.
  */
-static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int orangefs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	int ret;
 
 	ret = orangefs_revalidate_mapping(file_inode(file));
@@ -410,10 +411,11 @@ static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma)
 		     "orangefs_file_mmap: called on %pD\n", file);
 
 	/* set the sequential readahead hint */
-	vm_flags_mod(vma, VM_SEQ_READ, VM_RAND_READ);
+	desc->vm_flags |= VM_SEQ_READ;
+	desc->vm_flags &= ~VM_RAND_READ;
 
 	file_accessed(file);
-	vma->vm_ops = &orangefs_file_vm_ops;
+	desc->vm_ops = &orangefs_file_vm_ops;
 	return 0;
 }
 
@@ -574,7 +576,7 @@ const struct file_operations orangefs_file_operations = {
 	.read_iter	= orangefs_file_read_iter,
 	.write_iter	= orangefs_file_write_iter,
 	.lock		= orangefs_lock,
-	.mmap		= orangefs_file_mmap,
+	.mmap_prepare	= orangefs_file_mmap_prepare,
 	.open		= generic_file_open,
 	.splice_read    = orangefs_file_splice_read,
 	.splice_write   = iter_file_splice_write,
fs/ramfs/file-nommu.c +6 -6
index 7a6d980e614d..77b8ca2757e0 100644
@@ -28,7 +28,7 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
 						   unsigned long len,
 						   unsigned long pgoff,
 						   unsigned long flags);
-static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma);
+static int ramfs_nommu_mmap_prepare(struct vm_area_desc *desc);
 
 static unsigned ramfs_mmap_capabilities(struct file *file)
 {
@@ -38,7 +38,7 @@ static unsigned ramfs_mmap_capabilities(struct file *file)
 
 const struct file_operations ramfs_file_operations = {
 	.mmap_capabilities	= ramfs_mmap_capabilities,
-	.mmap			= ramfs_nommu_mmap,
+	.mmap_prepare		= ramfs_nommu_mmap_prepare,
 	.get_unmapped_area	= ramfs_nommu_get_unmapped_area,
 	.read_iter		= generic_file_read_iter,
 	.write_iter		= generic_file_write_iter,
@@ -262,12 +262,12 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
 /*
  * set up a mapping for shared memory segments
  */
-static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma)
+static int ramfs_nommu_mmap_prepare(struct vm_area_desc *desc)
 {
-	if (!is_nommu_shared_mapping(vma->vm_flags))
+	if (!is_nommu_shared_mapping(desc->vm_flags))
 		return -ENOSYS;
 
-	file_accessed(file);
-	vma->vm_ops = &generic_file_vm_ops;
+	file_accessed(desc->file);
+	desc->vm_ops = &generic_file_vm_ops;
 	return 0;
 }
fs/romfs/mmap-nommu.c +3 -3
index 4520ca413867..4b77c6dc4418 100644
@@ -61,9 +61,9 @@ static unsigned long romfs_get_unmapped_area(struct file *file,
  * permit a R/O mapping to be made directly through onto an MTD device if
  * possible
  */
-static int romfs_mmap(struct file *file, struct vm_area_struct *vma)
+static int romfs_mmap_prepare(struct vm_area_desc *desc)
 {
-	return is_nommu_shared_mapping(vma->vm_flags) ? 0 : -ENOSYS;
+	return is_nommu_shared_mapping(desc->vm_flags) ? 0 : -ENOSYS;
 }
 
 static unsigned romfs_mmap_capabilities(struct file *file)
@@ -79,7 +79,7 @@ const struct file_operations romfs_ro_fops = {
 	.llseek			= generic_file_llseek,
 	.read_iter		= generic_file_read_iter,
 	.splice_read		= filemap_splice_read,
-	.mmap			= romfs_mmap,
+	.mmap_prepare		= romfs_mmap_prepare,
 	.get_unmapped_area	= romfs_get_unmapped_area,
 	.mmap_capabilities	= romfs_mmap_capabilities,
 };
fs/zonefs/file.c +6 -4
index 42e2c0065bb3..c1848163b378 100644
@@ -312,8 +312,10 @@ static const struct vm_operations_struct zonefs_file_vm_ops = {
 	.page_mkwrite	= zonefs_filemap_page_mkwrite,
 };
 
-static int zonefs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int zonefs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
+
 	/*
 	 * Conventional zones accept random writes, so their files can support
 	 * shared writable mappings. For sequential zone files, only read
@@ -321,11 +323,11 @@ static int zonefs_file_mmap(struct file *file, struct vm_area_struct *vma)
 	 * ordering between msync() and page cache writeback.
 	 */
 	if (zonefs_inode_is_seq(file_inode(file)) &&
-	    (vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_MAYWRITE))
+	    (desc->vm_flags & VM_SHARED) && (desc->vm_flags & VM_MAYWRITE))
 		return -EINVAL;
 
 	file_accessed(file);
-	vma->vm_ops = &zonefs_file_vm_ops;
+	desc->vm_ops = &zonefs_file_vm_ops;
 
 	return 0;
 }
@@ -850,7 +852,7 @@ const struct file_operations zonefs_file_operations = {
 	.open		= zonefs_file_open,
 	.release	= zonefs_file_release,
 	.fsync		= zonefs_file_fsync,
-	.mmap		= zonefs_file_mmap,
+	.mmap_prepare	= zonefs_file_mmap_prepare,
 	.llseek		= zonefs_file_llseek,
 	.read_iter	= zonefs_file_read_iter,
 	.write_iter	= zonefs_file_write_iter,
maintainer Reviewed-by on v1 10/10
#38 lore raw

Re: [PATCH 10/10] fs: replace mmap hook with .mmap_prepare for simple mappings

In reply to Lorenzo Stoakes
Quoted 20 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

Quoted 5 lines

In this patch we apply this change to file systems with relatively simple mmap() hook logic - exfat, ceph, f2fs, bcachefs, zonefs, btrfs, ocfs2, orangefs, nilfs2, romfs, ramfs and aio.

Two small nits below. Otherwise feel free to add:

fs/ceph/addr.c static const struct vm_operations_struct ceph_vmops = { · line 2336

Quoted 13 lines
fs/ceph/addr.c +2 -1
index 60a621b00c65..37522137c380 100644
@@ -2330,13 +2330,14 @@ static const struct vm_operations_struct ceph_vmops = {
 	.page_mkwrite	= ceph_page_mkwrite,
 };
 
-int ceph_mmap(struct file *file, struct vm_area_struct *vma)
+int ceph_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct address_space *mapping = file->f_mapping;

Pointless local variable here...

Quoted 8 lines
fs/ceph/addr.c +1 -1
 	if (!mapping->a_ops->read_folio)
 		return -ENOEXEC;
-	vma->vm_ops = &ceph_vmops;
+	desc->vm_ops = &ceph_vmops;
 	return 0;
 }
 

...

fs/exfat/file.c static const struct vm_operations_struct exfat_file_vm_ops = { · line 688

Quoted 12 lines
fs/exfat/file.c +2 -1
index 841a5b18e3df..d63213c8a823 100644
@@ -683,13 +683,14 @@ static const struct vm_operations_struct exfat_file_vm_ops = {
 	.page_mkwrite	= exfat_page_mkwrite,
 };
 
-static int exfat_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int exfat_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;

Missing empty line here.

fs/exfat/file.c static const struct vm_operations_struct exfat_file_vm_ops = { · line 696

Quoted 9 lines
fs/exfat/file.c +1 -1
 	if (unlikely(exfat_forced_shutdown(file_inode(file)->i_sb)))
 		return -EIO;
 
 	file_accessed(file);
-	vma->vm_ops = &exfat_file_vm_ops;
+	desc->vm_ops = &exfat_file_vm_ops;
 	return 0;
 }
 

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#39 lore raw

Re: [PATCH 10/10] fs: replace mmap hook with .mmap_prepare for simple mappings

Quoted 39 lines · Jan Kara
Quoted 20 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

Quoted 5 lines

In this patch we apply this change to file systems with relatively simple mmap() hook logic - exfat, ceph, f2fs, bcachefs, zonefs, btrfs, ocfs2, orangefs, nilfs2, romfs, ramfs and aio.

Two small nits below. Otherwise feel free to add:

Quoted 8 lines
fs/ceph/addr.c +0 -0
index 60a621b00c65..37522137c380 100644
@@ -2330,13 +2330,14 @@ static const struct vm_operations_struct ceph_vmops = {
 	.page_mkwrite	= ceph_page_mkwrite,
 };
 
Quoted 7 lines

fs/ceph/addr.c static const struct vm_operations_struct ceph_vmops = { · line 2336

Quoted 5 lines
fs/ceph/addr.c +2 -1
-int ceph_mmap(struct file *file, struct vm_area_struct *vma)
+int ceph_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;
 	struct address_space *mapping = file->f_mapping;

Pointless local variable here...

Agreed, fixed in-tree.

Quoted 6 lines

fs/ceph/addr.c static const struct vm_operations_struct ceph_vmops = { · line 2339

Quoted 4 lines
fs/ceph/addr.c +2 -1
-static int exfat_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int exfat_file_mmap_prepare(struct vm_area_desc *desc)
 {
+	struct file *file = desc->file;

Missing empty line here.

Fixed in-tree.

Acked-by on v1 10/10
#40 lore raw

Re: [PATCH 10/10] fs: replace mmap hook with .mmap_prepare for simple mappings

In reply to Lorenzo Stoakes
Quoted 20 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

Quoted 6 lines

In this patch we apply this change to file systems with relatively simple mmap() hook logic - exfat, ceph, f2fs, bcachefs, zonefs, btrfs, ocfs2, orangefs, nilfs2, romfs, ramfs and aio.

---

For

Quoted 1 line
 fs/btrfs/file.c       |  7 ++++---
maintainer Acked-by on v1 10/10
#41 lore raw

Re: [PATCH 10/10] fs: replace mmap hook with .mmap_prepare for simple mappings

In reply to Lorenzo Stoakes
Quoted 21 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

Quoted 5 lines

In this patch we apply this change to file systems with relatively simple mmap() hook logic - exfat, ceph, f2fs, bcachefs, zonefs, btrfs, ocfs2, orangefs, nilfs2, romfs, ramfs and aio.

For nilfs2,

Thanks,
Ryusuke Konishi

maintainer
#42 lore raw

Re: [PATCH 10/10] fs: replace mmap hook with .mmap_prepare for simple mappings

In reply to Lorenzo Stoakes

I added this patch series to 6.16-rc3 and ran it through xfstests for orangefs with no regressions...

-Mike

Quoted 468 lines · Lorenzo Stoakes

Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare().

This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone state unwinding required should an error arise.

This hook also avoids passing a pointer to a not-yet-correctly-established VMA avoiding any issues with referencing this data structure.

It rather provides a pointer to the new struct vm_area_desc descriptor type which contains all required state and allows easy setting of required parameters without any consideration needing to be paid to locking or reference counts.

Note that nested filesystems like overlayfs are compatible with an .mmap_prepare() callback since commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems").

In this patch we apply this change to file systems with relatively simple mmap() hook logic - exfat, ceph, f2fs, bcachefs, zonefs, btrfs, ocfs2, orangefs, nilfs2, romfs, ramfs and aio.

---
 fs/aio.c              |  8 ++++----
 fs/bcachefs/fs.c      |  8 ++++----
 fs/btrfs/file.c       |  7 ++++---
 fs/ceph/addr.c        |  5 +++--
 fs/ceph/file.c        |  2 +-
 fs/ceph/super.h       |  2 +-
 fs/exfat/file.c       |  7 ++++---
 fs/f2fs/file.c        |  7 ++++---
 fs/nilfs2/file.c      |  8 ++++----
 fs/ocfs2/file.c       |  4 ++--
 fs/ocfs2/mmap.c       |  5 +++--
 fs/ocfs2/mmap.h       |  2 +-
 fs/orangefs/file.c    | 10 ++++++----
 fs/ramfs/file-nommu.c | 12 ++++++------
 fs/romfs/mmap-nommu.c |  6 +++---
 fs/zonefs/file.c      | 10 ++++++----
 16 files changed, 56 insertions(+), 47 deletions(-)
fs/aio.c +4 -4
index 793b7b15ec4b..7fc7b6221312 100644
@@ -392,15 +392,15 @@ static const struct vm_operations_struct aio_ring_vm_ops = {
 #endif
 };
 
-static int aio_ring_mmap(struct file *file, struct vm_area_struct *vma)
+static int aio_ring_mmap_prepare(struct vm_area_desc *desc)
 {
-       vm_flags_set(vma, VM_DONTEXPAND);
-       vma->vm_ops = &aio_ring_vm_ops;
+       desc->vm_flags |= VM_DONTEXPAND;
+       desc->vm_ops = &aio_ring_vm_ops;
        return 0;
 }
 
 static const struct file_operations aio_ring_fops = {
-       .mmap = aio_ring_mmap,
+       .mmap_prepare = aio_ring_mmap_prepare,
 };
 
 #if IS_ENABLED(CONFIG_MIGRATION)
fs/bcachefs/fs.c +4 -4
index 3063a8ddc2df..9c2238edc0e3 100644
@@ -1553,11 +1553,11 @@ static const struct vm_operations_struct bch_vm_ops = {
        .page_mkwrite   = bch2_page_mkwrite,
 };
 
-static int bch2_mmap(struct file *file, struct vm_area_struct *vma)
+static int bch2_mmap_prepare(struct vm_area_desc *desc)
 {
-       file_accessed(file);
+       file_accessed(desc->file);
 
-       vma->vm_ops = &bch_vm_ops;
+       desc->vm_ops = &bch_vm_ops;
        return 0;
 }
 
@@ -1740,7 +1740,7 @@ static const struct file_operations bch_file_operations = {
        .llseek         = bch2_llseek,
        .read_iter      = bch2_read_iter,
        .write_iter     = bch2_write_iter,
-       .mmap           = bch2_mmap,
+       .mmap_prepare   = bch2_mmap_prepare,
        .get_unmapped_area = thp_get_unmapped_area,
        .fsync          = bch2_fsync,
        .splice_read    = filemap_splice_read,
fs/btrfs/file.c +4 -3
index 8ce6f45f45e0..06bd30b35b95 100644
@@ -1978,15 +1978,16 @@ static const struct vm_operations_struct btrfs_file_vm_ops = {
        .page_mkwrite   = btrfs_page_mkwrite,
 };
 
-static int btrfs_file_mmap(struct file *filp, struct vm_area_struct *vma)
+static int btrfs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+       struct file *filp = desc->file;
        struct address_space *mapping = filp->f_mapping;
 
        if (!mapping->a_ops->read_folio)
                return -ENOEXEC;
 
        file_accessed(filp);
-       vma->vm_ops = &btrfs_file_vm_ops;
+       desc->vm_ops = &btrfs_file_vm_ops;
 
        return 0;
 }
@@ -3765,7 +3766,7 @@ const struct file_operations btrfs_file_operations = {
        .splice_read    = filemap_splice_read,
        .write_iter     = btrfs_file_write_iter,
        .splice_write   = iter_file_splice_write,
-       .mmap           = btrfs_file_mmap,
+       .mmap_prepare   = btrfs_file_mmap_prepare,
        .open           = btrfs_file_open,
        .release        = btrfs_release_file,
        .get_unmapped_area = thp_get_unmapped_area,
fs/ceph/addr.c +3 -2
index 60a621b00c65..37522137c380 100644
@@ -2330,13 +2330,14 @@ static const struct vm_operations_struct ceph_vmops = {
        .page_mkwrite   = ceph_page_mkwrite,
 };
 
-int ceph_mmap(struct file *file, struct vm_area_struct *vma)
+int ceph_mmap_prepare(struct vm_area_desc *desc)
 {
+       struct file *file = desc->file;
        struct address_space *mapping = file->f_mapping;
 
        if (!mapping->a_ops->read_folio)
                return -ENOEXEC;
-       vma->vm_ops = &ceph_vmops;
+       desc->vm_ops = &ceph_vmops;
        return 0;
 }
 
fs/ceph/file.c +1 -1
index d5c674d2ba8a..41b8ec33e864 100644
@@ -3170,7 +3170,7 @@ const struct file_operations ceph_file_fops = {
        .llseek = ceph_llseek,
        .read_iter = ceph_read_iter,
        .write_iter = ceph_write_iter,
-       .mmap = ceph_mmap,
+       .mmap_prepare = ceph_mmap_prepare,
        .fsync = ceph_fsync,
        .lock = ceph_lock,
        .setlease = simple_nosetlease,
fs/ceph/super.h +1 -1
index bb0db0cc8003..cf176aab0f82 100644
@@ -1286,7 +1286,7 @@ extern void __ceph_touch_fmode(struct ceph_inode_info *ci,
 /* addr.c */
 extern const struct address_space_operations ceph_aops;
 extern const struct netfs_request_ops ceph_netfs_ops;
-extern int ceph_mmap(struct file *file, struct vm_area_struct *vma);
+int ceph_mmap_prepare(struct vm_area_desc *desc);
 extern int ceph_uninline_data(struct file *file);
 extern int ceph_pool_perm_check(struct inode *inode, int need);
 extern void ceph_pool_perm_destroy(struct ceph_mds_client* mdsc);
fs/exfat/file.c +4 -3
index 841a5b18e3df..d63213c8a823 100644
@@ -683,13 +683,14 @@ static const struct vm_operations_struct exfat_file_vm_ops = {
        .page_mkwrite   = exfat_page_mkwrite,
 };
 
-static int exfat_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int exfat_file_mmap_prepare(struct vm_area_desc *desc)
 {
+       struct file *file = desc->file;
        if (unlikely(exfat_forced_shutdown(file_inode(file)->i_sb)))
                return -EIO;
 
        file_accessed(file);
-       vma->vm_ops = &exfat_file_vm_ops;
+       desc->vm_ops = &exfat_file_vm_ops;
        return 0;
 }
 
@@ -710,7 +711,7 @@ const struct file_operations exfat_file_operations = {
 #ifdef CONFIG_COMPAT
        .compat_ioctl = exfat_compat_ioctl,
 #endif
-       .mmap           = exfat_file_mmap,
+       .mmap_prepare   = exfat_file_mmap_prepare,
        .fsync          = exfat_file_fsync,
        .splice_read    = exfat_splice_read,
        .splice_write   = iter_file_splice_write,
fs/f2fs/file.c +4 -3
index 6bd3de64f2a8..7af2b49b7e8a 100644
@@ -532,8 +532,9 @@ static loff_t f2fs_llseek(struct file *file, loff_t offset, int whence)
        return -EINVAL;
 }
 
-static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int f2fs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+       struct file *file = desc->file;
        struct inode *inode = file_inode(file);
 
        if (unlikely(f2fs_cp_error(F2FS_I_SB(inode))))
@@ -543,7 +544,7 @@ static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)
                return -EOPNOTSUPP;
 
        file_accessed(file);
-       vma->vm_ops = &f2fs_file_vm_ops;
+       desc->vm_ops = &f2fs_file_vm_ops;
 
        f2fs_down_read(&F2FS_I(inode)->i_sem);
        set_inode_flag(inode, FI_MMAP_FILE);
@@ -5376,7 +5377,7 @@ const struct file_operations f2fs_file_operations = {
        .iopoll         = iocb_bio_iopoll,
        .open           = f2fs_file_open,
        .release        = f2fs_release_file,
-       .mmap           = f2fs_file_mmap,
+       .mmap_prepare   = f2fs_file_mmap_prepare,
        .flush          = f2fs_file_flush,
        .fsync          = f2fs_sync_file,
        .fallocate      = f2fs_fallocate,
fs/nilfs2/file.c +4 -4
index 0e3fc5ba33c7..1b8d754db44d 100644
@@ -125,10 +125,10 @@ static const struct vm_operations_struct nilfs_file_vm_ops = {
        .page_mkwrite   = nilfs_page_mkwrite,
 };
 
-static int nilfs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int nilfs_file_mmap_prepare(struct vm_area_desc *desc)
 {
-       file_accessed(file);
-       vma->vm_ops = &nilfs_file_vm_ops;
+       file_accessed(desc->file);
+       desc->vm_ops = &nilfs_file_vm_ops;
        return 0;
 }
 
@@ -144,7 +144,7 @@ const struct file_operations nilfs_file_operations = {
 #ifdef CONFIG_COMPAT
        .compat_ioctl   = nilfs_compat_ioctl,
 #endif /* CONFIG_COMPAT */
-       .mmap           = nilfs_file_mmap,
+       .mmap_prepare   = nilfs_file_mmap_prepare,
        .open           = generic_file_open,
        /* .release     = nilfs_release_file, */
        .fsync          = nilfs_sync_file,
fs/ocfs2/file.c +2 -2
index 2056cf08ac1e..21d797ccccd0 100644
@@ -2800,7 +2800,7 @@ const struct inode_operations ocfs2_special_file_iops = {
  */
 const struct file_operations ocfs2_fops = {
        .llseek         = ocfs2_file_llseek,
-       .mmap           = ocfs2_mmap,
+       .mmap_prepare   = ocfs2_mmap_prepare,
        .fsync          = ocfs2_sync_file,
        .release        = ocfs2_file_release,
        .open           = ocfs2_file_open,
@@ -2850,7 +2850,7 @@ const struct file_operations ocfs2_dops = {
  */
 const struct file_operations ocfs2_fops_no_plocks = {
        .llseek         = ocfs2_file_llseek,
-       .mmap           = ocfs2_mmap,
+       .mmap_prepare   = ocfs2_mmap_prepare,
        .fsync          = ocfs2_sync_file,
        .release        = ocfs2_file_release,
        .open           = ocfs2_file_open,
fs/ocfs2/mmap.c +3 -2
index 6a314e9f2b49..50e2faf64c19 100644
@@ -159,8 +159,9 @@ static const struct vm_operations_struct ocfs2_file_vm_ops = {
        .page_mkwrite   = ocfs2_page_mkwrite,
 };
 
-int ocfs2_mmap(struct file *file, struct vm_area_struct *vma)
+int ocfs2_mmap_prepare(struct vm_area_desc *desc)
 {
+       struct file *file = desc->file;
        int ret = 0, lock_level = 0;
 
        ret = ocfs2_inode_lock_atime(file_inode(file),
@@ -171,7 +172,7 @@ int ocfs2_mmap(struct file *file, struct vm_area_struct *vma)
        }
        ocfs2_inode_unlock(file_inode(file), lock_level);
 out:
-       vma->vm_ops = &ocfs2_file_vm_ops;
+       desc->vm_ops = &ocfs2_file_vm_ops;
        return 0;
 }
 
fs/ocfs2/mmap.h +1 -1
index 1051507cc684..d21c30de6b8c 100644
@@ -2,6 +2,6 @@
 #ifndef OCFS2_MMAP_H
 #define OCFS2_MMAP_H
 
-int ocfs2_mmap(struct file *file, struct vm_area_struct *vma);
+int ocfs2_mmap_prepare(struct vm_area_desc *desc);
 
 #endif  /* OCFS2_MMAP_H */
fs/orangefs/file.c +6 -4
index 90c49c0de243..919f99b16834 100644
@@ -398,8 +398,9 @@ static const struct vm_operations_struct orangefs_file_vm_ops = {
 /*
  * Memory map a region of a file.
  */
-static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int orangefs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+       struct file *file = desc->file;
        int ret;
 
        ret = orangefs_revalidate_mapping(file_inode(file));
@@ -410,10 +411,11 @@ static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma)
                     "orangefs_file_mmap: called on %pD\n", file);
 
        /* set the sequential readahead hint */
-       vm_flags_mod(vma, VM_SEQ_READ, VM_RAND_READ);
+       desc->vm_flags |= VM_SEQ_READ;
+       desc->vm_flags &= ~VM_RAND_READ;
 
        file_accessed(file);
-       vma->vm_ops = &orangefs_file_vm_ops;
+       desc->vm_ops = &orangefs_file_vm_ops;
        return 0;
 }
 
@@ -574,7 +576,7 @@ const struct file_operations orangefs_file_operations = {
        .read_iter      = orangefs_file_read_iter,
        .write_iter     = orangefs_file_write_iter,
        .lock           = orangefs_lock,
-       .mmap           = orangefs_file_mmap,
+       .mmap_prepare   = orangefs_file_mmap_prepare,
        .open           = generic_file_open,
        .splice_read    = orangefs_file_splice_read,
        .splice_write   = iter_file_splice_write,
fs/ramfs/file-nommu.c +6 -6
index 7a6d980e614d..77b8ca2757e0 100644
@@ -28,7 +28,7 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
                                                   unsigned long len,
                                                   unsigned long pgoff,
                                                   unsigned long flags);
-static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma);
+static int ramfs_nommu_mmap_prepare(struct vm_area_desc *desc);
 
 static unsigned ramfs_mmap_capabilities(struct file *file)
 {
@@ -38,7 +38,7 @@ static unsigned ramfs_mmap_capabilities(struct file *file)
 
 const struct file_operations ramfs_file_operations = {
        .mmap_capabilities      = ramfs_mmap_capabilities,
-       .mmap                   = ramfs_nommu_mmap,
+       .mmap_prepare           = ramfs_nommu_mmap_prepare,
        .get_unmapped_area      = ramfs_nommu_get_unmapped_area,
        .read_iter              = generic_file_read_iter,
        .write_iter             = generic_file_write_iter,
@@ -262,12 +262,12 @@ static unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
 /*
  * set up a mapping for shared memory segments
  */
-static int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma)
+static int ramfs_nommu_mmap_prepare(struct vm_area_desc *desc)
 {
-       if (!is_nommu_shared_mapping(vma->vm_flags))
+       if (!is_nommu_shared_mapping(desc->vm_flags))
                return -ENOSYS;
 
-       file_accessed(file);
-       vma->vm_ops = &generic_file_vm_ops;
+       file_accessed(desc->file);
+       desc->vm_ops = &generic_file_vm_ops;
        return 0;
 }
fs/romfs/mmap-nommu.c +3 -3
index 4520ca413867..4b77c6dc4418 100644
@@ -61,9 +61,9 @@ static unsigned long romfs_get_unmapped_area(struct file *file,
  * permit a R/O mapping to be made directly through onto an MTD device if
  * possible
  */
-static int romfs_mmap(struct file *file, struct vm_area_struct *vma)
+static int romfs_mmap_prepare(struct vm_area_desc *desc)
 {
-       return is_nommu_shared_mapping(vma->vm_flags) ? 0 : -ENOSYS;
+       return is_nommu_shared_mapping(desc->vm_flags) ? 0 : -ENOSYS;
 }
 
 static unsigned romfs_mmap_capabilities(struct file *file)
@@ -79,7 +79,7 @@ const struct file_operations romfs_ro_fops = {
        .llseek                 = generic_file_llseek,
        .read_iter              = generic_file_read_iter,
        .splice_read            = filemap_splice_read,
-       .mmap                   = romfs_mmap,
+       .mmap_prepare           = romfs_mmap_prepare,
        .get_unmapped_area      = romfs_get_unmapped_area,
        .mmap_capabilities      = romfs_mmap_capabilities,
 };
fs/zonefs/file.c +6 -5
index 42e2c0065bb3..c1848163b378 100644
@@ -312,8 +312,10 @@ static const struct vm_operations_struct zonefs_file_vm_ops = {
        .page_mkwrite   = zonefs_filemap_page_mkwrite,
 };
 
-static int zonefs_file_mmap(struct file *file, struct vm_area_struct *vma)
+static int zonefs_file_mmap_prepare(struct vm_area_desc *desc)
 {
+       struct file *file = desc->file;
+
        /*
         * Conventional zones accept random writes, so their files can support
         * shared writable mappings. For sequential zone files, only read
@@ -321,11 +323,11 @@ static int zonefs_file_mmap(struct file *file, struct vm_area_struct *vma)
         * ordering between msync() and page cache writeback.
         */
        if (zonefs_inode_is_seq(file_inode(file)) &&
-           (vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_MAYWRITE))
+           (desc->vm_flags & VM_SHARED) && (desc->vm_flags & VM_MAYWRITE))
                return -EINVAL;
 
        file_accessed(file);
-       vma->vm_ops = &zonefs_file_vm_ops;
+       desc->vm_ops = &zonefs_file_vm_ops;
 
        return 0;
 }
@@ -850,7 +852,7 @@ const struct file_operations zonefs_file_operations = {
        .open           = zonefs_file_open,
        .release        = zonefs_file_release,
        .fsync          = zonefs_file_fsync,
-       .mmap           = zonefs_file_mmap,
+       .mmap_prepare   = zonefs_file_mmap_prepare,
        .llseek         = zonefs_file_llseek,
        .read_iter      = zonefs_file_read_iter,
        .write_iter     = zonefs_file_write_iter,
--

2.49.0

#43 lore raw

Re: [PATCH 10/10] fs: replace mmap hook with .mmap_prepare for simple mappings

Quoted 4 lines · Mike Marshall

I added this patch series to 6.16-rc3 and ran it through xfstests for orangefs with no regressions...

-Mike

Thanks Mike! :)

#44 lore raw
In reply to Lorenzo Stoakes

Mailserver is rejecting with "too many recipients" - aieeee

Quoted 8 lines · Lorenzo Stoakes

REVIEWER'S NOTES
================

I am basing this on the mm-new branch in Andrew's tree, so let me know if I should rebase anything here. Given the mm bits touched I did think perhaps we should take it through the mm tree, however it may be more sensible to take it through an fs tree - let me know!

Quoted 6 lines

Apologies for the noise/churn, but there are some prerequisite steps here that inform an ordering - "fs: consistently use file_has_valid_mmap_hooks() helper" being especially critical, and so I put the bulk of the work in the same series.

Let me know if there's anything I can do to make life easier here.

This seems to be more of an mm thing than a filesystem thing? I don't see any code changes on the filesystem side from a quick scan, just renaming?

Are there any behavioural changes for the filesystem to be aware of?

How's it been tested, any considerations there?

If this is as simple as it looks, ack from me (and if it is that simply, why so many recipients?).

If there are _any_ behavioural changes on the mm side that might interact with the filesystem in funny ways, please make sure the whole fstests suite has been run.

maintainer
#45 lore raw
In reply to Lorenzo Stoakes
Quoted 8 lines · Lorenzo Stoakes

REVIEWER'S NOTES
================

I am basing this on the mm-new branch in Andrew's tree, so let me know if I should rebase anything here. Given the mm bits touched I did think perhaps we should take it through the mm tree, however it may be more sensible to take it through an fs tree - let me know!

Quoted 6 lines

Apologies for the noise/churn, but there are some prerequisite steps here that inform an ordering - "fs: consistently use file_has_valid_mmap_hooks() helper" being especially critical, and so I put the bulk of the work in the same series.

Let me know if there's anything I can do to make life easier here.

Documentation/filesystems/porting.rst?

maintainer
#46 lore raw
Quoted 9 lines · Al Viro
Quoted 8 lines · Lorenzo Stoakes

REVIEWER'S NOTES
================

I am basing this on the mm-new branch in Andrew's tree, so let me know if I should rebase anything here. Given the mm bits touched I did think perhaps we should take it through the mm tree, however it may be more sensible to take it through an fs tree - let me know!

Quoted 8 lines
Quoted 6 lines

Apologies for the noise/churn, but there are some prerequisite steps here that inform an ordering - "fs: consistently use file_has_valid_mmap_hooks() helper" being especially critical, and so I put the bulk of the work in the same series.

Let me know if there's anything I can do to make life easier here.

Documentation/filesystems/porting.rst?

Also, an entry for ->mmap_prepare in Documentation/filesystems/vfs.rst would be good.

I went there first to understand what the requirements of mmap_prepare are, but there is nothing.

Signature · 1 line
Jeff Layton <[email protected]>
#47 lore raw
Quoted 17 lines · Jeff Layton
Quoted 16 lines · Al Viro
Quoted 14 lines · Lorenzo Stoakes

REVIEWER'S NOTES
================

I am basing this on the mm-new branch in Andrew's tree, so let me know if I should rebase anything here. Given the mm bits touched I did think perhaps we should take it through the mm tree, however it may be more sensible to take it through an fs tree - let me know!

Apologies for the noise/churn, but there are some prerequisite steps here that inform an ordering - "fs: consistently use file_has_valid_mmap_hooks() helper" being especially critical, and so I put the bulk of the work in the same series.

Let me know if there's anything I can do to make life easier here.

Quoted 7 lines
Quoted 1 line

Documentation/filesystems/porting.rst?

Also, an entry for ->mmap_prepare in Documentation/filesystems/vfs.rst would be good.

I went there first to understand what the requirements of mmap_prepare are, but there is nothing.

Ack, on it.

Quoted 3 lines

--
Jeff Layton <[email protected]>

maintainer
#48 lore raw
In reply to Lorenzo Stoakes
Quoted 4 lines · On Mon, 16 Jun 2025 20:33:19 +0100 Lorenzo Stoakes…

I am basing this on the mm-new branch in Andrew's tree, so let me know if I should rebase anything here. Given the mm bits touched I did think perhaps we should take it through the mm tree, however it may be more sensible to take it through an fs tree - let me know!

It's more fs/ than mm/ purely from a footprint point of view. But is there any expectation that there will be additional patches which build on this?

I'll scoop it into mm-new for now, see what happens.

Minus all the cc's. Sorry ;)

#49 lore raw
Quoted 7 lines · Andrew Morton
Quoted 4 lines · On Mon, 16 Jun 2025 20:33:19 +0100 Lorenzo Stoakes…

I am basing this on the mm-new branch in Andrew's tree, so let me know if I should rebase anything here. Given the mm bits touched I did think perhaps we should take it through the mm tree, however it may be more sensible to take it through an fs tree - let me know!

Quoted 5 lines

It's more fs/ than mm/ purely from a footprint point of view. But there any expectation that there will be additional patches which build on this?

I'll scoop it into mm-new for now, see what happens.

I'm going to carry this in the vfs-6.17.mmap_prepare branch after fixing up the various minor issues spotted in the series.

maintainer Applied
#50 lore raw
In reply to Lorenzo Stoakes
Quoted 9 lines · Lorenzo Stoakes

REVIEWER'S NOTES
================

I am basing this on the mm-new branch in Andrew's tree, so let me know if I should rebase anything here. Given the mm bits touched I did think perhaps we should take it through the mm tree, however it may be more sensible to take it through an fs tree - let me know!

[...]

This looks good. I fixed up the minor review comments. Looking forward to further cleanups in this area.

---

Applied to the vfs-6.17.mmap_prepare branch of the vfs/vfs.git tree. Patches in the vfs-6.17.mmap_prepare branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-6.17.mmap_prepare

[01/10] mm: rename call_mmap/mmap_prepare to vfs_mmap/mmap_prepare

        https://git.kernel.org/vfs/vfs/c/20ca475d9860
[02/10] mm/nommu: use file_has_valid_mmap_hooks() helper
        https://git.kernel.org/vfs/vfs/c/c6900f227f89
[03/10] fs: consistently use file_has_valid_mmap_hooks() helper
        https://git.kernel.org/vfs/vfs/c/b013ed403197
[04/10] fs/dax: make it possible to check dev dax support without a VMA
        https://git.kernel.org/vfs/vfs/c/0335f6afd348
[05/10] fs/ext4: transition from deprecated .mmap hook to .mmap_prepare
        https://git.kernel.org/vfs/vfs/c/8c90ae8fe5e3
[06/10] fs/xfs: transition from deprecated .mmap hook to .mmap_prepare
        https://git.kernel.org/vfs/vfs/c/6528d29b46d8
[07/10] mm/filemap: introduce generic_file_*_mmap_prepare() helpers
        https://git.kernel.org/vfs/vfs/c/5b44297bcfa4
[08/10] fs: convert simple use of generic_file_*_mmap() to .mmap_prepare()
        https://git.kernel.org/vfs/vfs/c/951ea2f4844c
[09/10] fs: convert most other generic_file_*mmap() users to .mmap_prepare()
        https://git.kernel.org/vfs/vfs/c/a5ee9a82981d
[10/10] fs: replace mmap hook with .mmap_prepare for simple mappings
        https://git.kernel.org/vfs/vfs/c/a1e5b36c4034
maintainer
#51 lore raw
In reply to Lorenzo Stoakes
Quoted 2 lines · Lorenzo Stoakes

This is preferred to the existing f_op->mmap() hook as it does require a VMA to be established yet,

Did you mean ".. doesn't require a VMA to be established yet, ..."

David

#52 lore raw
Quoted 9 lines · David Howells
Quoted 2 lines · Lorenzo Stoakes

This is preferred to the existing f_op->mmap() hook as it does require a VMA to be established yet,

Did you mean ".. doesn't require a VMA to be established yet, ..."

David

Yeah apologies, indeed I did :)

#53 lore raw

✓ i915.CI.BAT: success for convert the majority of file systems to mmap_prepare

In reply to Lorenzo Stoakes
== Series Details ==

== Series Details ==

Series: convert the majority of file systems to mmap_prepare
URL : https://patchwork.freedesktop.org/series/150389/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_16712 -> Patchwork_150389v1
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/index.html

Participating hosts (38 -> 43)
------------------------------

Additional (5): fi-ilk-650 bat-atsm-1 fi-pnv-d510 fi-bsw-nick fi-skl-6600u

Known issues
------------

Here are the changes found in Patchwork_150389v1 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@core_hotunplug@unbind-rebind:
- bat-rpls-4: [PASS][1] -> [DMESG-WARN][2] ([i915#13400])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/bat-rpls-4/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-rpls-4/igt@[email protected]

* igt@dmabuf@all-tests:
- fi-pnv-d510: NOTRUN -> [INCOMPLETE][3] ([i915#12904]) +1 other test incomplete
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-pnv-d510/igt@[email protected]

* igt@fbdev@info:
- fi-bsw-nick: NOTRUN -> [SKIP][4] ([i915#1849])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-bsw-nick/igt@[email protected]
- bat-atsm-1: NOTRUN -> [SKIP][5] ([i915#1849] / [i915#2582])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@fbdev@read:
- bat-atsm-1: NOTRUN -> [SKIP][6] ([i915#2582]) +3 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-skl-6600u: NOTRUN -> [SKIP][7] ([i915#2190])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-skl-6600u/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- fi-bsw-nick: NOTRUN -> [SKIP][8] +24 other tests skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-bsw-nick/igt@[email protected]

* igt@gem_lmem_swapping@random-engines:
- fi-skl-6600u: NOTRUN -> [SKIP][9] ([i915#4613]) +3 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-skl-6600u/igt@[email protected]

* igt@gem_mmap@basic:
- bat-atsm-1: NOTRUN -> [SKIP][10] ([i915#4083])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@gem_render_tiled_blits@basic:
- bat-atsm-1: NOTRUN -> [SKIP][11] ([i915#4079]) +1 other test skip
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@gem_tiled_fence_blits@basic:
- bat-atsm-1: NOTRUN -> [SKIP][12] ([i915#4077]) +4 other tests skip
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@i915_pm_rps@basic-api:
- bat-atsm-1: NOTRUN -> [SKIP][13] ([i915#6621])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@i915_selftest@live:
- bat-arlh-3: [PASS][14] -> [DMESG-FAIL][15] ([i915#14243]) +1 other test dmesg-fail
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/bat-arlh-3/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-arlh-3/igt@[email protected]
- bat-atsm-1: NOTRUN -> [DMESG-FAIL][16] ([i915#12061] / [i915#14204])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@i915_selftest@live@late_gt_pm:
- fi-cfl-8109u: [PASS][17] -> [DMESG-WARN][18] ([i915#13735]) +82 other tests dmesg-warn
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html

* igt@i915_selftest@live@mman:
- bat-atsm-1: NOTRUN -> [DMESG-FAIL][19] ([i915#14204])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-atsm-1: NOTRUN -> [DMESG-FAIL][20] ([i915#12061])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@i915_selftest@[email protected]

* igt@kms_addfb_basic@size-max:
- bat-atsm-1: NOTRUN -> [SKIP][21] ([i915#6077]) +37 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@kms_cursor_legacy@basic-flip-after-cursor-atomic:
- bat-atsm-1: NOTRUN -> [SKIP][22] ([i915#6078]) +22 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@kms_dsc@dsc-basic:
- fi-skl-6600u: NOTRUN -> [SKIP][23] +10 other tests skip
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-skl-6600u/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- bat-atsm-1: NOTRUN -> [SKIP][24] ([i915#6093]) +4 other tests skip
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc:
- fi-cfl-8109u: [PASS][25] -> [DMESG-WARN][26] ([i915#13735] / [i915#13890]) +49 other tests dmesg-warn
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/fi-cfl-8109u/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-cfl-8109u/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-frame-sequence:
- fi-bsw-nick: NOTRUN -> [SKIP][27] ([i915#11190]) +16 other tests skip
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-bsw-nick/igt@[email protected]
- bat-atsm-1: NOTRUN -> [SKIP][28] ([i915#1836]) +6 other tests skip
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@kms_pm_rpm@basic-pci-d3-state:
- fi-ilk-650: NOTRUN -> [SKIP][29] +24 other tests skip
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-ilk-650/igt@[email protected]

* igt@kms_prop_blob@basic:
- bat-atsm-1: NOTRUN -> [SKIP][30] ([i915#7357])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@kms_psr@psr-primary-mmap-gtt:
- fi-pnv-d510: NOTRUN -> [SKIP][31] +34 other tests skip
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/fi-pnv-d510/igt@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- bat-atsm-1: NOTRUN -> [SKIP][32] ([i915#6094])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

* igt@prime_vgem@basic-write:
- bat-atsm-1: NOTRUN -> [SKIP][33] +2 other tests skip
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-atsm-1/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live:
- bat-dg2-8: [DMESG-FAIL][34] ([i915#12061]) -> [PASS][35] +1 other test pass
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/bat-dg2-8/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-dg2-8/igt@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-mtlp-6: [DMESG-FAIL][36] ([i915#12061]) -> [PASS][37] +1 other test pass
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/bat-mtlp-6/igt@i915_selftest@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/bat-mtlp-6/igt@i915_selftest@[email protected]

[i915#11190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11190
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12904]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12904
[i915#13400]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13400
[i915#13735]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13735
[i915#13890]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13890
[i915#14204]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14204
[i915#14243]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14243
[i915#1836]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1836
[i915#1849]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1849
[i915#2190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2190
[i915#2582]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2582
[i915#4077]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4083
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#6077]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6077
[i915#6078]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6078
[i915#6093]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6093
[i915#6094]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6094
[i915#6621]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6621
[i915#7357]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7357

Build changes
-------------

* Linux: CI_DRM_16712 -> Patchwork_150389v1

CI-20190529: 20190529
CI_DRM_16712: 95f0ac069cc2eee10b5d5e0ba67502ccea089de8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8412: 8412
Patchwork_150389v1: 95f0ac069cc2eee10b5d5e0ba67502ccea089de8 @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/index.html

#54 lore raw

✓ i915.CI.Full: success for convert the majority of file systems to mmap_prepare

In reply to Lorenzo Stoakes
== Series Details ==

== Series Details ==

Series: convert the majority of file systems to mmap_prepare
URL : https://patchwork.freedesktop.org/series/150389/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_16712_full -> Patchwork_150389v1_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Participating hosts (10 -> 10)
------------------------------

No changes in participating hosts

New tests
---------

New tests have been introduced between CI_DRM_16712_full and Patchwork_150389v1_full:

### New IGT tests (1) ###

* igt@kms_plane_lowres@tiling-x@pipe-d-edp-1:
- Statuses : 1 skip(s)
- Exec time: [0.0] s

Known issues
------------

Here are the changes found in Patchwork_150389v1_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@api_intel_bb@blit-reloc-purge-cache:
- shard-dg2: NOTRUN -> [SKIP][1] ([i915#8411]) +1 other test skip
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@api_intel_bb@crc32:
- shard-tglu: NOTRUN -> [SKIP][2] ([i915#6230])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@api_intel_bb@object-reloc-purge-cache:
- shard-rkl: NOTRUN -> [SKIP][3] ([i915#8411])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@device_reset@unbind-cold-reset-rebind:
- shard-dg2: NOTRUN -> [SKIP][4] ([i915#11078])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@gem_busy@semaphore:
- shard-dg2-9: NOTRUN -> [SKIP][5] ([i915#3936])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_ccs@block-copy-compressed:
- shard-tglu: NOTRUN -> [SKIP][6] ([i915#3555] / [i915#9323])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@[email protected]

* igt@gem_ccs@block-multicopy-compressed:
- shard-rkl: NOTRUN -> [SKIP][7] ([i915#9323])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]
- shard-tglu-1: NOTRUN -> [SKIP][8] ([i915#9323])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@gem_ccs@block-multicopy-inplace:
- shard-rkl: NOTRUN -> [SKIP][9] ([i915#3555] / [i915#9323])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]

* igt@gem_ccs@ctrl-surf-copy-new-ctx:
- shard-tglu: NOTRUN -> [SKIP][10] ([i915#9323])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@gem_ccs@large-ctrl-surf-copy:
- shard-rkl: NOTRUN -> [SKIP][11] ([i915#13008])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@gem_ccs@suspend-resume@tile4-compressed-compfmt0-lmem0-lmem0:
- shard-dg2: NOTRUN -> [INCOMPLETE][12] ([i915#12392] / [i915#13356])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-4/igt@gem_ccs@[email protected]

* igt@gem_create@create-ext-set-pat:
- shard-dg2: NOTRUN -> [SKIP][13] ([i915#8562])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@gem_ctx_persistence@heartbeat-hostile:
- shard-dg2-9: NOTRUN -> [SKIP][14] ([i915#8555]) +2 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_ctx_shared@q-smoketest@bcs0:
- shard-rkl: [PASS][15] -> [DMESG-WARN][16] ([i915#12964]) +5 other tests dmesg-warn
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-8/igt@gem_ctx_shared@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@gem_ctx_shared@[email protected]

* igt@gem_ctx_sseu@invalid-sseu:
- shard-rkl: NOTRUN -> [SKIP][17] ([i915#280])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@gem_exec_balancer@bonded-pair:
- shard-dg2: NOTRUN -> [SKIP][18] ([i915#4771])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@gem_exec_balancer@bonded-sync:
- shard-mtlp: NOTRUN -> [SKIP][19] ([i915#4771])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@gem_exec_balancer@bonded-true-hang:
- shard-dg2-9: NOTRUN -> [SKIP][20] ([i915#4812])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_exec_balancer@parallel:
- shard-tglu: NOTRUN -> [SKIP][21] ([i915#4525])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@gem_exec_capture@capture-invisible:
- shard-dg2-9: NOTRUN -> [SKIP][22] ([i915#6334]) +2 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_exec_fence@concurrent:
- shard-dg2: NOTRUN -> [SKIP][23] ([i915#4812])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-3/igt@[email protected]

* igt@gem_exec_flush@basic-uc-prw-default:
- shard-dg2-9: NOTRUN -> [SKIP][24] ([i915#3539])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_exec_flush@basic-uc-ro-default:
- shard-dg2: NOTRUN -> [SKIP][25] ([i915#3539] / [i915#4852]) +1 other test skip
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@gem_exec_flush@basic-wb-set-default:
- shard-dg2-9: NOTRUN -> [SKIP][26] ([i915#3539] / [i915#4852])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_exec_reloc@basic-gtt-noreloc:
- shard-dg2-9: NOTRUN -> [SKIP][27] ([i915#3281]) +4 other tests skip
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_exec_reloc@basic-wc:
- shard-dg2: NOTRUN -> [SKIP][28] ([i915#3281]) +8 other tests skip
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@gem_exec_reloc@basic-wc-read-noreloc:
- shard-mtlp: NOTRUN -> [SKIP][29] ([i915#3281])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@gem_exec_reloc@basic-write-cpu-active:
- shard-dg1: NOTRUN -> [SKIP][30] ([i915#3281])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@gem_exec_reloc@basic-write-read-noreloc:
- shard-rkl: NOTRUN -> [SKIP][31] ([i915#3281]) +6 other tests skip
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@gem_exec_schedule@preempt-queue:
- shard-mtlp: NOTRUN -> [SKIP][32] ([i915#4537] / [i915#4812])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@gem_exec_schedule@preempt-queue-chain:
- shard-dg2-9: NOTRUN -> [SKIP][33] ([i915#4537] / [i915#4812])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_fence_thrash@bo-write-verify-x:
- shard-dg2: NOTRUN -> [SKIP][34] ([i915#4860]) +3 other tests skip
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@gem_fenced_exec_thrash@no-spare-fences:
- shard-mtlp: NOTRUN -> [SKIP][35] ([i915#4860])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-verify:
- shard-tglu: NOTRUN -> [SKIP][36] ([i915#4613]) +1 other test skip
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@[email protected]

* igt@gem_lmem_swapping@random-engines:
- shard-mtlp: NOTRUN -> [SKIP][37] ([i915#4613])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@gem_lmem_swapping@smem-oom@lmem0:
- shard-dg2: NOTRUN -> [TIMEOUT][38] ([i915#5493]) +1 other test timeout
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@gem_lmem_swapping@[email protected]

* igt@gem_lmem_swapping@verify:
- shard-rkl: NOTRUN -> [SKIP][39] ([i915#4613]) +2 other tests skip
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]
- shard-tglu-1: NOTRUN -> [SKIP][40] ([i915#4613]) +1 other test skip
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@gem_media_fill@media-fill:
- shard-dg2-9: NOTRUN -> [SKIP][41] ([i915#8289])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_media_vme:
- shard-rkl: NOTRUN -> [SKIP][42] ([i915#284])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@gem_media_vme.html

* igt@gem_mmap_gtt@basic-copy:
- shard-dg2-9: NOTRUN -> [SKIP][43] ([i915#4077]) +1 other test skip
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_mmap_gtt@basic-small-bo:
- shard-dg2: NOTRUN -> [SKIP][44] ([i915#4077]) +5 other tests skip
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@gem_mmap_gtt@basic-small-bo-tiledx:
- shard-mtlp: NOTRUN -> [SKIP][45] ([i915#4077]) +2 other tests skip
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@gem_mmap_gtt@big-bo-tiledx:
- shard-dg1: NOTRUN -> [SKIP][46] ([i915#4077]) +1 other test skip
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@gem_mmap_wc@close:
- shard-dg2: NOTRUN -> [SKIP][47] ([i915#4083]) +2 other tests skip
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@gem_mmap_wc@invalid-flags:
- shard-dg2-9: NOTRUN -> [SKIP][48] ([i915#4083]) +4 other tests skip
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_mmap_wc@write-wc-read-gtt:
- shard-mtlp: NOTRUN -> [SKIP][49] ([i915#4083])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@gem_partial_pwrite_pread@write-display:
- shard-mtlp: NOTRUN -> [SKIP][50] ([i915#3282])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@gem_partial_pwrite_pread@writes-after-reads-snoop:
- shard-dg2-9: NOTRUN -> [SKIP][51] ([i915#3282]) +3 other tests skip
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_partial_pwrite_pread@writes-after-reads-uncached:
- shard-rkl: NOTRUN -> [SKIP][52] ([i915#3282]) +5 other tests skip
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]

* igt@gem_pread@exhaustion:
- shard-tglu: NOTRUN -> [WARN][53] ([i915#2658])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]
- shard-dg2: NOTRUN -> [SKIP][54] ([i915#3282]) +1 other test skip
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-3/igt@[email protected]

* igt@gem_pwrite@basic-random:
- shard-dg1: NOTRUN -> [SKIP][55] ([i915#3282])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@gem_pxp@create-protected-buffer:
- shard-rkl: NOTRUN -> [TIMEOUT][56] ([i915#12964])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@gem_pxp@dmabuf-shared-protected-dst-is-context-refcounted:
- shard-dg2-9: NOTRUN -> [SKIP][57] ([i915#4270]) +2 other tests skip
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_pxp@protected-encrypted-src-copy-not-readible:
- shard-rkl: NOTRUN -> [TIMEOUT][58] ([i915#12917] / [i915#12964]) +1 other test timeout
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@gem_pxp@verify-pxp-execution-after-suspend-resume:
- shard-dg2: NOTRUN -> [SKIP][59] ([i915#4270]) +3 other tests skip
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@gem_render_copy@mixed-tiled-to-yf-tiled-ccs:
- shard-dg2-9: NOTRUN -> [SKIP][60] ([i915#5190] / [i915#8428]) +1 other test skip
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_render_copy@yf-tiled-ccs-to-yf-tiled:
- shard-mtlp: NOTRUN -> [SKIP][61] ([i915#8428])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@gem_render_copy@yf-tiled-mc-ccs-to-vebox-yf-tiled:
- shard-dg2: NOTRUN -> [SKIP][62] ([i915#5190] / [i915#8428]) +2 other tests skip
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@gem_set_tiling_vs_blt@tiled-to-tiled:
- shard-dg2: NOTRUN -> [SKIP][63] ([i915#4079]) +1 other test skip
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@gem_tiled_pread_basic:
- shard-dg2-9: NOTRUN -> [SKIP][64] ([i915#4079])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@gem_tiled_pread_basic.html

* igt@gem_userptr_blits@create-destroy-unsync:
- shard-dg2: NOTRUN -> [SKIP][65] ([i915#3297]) +2 other tests skip
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@gem_userptr_blits@invalid-mmap-offset-unsync:
- shard-tglu: NOTRUN -> [SKIP][66] ([i915#3297]) +1 other test skip
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@gem_userptr_blits@readonly-unsync:
- shard-rkl: NOTRUN -> [SKIP][67] ([i915#3297])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-3/igt@[email protected]

* igt@gem_userptr_blits@relocations:
- shard-dg2-9: NOTRUN -> [SKIP][68] ([i915#3281] / [i915#3297])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_userptr_blits@unsync-overlap:
- shard-dg2-9: NOTRUN -> [SKIP][69] ([i915#3297])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gem_workarounds@suspend-resume:
- shard-rkl: NOTRUN -> [INCOMPLETE][70] ([i915#13356])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-3/igt@[email protected]

* igt@gen7_exec_parse@basic-allowed:
- shard-dg2-9: NOTRUN -> [SKIP][71]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@gen9_exec_parse@batch-invalid-length:
- shard-rkl: NOTRUN -> [SKIP][72] ([i915#2527]) +2 other tests skip
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@gen9_exec_parse@batch-without-end:
- shard-mtlp: NOTRUN -> [SKIP][73] ([i915#2856]) +1 other test skip
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@gen9_exec_parse@bb-secure:
- shard-tglu: NOTRUN -> [SKIP][74] ([i915#2527] / [i915#2856]) +2 other tests skip
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@gen9_exec_parse@secure-batches:
- shard-dg2: NOTRUN -> [SKIP][75] ([i915#2856])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@gen9_exec_parse@valid-registers:
- shard-dg2-9: NOTRUN -> [SKIP][76] ([i915#2856]) +2 other tests skip
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@i915_drm_fdinfo@busy-idle-check-all@ccs0:
- shard-dg2: NOTRUN -> [SKIP][77] ([i915#11527]) +7 other tests skip
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@i915_drm_fdinfo@[email protected]

* igt@i915_drm_fdinfo@busy-idle@vcs0:
- shard-dg2-9: NOTRUN -> [SKIP][78] ([i915#14073]) +15 other tests skip
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@i915_drm_fdinfo@[email protected]

* igt@i915_fb_tiling@basic-x-tiling:
- shard-dg2: NOTRUN -> [SKIP][79] ([i915#13786])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@i915_pm_freq_api@freq-basic-api:
- shard-rkl: NOTRUN -> [SKIP][80] ([i915#8399])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@i915_pm_freq_api@freq-suspend@gt0:
- shard-dg2-9: NOTRUN -> [INCOMPLETE][81] ([i915#12455] / [i915#13820]) +1 other test incomplete
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@i915_pm_freq_api@[email protected]

* igt@i915_pm_rc6_residency@rc6-fence:
- shard-tglu: NOTRUN -> [WARN][82] ([i915#13790] / [i915#2681]) +1 other test warn
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@i915_pm_rc6_residency@rc6-idle@gt0-vecs0:
- shard-dg1: [PASS][83] -> [FAIL][84] ([i915#3591]) +1 other test fail
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-15/igt@i915_pm_rc6_residency@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-19/igt@i915_pm_rc6_residency@[email protected]

* igt@i915_pm_rps@thresholds-park:
- shard-mtlp: NOTRUN -> [SKIP][85] ([i915#11681])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@i915_pm_sseu@full-enable:
- shard-dg2: NOTRUN -> [SKIP][86] ([i915#4387])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@i915_query@test-query-geometry-subslices:
- shard-dg1: NOTRUN -> [SKIP][87] ([i915#5723])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@i915_selftest@live@workarounds:
- shard-dg2-9: NOTRUN -> [DMESG-FAIL][88] ([i915#12061]) +1 other test dmesg-fail
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@i915_selftest@[email protected]

* igt@i915_suspend@basic-s3-without-i915:
- shard-tglu-1: NOTRUN -> [INCOMPLETE][89] ([i915#4817] / [i915#7443])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@intel_hwmon@hwmon-read:
- shard-tglu: NOTRUN -> [SKIP][90] ([i915#7707])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-6/igt@[email protected]

* igt@intel_hwmon@hwmon-write:
- shard-rkl: NOTRUN -> [SKIP][91] ([i915#7707])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@kms_addfb_basic@basic-y-tiled-legacy:
- shard-mtlp: NOTRUN -> [SKIP][92] ([i915#4212])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_async_flips@async-flip-with-page-flip-events-tiled-atomic@pipe-b-hdmi-a-2-y-rc-ccs-cc:
- shard-rkl: NOTRUN -> [SKIP][93] ([i915#8709]) +1 other test skip
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@kms_async_flips@async-flip-with-page-flip-events-tiled-atomic@pipe-b-hdmi-a-2-y-rc-ccs-cc.html

* igt@kms_async_flips@async-flip-with-page-flip-events-tiled@pipe-a-hdmi-a-3-y-rc-ccs-cc:
- shard-dg1: NOTRUN -> [SKIP][94] ([i915#8709]) +7 other tests skip
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@kms_async_flips@async-flip-with-page-flip-events-tiled@pipe-a-hdmi-a-3-y-rc-ccs-cc.html

* igt@kms_atomic@plane-primary-overlay-mutable-zpos:
- shard-tglu: NOTRUN -> [SKIP][95] ([i915#9531])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@[email protected]

* igt@kms_atomic_transition@modeset-transition-fencing:
- shard-dg1: [PASS][96] -> [DMESG-WARN][97] ([i915#4423])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-15/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-19/igt@[email protected]

* igt@kms_atomic_transition@plane-all-modeset-transition-fencing:
- shard-tglu: [PASS][98] -> [FAIL][99] ([i915#11808]) +1 other test fail
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-tglu-6/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-4/igt@[email protected]

* igt@kms_atomic_transition@plane-all-modeset-transition-internal-panels:
- shard-dg2-9: NOTRUN -> [SKIP][100] ([i915#1769] / [i915#3555])
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@kms_atomic_transition@plane-all-modeset-transition-internal-panels.html
- shard-glk: NOTRUN -> [SKIP][101] ([i915#1769])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-glk6/igt@kms_atomic_transition@plane-all-modeset-transition-internal-panels.html

* igt@kms_big_fb@4-tiled-64bpp-rotate-0:
- shard-tglu-1: NOTRUN -> [SKIP][102] ([i915#5286])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-0:
- shard-rkl: NOTRUN -> [SKIP][103] ([i915#5286]) +4 other tests skip
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-async-flip:
- shard-dg1: NOTRUN -> [SKIP][104] ([i915#4538] / [i915#5286]) +1 other test skip
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html

* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip:
- shard-tglu: NOTRUN -> [SKIP][105] ([i915#5286]) +1 other test skip
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip.html

* igt@kms_big_fb@linear-8bpp-rotate-90:
- shard-rkl: NOTRUN -> [SKIP][106] ([i915#3638]) +3 other tests skip
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-3/igt@[email protected]

* igt@kms_big_fb@x-tiled-8bpp-rotate-90:
- shard-dg1: NOTRUN -> [SKIP][107] ([i915#3638])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@kms_big_fb@y-tiled-32bpp-rotate-90:
- shard-dg2-9: NOTRUN -> [SKIP][108] ([i915#4538] / [i915#5190]) +5 other tests skip
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_big_fb@yf-tiled-64bpp-rotate-0:
- shard-dg2: NOTRUN -> [SKIP][109] ([i915#4538] / [i915#5190]) +7 other tests skip
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_big_fb@yf-tiled-addfb-size-overflow:
- shard-dg2: NOTRUN -> [SKIP][110] ([i915#5190]) +2 other tests skip
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180:
- shard-dg1: NOTRUN -> [SKIP][111] ([i915#4538])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@kms_ccs@bad-rotation-90-4-tiled-bmg-ccs:
- shard-tglu: NOTRUN -> [SKIP][112] ([i915#12313])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_ccs@bad-rotation-90-4-tiled-mtl-rc-ccs-cc@pipe-b-hdmi-a-4:
- shard-dg1: NOTRUN -> [SKIP][113] ([i915#6095]) +169 other tests skip
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-14/igt@kms_ccs@[email protected]

* igt@kms_ccs@ccs-on-another-bo-y-tiled-ccs@pipe-b-dp-3:
- shard-dg2: NOTRUN -> [SKIP][114] ([i915#10307] / [i915#6095]) +113 other tests skip
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@kms_ccs@[email protected]

* igt@kms_ccs@ccs-on-another-bo-y-tiled-gen12-mc-ccs@pipe-b-hdmi-a-1:
- shard-tglu: NOTRUN -> [SKIP][115] ([i915#6095]) +74 other tests skip
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-6/igt@kms_ccs@[email protected]

* igt@kms_ccs@crc-primary-basic-4-tiled-lnl-ccs:
- shard-tglu-1: NOTRUN -> [SKIP][116] ([i915#12313])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_ccs@crc-primary-basic-4-tiled-mtl-rc-ccs@pipe-a-hdmi-a-1:
- shard-glk: NOTRUN -> [SKIP][117] +41 other tests skip
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-glk6/igt@kms_ccs@[email protected]

* igt@kms_ccs@crc-primary-rotation-180-4-tiled-lnl-ccs:
- shard-rkl: NOTRUN -> [SKIP][118] ([i915#12313]) +2 other tests skip
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]

* igt@kms_ccs@crc-primary-rotation-180-4-tiled-mtl-rc-ccs-cc@pipe-d-hdmi-a-1:
- shard-dg2: NOTRUN -> [SKIP][119] ([i915#10307] / [i915#10434] / [i915#6095]) +2 other tests skip
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-4/igt@kms_ccs@crc-primary-rotation-180-4-tiled-mtl-rc-ccs-cc@pipe-d-hdmi-a-1.html

* igt@kms_ccs@crc-primary-suspend-4-tiled-lnl-ccs:
- shard-mtlp: NOTRUN -> [SKIP][120] ([i915#12805])
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_ccs@crc-primary-suspend-4-tiled-mtl-rc-ccs@pipe-b-hdmi-a-2:
- shard-rkl: NOTRUN -> [SKIP][121] ([i915#14098] / [i915#6095]) +57 other tests skip
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-6/igt@kms_ccs@[email protected]

* igt@kms_ccs@crc-primary-suspend-y-tiled-gen12-rc-ccs-cc@pipe-b-hdmi-a-3:
- shard-dg2: NOTRUN -> [SKIP][122] ([i915#6095]) +8 other tests skip
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@kms_ccs@[email protected]

* igt@kms_ccs@crc-primary-suspend-yf-tiled-ccs@pipe-d-edp-1:
- shard-mtlp: NOTRUN -> [SKIP][123] ([i915#6095]) +9 other tests skip
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@kms_ccs@[email protected]

* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-bmg-ccs:
- shard-dg1: NOTRUN -> [SKIP][124] ([i915#12313])
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]
- shard-dg2: NOTRUN -> [SKIP][125] ([i915#12313])
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-1/igt@[email protected]

* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-mtl-rc-ccs@pipe-c-hdmi-a-1:
- shard-tglu-1: NOTRUN -> [SKIP][126] ([i915#6095]) +29 other tests skip
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@kms_ccs@[email protected]

* igt@kms_ccs@crc-sprite-planes-basic-yf-tiled-ccs@pipe-b-hdmi-a-2:
- shard-dg2-9: NOTRUN -> [SKIP][127] ([i915#10307] / [i915#6095]) +39 other tests skip
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@kms_ccs@[email protected]

* igt@kms_ccs@missing-ccs-buffer-4-tiled-mtl-rc-ccs-cc@pipe-a-hdmi-a-1:
- shard-rkl: NOTRUN -> [SKIP][128] ([i915#6095]) +49 other tests skip
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@kms_ccs@[email protected]

* igt@kms_cdclk@mode-transition@pipe-d-hdmi-a-3:
- shard-dg2: NOTRUN -> [SKIP][129] ([i915#13781]) +4 other tests skip
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@kms_cdclk@[email protected]

* igt@kms_cdclk@plane-scaling@pipe-c-edp-1:
- shard-mtlp: NOTRUN -> [SKIP][130] ([i915#13783]) +4 other tests skip
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@kms_cdclk@[email protected]

* igt@kms_chamelium_audio@hdmi-audio:
- shard-dg2-9: NOTRUN -> [SKIP][131] ([i915#11151] / [i915#7828]) +4 other tests skip
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_chamelium_color@ctm-blue-to-red:
- shard-mtlp: NOTRUN -> [SKIP][132] +5 other tests skip
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_chamelium_frames@hdmi-crc-fast:
- shard-dg2: NOTRUN -> [SKIP][133] ([i915#11151] / [i915#7828]) +8 other tests skip
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@kms_chamelium_frames@hdmi-crc-single:
- shard-mtlp: NOTRUN -> [SKIP][134] ([i915#11151] / [i915#7828])
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_chamelium_frames@vga-frame-dump:
- shard-rkl: NOTRUN -> [SKIP][135] ([i915#11151] / [i915#7828]) +10 other tests skip
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]
- shard-tglu-1: NOTRUN -> [SKIP][136] ([i915#11151] / [i915#7828]) +2 other tests skip
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_chamelium_hpd@hdmi-hpd-after-suspend:
- shard-dg1: NOTRUN -> [SKIP][137] ([i915#11151] / [i915#7828]) +1 other test skip
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@kms_chamelium_hpd@hdmi-hpd-for-each-pipe:
- shard-tglu: NOTRUN -> [SKIP][138] ([i915#11151] / [i915#7828]) +6 other tests skip
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_color@deep-color:
- shard-dg1: NOTRUN -> [SKIP][139] ([i915#3555])
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@kms_content_protection@atomic@pipe-a-dp-3:
- shard-dg2: NOTRUN -> [FAIL][140] ([i915#7173])
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@kms_content_protection@[email protected]

* igt@kms_content_protection@dp-mst-type-1:
- shard-tglu: NOTRUN -> [SKIP][141] ([i915#3116] / [i915#3299]) +1 other test skip
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_content_protection@legacy:
- shard-dg2-9: NOTRUN -> [SKIP][142] ([i915#7118] / [i915#9424])
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_content_protection@lic-type-0:
- shard-mtlp: NOTRUN -> [SKIP][143] ([i915#14386])
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_content_protection@lic-type-1:
- shard-dg2: NOTRUN -> [SKIP][144] ([i915#9424])
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_content_protection@mei-interface:
- shard-tglu: NOTRUN -> [SKIP][145] ([i915#6944] / [i915#9424])
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@[email protected]

* igt@kms_content_protection@srm:
- shard-dg2-9: NOTRUN -> [SKIP][146] ([i915#7118])
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_cursor_crc@cursor-onscreen-256x85:
- shard-mtlp: NOTRUN -> [SKIP][147] ([i915#8814])
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_cursor_crc@cursor-onscreen-512x512:
- shard-dg2: NOTRUN -> [SKIP][148] ([i915#13049]) +2 other tests skip
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@kms_cursor_crc@cursor-random-512x170:
- shard-rkl: NOTRUN -> [SKIP][149] ([i915#13049])
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]
- shard-tglu-1: NOTRUN -> [SKIP][150] ([i915#13049])
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_cursor_crc@cursor-random-512x512:
- shard-dg2-9: NOTRUN -> [SKIP][151] ([i915#13049]) +1 other test skip
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_cursor_crc@cursor-random-64x21:
- shard-rkl: [PASS][152] -> [FAIL][153] ([i915#13566]) +1 other test fail
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-5/igt@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-3/igt@[email protected]

* igt@kms_cursor_crc@cursor-rapid-movement-32x10:
- shard-mtlp: NOTRUN -> [SKIP][154] ([i915#3555] / [i915#8814])
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_cursor_crc@cursor-sliding-32x10:
- shard-dg2: NOTRUN -> [SKIP][155] ([i915#3555]) +4 other tests skip
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_cursor_crc@cursor-sliding-64x21:
- shard-rkl: NOTRUN -> [FAIL][156] ([i915#13566]) +3 other tests fail
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@kms_cursor_legacy@2x-cursor-vs-flip-legacy:
- shard-mtlp: NOTRUN -> [SKIP][157] ([i915#9809]) +1 other test skip
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-atomic:
- shard-dg2: NOTRUN -> [SKIP][158] ([i915#13046] / [i915#5354]) +7 other tests skip
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- shard-dg2-9: NOTRUN -> [SKIP][159] ([i915#4103] / [i915#4213])
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-varying-size:
- shard-dg2: NOTRUN -> [SKIP][160] ([i915#4103] / [i915#4213])
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-varying-size.html

* igt@kms_cursor_legacy@cursora-vs-flipb-toggle:
- shard-dg2-9: NOTRUN -> [SKIP][161] ([i915#13046] / [i915#5354]) +4 other tests skip
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_cursor_legacy@cursorb-vs-flipa-legacy:
- shard-rkl: NOTRUN -> [SKIP][162] +14 other tests skip
[162]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@kms_cursor_legacy@modeset-atomic-cursor-hotspot:
- shard-dg2: NOTRUN -> [SKIP][163] ([i915#9067])
[163]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_dirtyfb@drrs-dirtyfb-ioctl:
- shard-rkl: NOTRUN -> [SKIP][164] ([i915#9723])
[164]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@kms_dither@fb-8bpc-vs-panel-6bpc:
- shard-rkl: NOTRUN -> [SKIP][165] ([i915#3555] / [i915#3804])
[165]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]

* igt@kms_dither@fb-8bpc-vs-panel-6bpc@pipe-a-hdmi-a-1:
- shard-rkl: NOTRUN -> [SKIP][166] ([i915#3804])
[166]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@kms_dither@[email protected]

* igt@kms_dp_link_training@non-uhbr-mst:
- shard-tglu: NOTRUN -> [SKIP][167] ([i915#13749])
[167]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_dp_link_training@non-uhbr-sst:
- shard-dg2-9: NOTRUN -> [SKIP][168] ([i915#13749])
[168]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_dp_link_training@uhbr-sst:
- shard-dg2: NOTRUN -> [SKIP][169] ([i915#13748])
[169]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_dp_linktrain_fallback@dp-fallback:
- shard-tglu: NOTRUN -> [SKIP][170] ([i915#13707])
[170]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-6/igt@[email protected]

* igt@kms_draw_crc@draw-method-mmap-wc:
- shard-dg2: NOTRUN -> [SKIP][171] ([i915#8812])
[171]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@kms_dsc@dsc-fractional-bpp:
- shard-dg2-9: NOTRUN -> [SKIP][172] ([i915#3840] / [i915#9688])
[172]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_dsc@dsc-fractional-bpp-with-bpc:
- shard-rkl: NOTRUN -> [SKIP][173] ([i915#3840])
[173]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]
- shard-tglu-1: NOTRUN -> [SKIP][174] ([i915#3840])
[174]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_dsc@dsc-with-bpc:
- shard-mtlp: NOTRUN -> [SKIP][175] ([i915#3555] / [i915#3840]) +1 other test skip
[175]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_dsc@dsc-with-output-formats-with-bpc:
- shard-tglu: NOTRUN -> [SKIP][176] ([i915#3840] / [i915#9053])
[176]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_fbcon_fbt@psr:
- shard-rkl: NOTRUN -> [SKIP][177] ([i915#3955])
[177]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@kms_fbcon_fbt@psr-suspend:
- shard-dg1: NOTRUN -> [SKIP][178] ([i915#3469])
[178]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]
- shard-dg2: NOTRUN -> [SKIP][179] ([i915#3469])
[179]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-1/igt@[email protected]

* igt@kms_feature_discovery@chamelium:
- shard-tglu: NOTRUN -> [SKIP][180] ([i915#2065] / [i915#4854])
[180]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@[email protected]

* igt@kms_feature_discovery@display-4x:
- shard-rkl: NOTRUN -> [SKIP][181] ([i915#1839])
[181]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@kms_feature_discovery@psr1:
- shard-dg2-9: NOTRUN -> [SKIP][182] ([i915#658])
[182]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_flip@2x-flip-vs-dpms-off-vs-modeset:
- shard-tglu-1: NOTRUN -> [SKIP][183] ([i915#3637] / [i915#9934]) +2 other tests skip
[183]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_flip@2x-flip-vs-dpms-on-nop:
- shard-dg1: NOTRUN -> [SKIP][184] ([i915#9934]) +3 other tests skip
[184]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@kms_flip@2x-flip-vs-fences:
- shard-dg2: NOTRUN -> [SKIP][185] ([i915#8381])
[185]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_flip@2x-flip-vs-modeset:
- shard-tglu: NOTRUN -> [SKIP][186] ([i915#3637] / [i915#9934]) +5 other tests skip
[186]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_flip@2x-flip-vs-modeset-vs-hang:
- shard-dg2: NOTRUN -> [SKIP][187] ([i915#9934]) +11 other tests skip
[187]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_flip@2x-flip-vs-wf_vblank-interruptible:
- shard-dg2-9: NOTRUN -> [SKIP][188] ([i915#9934]) +2 other tests skip
[188]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@kms_flip@2x-flip-vs-wf_vblank-interruptible.html

* igt@kms_flip@2x-wf_vblank-ts-check-interruptible:
- shard-rkl: NOTRUN -> [SKIP][189] ([i915#9934]) +8 other tests skip
[189]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@kms_flip@2x-wf_vblank-ts-check-interruptible.html

* igt@kms_flip@flip-vs-absolute-wf_vblank:
- shard-snb: [PASS][190] -> [FAIL][191] ([i915#13734]) +1 other test fail
[190]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-snb2/igt@kms_flip@flip-vs-absolute-wf_vblank.html
[191]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-snb7/igt@kms_flip@flip-vs-absolute-wf_vblank.html

* igt@kms_flip@wf_vblank-ts-check@a-hdmi-a1:
- shard-tglu: [PASS][192] -> [FAIL][193] ([i915#13734]) +1 other test fail
[192]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-tglu-10/igt@kms_flip@[email protected]
[193]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-6/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-upscaling@pipe-a-valid-mode:
- shard-rkl: NOTRUN -> [SKIP][194] ([i915#2672]) +5 other tests skip
[194]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-upscaling@pipe-a-valid-mode.html

* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling:
- shard-dg2-9: NOTRUN -> [SKIP][195] ([i915#2672] / [i915#3555])
[195]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling.html

* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling@pipe-a-valid-mode:
- shard-dg2-9: NOTRUN -> [SKIP][196] ([i915#2672])
[196]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling@pipe-a-valid-mode.html

* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-64bpp-yftile-upscaling:
- shard-tglu: NOTRUN -> [SKIP][197] ([i915#2672] / [i915#3555]) +1 other test skip
[197]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-64bpp-yftile-upscaling.html

* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-64bpp-yftile-upscaling@pipe-a-valid-mode:
- shard-tglu: NOTRUN -> [SKIP][198] ([i915#2587] / [i915#2672]) +1 other test skip
[198]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-64bpp-yftile-upscaling@pipe-a-valid-mode.html

* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-valid-mode:
- shard-dg2: NOTRUN -> [SKIP][199] ([i915#2672]) +3 other tests skip
[199]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-valid-mode.html

* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling:
- shard-rkl: NOTRUN -> [SKIP][200] ([i915#2672] / [i915#3555]) +5 other tests skip
[200]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling.html
- shard-tglu-1: NOTRUN -> [SKIP][201] ([i915#2672] / [i915#3555]) +1 other test skip
[201]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling.html

* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling@pipe-a-valid-mode:
- shard-tglu-1: NOTRUN -> [SKIP][202] ([i915#2587] / [i915#2672]) +1 other test skip
[202]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@kms_flip_scaled_crc@[email protected]

* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-downscaling:
- shard-dg1: NOTRUN -> [SKIP][203] ([i915#2672] / [i915#3555])
[203]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-downscaling.html

* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-downscaling@pipe-a-valid-mode:
- shard-dg1: NOTRUN -> [SKIP][204] ([i915#2587] / [i915#2672])
[204]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-downscaling@pipe-a-valid-mode.html

* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling:
- shard-dg2: NOTRUN -> [SKIP][205] ([i915#2672] / [i915#3555] / [i915#5190]) +1 other test skip
[205]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling.html

* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling:
- shard-dg2: NOTRUN -> [SKIP][206] ([i915#2672] / [i915#3555]) +3 other tests skip
[206]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling.html

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-cpu:
- shard-dg2: NOTRUN -> [FAIL][207] ([i915#6880])
[207]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-cpu.html

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-blt:
- shard-dg2: NOTRUN -> [SKIP][208] ([i915#5354]) +26 other tests skip
[208]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-3/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-mmap-wc:
- shard-dg2: NOTRUN -> [SKIP][209] ([i915#8708]) +14 other tests skip
[209]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-3/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-mmap-wc.html

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-mmap-gtt:
- shard-dg1: NOTRUN -> [SKIP][210] ([i915#8708])
[210]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-mmap-gtt.html

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-indfb-pgflip-blt:
- shard-mtlp: NOTRUN -> [SKIP][211] ([i915#1825]) +7 other tests skip
[211]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-shrfb-fliptrack-mmap-gtt:
- shard-dg2-9: NOTRUN -> [SKIP][212] ([i915#8708]) +9 other tests skip
[212]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-blt:
- shard-dg2-9: NOTRUN -> [FAIL][213] ([i915#6880])
[213]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-glk: NOTRUN -> [INCOMPLETE][214] ([i915#10056] / [i915#13353])
[214]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-glk6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-tiling-4:
- shard-dg1: NOTRUN -> [SKIP][215] ([i915#5439])
[215]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-cpu:
- shard-dg2-9: NOTRUN -> [SKIP][216] ([i915#3458]) +5 other tests skip
[216]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-mmap-cpu.html

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-pwrite:
- shard-dg1: NOTRUN -> [SKIP][217] ([i915#3458])
[217]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-pwrite.html

* igt@kms_frontbuffer_tracking@fbcpsr-1p-rte:
- shard-rkl: NOTRUN -> [SKIP][218] ([i915#3023]) +22 other tests skip
[218]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-mmap-gtt:
- shard-rkl: NOTRUN -> [SKIP][219] ([i915#1825]) +37 other tests skip
[219]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-mmap-gtt.html

* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-mmap-cpu:
- shard-dg2-9: NOTRUN -> [SKIP][220] ([i915#5354]) +14 other tests skip
[220]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-pri-indfb-draw-mmap-cpu.html

* igt@kms_frontbuffer_tracking@fbcpsr-tiling-4:
- shard-rkl: NOTRUN -> [SKIP][221] ([i915#5439])
[221]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-cpu:
- shard-tglu: NOTRUN -> [SKIP][222] +65 other tests skip
[222]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-cpu.html

* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-mmap-gtt:
- shard-mtlp: NOTRUN -> [SKIP][223] ([i915#8708]) +2 other tests skip
[223]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-mmap-gtt.html

* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-pwrite:
- shard-dg2: NOTRUN -> [SKIP][224] ([i915#3458]) +16 other tests skip
[224]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-pwrite.html

* igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-mmap-wc:
- shard-tglu-1: NOTRUN -> [SKIP][225] +27 other tests skip
[225]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-mmap-wc.html

* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-mmap-cpu:
- shard-dg1: NOTRUN -> [SKIP][226] +5 other tests skip
[226]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-mmap-cpu.html

* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-mmap-cpu:
- shard-snb: NOTRUN -> [SKIP][227] +21 other tests skip
[227]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-snb4/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-mmap-cpu.html

* igt@kms_hdr@bpc-switch:
- shard-dg2-9: NOTRUN -> [SKIP][228] ([i915#3555] / [i915#8228])
[228]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_hdr@brightness-with-hdr:
- shard-dg2: NOTRUN -> [SKIP][229] ([i915#12713])
[229]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_hdr@invalid-hdr:
- shard-rkl: NOTRUN -> [SKIP][230] ([i915#3555] / [i915#8228]) +1 other test skip
[230]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@kms_hdr@static-swap:
- shard-tglu-1: NOTRUN -> [SKIP][231] ([i915#3555] / [i915#8228])
[231]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_hdr@static-toggle:
- shard-tglu: NOTRUN -> [SKIP][232] ([i915#3555] / [i915#8228])
[232]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_hdr@static-toggle-dpms:
- shard-dg2: NOTRUN -> [SKIP][233] ([i915#3555] / [i915#8228])
[233]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_joiner@basic-max-non-joiner:
- shard-rkl: NOTRUN -> [SKIP][234] ([i915#13688])
[234]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@kms_joiner@basic-ultra-joiner:
- shard-dg2-9: NOTRUN -> [SKIP][235] ([i915#12339])
[235]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_joiner@invalid-modeset-force-big-joiner:
- shard-rkl: NOTRUN -> [SKIP][236] ([i915#12388])
[236]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]
- shard-tglu-1: NOTRUN -> [SKIP][237] ([i915#12388])
[237]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_joiner@invalid-modeset-force-ultra-joiner:
- shard-tglu: NOTRUN -> [SKIP][238] ([i915#12394])
[238]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@[email protected]

* igt@kms_joiner@invalid-modeset-ultra-joiner:
- shard-mtlp: NOTRUN -> [SKIP][239] ([i915#12339])
[239]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
- shard-rkl: NOTRUN -> [SKIP][240] ([i915#4816])
[240]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@kms_panel_fitting@legacy:
- shard-tglu: NOTRUN -> [SKIP][241] ([i915#6301])
[241]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@[email protected]

* igt@kms_pipe_b_c_ivb@from-pipe-c-to-b-with-3-lanes:
- shard-dg2: NOTRUN -> [SKIP][242] +10 other tests skip
[242]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_pipe_stress@stress-xrgb8888-ytiled:
- shard-dg2: NOTRUN -> [SKIP][243] ([i915#13705])
[243]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_plane_lowres@tiling-4:
- shard-tglu: NOTRUN -> [SKIP][244] ([i915#3555]) +10 other tests skip
[244]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_plane_lowres@tiling-yf:
- shard-rkl: NOTRUN -> [SKIP][245] ([i915#3555]) +3 other tests skip
[245]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]
- shard-tglu-1: NOTRUN -> [SKIP][246] ([i915#3555])
[246]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_plane_multiple@2x-tiling-x:
- shard-dg2-9: NOTRUN -> [SKIP][247] ([i915#13958])
[247]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_plane_multiple@tiling-4:
- shard-rkl: NOTRUN -> [SKIP][248] ([i915#14259])
[248]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@kms_plane_multiple@tiling-y:
- shard-dg2-9: NOTRUN -> [SKIP][249] ([i915#14259])
[249]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_plane_multiple@tiling-yf:
- shard-tglu: NOTRUN -> [SKIP][250] ([i915#14259])
[250]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@[email protected]

* igt@kms_plane_scaling@intel-max-src-size:
- shard-rkl: NOTRUN -> [SKIP][251] ([i915#6953])
[251]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]

* igt@kms_plane_scaling@planes-downscale-factor-0-25:
- shard-dg2: NOTRUN -> [SKIP][252] ([i915#12247] / [i915#6953] / [i915#9423])
[252]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-3/igt@[email protected]
- shard-tglu: NOTRUN -> [SKIP][253] ([i915#12247] / [i915#6953])
[253]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25:
- shard-dg2-9: NOTRUN -> [SKIP][254] ([i915#12247] / [i915#6953] / [i915#9423]) +1 other test skip
[254]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25.html

* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-b:
- shard-tglu: NOTRUN -> [SKIP][255] ([i915#12247]) +7 other tests skip
[255]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-d:
- shard-dg2: NOTRUN -> [SKIP][256] ([i915#12247]) +3 other tests skip
[256]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-3/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-downscale-factor-0-5-upscale-factor-0-25:
- shard-mtlp: NOTRUN -> [SKIP][257] ([i915#6953])
[257]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@kms_plane_scaling@planes-downscale-factor-0-5-upscale-factor-0-25.html

* igt@kms_plane_scaling@planes-downscale-factor-0-5-upscale-factor-0-25@pipe-b:
- shard-mtlp: NOTRUN -> [SKIP][258] ([i915#12247]) +3 other tests skip
[258]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-c:
- shard-dg2-9: NOTRUN -> [SKIP][259] ([i915#12247]) +7 other tests skip
[259]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25:
- shard-rkl: NOTRUN -> [SKIP][260] ([i915#12247] / [i915#6953])
[260]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25.html

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-a:
- shard-rkl: NOTRUN -> [SKIP][261] ([i915#12247]) +3 other tests skip
[261]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@kms_plane_scaling@[email protected]

* igt@kms_pm_backlight@bad-brightness:
- shard-rkl: NOTRUN -> [SKIP][262] ([i915#5354]) +1 other test skip
[262]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]
- shard-tglu-1: NOTRUN -> [SKIP][263] ([i915#9812])
[263]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_pm_backlight@brightness-with-dpms:
- shard-dg2: NOTRUN -> [SKIP][264] ([i915#12343])
[264]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@kms_pm_dc@dc5-psr:
- shard-tglu: NOTRUN -> [SKIP][265] ([i915#9685]) +1 other test skip
[265]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_pm_rpm@dpms-mode-unset-non-lpsp:
- shard-tglu-1: NOTRUN -> [SKIP][266] ([i915#9519])
[266]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_pm_rpm@modeset-lpsp:
- shard-dg2-9: NOTRUN -> [SKIP][267] ([i915#9519]) +1 other test skip
[267]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_pm_rpm@modeset-lpsp-stress-no-wait:
- shard-rkl: [PASS][268] -> [SKIP][269] ([i915#9519]) +1 other test skip
[268]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-7/igt@[email protected]
[269]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-3/igt@[email protected]

* igt@kms_prime@basic-crc-hybrid:
- shard-tglu: NOTRUN -> [SKIP][270] ([i915#6524])
[270]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_prime@basic-crc-vgem:
- shard-dg2: NOTRUN -> [SKIP][271] ([i915#6524] / [i915#6805])
[271]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_prime@d3hot:
- shard-rkl: NOTRUN -> [SKIP][272] ([i915#6524])
[272]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]

* igt@kms_psr2_sf@fbc-pr-cursor-plane-move-continuous-exceed-sf:
- shard-dg1: NOTRUN -> [SKIP][273] ([i915#11520]) +1 other test skip
[273]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@kms_psr2_sf@fbc-pr-overlay-plane-move-continuous-exceed-fully-sf:
- shard-dg2: NOTRUN -> [SKIP][274] ([i915#11520]) +4 other tests skip
[274]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@kms_psr2_sf@fbc-pr-overlay-plane-move-continuous-exceed-fully-sf.html

* igt@kms_psr2_sf@fbc-pr-overlay-plane-update-sf-dmg-area:
- shard-mtlp: NOTRUN -> [SKIP][275] ([i915#12316])
[275]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_psr2_sf@fbc-psr2-overlay-plane-move-continuous-exceed-fully-sf:
- shard-snb: NOTRUN -> [SKIP][276] ([i915#11520])
[276]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-snb4/igt@kms_psr2_sf@fbc-psr2-overlay-plane-move-continuous-exceed-fully-sf.html

* igt@kms_psr2_sf@fbc-psr2-overlay-primary-update-sf-dmg-area:
- shard-rkl: NOTRUN -> [SKIP][277] ([i915#11520]) +7 other tests skip
[277]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@kms_psr2_sf@pr-overlay-plane-move-continuous-exceed-sf:
- shard-glk: NOTRUN -> [SKIP][278] ([i915#11520])
[278]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-glk6/igt@[email protected]

* igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-sf:
- shard-tglu: NOTRUN -> [SKIP][279] ([i915#11520]) +6 other tests skip
[279]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_psr2_sf@psr2-overlay-plane-update-continuous-sf:
- shard-dg2-9: NOTRUN -> [SKIP][280] ([i915#11520]) +3 other tests skip
[280]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_psr2_sf@psr2-overlay-plane-update-sf-dmg-area:
- shard-tglu-1: NOTRUN -> [SKIP][281] ([i915#11520]) +2 other tests skip
[281]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_psr2_su@page_flip-p010:
- shard-rkl: NOTRUN -> [SKIP][282] ([i915#9683])
[282]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@kms_psr2_su@page_flip-p010.html

* igt@kms_psr2_su@page_flip-xrgb8888:
- shard-dg2: NOTRUN -> [SKIP][283] ([i915#9683])
[283]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-3/igt@kms_psr2_su@page_flip-xrgb8888.html
- shard-tglu: NOTRUN -> [SKIP][284] ([i915#9683])
[284]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@kms_psr2_su@page_flip-xrgb8888.html

* igt@kms_psr@fbc-psr-primary-page-flip@edp-1:
- shard-mtlp: NOTRUN -> [SKIP][285] ([i915#9688]) +4 other tests skip
[285]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@kms_psr@[email protected]

* igt@kms_psr@fbc-psr2-primary-blt:
- shard-dg2-9: NOTRUN -> [SKIP][286] ([i915#1072] / [i915#9732]) +9 other tests skip
[286]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_psr@psr-cursor-mmap-gtt:
- shard-dg1: NOTRUN -> [SKIP][287] ([i915#1072] / [i915#9732])
[287]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@kms_psr@psr-cursor-render:
- shard-dg2: NOTRUN -> [SKIP][288] ([i915#1072] / [i915#9732]) +18 other tests skip
[288]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@kms_psr@psr-sprite-plane-move:
- shard-rkl: NOTRUN -> [SKIP][289] ([i915#1072] / [i915#9732]) +18 other tests skip
[289]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@kms_psr@psr2-cursor-plane-onoff:
- shard-tglu: NOTRUN -> [SKIP][290] ([i915#9732]) +13 other tests skip
[290]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_psr@psr2-primary-mmap-cpu:
- shard-tglu-1: NOTRUN -> [SKIP][291] ([i915#9732]) +3 other tests skip
[291]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-1/igt@[email protected]

* igt@kms_psr_stress_test@invalidate-primary-flip-overlay:
- shard-dg2-9: NOTRUN -> [SKIP][292] ([i915#9685])
[292]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_rotation_crc@exhaust-fences:
- shard-dg2-9: NOTRUN -> [SKIP][293] ([i915#4235])
[293]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_rotation_crc@primary-4-tiled-reflect-x-180:
- shard-rkl: NOTRUN -> [SKIP][294] ([i915#5289])
[294]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]

* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0:
- shard-tglu: NOTRUN -> [SKIP][295] ([i915#5289]) +1 other test skip
[295]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@[email protected]

* igt@kms_selftest@drm_format:
- shard-rkl: NOTRUN -> [DMESG-WARN][296] ([i915#12964]) +13 other tests dmesg-warn
[296]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@kms_selftest@drm_format.html

* igt@kms_tiled_display@basic-test-pattern:
- shard-dg2: NOTRUN -> [SKIP][297] ([i915#8623])
[297]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@kms_vrr@flip-basic-fastset:
- shard-tglu: NOTRUN -> [SKIP][298] ([i915#9906])
[298]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-7/igt@[email protected]

* igt@kms_vrr@flip-suspend:
- shard-dg2-9: NOTRUN -> [SKIP][299] ([i915#3555]) +1 other test skip
[299]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_vrr@lobf:
- shard-tglu: NOTRUN -> [SKIP][300] ([i915#11920])
[300]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_vrr@seamless-rr-switch-vrr:
- shard-dg2-9: NOTRUN -> [SKIP][301] ([i915#9906]) +1 other test skip
[301]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@kms_writeback@writeback-check-output-xrgb2101010:
- shard-mtlp: NOTRUN -> [SKIP][302] ([i915#2437] / [i915#9412])
[302]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@[email protected]

* igt@kms_writeback@writeback-fb-id:
- shard-rkl: NOTRUN -> [SKIP][303] ([i915#2437])
[303]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]

* igt@kms_writeback@writeback-fb-id-xrgb2101010:
- shard-dg2: NOTRUN -> [SKIP][304] ([i915#2437] / [i915#9412])
[304]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@kms_writeback@writeback-invalid-parameters:
- shard-tglu: NOTRUN -> [SKIP][305] ([i915#2437]) +1 other test skip
[305]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-3/igt@[email protected]

* igt@kms_writeback@writeback-pixel-formats:
- shard-glk: NOTRUN -> [SKIP][306] ([i915#2437])
[306]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-glk6/igt@[email protected]
- shard-dg2-9: NOTRUN -> [SKIP][307] ([i915#2437] / [i915#9412])
[307]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@perf@mi-rpc:
- shard-rkl: NOTRUN -> [SKIP][308] ([i915#2434])
[308]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@perf@non-zero-reason:
- shard-dg2: NOTRUN -> [FAIL][309] ([i915#9100]) +1 other test fail
[309]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@perf_pmu@module-unload:
- shard-rkl: NOTRUN -> [FAIL][310] ([i915#14433])
[310]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@prime_vgem@basic-read:
- shard-rkl: NOTRUN -> [SKIP][311] ([i915#3291] / [i915#3708])
[311]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@prime_vgem@basic-write:
- shard-dg2: NOTRUN -> [SKIP][312] ([i915#3291] / [i915#3708])
[312]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-6/igt@[email protected]

* igt@prime_vgem@fence-read-hang:
- shard-dg2-9: NOTRUN -> [SKIP][313] ([i915#3708])
[313]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-9/igt@[email protected]

* igt@sriov_basic@bind-unbind-vf:
- shard-dg1: NOTRUN -> [SKIP][314] ([i915#9917])
[314]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@sriov_basic@enable-vfs-autoprobe-off:
- shard-rkl: NOTRUN -> [SKIP][315] ([i915#9917]) +1 other test skip
[315]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@tools_test@sysfs_l3_parity:
- shard-mtlp: NOTRUN -> [SKIP][316] ([i915#4818])
[316]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-1/igt@tools_test@sysfs_l3_parity.html

#### Possible fixes ####

* igt@gem_ccs@suspend-resume@linear-compressed-compfmt0-smem-lmem0:
- shard-dg2: [INCOMPLETE][317] ([i915#13356]) -> [PASS][318]
[317]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg2-3/igt@gem_ccs@[email protected]
[318]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-4/igt@gem_ccs@[email protected]

* igt@gem_create@create-clear@lmem0:
- shard-dg2: [INCOMPLETE][319] -> [PASS][320] +1 other test pass
[319]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg2-7/igt@gem_create@[email protected]
[320]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-3/igt@gem_create@[email protected]

* igt@gem_create@create-ext-cpu-access-big:
- shard-dg2: [ABORT][321] ([i915#13427]) -> [PASS][322]
[321]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg2-5/igt@[email protected]
[322]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-1/igt@[email protected]

* igt@gem_exec_suspend@basic-s3:
- shard-rkl: [INCOMPLETE][323] ([i915#13304]) -> [PASS][324] +1 other test pass
[323]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-7/igt@[email protected]
[324]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]

* igt@gem_exec_suspend@basic-s4-devices:
- shard-tglu: [ABORT][325] ([i915#7975] / [i915#8213]) -> [PASS][326] +1 other test pass
[325]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-tglu-10/igt@[email protected]
[326]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-6/igt@[email protected]

* igt@gem_pxp@reject-modify-context-protection-off-2:
- shard-rkl: [TIMEOUT][327] ([i915#12917] / [i915#12964]) -> [PASS][328] +2 other tests pass
[327]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-4/igt@[email protected]
[328]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]

* igt@gem_pxp@verify-pxp-stale-ctx-execution:
- shard-rkl: [SKIP][329] ([i915#4270]) -> [PASS][330]
[329]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-8/igt@[email protected]
[330]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]

* igt@i915_pm_rpm@system-suspend-execbuf:
- shard-dg1: [ABORT][331] ([i915#13562]) -> [PASS][332]
[331]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-19/igt@[email protected]
[332]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@[email protected]

* igt@i915_pm_rps@reset:
- shard-snb: [INCOMPLETE][333] ([i915#13729] / [i915#13821]) -> [PASS][334]
[333]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-snb5/igt@[email protected]
[334]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-snb4/igt@[email protected]

* igt@i915_power@sanity:
- shard-mtlp: [SKIP][335] ([i915#7984]) -> [PASS][336]
[335]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-mtlp-7/igt@[email protected]
[336]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-mtlp-5/igt@[email protected]

* igt@i915_suspend@basic-s3-without-i915:
- shard-dg1: [DMESG-WARN][337] ([i915#4391] / [i915#4423]) -> [PASS][338]
[337]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-15/igt@[email protected]
[338]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-19/igt@[email protected]

* igt@kms_atomic_transition@plane-toggle-modeset-transition:
- shard-dg2: [FAIL][339] ([i915#5956]) -> [PASS][340] +1 other test pass
[339]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg2-2/igt@[email protected]
[340]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-5/igt@[email protected]

* igt@kms_cursor_crc@cursor-random-64x21:
- shard-tglu: [FAIL][341] ([i915#13566]) -> [PASS][342] +1 other test pass
[341]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-tglu-4/igt@[email protected]
[342]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-4/igt@[email protected]

* igt@kms_cursor_crc@cursor-rapid-movement-128x128:
- shard-dg1: [DMESG-WARN][343] ([i915#4423]) -> [PASS][344] +4 other tests pass
[343]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@[email protected]
[344]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-15/igt@[email protected]

* igt@kms_cursor_crc@cursor-sliding-256x256:
- shard-rkl: [DMESG-WARN][345] ([i915#12964]) -> [PASS][346] +5 other tests pass
[345]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-4/igt@[email protected]
[346]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@[email protected]

* igt@kms_flip@flip-vs-absolute-wf_vblank@a-hdmi-a1:
- shard-tglu: [FAIL][347] ([i915#13734]) -> [PASS][348] +2 other tests pass
[347]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-tglu-10/igt@kms_flip@[email protected]
[348]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-tglu-6/igt@kms_flip@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-cpu:
- shard-dg2: [FAIL][349] ([i915#6880]) -> [PASS][350]
[349]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg2-7/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-cpu.html
[350]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-cpu.html

* igt@kms_pm_rpm@modeset-non-lpsp-stress:
- shard-dg2: [SKIP][351] ([i915#9519]) -> [PASS][352] +2 other tests pass
[351]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg2-4/igt@[email protected]
[352]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-7/igt@[email protected]

* igt@kms_pm_rpm@modeset-non-lpsp-stress-no-wait:
- shard-rkl: [SKIP][353] ([i915#9519]) -> [PASS][354]
[353]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-7/igt@[email protected]
[354]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

* igt@perf_pmu@interrupts-sync:
- shard-rkl: [FAIL][355] ([i915#14470]) -> [PASS][356]
[355]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-4/igt@[email protected]
[356]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-5/igt@[email protected]

#### Warnings ####

* igt@gem_lmem_swapping@smem-oom@lmem0:
- shard-dg1: [DMESG-WARN][357] ([i915#5493]) -> [TIMEOUT][358] ([i915#5493]) +1 other test timeout
[357]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@gem_lmem_swapping@[email protected]
[358]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-18/igt@gem_lmem_swapping@[email protected]

* igt@gem_pxp@hw-rejects-pxp-context:
- shard-rkl: [SKIP][359] ([i915#13717]) -> [TIMEOUT][360] ([i915#12917] / [i915#12964])
[359]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-8/igt@[email protected]
[360]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-7/igt@[email protected]

* igt@kms_ccs@bad-pixel-format-4-tiled-mtl-rc-ccs-cc@pipe-b-hdmi-a-2:
- shard-rkl: [SKIP][361] ([i915#14098] / [i915#6095]) -> [SKIP][362] ([i915#6095]) +1 other test skip
[361]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-5/igt@kms_ccs@[email protected]
[362]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-8/igt@kms_ccs@[email protected]

* igt@kms_chamelium_hpd@dp-hpd-for-each-pipe:
- shard-dg1: [SKIP][363] ([i915#11151] / [i915#4423] / [i915#7828]) -> [SKIP][364] ([i915#11151] / [i915#7828])
[363]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@[email protected]
[364]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-15/igt@[email protected]

* igt@kms_content_protection@atomic:
- shard-dg2: [SKIP][365] ([i915#7118] / [i915#9424]) -> [FAIL][366] ([i915#7173])
[365]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg2-7/igt@[email protected]
[366]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-11/igt@[email protected]

* igt@kms_content_protection@srm:
- shard-dg1: [SKIP][367] ([i915#4423] / [i915#7116]) -> [SKIP][368] ([i915#7116])
[367]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@[email protected]
[368]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-15/igt@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling:
- shard-dg1: [SKIP][369] ([i915#2672] / [i915#3555] / [i915#4423]) -> [SKIP][370] ([i915#2672] / [i915#3555])
[369]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling.html
[370]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-15/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling.html

* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling@pipe-a-valid-mode:
- shard-dg1: [SKIP][371] ([i915#2587] / [i915#2672] / [i915#4423]) -> [SKIP][372] ([i915#2587] / [i915#2672])
[371]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling@pipe-a-valid-mode.html
[372]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-15/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling@pipe-a-valid-mode.html

* igt@kms_frontbuffer_tracking@fbc-2p-shrfb-fliptrack-mmap-gtt:
- shard-dg1: [SKIP][373] ([i915#4423] / [i915#8708]) -> [SKIP][374] ([i915#8708]) +1 other test skip
[373]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@[email protected]
[374]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-15/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-mmap-cpu:
- shard-dg2: [SKIP][375] ([i915#3458]) -> [SKIP][376] ([i915#10433] / [i915#3458]) +2 other tests skip
[375]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg2-1/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-mmap-cpu.html
[376]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-4/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-mmap-cpu.html

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-dg1: [SKIP][377] ([i915#3458]) -> [SKIP][378] ([i915#3458] / [i915#4423])
[377]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-15/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
[378]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-12/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html

* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-spr-indfb-move:
- shard-dg1: [SKIP][379] -> [SKIP][380] ([i915#4423])
[379]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-12/igt@[email protected]
[380]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-18/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-shrfb-pgflip-blt:
- shard-dg1: [SKIP][381] ([i915#4423]) -> [SKIP][382] +1 other test skip
[381]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@[email protected]
[382]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-15/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-indfb-scaledprimary:
- shard-dg2: [SKIP][383] ([i915#10433] / [i915#3458]) -> [SKIP][384] ([i915#3458]) +3 other tests skip
[383]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg2-4/igt@[email protected]
[384]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg2-3/igt@[email protected]

* igt@kms_hdr@brightness-with-hdr:
- shard-dg1: [SKIP][385] ([i915#1187] / [i915#12713]) -> [SKIP][386] ([i915#12713])
[385]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-13/igt@[email protected]
[386]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-16/igt@[email protected]

* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25:
- shard-dg1: [SKIP][387] ([i915#12247] / [i915#4423] / [i915#6953]) -> [SKIP][388] ([i915#12247] / [i915#6953])
[387]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25.html
[388]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-15/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25.html

* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-a:
- shard-dg1: [SKIP][389] ([i915#12247] / [i915#4423]) -> [SKIP][390] ([i915#12247])
[389]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@kms_plane_scaling@[email protected]
[390]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-15/igt@kms_plane_scaling@[email protected]

* igt@kms_pm_rpm@modeset-lpsp-stress:
- shard-rkl: [SKIP][391] ([i915#9519]) -> [DMESG-WARN][392] ([i915#12964])
[391]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-rkl-3/igt@[email protected]
[392]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-rkl-4/igt@[email protected]

* igt@kms_psr@fbc-psr2-sprite-mmap-gtt:
- shard-dg1: [SKIP][393] ([i915#1072] / [i915#4423] / [i915#9732]) -> [SKIP][394] ([i915#1072] / [i915#9732])
[393]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16712/shard-dg1-16/igt@[email protected]
[394]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/shard-dg1-15/igt@[email protected]

[i915#10056]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10056
[i915#10307]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10307
[i915#10433]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10433
[i915#10434]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10434
[i915#1072]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1072
[i915#11078]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11078
[i915#11151]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11151
[i915#11520]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11520
[i915#11527]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11527
[i915#11681]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11681
[i915#11808]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11808
[i915#1187]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1187
[i915#11920]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11920
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12247]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12247
[i915#12313]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12313
[i915#12316]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12316
[i915#12339]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12339
[i915#12343]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12343
[i915#12388]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12388
[i915#12392]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12392
[i915#12394]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12394
[i915#12455]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12455
[i915#12713]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12713
[i915#12805]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12805
[i915#12917]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12917
[i915#12964]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12964
[i915#13008]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13008
[i915#13046]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13046
[i915#13049]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13049
[i915#13304]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13304
[i915#13353]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13353
[i915#13356]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13356
[i915#13427]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13427
[i915#13562]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13562
[i915#13566]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13566
[i915#13688]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13688
[i915#13705]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13705
[i915#13707]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13707
[i915#13717]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13717
[i915#13729]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13729
[i915#13734]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13734
[i915#13748]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13748
[i915#13749]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13749
[i915#13781]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13781
[i915#13783]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13783
[i915#13786]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13786
[i915#13790]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13790
[i915#13820]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13820
[i915#13821]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13821
[i915#13958]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13958
[i915#14073]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14073
[i915#14098]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14098
[i915#14259]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14259
[i915#14386]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14386
[i915#14433]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14433
[i915#14470]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14470
[i915#1769]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1769
[i915#1825]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1839
[i915#2065]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2065
[i915#2434]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2434
[i915#2437]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2527
[i915#2587]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2681
[i915#280]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/280
[i915#284]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/284
[i915#2856]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2856
[i915#3023]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3023
[i915#3116]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3116
[i915#3281]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3291
[i915#3297]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3299
[i915#3458]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3458
[i915#3469]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3469
[i915#3539]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3539
[i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555
[i915#3591]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3638
[i915#3708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3708
[i915#3804]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3804
[i915#3840]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3840
[i915#3936]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3936
[i915#3955]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3955
[i915#4077]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4213
[i915#4235]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4235
[i915#4270]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4270
[i915#4387]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4387
[i915#4391]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4391
[i915#4423]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4423
[i915#4525]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4525
[i915#4537]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4537
[i915#4538]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4538
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#4771]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4812
[i915#4816]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4816
[i915#4817]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4817
[i915#4818]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4818
[i915#4852]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4852
[i915#4854]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4854
[i915#4860]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4860
[i915#5190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5190
[i915#5286]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5286
[i915#5289]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5289
[i915#5354]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5354
[i915#5439]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5439
[i915#5493]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5493
[i915#5723]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5723
[i915#5956]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5956
[i915#6095]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6095
[i915#6230]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6230
[i915#6301]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6301
[i915#6334]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6334
[i915#6524]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/658
[i915#6805]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6805
[i915#6880]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6880
[i915#6944]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6944
[i915#6953]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6953
[i915#7116]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7118
[i915#7173]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7173
[i915#7443]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7443
[i915#7707]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7707
[i915#7828]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7828
[i915#7975]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7975
[i915#7984]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7984
[i915#8213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8213
[i915#8228]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8228
[i915#8289]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8289
[i915#8381]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8381
[i915#8399]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8399
[i915#8411]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8411
[i915#8428]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8428
[i915#8555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8555
[i915#8562]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8562
[i915#8623]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8623
[i915#8708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8708
[i915#8709]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8709
[i915#8812]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8812
[i915#8814]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8814
[i915#9053]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9053
[i915#9067]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9067
[i915#9100]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9100
[i915#9323]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9323
[i915#9412]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9412
[i915#9423]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9423
[i915#9424]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9424
[i915#9519]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9519
[i915#9531]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9531
[i915#9683]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9683
[i915#9685]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9685
[i915#9688]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9688
[i915#9723]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9723
[i915#9732]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9732
[i915#9809]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9809
[i915#9812]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9812
[i915#9906]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9906
[i915#9917]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9917
[i915#9934]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9934

Build changes
-------------

* Linux: CI_DRM_16712 -> Patchwork_150389v1

CI-20190529: 20190529
CI_DRM_16712: 95f0ac069cc2eee10b5d5e0ba67502ccea089de8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8412: 8412
Patchwork_150389v1: 95f0ac069cc2eee10b5d5e0ba67502ccea089de8 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_150389v1/index.html

#55 lore raw
In reply to Lorenzo Stoakes
Quoted 2 lines · Lorenzo Stoakes

The intent is to gradually deprecate f_op->mmap, and in that vein this series coverts the majority of file systems to using f_op->mmap_prepare.

I saw this on lwn and just wanted to give a little bit of thought on this topic..

It looks to me like we need some more infrastructure to convert anything that uses remap_pfn/etc in the mmap() callback

I would like to suggest we add a vma->prepopulate() callback which is where the remap_pfn should go. Once the VMA is finalized and fully operational the vma_ops have the opportunity to prepopulate any PTEs.

This could then actually be locked properly so it is safe with concurrent unmap_mapping_range() (current mmap callback is not safe)

Jason

#56 lore raw

[culling cc list down because for it was insane, +David]

(apologies if I cut anybody who wants to be involved in discussion, just being practical here).

Quoted 7 lines · Jason Gunthorpe
Quoted 2 lines · Lorenzo Stoakes

The intent is to gradually deprecate f_op->mmap, and in that vein this series coverts the majority of file systems to using f_op->mmap_prepare.

I saw this on lwn and just wanted to give a little bit of thought on this topic..

Thanks, sure.

Quoted 3 lines

It looks to me like we need some more infrastructure to convert anything that uses remap_pfn/etc in the mmap() callback

Yes absolutely :) I realised we needed extra infra, and later noticed (and in discussion with others) that remap in particular would be a pain.

I wanted to lay the groundwork first, as we could safely do this, convert nearly all file systems to .mmap_prepare(), and get a big win on that, then take it further in the next cycle, which I was planning to do.

Quoted 4 lines

I would like to suggest we add a vma->prepopulate() callback which is where the remap_pfn should go. Once the VMA is finalized and fully operational the vma_ops have the opportunity to prepopulate any PTEs.

I assume you mean vma->vm_ops->prepopulate ?

We also have to think about other places where we prepopulate also, for instance the perf mmap call now prepopulates (ahem that was me).

So I do like this as a generalisation.

Quoted 3 lines

This could then actually be locked properly so it is safe with concurrent unmap_mapping_range() (current mmap callback is not safe)

Which lock in particular is problematic? You'd want to hold an rmap write lock to avoid racing zap?

Quoted 2 lines

Jason

BTW I'll loop you in on discussion/series here. I think what you outline is likely how this will work.

Cheers, Lorenzo

#57 lore raw
Quoted 11 lines
Quoted 4 lines

I would like to suggest we add a vma->prepopulate() callback which is where the remap_pfn should go. Once the VMA is finalized and fully operational the vma_ops have the opportunity to prepopulate any PTEs.

I assume you mean vma->vm_ops->prepopulate ?

We also have to think about other places where we prepopulate also, for instance the perf mmap call now prepopulates (ahem that was me).

So I do like this as a generalisation.

Sounds interesting to me.

Signature · 3 lines
Cheers,

David / dhildenb
#58 lore raw
In reply to Lorenzo Stoakes
Quoted 5 lines · Lorenzo Stoakes
Quoted 3 lines

I would like to suggest we add a vma->prepopulate() callback which is where the remap_pfn should go. Once the VMA is finalized and fully operational the vma_ops have the opportunity to prepopulate any PTEs.

I assume you mean vma->vm_ops->prepopulate ?

Yes

Quoted 2 lines

We also have to think about other places where we prepopulate also, for instance the perf mmap call now prepopulates (ahem that was me).

Yes, vfio would also like to do this but can't due to the below issue.

Quoted 5 lines
Quoted 2 lines

This could then actually be locked properly so it is safe with concurrent unmap_mapping_range() (current mmap callback is not safe)

Which lock in particular is problematic? You'd want to hold an rmap write lock to avoid racing zap?

I have forgotten, but there was a race with how the current mmap op was called relative to when the VMA was tracked.

ie we should be able to do

CPU0 CPU1
vm_ops_prepopulate()
mutex_lock()
if (!is_mapping_valid)

      return -EINVAL;                                       

<fill ptes>
mutex_unlock()
mutex_lock() is_mapping_valid = false unmap_mapping_range() mutex_unlock()

And be sure there are no races. Use the lock of your choice for the mutex.

The above is not true today under mmap, IIRC the VMA is not added to the lists that unmap_mapping_range walks until after mmap() returns.

Jason