Skip to contentSkip to conversation

Enable THP support in drm_pagemap

PATCH Superseded Francois Dugast 10 participants 48 messages Jan 16 – Jan 23

Subsystems (17)
DRM drivers Memory management VFS KVM +13 more subsystems

v6 of 9 Superseded 1 of 5 applied Latest is v9 →

lore
Share & tools
lore
#0 lore raw

v6 cover Enable THP support in drm_pagemap

Use Balbir Singh's series for device-private THP support [1] and previous preparation work in drm_pagemap [2] to add 2MB/THP support in xe. This leads to significant performance improvements when using SVM with 2MB pages.

[1] https://lore.kernel.org/linux-mm/[email protected]/
[2] https://patchwork.freedesktop.org/series/151754/

v2:
- rebase on top of multi-device SVM
- add drm_pagemap_cpages() with temporary patch
- address other feedback from Matt Brost on v1

v3:
The major change is to remove the dependency to the mm/huge_memory helper migrate_device_split_page() that was called explicitely when a 2M buddy allocation backed by a large folio would be later reused for a smaller allocation (4K or 64K). Instead, the first 3 patches provided by Matthew Brost ensure large folios are split at the time of freeing.

v4:
- add order argument to folio_free callback
- send complete series to linux-mm and MM folks as requested (Zi Yan and Andrew Morton) and cover letter to anyone receiving at least one of the patches (Liam R. Howlett)

v5:
- update zone_device_page_init() in patch #1 to reinitialize large zone device private folios

v6:
- fix drm_pagemap change in patch #1 to allow applying to 6.19 and add some comments

Cc Zi Yan <[email protected]>
Cc Madhavan Srinivasan <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc "Christophe Leroy (CS GROUP)" <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc Alex Deucher <[email protected]>
Cc "Christian König" <[email protected]>
Cc David Airlie <[email protected]>
Cc Simona Vetter <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Thomas Zimmermann <[email protected]>
Cc Lyude Paul <[email protected]>
Cc Danilo Krummrich <[email protected]>
Cc Bjorn Helgaas <[email protected]>
Cc Logan Gunthorpe <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Oscar Salvador <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Leon Romanovsky <[email protected]>
Cc Balbir Singh <[email protected]>
Cc Dan Williams <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Jan Kara <[email protected]>
Cc Alexander Viro <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Mika Penttilä <[email protected]>

Francois Dugast (3):
drm/pagemap: Unlock and put folios when possible drm/pagemap: Add helper to access zone_device_data drm/pagemap: Enable THP support for GPU memory migration

Matthew Brost (2):
mm/zone_device: Reinitialize large zone device private folios drm/pagemap: Correct cpages calculation for migrate_vma_setup

 arch/powerpc/kvm/book3s_hv_uvmem.c       |   2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_migrate.c |   2 +-
 drivers/gpu/drm/drm_gpusvm.c             |   7 +-
 drivers/gpu/drm/drm_pagemap.c            | 158 ++++++++++++++++++-----
 drivers/gpu/drm/nouveau/nouveau_dmem.c   |   2 +-
 include/drm/drm_pagemap.h                |  15 +++
 include/linux/memremap.h                 |   9 +-
 lib/test_hmm.c                           |   4 +-
 mm/memremap.c                            |  35 ++++-
 9 files changed, 195 insertions(+), 39 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH v6 1/5 mm/zone_device: Reinitialize large zone device private folios

From: Matthew Brost <[email protected]>

Reinitialize metadata for large zone device private folios in zone_device_page_init prior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically between zone_device_page_init calls to avoid building a corrupt folio. As part of the metadata reinitialization, the dev_pagemap must be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.

Without this fix, individual pages could have invalid pgmap fields and flags (with PG_locked being notably problematic) due to prior different order allocations, which can, and will, result in kernel crashes.

Cc Zi Yan <[email protected]>
Cc Alistair Popple <[email protected]>
Cc adhavan Srinivasan <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc "Christophe Leroy (CS GROUP)" <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc Alex Deucher <[email protected]>
Cc "Christian König" <[email protected]>
Cc David Airlie <[email protected]>
Cc Simona Vetter <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Thomas Zimmermann <[email protected]>
Cc Lyude Paul <[email protected]>
Cc Danilo Krummrich <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Oscar Salvador <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Leon Romanovsky <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Balbir Singh <[email protected]>
Fixes d245f9b4ab80 ("mm/zone_device: support large zone device private folios")

---

The latest revision updates the commit message to explain what is broken prior to this patch and also restructures the patch so it applies, and works, on both the 6.19 branches and drm-tip, the latter in which includes patches for the next kernel release PR. Intel CI passes on both the 6.19 branches and drm-tip at point of the first patch in this series and the last (drm-tip only given subsequent patches in the series require in patches drm-tip but not present 6.19).

---
 arch/powerpc/kvm/book3s_hv_uvmem.c       |  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_migrate.c |  2 +-
 drivers/gpu/drm/drm_pagemap.c            |  2 +-
 drivers/gpu/drm/nouveau/nouveau_dmem.c   |  2 +-
 include/linux/memremap.h                 |  9 ++++--
 lib/test_hmm.c                           |  4 ++-
 mm/memremap.c                            | 35 +++++++++++++++++++++++-
 7 files changed, 47 insertions(+), 9 deletions(-)
arch/powerpc/kvm/book3s_hv_uvmem.c +1 -1
index e5000bef90f2..7cf9310de0ec 100644
@@ -723,7 +723,7 @@ static struct page *kvmppc_uvmem_get_page(unsigned long gpa, struct kvm *kvm)
 
 	dpage = pfn_to_page(uvmem_pfn);
 	dpage->zone_device_data = pvt;
-	zone_device_page_init(dpage, 0);
+	zone_device_page_init(dpage, &kvmppc_uvmem_pgmap, 0);
 	return dpage;
 out_clear:
 	spin_lock(&kvmppc_uvmem_bitmap_lock);
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c +1 -1
index af53e796ea1b..6ada7b4af7c6 100644
@@ -217,7 +217,7 @@ svm_migrate_get_vram_page(struct svm_range *prange, unsigned long pfn)
 	page = pfn_to_page(pfn);
 	svm_range_bo_ref(prange->svm_bo);
 	page->zone_device_data = prange->svm_bo;
-	zone_device_page_init(page, 0);
+	zone_device_page_init(page, page_pgmap(page), 0);
 }
 
 static void
drivers/gpu/drm/drm_pagemap.c +1 -1
index 03ee39a761a4..38eca94f01a1 100644
@@ -201,7 +201,7 @@ static void drm_pagemap_get_devmem_page(struct page *page,
 					struct drm_pagemap_zdd *zdd)
 {
 	page->zone_device_data = drm_pagemap_zdd_get(zdd);
-	zone_device_page_init(page, 0);
+	zone_device_page_init(page, page_pgmap(page), 0);
 }
 
 /**
drivers/gpu/drm/nouveau/nouveau_dmem.c +1 -1
index 58071652679d..3d8031296eed 100644
@@ -425,7 +425,7 @@ nouveau_dmem_page_alloc_locked(struct nouveau_drm *drm, bool is_large)
 			order = ilog2(DMEM_CHUNK_NPAGES);
 	}
 
-	zone_device_folio_init(folio, order);
+	zone_device_folio_init(folio, page_pgmap(folio_page(folio, 0)), order);
 	return page;
 }
 
include/linux/memremap.h +6 -3
index 713ec0435b48..e3c2ccf872a8 100644
@@ -224,7 +224,8 @@ static inline bool is_fsdax_page(const struct page *page)
 }
 
 #ifdef CONFIG_ZONE_DEVICE
-void zone_device_page_init(struct page *page, unsigned int order);
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order);
 void *memremap_pages(struct dev_pagemap *pgmap, int nid);
 void memunmap_pages(struct dev_pagemap *pgmap);
 void *devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap);
@@ -234,9 +235,11 @@ bool pgmap_pfn_valid(struct dev_pagemap *pgmap, unsigned long pfn);
 
 unsigned long memremap_compat_align(void);
 
-static inline void zone_device_folio_init(struct folio *folio, unsigned int order)
+static inline void zone_device_folio_init(struct folio *folio,
+					  struct dev_pagemap *pgmap,
+					  unsigned int order)
 {
-	zone_device_page_init(&folio->page, order);
+	zone_device_page_init(&folio->page, pgmap, order);
 	if (order)
 		folio_set_large_rmappable(folio);
 }
lib/test_hmm.c +3 -1
index 8af169d3873a..455a6862ae50 100644
@@ -662,7 +662,9 @@ static struct page *dmirror_devmem_alloc_page(struct dmirror *dmirror,
 			goto error;
 	}
 
-	zone_device_folio_init(page_folio(dpage), order);
+	zone_device_folio_init(page_folio(dpage),
+			       page_pgmap(folio_page(page_folio(dpage), 0)),
+			       order);
 	dpage->zone_device_data = rpage;
 	return dpage;
 
mm/memremap.c +34 -1
index 63c6ab4fdf08..ac7be07e3361 100644
@@ -477,10 +477,43 @@ void free_zone_device_folio(struct folio *folio)
 	}
 }
 
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
+	struct page *new_page = page;
+	unsigned int i;
+
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
 
+	for (i = 0; i < (1UL << order); ++i, ++new_page) {
+		struct folio *new_folio = (struct folio *)new_page;
+
+		/*
+		 * new_page could have been part of previous higher order folio
+		 * which encodes the order, in page + 1, in the flags bits. We
+		 * blindly clear bits which could have set my order field here,
+		 * including page head.
+		 */
+		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
+
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif
+
+		new_folio->mapping = NULL;
+		new_folio->pgmap = pgmap;	/* Also clear compound head */
+		new_folio->share = 0;   /* fsdax only, unused for device private */
+		VM_WARN_ON_FOLIO(folio_ref_count(new_folio), new_folio);
+		VM_WARN_ON_FOLIO(!folio_is_zone_device(new_folio), new_folio);
+	}
+
 	/*
 	 * Drivers shouldn't be allocating pages after calling
 	 * memunmap_pages().
Signature · 1 line
2.43.0
Reviewed-by on v6 1/5
#2 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 200 lines · Francois Dugast

From: Matthew Brost <[email protected]>

Reinitialize metadata for large zone device private folios in zone_device_page_init prior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically between zone_device_page_init calls to avoid building a corrupt folio. As part of the metadata reinitialization, the dev_pagemap must be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.

Without this fix, individual pages could have invalid pgmap fields and flags (with PG_locked being notably problematic) due to prior different order allocations, which can, and will, result in kernel crashes.

Cc Zi Yan <[email protected]>
Cc Alistair Popple <[email protected]>
Cc adhavan Srinivasan <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc "Christophe Leroy (CS GROUP)" <[email protected]>
Cc Felix Kuehling <[email protected]>
Cc Alex Deucher <[email protected]>
Cc "Christian König" <[email protected]>
Cc David Airlie <[email protected]>
Cc Simona Vetter <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Thomas Zimmermann <[email protected]>
Cc Lyude Paul <[email protected]>
Cc Danilo Krummrich <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Oscar Salvador <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Leon Romanovsky <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Balbir Singh <[email protected]>
Fixes d245f9b4ab80 ("mm/zone_device: support large zone device private folios")

---

The latest revision updates the commit message to explain what is broken prior to this patch and also restructures the patch so it applies, and works, on both the 6.19 branches and drm-tip, the latter in which includes patches for the next kernel release PR. Intel CI passes on both the 6.19 branches and drm-tip at point of the first patch in this series and the last (drm-tip only given subsequent patches in the series require in patches drm-tip but not present 6.19).

---
 arch/powerpc/kvm/book3s_hv_uvmem.c       |  2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_migrate.c |  2 +-
 drivers/gpu/drm/drm_pagemap.c            |  2 +-
 drivers/gpu/drm/nouveau/nouveau_dmem.c   |  2 +-
 include/linux/memremap.h                 |  9 ++++--
 lib/test_hmm.c                           |  4 ++-
 mm/memremap.c                            | 35 +++++++++++++++++++++++-
 7 files changed, 47 insertions(+), 9 deletions(-)
arch/powerpc/kvm/book3s_hv_uvmem.c +1 -1
index e5000bef90f2..7cf9310de0ec 100644
@@ -723,7 +723,7 @@ static struct page *kvmppc_uvmem_get_page(unsigned long gpa, struct kvm *kvm)
 
 	dpage = pfn_to_page(uvmem_pfn);
 	dpage->zone_device_data = pvt;
-	zone_device_page_init(dpage, 0);
+	zone_device_page_init(dpage, &kvmppc_uvmem_pgmap, 0);
 	return dpage;
 out_clear:
 	spin_lock(&kvmppc_uvmem_bitmap_lock);
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c +1 -1
index af53e796ea1b..6ada7b4af7c6 100644
@@ -217,7 +217,7 @@ svm_migrate_get_vram_page(struct svm_range *prange, unsigned long pfn)
 	page = pfn_to_page(pfn);
 	svm_range_bo_ref(prange->svm_bo);
 	page->zone_device_data = prange->svm_bo;
-	zone_device_page_init(page, 0);
+	zone_device_page_init(page, page_pgmap(page), 0);
 }
 
 static void
drivers/gpu/drm/drm_pagemap.c +1 -1
index 03ee39a761a4..38eca94f01a1 100644
@@ -201,7 +201,7 @@ static void drm_pagemap_get_devmem_page(struct page *page,
 					struct drm_pagemap_zdd *zdd)
 {
 	page->zone_device_data = drm_pagemap_zdd_get(zdd);
-	zone_device_page_init(page, 0);
+	zone_device_page_init(page, page_pgmap(page), 0);
 }
 
 /**
drivers/gpu/drm/nouveau/nouveau_dmem.c +1 -1
index 58071652679d..3d8031296eed 100644
@@ -425,7 +425,7 @@ nouveau_dmem_page_alloc_locked(struct nouveau_drm *drm, bool is_large)
 			order = ilog2(DMEM_CHUNK_NPAGES);
 	}
 
-	zone_device_folio_init(folio, order);
+	zone_device_folio_init(folio, page_pgmap(folio_page(folio, 0)), order);
 	return page;
 }
 
include/linux/memremap.h +6 -3
index 713ec0435b48..e3c2ccf872a8 100644
@@ -224,7 +224,8 @@ static inline bool is_fsdax_page(const struct page *page)
 }
 
 #ifdef CONFIG_ZONE_DEVICE
-void zone_device_page_init(struct page *page, unsigned int order);
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order);
 void *memremap_pages(struct dev_pagemap *pgmap, int nid);
 void memunmap_pages(struct dev_pagemap *pgmap);
 void *devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap);
@@ -234,9 +235,11 @@ bool pgmap_pfn_valid(struct dev_pagemap *pgmap, unsigned long pfn);
 
 unsigned long memremap_compat_align(void);
 
-static inline void zone_device_folio_init(struct folio *folio, unsigned int order)
+static inline void zone_device_folio_init(struct folio *folio,
+					  struct dev_pagemap *pgmap,
+					  unsigned int order)
 {
-	zone_device_page_init(&folio->page, order);
+	zone_device_page_init(&folio->page, pgmap, order);
 	if (order)
 		folio_set_large_rmappable(folio);
 }
lib/test_hmm.c +3 -1
index 8af169d3873a..455a6862ae50 100644
@@ -662,7 +662,9 @@ static struct page *dmirror_devmem_alloc_page(struct dmirror *dmirror,
 			goto error;
 	}
 
-	zone_device_folio_init(page_folio(dpage), order);
+	zone_device_folio_init(page_folio(dpage),
+			       page_pgmap(folio_page(page_folio(dpage), 0)),
+			       order);
 	dpage->zone_device_data = rpage;
 	return dpage;
 
mm/memremap.c +20 -1
index 63c6ab4fdf08..ac7be07e3361 100644
@@ -477,10 +477,43 @@ void free_zone_device_folio(struct folio *folio)
 	}
 }
 
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
+	struct page *new_page = page;
+	unsigned int i;
+
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
 
+	for (i = 0; i < (1UL << order); ++i, ++new_page) {
+		struct folio *new_folio = (struct folio *)new_page;
+
+		/*
+		 * new_page could have been part of previous higher order folio
+		 * which encodes the order, in page + 1, in the flags bits. We
+		 * blindly clear bits which could have set my order field here,
+		 * including page head.
+		 */
+		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
+
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 512

Quoted 10 lines
mm/memremap.c +10 -0
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif
+
+		new_folio->mapping = NULL;
+		new_folio->pgmap = pgmap;	/* Also clear compound head */
+		new_folio->share = 0;   /* fsdax only, unused for device private */

It could use a

BUILD_BUG_ON(offsetof(struct folio, pgmap) > sizeof(struct page)); BUILD_BUG_ON(offsetof(struct folio, share) > sizeof(struct page));

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 519

Quoted 7 lines
mm/memremap.c +4 -0
+		VM_WARN_ON_FOLIO(folio_ref_count(new_folio), new_folio);
+		VM_WARN_ON_FOLIO(!folio_is_zone_device(new_folio), new_folio);
+	}
+
 	/*
 	 * Drivers shouldn't be allocating pages after calling
 	 * memunmap_pages().

Very subtle, I wonder if from a new page perspective if memset of new_page to 0 is cleaner, but I guess it does touch more bytes.

#3 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

In reply to Francois Dugast
Quoted 40 lines · Francois Dugast

From: Matthew Brost <[email protected]>

mm/memremap.c +27 -1
index 63c6ab4fdf08..ac7be07e3361 100644
@@ -477,10 +477,43 @@ void free_zone_device_folio(struct folio *folio)
 	}
 }
 
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
+	struct page *new_page = page;
+	unsigned int i;
+
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
 
+	for (i = 0; i < (1UL << order); ++i, ++new_page) {
+		struct folio *new_folio = (struct folio *)new_page;
+
+		/*
+		 * new_page could have been part of previous higher order folio
+		 * which encodes the order, in page + 1, in the flags bits. We
+		 * blindly clear bits which could have set my order field here,
+		 * including page head.
+		 */
+		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
+
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif
+

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 519

Quoted 10 lines
mm/memremap.c +7 -0
+		new_folio->mapping = NULL;
+		new_folio->pgmap = pgmap;	/* Also clear compound head */
+		new_folio->share = 0;   /* fsdax only, unused for device private */
+		VM_WARN_ON_FOLIO(folio_ref_count(new_folio), new_folio);
+		VM_WARN_ON_FOLIO(!folio_is_zone_device(new_folio), new_folio);
+	}
+
 	/*
 	 * Drivers shouldn't be allocating pages after calling
 	 * memunmap_pages().

Can't say I'm a fan of this. It probably works now (so I'm not nacking) but seems rather fragile. It seems likely to me somebody will try to change some implementation detail in the page allocator and not notice it breaks this, for example. I hope we can eventually get to something more robust.

#4 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 48 lines · Vlastimil Babka
Quoted 47 lines · Francois Dugast

From: Matthew Brost <[email protected]>

mm/memremap.c +34 -1
index 63c6ab4fdf08..ac7be07e3361 100644
@@ -477,10 +477,43 @@ void free_zone_device_folio(struct folio *folio)
 	}
 }
 
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
+	struct page *new_page = page;
+	unsigned int i;
+
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
 
+	for (i = 0; i < (1UL << order); ++i, ++new_page) {
+		struct folio *new_folio = (struct folio *)new_page;
+
+		/*
+		 * new_page could have been part of previous higher order folio
+		 * which encodes the order, in page + 1, in the flags bits. We
+		 * blindly clear bits which could have set my order field here,
+		 * including page head.
+		 */
+		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
+
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif
+
+		new_folio->mapping = NULL;
+		new_folio->pgmap = pgmap;	/* Also clear compound head */
+		new_folio->share = 0;   /* fsdax only, unused for device private */
+		VM_WARN_ON_FOLIO(folio_ref_count(new_folio), new_folio);
+		VM_WARN_ON_FOLIO(!folio_is_zone_device(new_folio), new_folio);
+	}
+
Quoted 8 lines

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 519

Quoted 3 lines
mm/memremap.c +0 -0
 	/*
 	 * Drivers shouldn't be allocating pages after calling
 	 * memunmap_pages().

Can't say I'm a fan of this. It probably works now (so I'm not nacking) but seems rather fragile. It seems likely to me somebody will try to change some implementation detail in the page allocator and not notice it breaks this, for example. I hope we can eventually get to something more robust.

These pages shouldn't be in the buddy allocator at all? The driver using the ZONE_DEVICE pages is responsible to provide its own allocator.

Did you mean something else?

Jason

#5 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 58 lines · Jason Gunthorpe
Quoted 48 lines · Vlastimil Babka
Quoted 47 lines · Francois Dugast

From: Matthew Brost <[email protected]>

mm/memremap.c +34 -1
index 63c6ab4fdf08..ac7be07e3361 100644
@@ -477,10 +477,43 @@ void free_zone_device_folio(struct folio *folio)
 	}
 }
 
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
+	struct page *new_page = page;
+	unsigned int i;
+
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
 
+	for (i = 0; i < (1UL << order); ++i, ++new_page) {
+		struct folio *new_folio = (struct folio *)new_page;
+
+		/*
+		 * new_page could have been part of previous higher order folio
+		 * which encodes the order, in page + 1, in the flags bits. We
+		 * blindly clear bits which could have set my order field here,
+		 * including page head.
+		 */
+		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
+
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif
+
+		new_folio->mapping = NULL;
+		new_folio->pgmap = pgmap;	/* Also clear compound head */
+		new_folio->share = 0;   /* fsdax only, unused for device private */
+		VM_WARN_ON_FOLIO(folio_ref_count(new_folio), new_folio);
+		VM_WARN_ON_FOLIO(!folio_is_zone_device(new_folio), new_folio);
+	}
+
Quoted 8 lines

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 519

Quoted 3 lines
mm/memremap.c +0 -0
 	/*
 	 * Drivers shouldn't be allocating pages after calling
 	 * memunmap_pages().

Can't say I'm a fan of this. It probably works now (so I'm not nacking) but seems rather fragile. It seems likely to me somebody will try to change some implementation detail in the page allocator and not notice it breaks this, for example. I hope we can eventually get to something more robust.

Quoted 5 lines

These pages shouldn't be in the buddy allocator at all? The driver using the ZONE_DEVICE pages is responsible to provide its own allocator.

Did you mean something else?

Yeah sorry that was imprecise. I meant the struct page/folio layout implementation details (which may or may not be related to the page allocator).

Quoted 2 lines

Jason

#6 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

In reply to Vlastimil Babka
Quoted 48 lines · Vlastimil Babka
Quoted 47 lines · Francois Dugast

From: Matthew Brost <[email protected]>

mm/memremap.c +34 -1
index 63c6ab4fdf08..ac7be07e3361 100644
@@ -477,10 +477,43 @@ void free_zone_device_folio(struct folio *folio)
 	}
 }
 
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
+	struct page *new_page = page;
+	unsigned int i;
+
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
 
+	for (i = 0; i < (1UL << order); ++i, ++new_page) {
+		struct folio *new_folio = (struct folio *)new_page;
+
+		/*
+		 * new_page could have been part of previous higher order folio
+		 * which encodes the order, in page + 1, in the flags bits. We
+		 * blindly clear bits which could have set my order field here,
+		 * including page head.
+		 */
+		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
+
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif
+
+		new_folio->mapping = NULL;
+		new_folio->pgmap = pgmap;	/* Also clear compound head */
+		new_folio->share = 0;   /* fsdax only, unused for device private */
+		VM_WARN_ON_FOLIO(folio_ref_count(new_folio), new_folio);
+		VM_WARN_ON_FOLIO(!folio_is_zone_device(new_folio), new_folio);
+	}
+
Quoted 8 lines

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 519

Quoted 3 lines
mm/memremap.c +0 -0
 	/*
 	 * Drivers shouldn't be allocating pages after calling
 	 * memunmap_pages().

Can't say I'm a fan of this. It probably works now (so I'm not nacking) but seems rather fragile. It seems likely to me somebody will try to change some implementation detail in the page allocator and not notice it breaks this, for example. I hope we can eventually get to something more robust.

For doing this as a hotfix for 6.19, assuming we'll refactor later:

maintainer
#7 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

In reply to Francois Dugast
Quoted 20 lines · Francois Dugast
mm/memremap.c +16 -1
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
+	struct page *new_page = page;
+	unsigned int i;
+
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
 
+	for (i = 0; i < (1UL << order); ++i, ++new_page) {
+		struct folio *new_folio = (struct folio *)new_page;
+
+		/*
+		 * new_page could have been part of previous higher order folio
+		 * which encodes the order, in page + 1, in the flags bits. We
+		 * blindly clear bits which could have set my order field here,
+		 * including page head.
+		 */
+		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
+

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 508

Quoted 10 lines
mm/memremap.c +10 -0
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif

This seems too weird, why is it in the loop? There is only one _nr_pages per folio.

This is mostly zeroing some memory in the tail pages? Why?

Why can't this use the normal helpers, like memmap_init_compound()?

struct folio *new_folio = page

/* First 4 tail pages are part of struct folio */

 for (i = 4; i < (1UL << order); i++) {
     prep_compound_tail(..)

}

prep_comound_head(page, order)
new_folio->_nr_pages = 0

??

Jason

#8 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 26 lines · Jason Gunthorpe
Quoted 25 lines · Francois Dugast
mm/memremap.c +21 -1
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
+	struct page *new_page = page;
+	unsigned int i;
+
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
 
+	for (i = 0; i < (1UL << order); ++i, ++new_page) {
+		struct folio *new_folio = (struct folio *)new_page;
+
+		/*
+		 * new_page could have been part of previous higher order folio
+		 * which encodes the order, in page + 1, in the flags bits. We
+		 * blindly clear bits which could have set my order field here,
+		 * including page head.
+		 */
+		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
+
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
Quoted 8 lines

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 508

Quoted 5 lines
mm/memremap.c +5 -0
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif

This seems too weird, why is it in the loop? There is only one _nr_pages per folio.

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head and we can't know that at this point so we have to reset everything?

AFAIU this would not be a problem if the clearing of the previous state was done upon freeing, as e.g. v4 did, but I think you also argued it meant processing the pages when freeing and then again at reallocation, so it's now like this instead?

Or maybe you mean that stray _nr_pages in some tail page from previous lifetimes can't affect the current lifetime in a wrong way for something looking at said page? I don't know immediately.

Quoted 17 lines

This is mostly zeroing some memory in the tail pages? Why?

Why can't this use the normal helpers, like memmap_init_compound()?

struct folio *new_folio = page

/* First 4 tail pages are part of struct folio */

 for (i = 4; i < (1UL << order); i++) {
     prep_compound_tail(..)

}

prep_comound_head(page, order)
new_folio->_nr_pages = 0

??

Jason

maintainer
#9 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 36 lines · Vlastimil Babka
Quoted 26 lines · Jason Gunthorpe
Quoted 25 lines · Francois Dugast
mm/memremap.c +21 -1
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
+	struct page *new_page = page;
+	unsigned int i;
+
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
 
+	for (i = 0; i < (1UL << order); ++i, ++new_page) {
+		struct folio *new_folio = (struct folio *)new_page;
+
+		/*
+		 * new_page could have been part of previous higher order folio
+		 * which encodes the order, in page + 1, in the flags bits. We
+		 * blindly clear bits which could have set my order field here,
+		 * including page head.
+		 */
+		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
+
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
Quoted 8 lines

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 508

Quoted 5 lines
mm/memremap.c +5 -0
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif

This seems too weird, why is it in the loop? There is only one _nr_pages per folio.

Quoted 2 lines

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head

Yes, this is a good example. At this point we have idea what previous allocation(s) order(s) were - we could have multiple places in the loop where _nr_pages is populated, thus we have to clear this everywhere.

Quoted 2 lines

and we can't know that at this point so we have to reset everything?

Yes, see above, correct. We have no visablity to previous state of the pages so the only option is to reset everything.

Quoted 4 lines

AFAIU this would not be a problem if the clearing of the previous state was done upon freeing, as e.g. v4 did, but I think you also argued it meant processing the pages when freeing and then again at reallocation, so it's now like this instead?

Yes, if we cleanup the previous folio state upon freeing, then this problem goes away but the we back passing in the order as argument to ->folio_free().

Quoted 20 lines

Or maybe you mean that stray _nr_pages in some tail page from previous lifetimes can't affect the current lifetime in a wrong way for something looking at said page? I don't know immediately.

Quoted 15 lines

This is mostly zeroing some memory in the tail pages? Why?

Why can't this use the normal helpers, like memmap_init_compound()?

struct folio *new_folio = page

/* First 4 tail pages are part of struct folio */

 for (i = 4; i < (1UL << order); i++) {
     prep_compound_tail(..)

}

prep_comound_head(page, order)
new_folio->_nr_pages = 0

??

I've beat this to death with Alistair, normal helpers do not work here.

An order zero allocation could have _nr_pages set in its page, new_folio->_nr_pages is page + 1 memory.

Matt

Quoted 3 lines
Quoted 2 lines

Jason

maintainer
#10 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 6 lines · Matthew Brost
Quoted 2 lines

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head

Yes, this is a good example. At this point we have idea what previous allocation(s) order(s) were - we could have multiple places in the loop where _nr_pages is populated, thus we have to clear this everywhere.

Why? The fact you have to use such a crazy expression to even access _nr_pages strongly says nothing will read it as _nr_pages.

Explain each thing:

		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */

OK, the tail page flags need to be set right, and prep_compound_page() called later depends on them being zero.

		((struct folio *)(new_page - 1))->_nr_pages = 0;

Can't see a reason, nothing reads _nr_pages from a random tail page. _nr_pages is the last 8 bytes of struct page so it overlaps memcg_data, which is also not supposed to be read from a tail page?

		new_folio->mapping = NULL;

Pointless, prep_compound_page() -> prep_compound_tail() -> p->mapping = TAIL_MAPPING;

		new_folio->pgmap = pgmap;	/* Also clear compound head */

Pointless, compound_head is set in prep_compound_tail(): set_compound_head(p, head);

		new_folio->share = 0;   /* fsdax only, unused for device private */

Not sure, certainly share isn't read from a tail page..

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Why can't this use the normal helpers, like memmap_init_compound()?

struct folio *new_folio = page

/* First 4 tail pages are part of struct folio */

 for (i = 4; i < (1UL << order); i++) {
     prep_compound_tail(..)

}

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

prep_comound_head(page, order)
new_folio->_nr_pages = 0

??

I've beat this to death with Alistair, normal helpers do not work here.

What do you mean? It already calls prep_compound_page()! The issue seems to be that prep_compound_page() makes assumptions about what values are in flags already?

So how about move that page flags mask logic into prep_compound_tail()? I think that would help Vlastimil's concern. That function is already touching most of the cache line so an extra word shouldn't make a performance difference.

Quoted 2 lines

An order zero allocation could have _nr_pages set in its page, new_folio->_nr_pages is page + 1 memory.

An order zero allocation does not have _nr_pages because it is in page +1 memory that doesn't exist.

An order zero allocation might have memcg_data in the same slot, does it need zeroing? If so why not add that to prep_compound_head() ?

Also, prep_compound_head() handles order 0 too:

	if (IS_ENABLED(CONFIG_64BIT) || order > 1) {
		atomic_set(&folio->_pincount, 0);
		atomic_set(&folio->_entire_mapcount, -1);
	}
	if (order > 1)
		INIT_LIST_HEAD(&folio->_deferred_list);

So some of the problem here looks to be not calling it:

	if (order)
		prep_compound_page(page, order);

So, remove that if ? Also shouldn't it be moved above the set_page_count/lock_page ?

Jason

maintainer
#11 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 79 lines · Jason Gunthorpe
Quoted 6 lines · Matthew Brost
Quoted 2 lines

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head

Yes, this is a good example. At this point we have idea what previous allocation(s) order(s) were - we could have multiple places in the loop where _nr_pages is populated, thus we have to clear this everywhere.

Why? The fact you have to use such a crazy expression to even access _nr_pages strongly says nothing will read it as _nr_pages.

Explain each thing:

		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */

OK, the tail page flags need to be set right, and prep_compound_page() called later depends on them being zero.

		((struct folio *)(new_page - 1))->_nr_pages = 0;

Can't see a reason, nothing reads _nr_pages from a random tail page. _nr_pages is the last 8 bytes of struct page so it overlaps memcg_data, which is also not supposed to be read from a tail page?

		new_folio->mapping = NULL;

Pointless, prep_compound_page() -> prep_compound_tail() -> p->mapping = TAIL_MAPPING;

		new_folio->pgmap = pgmap;	/* Also clear compound head */

Pointless, compound_head is set in prep_compound_tail(): set_compound_head(p, head);

		new_folio->share = 0;   /* fsdax only, unused for device private */

Not sure, certainly share isn't read from a tail page..

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Why can't this use the normal helpers, like memmap_init_compound()?

struct folio *new_folio = page

/* First 4 tail pages are part of struct folio */

 for (i = 4; i < (1UL << order); i++) {
     prep_compound_tail(..)

}

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

prep_comound_head(page, order)
new_folio->_nr_pages = 0

??

I've beat this to death with Alistair, normal helpers do not work here.

What do you mean? It already calls prep_compound_page()! The issue seems to be that prep_compound_page() makes assumptions about what values are in flags already?

So how about move that page flags mask logic into prep_compound_tail()? I think that would help Vlastimil's concern. That function is already touching most of the cache line so an extra word shouldn't make a performance difference.

Quoted 2 lines

An order zero allocation could have _nr_pages set in its page, new_folio->_nr_pages is page + 1 memory.

An order zero allocation does not have _nr_pages because it is in page +1 memory that doesn't exist.

An order zero allocation might have memcg_data in the same slot, does it need zeroing? If so why not add that to prep_compound_head() ?

Also, prep_compound_head() handles order 0 too:

	if (IS_ENABLED(CONFIG_64BIT) || order > 1) {
		atomic_set(&folio->_pincount, 0);
		atomic_set(&folio->_entire_mapcount, -1);
	}
	if (order > 1)
		INIT_LIST_HEAD(&folio->_deferred_list);
Quoted 8 lines

So some of the problem here looks to be not calling it:

	if (order)
		prep_compound_page(page, order);

So, remove that if ? Also shouldn't it be moved above the set_page_count/lock_page ?

I'm not addressing each comment, some might be valid, others are not.

Ok, can I rework this in a follow-up - I will commit to that? Anything we touch here is extremely sensitive to failures - Intel is the primary test vector for any modification to device pages for what I can tell.

The fact is that large device pages do not really work without this patch, or prior revs. I’ve spent a lot of time getting large device pages stable — both here and in the initial series, commiting to help in follow on series touch SVM related things.

I’m going to miss my merge window with this (RB’d) patch blocked for large device pages. Expect my commitment to helping other vendors to drop if this happens. I’ll maybe just say: that doesn’t work in my CI, try again.

Or perhaps we just revert large device pages in 6.19 if we can't get a consensus here as we shouldn't ship a non-functional kernel.

Matt

Quoted 1 line

Jason

#12 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 91 lines · Matthew Brost
Quoted 79 lines · Jason Gunthorpe
Quoted 6 lines · Matthew Brost
Quoted 2 lines

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head

Yes, this is a good example. At this point we have idea what previous allocation(s) order(s) were - we could have multiple places in the loop where _nr_pages is populated, thus we have to clear this everywhere.

Why? The fact you have to use such a crazy expression to even access _nr_pages strongly says nothing will read it as _nr_pages.

Explain each thing:

		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */

OK, the tail page flags need to be set right, and prep_compound_page() called later depends on them being zero.

		((struct folio *)(new_page - 1))->_nr_pages = 0;

Can't see a reason, nothing reads _nr_pages from a random tail page. _nr_pages is the last 8 bytes of struct page so it overlaps memcg_data, which is also not supposed to be read from a tail page?

		new_folio->mapping = NULL;

Pointless, prep_compound_page() -> prep_compound_tail() -> p->mapping = TAIL_MAPPING;

		new_folio->pgmap = pgmap;	/* Also clear compound head */

Pointless, compound_head is set in prep_compound_tail(): set_compound_head(p, head);

		new_folio->share = 0;   /* fsdax only, unused for device private */

Not sure, certainly share isn't read from a tail page..

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Why can't this use the normal helpers, like memmap_init_compound()?

struct folio *new_folio = page

/* First 4 tail pages are part of struct folio */

 for (i = 4; i < (1UL << order); i++) {
     prep_compound_tail(..)

}

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

prep_comound_head(page, order)
new_folio->_nr_pages = 0

??

I've beat this to death with Alistair, normal helpers do not work here.

What do you mean? It already calls prep_compound_page()! The issue seems to be that prep_compound_page() makes assumptions about what values are in flags already?

So how about move that page flags mask logic into prep_compound_tail()? I think that would help Vlastimil's concern. That function is already touching most of the cache line so an extra word shouldn't make a performance difference.

Quoted 2 lines

An order zero allocation could have _nr_pages set in its page, new_folio->_nr_pages is page + 1 memory.

An order zero allocation does not have _nr_pages because it is in page +1 memory that doesn't exist.

An order zero allocation might have memcg_data in the same slot, does it need zeroing? If so why not add that to prep_compound_head() ?

Also, prep_compound_head() handles order 0 too:

	if (IS_ENABLED(CONFIG_64BIT) || order > 1) {
		atomic_set(&folio->_pincount, 0);
		atomic_set(&folio->_entire_mapcount, -1);
	}
	if (order > 1)
		INIT_LIST_HEAD(&folio->_deferred_list);
Quoted 8 lines

So some of the problem here looks to be not calling it:

	if (order)
		prep_compound_page(page, order);

So, remove that if ? Also shouldn't it be moved above the set_page_count/lock_page ?

I'm not addressing each comment, some might be valid, others are not.

Quoted 9 lines

Ok, can I rework this in a follow-up - I will commit to that? Anything we touch here is extremely sensitive to failures - Intel is the primary test vector for any modification to device pages for what I can tell.

The fact is that large device pages do not really work without this patch, or prior revs. I’ve spent a lot of time getting large device pages stable — both here and in the initial series, commiting to help in follow on series touch SVM related things.

Matthew, I feel your frustration and appreciate your help. For the current state of 6.19, your changes work for me, I added a Reviewed-by to the patch. It affects a small number of drivers and makes them work for zone device folios. I am happy to maintain the changes sent out as a part of zone_device_page_init()

We can rework the details in a follow up series, there are many ideas and ways of doing this (Jason, Alistair, Zi have good ideas as well).

Quoted 11 lines

I’m going to miss my merge window with this (RB’d) patch blocked for large device pages. Expect my commitment to helping other vendors to drop if this happens. I’ll maybe just say: that doesn’t work in my CI, try again.

Or perhaps we just revert large device pages in 6.19 if we can't get a consensus here as we shouldn't ship a non-functional kernel.

Matt

Quoted 1 line

Jason

maintainer
#13 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 102 lines · Balbir Singh
Quoted 91 lines · Matthew Brost
Quoted 79 lines · Jason Gunthorpe
Quoted 6 lines · Matthew Brost
Quoted 2 lines

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head

Yes, this is a good example. At this point we have idea what previous allocation(s) order(s) were - we could have multiple places in the loop where _nr_pages is populated, thus we have to clear this everywhere.

Why? The fact you have to use such a crazy expression to even access _nr_pages strongly says nothing will read it as _nr_pages.

Explain each thing:

		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */

OK, the tail page flags need to be set right, and prep_compound_page() called later depends on them being zero.

		((struct folio *)(new_page - 1))->_nr_pages = 0;

Can't see a reason, nothing reads _nr_pages from a random tail page. _nr_pages is the last 8 bytes of struct page so it overlaps memcg_data, which is also not supposed to be read from a tail page?

		new_folio->mapping = NULL;

Pointless, prep_compound_page() -> prep_compound_tail() -> p->mapping = TAIL_MAPPING;

		new_folio->pgmap = pgmap;	/* Also clear compound head */

Pointless, compound_head is set in prep_compound_tail(): set_compound_head(p, head);

		new_folio->share = 0;   /* fsdax only, unused for device private */

Not sure, certainly share isn't read from a tail page..

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Why can't this use the normal helpers, like memmap_init_compound()?

struct folio *new_folio = page

/* First 4 tail pages are part of struct folio */

 for (i = 4; i < (1UL << order); i++) {
     prep_compound_tail(..)

}

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

prep_comound_head(page, order)
new_folio->_nr_pages = 0

??

I've beat this to death with Alistair, normal helpers do not work here.

What do you mean? It already calls prep_compound_page()! The issue seems to be that prep_compound_page() makes assumptions about what values are in flags already?

So how about move that page flags mask logic into prep_compound_tail()? I think that would help Vlastimil's concern. That function is already touching most of the cache line so an extra word shouldn't make a performance difference.

Quoted 2 lines

An order zero allocation could have _nr_pages set in its page, new_folio->_nr_pages is page + 1 memory.

An order zero allocation does not have _nr_pages because it is in page +1 memory that doesn't exist.

An order zero allocation might have memcg_data in the same slot, does it need zeroing? If so why not add that to prep_compound_head() ?

Also, prep_compound_head() handles order 0 too:

	if (IS_ENABLED(CONFIG_64BIT) || order > 1) {
		atomic_set(&folio->_pincount, 0);
		atomic_set(&folio->_entire_mapcount, -1);
	}
	if (order > 1)
		INIT_LIST_HEAD(&folio->_deferred_list);
Quoted 8 lines

So some of the problem here looks to be not calling it:

	if (order)
		prep_compound_page(page, order);

So, remove that if ? Also shouldn't it be moved above the set_page_count/lock_page ?

I'm not addressing each comment, some might be valid, others are not.

Quoted 9 lines

Ok, can I rework this in a follow-up - I will commit to that? Anything we touch here is extremely sensitive to failures - Intel is the primary test vector for any modification to device pages for what I can tell.

The fact is that large device pages do not really work without this patch, or prior revs. I’ve spent a lot of time getting large device pages stable — both here and in the initial series, commiting to help in follow on series touch SVM related things.

Quoted 6 lines

Matthew, I feel your frustration and appreciate your help. For the current state of 6.19, your changes work for me, I added a Reviewed-by to the patch. It affects a small number of drivers and makes them work for zone device folios. I am happy to maintain the changes sent out as a part of zone_device_page_init()

+1

Quoted 3 lines

We can rework the details in a follow up series, there are many ideas and ways of doing this (Jason, Alistair, Zi have good ideas as well).

I agree we can rework this in a follow-up — the core MM is hard, and for valid reasons, but we can all work together on cleaning it up.

Matt

Quoted 12 lines
Quoted 11 lines

I’m going to miss my merge window with this (RB’d) patch blocked for large device pages. Expect my commitment to helping other vendors to drop if this happens. I’ll maybe just say: that doesn’t work in my CI, try again.

Or perhaps we just revert large device pages in 6.19 if we can't get a consensus here as we shouldn't ship a non-functional kernel.

Matt

Quoted 1 line

Jason

#14 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

On 2026-01-17 at 16:27 +1100, Matthew Brost <[email protected]> wrote...

Quoted 18 lines · Balbir Singh
Quoted 17 lines · Matthew Brost
Quoted 16 lines · Jason Gunthorpe
Quoted 15 lines · Matthew Brost
Quoted 6 lines
Quoted 2 lines

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head

Yes, this is a good example. At this point we have idea what previous allocation(s) order(s) were - we could have multiple places in the loop where _nr_pages is populated, thus we have to clear this everywhere.

Why? The fact you have to use such a crazy expression to even access _nr_pages strongly says nothing will read it as _nr_pages.

Explain each thing:

		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

OK, the tail page flags need to be set right, and prep_compound_page() called later depends on them being zero.

		((struct folio *)(new_page - 1))->_nr_pages = 0;

Can't see a reason, nothing reads _nr_pages from a random tail page. _nr_pages is the last 8 bytes of struct page so it overlaps memcg_data, which is also not supposed to be read from a tail page?

This is (or was) either a order-0 page, a head page or a tail page, who knows. So it doesn't really matter whether or not _nr_pages or memcg_data are supposed to be read from a tail page or not. What really matters is does any of vm_insert_page(), migrate_vma_*() or prep_compound_page() expect this to be a particular value when called on this page?

AFAIK memcg_data is at least expected to be NULL for migrate_vma_*() when called on an order-0 page, which means it has to be cleared.

Although I think it would be far less confusing if it was just written like that rather than the folio math but it achieves the same thing and is technically correct.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
		new_folio->mapping = NULL;

Pointless, prep_compound_page() -> prep_compound_tail() -> p->mapping = TAIL_MAPPING;

Not pointless - vm_insert_page() for example expects folio_test_anon() which which won't be the case if p->mapping was previously set to TAIL_MAPPING so it needs to be cleared. migrate_vma_setup() has a similar issue.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
		new_folio->pgmap = pgmap;	/* Also clear compound head */

Pointless, compound_head is set in prep_compound_tail(): set_compound_head(p, head);

No it isn't - we're not clearing tail pages here, we're initialising ZONE_DEVICE struct pages ready for use by the core-mm which means the pgmap needs to be correct.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
		new_folio->share = 0;   /* fsdax only, unused for device private */

Not sure, certainly share isn't read from a tail page..

Yeah, not useful for now because FS DAX isn't using this function. Arguably it should though.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Why can't this use the normal helpers, like memmap_init_compound()?

Because that's not what this function is trying to do - eg. we might not be trying to create a compound page. Although something like memmap_init_zone_device() looks like it would be a good starting point, with the page order being a parameter instead of read from the pgmap.

Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

struct folio *new_folio = page

/* First 4 tail pages are part of struct folio */

 for (i = 4; i < (1UL << order); i++) {
     prep_compound_tail(..)

}

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

prep_comound_head(page, order)
new_folio->_nr_pages = 0

??

I've beat this to death with Alistair, normal helpers do not work here.

What do you mean? It already calls prep_compound_page()! The issue seems to be that prep_compound_page() makes assumptions about what values are in flags already?

So how about move that page flags mask logic into prep_compound_tail()? I think that would help Vlastimil's concern. That function is already touching most of the cache line so an extra word shouldn't make a performance difference.

Quoted 2 lines

An order zero allocation could have _nr_pages set in its page, new_folio->_nr_pages is page + 1 memory.

An order zero allocation does not have _nr_pages because it is in page +1 memory that doesn't exist.

An order zero allocation might have memcg_data in the same slot, does it need zeroing? If so why not add that to prep_compound_head() ?

Also, prep_compound_head() handles order 0 too:

	if (IS_ENABLED(CONFIG_64BIT) || order > 1) {
		atomic_set(&folio->_pincount, 0);
		atomic_set(&folio->_entire_mapcount, -1);
	}
	if (order > 1)
		INIT_LIST_HEAD(&folio->_deferred_list);

So some of the problem here looks to be not calling it:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
	if (order)
		prep_compound_page(page, order);

So, remove that if ? Also shouldn't it be moved above the set_page_count/lock_page ?

I'm not addressing each comment, some might be valid, others are not.

Hopefully some of my explainations above help.

Quoted 11 lines
Quoted 11 lines
Quoted 10 lines

Ok, can I rework this in a follow-up - I will commit to that? Anything we touch here is extremely sensitive to failures - Intel is the primary test vector for any modification to device pages for what I can tell.

The fact is that large device pages do not really work without this patch, or prior revs. I’ve spent a lot of time getting large device pages stable — both here and in the initial series, commiting to help in follow on series touch SVM related things.

Quoted 5 lines
Quoted 5 lines

Matthew, I feel your frustration and appreciate your help. For the current state of 6.19, your changes work for me, I added a Reviewed-by to the patch. It affects a small number of drivers and makes them work for zone device folios. I am happy to maintain the changes sent out as a part of zone_device_page_init()

No problem with the above, and FWIW it seems correct. Although I suspect just setting page->memcg_data = 0 would have been far less controversial ;)

Quoted 23 lines

+1

Quoted 3 lines

We can rework the details in a follow up series, there are many ideas and ways of doing this (Jason, Alistair, Zi have good ideas as well).

I agree we can rework this in a follow-up — the core MM is hard, and for valid reasons, but we can all work together on cleaning it up.

Matt

Quoted 12 lines
Quoted 11 lines

I’m going to miss my merge window with this (RB’d) patch blocked for large device pages. Expect my commitment to helping other vendors to drop if this happens. I’ll maybe just say: that doesn’t work in my CI, try again.

Or perhaps we just revert large device pages in 6.19 if we can't get a consensus here as we shouldn't ship a non-functional kernel.

Matt

Quoted 1 line

Jason

maintainer
#15 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 28 lines · Alistair Popple

On 2026-01-17 at 16:27 +1100, Matthew Brost <[email protected]> wrote...

Quoted 18 lines · Balbir Singh
Quoted 17 lines · Matthew Brost
Quoted 16 lines · Jason Gunthorpe
Quoted 15 lines · Matthew Brost
Quoted 6 lines
Quoted 2 lines

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head

Yes, this is a good example. At this point we have idea what previous allocation(s) order(s) were - we could have multiple places in the loop where _nr_pages is populated, thus we have to clear this everywhere.

Why? The fact you have to use such a crazy expression to even access _nr_pages strongly says nothing will read it as _nr_pages.

Explain each thing:

		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

OK, the tail page flags need to be set right, and prep_compound_page() called later depends on them being zero.

		((struct folio *)(new_page - 1))->_nr_pages = 0;

Can't see a reason, nothing reads _nr_pages from a random tail page. _nr_pages is the last 8 bytes of struct page so it overlaps memcg_data, which is also not supposed to be read from a tail page?

Quoted 5 lines

This is (or was) either a order-0 page, a head page or a tail page, who knows. So it doesn't really matter whether or not _nr_pages or memcg_data are supposed to be read from a tail page or not. What really matters is does any of vm_insert_page(), migrate_vma_*() or prep_compound_page() expect this to be a particular value when called on this page?

This weird expression is doing three things,
1) it is zeroing memcg on the head page
2) it is zeroing _nr_pages on the head folio
3) it is zeroing memcg on all the tail pages.

Are you aruging for 1, 2 or 3?

#1 is missing today
#2 is handled directly by the prep_compound_page() -> prep_compound_head() -> folio_set_order() #3 I argue isn't necessary.

Quoted 2 lines

AFAIK memcg_data is at least expected to be NULL for migrate_vma_*() when called on an order-0 page, which means it has to be cleared.

Great, so lets write that in prep_compound_head()!

Quoted 3 lines

Although I think it would be far less confusing if it was just written like that rather than the folio math but it achieves the same thing and is technically correct.

I have yet to hear a reason to do #3.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
		new_folio->mapping = NULL;

Pointless, prep_compound_page() -> prep_compound_tail() -> p->mapping = TAIL_MAPPING;

Not pointless - vm_insert_page() for example expects folio_test_anon() which which won't be the case if p->mapping was previously set to TAIL_MAPPING so it needs to be cleared. migrate_vma_setup() has a similar issue.

It is pointless to put it in the loop! Sure set the head page.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
		new_folio->pgmap = pgmap;	/* Also clear compound head */

Pointless, compound_head is set in prep_compound_tail(): set_compound_head(p, head);

No it isn't - we're not clearing tail pages here, we're initialising ZONE_DEVICE struct pages ready for use by the core-mm which means the pgmap needs to be correct.

See above, same issue. The tail pages have pgmap set to NULL because prep_compound_tail() does it. So why do we set it to pgmap here and then clear it a few lines below?

Set it once in the head folio outside this loop.

Quoted 2 lines

No problem with the above, and FWIW it seems correct. Although I suspect just setting page->memcg_data = 0 would have been far less controversial ;)

It is "correct" but horrible.

What is wrong with this? Isn't it so much better and more efficient??

mm/internal.h +8 -1
index e430da900430a1..a7d3f5e4b85e49 100644
@@ -806,14 +806,21 @@ static inline void prep_compound_head(struct page *page, unsigned int order)
 		atomic_set(&folio->_pincount, 0);
 		atomic_set(&folio->_entire_mapcount, -1);
 	}
-	if (order > 1)
+	if (order > 1) {
 		INIT_LIST_HEAD(&folio->_deferred_list);
+	} else {
+		folio->mapping = NULL;
+#ifdef CONFIG_MEMCG
+		folio->memcg_data = 0;
+#endif
+	}
 }
 
 static inline void prep_compound_tail(struct page *head, int tail_idx)
 {
 	struct page *p = head + tail_idx;
 
+	p->flags.f &= ~0xffUL;	/* Clear possible order, page head */
 	p->mapping = TAIL_MAPPING;
 	set_compound_head(p, head);
 	set_page_private(p, 0);
mm/memremap.c +9 -5
index 4c2e0d68eb2798..7ec034c11068e1 100644
@@ -479,19 +479,23 @@ void free_zone_device_folio(struct folio *folio)
 	}
 }
 
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
+	struct folio *folio;
 
 	/*
 	 * Drivers shouldn't be allocating pages after calling
 	 * memunmap_pages().
 	 */
 	WARN_ON_ONCE(!percpu_ref_tryget_many(&page_pgmap(page)->ref, 1 << order));
-	set_page_count(page, 1);
-	lock_page(page);
 
-	if (order)
-		prep_compound_page(page, order);
+	prep_compound_page(page, order);
+
+	folio = page_folio(page);
+	folio->pgmap = pgmap;
+	folio_lock(folio);
+	folio_set_count(folio, 1);
 }
 EXPORT_SYMBOL_GPL(zone_device_page_init);

Jason

#16 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 95 lines · Jason Gunthorpe
Quoted 28 lines · Alistair Popple

On 2026-01-17 at 16:27 +1100, Matthew Brost <[email protected]> wrote...

Quoted 18 lines · Balbir Singh
Quoted 17 lines · Matthew Brost
Quoted 16 lines · Jason Gunthorpe
Quoted 15 lines · Matthew Brost
Quoted 6 lines
Quoted 2 lines

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head

Yes, this is a good example. At this point we have idea what previous allocation(s) order(s) were - we could have multiple places in the loop where _nr_pages is populated, thus we have to clear this everywhere.

Why? The fact you have to use such a crazy expression to even access _nr_pages strongly says nothing will read it as _nr_pages.

Explain each thing:

		new_page->flags.f &= ~0xffUL;	/* Clear possible order, page head */
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

OK, the tail page flags need to be set right, and prep_compound_page() called later depends on them being zero.

		((struct folio *)(new_page - 1))->_nr_pages = 0;

Can't see a reason, nothing reads _nr_pages from a random tail page. _nr_pages is the last 8 bytes of struct page so it overlaps memcg_data, which is also not supposed to be read from a tail page?

Quoted 5 lines

This is (or was) either a order-0 page, a head page or a tail page, who knows. So it doesn't really matter whether or not _nr_pages or memcg_data are supposed to be read from a tail page or not. What really matters is does any of vm_insert_page(), migrate_vma_*() or prep_compound_page() expect this to be a particular value when called on this page?

This weird expression is doing three things,
1) it is zeroing memcg on the head page
2) it is zeroing _nr_pages on the head folio
3) it is zeroing memcg on all the tail pages.

Are you aruging for 1, 2 or 3?

#1 is missing today
#2 is handled directly by the prep_compound_page() -> prep_compound_head() -> folio_set_order() #3 I argue isn't necessary.

Quoted 2 lines

AFAIK memcg_data is at least expected to be NULL for migrate_vma_*() when called on an order-0 page, which means it has to be cleared.

Great, so lets write that in prep_compound_head()!

Quoted 3 lines

Although I think it would be far less confusing if it was just written like that rather than the folio math but it achieves the same thing and is technically correct.

I have yet to hear a reason to do #3.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
		new_folio->mapping = NULL;

Pointless, prep_compound_page() -> prep_compound_tail() -> p->mapping = TAIL_MAPPING;

Not pointless - vm_insert_page() for example expects folio_test_anon() which which won't be the case if p->mapping was previously set to TAIL_MAPPING so it needs to be cleared. migrate_vma_setup() has a similar issue.

It is pointless to put it in the loop! Sure set the head page.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
		new_folio->pgmap = pgmap;	/* Also clear compound head */

Pointless, compound_head is set in prep_compound_tail(): set_compound_head(p, head);

No it isn't - we're not clearing tail pages here, we're initialising ZONE_DEVICE struct pages ready for use by the core-mm which means the pgmap needs to be correct.

See above, same issue. The tail pages have pgmap set to NULL because prep_compound_tail() does it. So why do we set it to pgmap here and then clear it a few lines below?

Set it once in the head folio outside this loop.

Quoted 2 lines

No problem with the above, and FWIW it seems correct. Although I suspect just setting page->memcg_data = 0 would have been far less controversial ;)

It is "correct" but horrible.

What is wrong with this? Isn't it so much better and more efficient??

mm/internal.h +0 -0
index e430da900430a1..a7d3f5e4b85e49 100644
@@ -806,14 +806,21 @@ static inline void prep_compound_head(struct page *page, unsigned int order)
 		atomic_set(&folio->_pincount, 0);
 		atomic_set(&folio->_entire_mapcount, -1);

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 816

Quoted 10 lines
mm/internal.h +7 -1
 	}
-	if (order > 1)
+	if (order > 1) {
 		INIT_LIST_HEAD(&folio->_deferred_list);
+	} else {
+		folio->mapping = NULL;
+#ifdef CONFIG_MEMCG
+		folio->memcg_data = 0;
+#endif
+	}

prep_compound_head() is only called on >0 order pages. The above code means when order == 1, folio->mapping and folio->memcg_data are assigned NULL.

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 823

Quoted 7 lines
mm/internal.h +1 -0
 }
 
 static inline void prep_compound_tail(struct page *head, int tail_idx)
 {
 	struct page *p = head + tail_idx;
 
+	p->flags.f &= ~0xffUL;	/* Clear possible order, page head */

No one cares about tail page flags if it is not checked in check_new_page() from mm/page_alloc.c.

Quoted 19 lines
mm/internal.h +0 -0
 	p->mapping = TAIL_MAPPING;
 	set_compound_head(p, head);
 	set_page_private(p, 0);
mm/memremap.c +3 -1
index 4c2e0d68eb2798..7ec034c11068e1 100644
@@ -479,19 +479,23 @@ void free_zone_device_folio(struct folio *folio)
 	}
 }
 
-void zone_device_page_init(struct page *page, unsigned int order)
+void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
+			   unsigned int order)
 {
 	VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
+	struct folio *folio;
 
 	/*

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 494

Quoted 10 lines
mm/memremap.c +1 -4
 	 * Drivers shouldn't be allocating pages after calling
 	 * memunmap_pages().
 	 */
 	WARN_ON_ONCE(!percpu_ref_tryget_many(&page_pgmap(page)->ref, 1 << order));
-	set_page_count(page, 1);
-	lock_page(page);
 
-	if (order)
-		prep_compound_page(page, order);
+	prep_compound_page(page, order);

prep_compound_page() should only be called for >0 order pages. This creates another weirdness in device pages by assuming all pages are compound.

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 499

Quoted 5 lines
mm/memremap.c +5 -0
+
+	folio = page_folio(page);
+	folio->pgmap = pgmap;
+	folio_lock(folio);
+	folio_set_count(folio, 1);

/* clear possible previous page->mapping */
folio->mapping = NULL;

/* clear possible previous page->_nr_pages */

#ifdef CONFIG_MEMCG
	folio->memcg_data = 0;

#endif

With two above and still call prep_compound_page() only when order > 0, the code should work. There is no need to change prep_compoun_*() functions.

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 501

Quoted 2 lines
mm/memremap.c +0 -0
 }
 EXPORT_SYMBOL_GPL(zone_device_page_init);

This patch mixed the concept of page and folio together, thus causing confusion. Core MM sees page and folio two separate things:
1. page is the smallest internal physical memory management unit,
2. folio is an abstraction on top of pages, and other abstractions can be slab, ptdesc, and more (https://kernelnewbies.org/MatthewWilcox/Memdescs).

Compound page is a high-order page that all subpages are managed as a whole, but it is converted to folio after page_rmappable_folio() (see __folio_alloc_noprof()). And a slab page can be a compound page too (see page_slab() does compound_head() like operation). So a compound page is not the same as a folio.

I can see folio is used in prep_compound_head()
and think it is confusing, since these pages should not be regarded as a folio yet. I probably blame willy (cc'd), since he started it from commit 94688e8eb453 ("mm: remove folio_pincount_ptr() and head_compound_pincount()") and before that prep_compound_head() was all about pages. folio_set_order() was set_compound_order() before commit 1e3be4856f49d ("mm/folio: replace set_compound_order with folio_set_order").

If device pages have to initialize on top of pages with obsolete states, at least it should be first initialized as pages, then as folios to avoid confusion.

--
Best Regards,
Yan, Zi

maintainer
#17 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 13 lines · Zi Yan
Quoted 13 lines
mm/internal.h +3 -1
index e430da900430a1..a7d3f5e4b85e49 100644
@@ -806,14 +806,21 @@ static inline void prep_compound_head(struct page *page, unsigned int order)
 		atomic_set(&folio->_pincount, 0);
 		atomic_set(&folio->_entire_mapcount, -1);
 	}
-	if (order > 1)
+	if (order > 1) {
 		INIT_LIST_HEAD(&folio->_deferred_list);
+	} else {
+		folio->mapping = NULL;
Quoted 8 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 816

Quoted 4 lines
mm/internal.h +4 -0
+#ifdef CONFIG_MEMCG
+		folio->memcg_data = 0;
+#endif
+	}

prep_compound_head() is only called on >0 order pages. The above code means when order == 1, folio->mapping and folio->memcg_data are assigned NULL.

OK, fair enough, the conditionals would have to change and maybe it shouldn't be called "compound_head" if it also cleans up normal pages.

Quoted 8 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 823

Quoted 5 lines
mm/internal.h +1 -0
 static inline void prep_compound_tail(struct page *head, int tail_idx)
 {
 	struct page *p = head + tail_idx;
 
+	p->flags.f &= ~0xffUL;	/* Clear possible order, page head */

No one cares about tail page flags if it is not checked in check_new_page() from mm/page_alloc.c.

At least page_fixed_fake_head() does check PG_head in some configurations. It does seem safer to clear it. Possibly order is never used, but it is free to clear it.

Quoted 7 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 822

Quoted 3 lines
mm/internal.h +1 -2
-	if (order)
-		prep_compound_page(page, order);
+	prep_compound_page(page, order);

prep_compound_page() should only be called for >0 order pages. This creates another weirdness in device pages by assuming all pages are compound.

OK

Quoted 8 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 826

Quoted 4 lines
mm/internal.h +4 -0
+	folio = page_folio(page);
+	folio->pgmap = pgmap;
+	folio_lock(folio);
+	folio_set_count(folio, 1);

/* clear possible previous page->mapping */
folio->mapping = NULL;

Quoted 4 lines

/* clear possible previous page->_nr_pages */

#ifdef CONFIG_MEMCG
	folio->memcg_data = 0;

#endif

This is reasonable too, but prep_compound_head() was doing more than that, it is also clearing the order, and this needs to clear the head bit. That's why it was apppealing to reuse those functions, but you are right they are not ideal.

I suppose we want some prep_single_page(page) and some reorg to share code with the other prep function.

Quoted 5 lines

This patch mixed the concept of page and folio together, thus causing confusion. Core MM sees page and folio two separate things:
1. page is the smallest internal physical memory management unit,
2. folio is an abstraction on top of pages, and other abstractions can be slab, ptdesc, and more (https://kernelnewbies.org/MatthewWilcox/Memdescs).

I think the users of zone_device_page_init() are principally trying to create something that can be installed in a non-special PTE. Meaning the output is always a folio because it is going to be read as a folio in the page walkers.

Thus, the job of this function is to take the memory range starting at page for 2^order and turn it into a single valid folio with refcount of 1.

Quoted 3 lines

If device pages have to initialize on top of pages with obsolete states, at least it should be first initialized as pages, then as folios to avoid confusion.

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

Jason

#18 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 62 lines · Jason Gunthorpe
Quoted 13 lines · Zi Yan
Quoted 13 lines
mm/internal.h +3 -1
index e430da900430a1..a7d3f5e4b85e49 100644
@@ -806,14 +806,21 @@ static inline void prep_compound_head(struct page *page, unsigned int order)
 		atomic_set(&folio->_pincount, 0);
 		atomic_set(&folio->_entire_mapcount, -1);
 	}
-	if (order > 1)
+	if (order > 1) {
 		INIT_LIST_HEAD(&folio->_deferred_list);
+	} else {
+		folio->mapping = NULL;
Quoted 8 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 816

Quoted 4 lines
mm/internal.h +4 -0
+#ifdef CONFIG_MEMCG
+		folio->memcg_data = 0;
+#endif
+	}

prep_compound_head() is only called on >0 order pages. The above code means when order == 1, folio->mapping and folio->memcg_data are assigned NULL.

OK, fair enough, the conditionals would have to change and maybe it shouldn't be called "compound_head" if it also cleans up normal pages.

Quoted 8 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 823

Quoted 5 lines
mm/internal.h +1 -0
 static inline void prep_compound_tail(struct page *head, int tail_idx)
 {
 	struct page *p = head + tail_idx;
 
+	p->flags.f &= ~0xffUL;	/* Clear possible order, page head */

No one cares about tail page flags if it is not checked in check_new_page() from mm/page_alloc.c.

At least page_fixed_fake_head() does check PG_head in some configurations. It does seem safer to clear it. Possibly order is never used, but it is free to clear it.

Quoted 7 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 822

Quoted 3 lines
mm/internal.h +1 -2
-	if (order)
-		prep_compound_page(page, order);
+	prep_compound_page(page, order);

prep_compound_page() should only be called for >0 order pages. This creates another weirdness in device pages by assuming all pages are compound.

OK

Quoted 8 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 826

Quoted 4 lines
mm/internal.h +4 -0
+	folio = page_folio(page);
+	folio->pgmap = pgmap;
+	folio_lock(folio);
+	folio_set_count(folio, 1);

/* clear possible previous page->mapping */
folio->mapping = NULL;

Quoted 4 lines

/* clear possible previous page->_nr_pages */

#ifdef CONFIG_MEMCG
	folio->memcg_data = 0;

#endif

Quoted 8 lines

This is reasonable too, but prep_compound_head() was doing more than that, it is also clearing the order, and this needs to clear the head bit. That's why it was apppealing to reuse those functions, but you are right they are not ideal.

I suppose we want some prep_single_page(page) and some reorg to share code with the other prep function.

There is __init_zone_device_page() and __init_single_page(), it does zero out the page and sets the zone, pfn, nid among other things. I propose we use the current version with zone_device_free_folio() as is.

We can figure out if __init_zone_device_page() can be reused or refactored for the purposes to doing this with core MM API's

Quoted 15 lines
Quoted 5 lines

This patch mixed the concept of page and folio together, thus causing confusion. Core MM sees page and folio two separate things:
1. page is the smallest internal physical memory management unit,
2. folio is an abstraction on top of pages, and other abstractions can be slab, ptdesc, and more (https://kernelnewbies.org/MatthewWilcox/Memdescs).

I think the users of zone_device_page_init() are principally trying to create something that can be installed in a non-special PTE. Meaning the output is always a folio because it is going to be read as a folio in the page walkers.

Thus, the job of this function is to take the memory range starting at page for 2^order and turn it into a single valid folio with refcount of 1.

Quoted 8 lines
Quoted 3 lines

If device pages have to initialize on top of pages with obsolete states, at least it should be first initialized as pages, then as folios to avoid confusion.

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

Jason

Agreed

Balbir

#19 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 63 lines · Balbir Singh
Quoted 62 lines · Jason Gunthorpe
Quoted 13 lines · Zi Yan
Quoted 13 lines
mm/internal.h +3 -1
index e430da900430a1..a7d3f5e4b85e49 100644
@@ -806,14 +806,21 @@ static inline void prep_compound_head(struct page *page, unsigned int order)
 		atomic_set(&folio->_pincount, 0);
 		atomic_set(&folio->_entire_mapcount, -1);
 	}
-	if (order > 1)
+	if (order > 1) {
 		INIT_LIST_HEAD(&folio->_deferred_list);
+	} else {
+		folio->mapping = NULL;
Quoted 8 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 816

Quoted 4 lines
mm/internal.h +4 -0
+#ifdef CONFIG_MEMCG
+		folio->memcg_data = 0;
+#endif
+	}

prep_compound_head() is only called on >0 order pages. The above code means when order == 1, folio->mapping and folio->memcg_data are assigned NULL.

OK, fair enough, the conditionals would have to change and maybe it shouldn't be called "compound_head" if it also cleans up normal pages.

Quoted 8 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 823

Quoted 5 lines
mm/internal.h +1 -0
 static inline void prep_compound_tail(struct page *head, int tail_idx)
 {
 	struct page *p = head + tail_idx;
 
+	p->flags.f &= ~0xffUL;	/* Clear possible order, page head */

No one cares about tail page flags if it is not checked in check_new_page() from mm/page_alloc.c.

At least page_fixed_fake_head() does check PG_head in some configurations. It does seem safer to clear it. Possibly order is never used, but it is free to clear it.

Quoted 7 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 822

Quoted 3 lines
mm/internal.h +1 -2
-	if (order)
-		prep_compound_page(page, order);
+	prep_compound_page(page, order);

prep_compound_page() should only be called for >0 order pages. This creates another weirdness in device pages by assuming all pages are compound.

OK

Quoted 12 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 826

Quoted 4 lines
mm/internal.h +4 -0
+	folio = page_folio(page);
+	folio->pgmap = pgmap;
+	folio_lock(folio);
+	folio_set_count(folio, 1);

/* clear possible previous page->mapping */
folio->mapping = NULL;

/* clear possible previous page->_nr_pages */

#ifdef CONFIG_MEMCG
	folio->memcg_data = 0;

#endif

Quoted 4 lines
Quoted 4 lines

This is reasonable too, but prep_compound_head() was doing more than that, it is also clearing the order, and this needs to clear the head bit. That's why it was apppealing to reuse those functions, but you are right they are not ideal.

PG_head is and must be bit 6, that means the stored order needs to be at least 2^6=64 to get it set. Who allocates a folio with that large order? This p->flags.f &= ~0xffUL thing is unnecessary. What really needs to be done is folio->flags.f &= ~PAGE_FLAGS_CHECK_AT_PREP to make sure the new folio flags are the same as newly allocated folios from core MM page allocator.

Quoted 3 lines
Quoted 3 lines

I suppose we want some prep_single_page(page) and some reorg to share code with the other prep function.

This is just an unnecessary need due to lack of knowledge of/do not want to investigate core MM page and folio initialization code.

Quoted 31 lines
Quoted 1 line

There is __init_zone_device_page() and __init_single_page(), it does zero out the page and sets the zone, pfn, nid among other things. I propose we use the current version with zone_device_free_folio() as is.

We can figure out if __init_zone_device_page() can be reused or refactored for the purposes to doing this with core MM API's

Quoted 21 lines
Quoted 5 lines

This patch mixed the concept of page and folio together, thus causing confusion. Core MM sees page and folio two separate things:
1. page is the smallest internal physical memory management unit,
2. folio is an abstraction on top of pages, and other abstractions can be slab, ptdesc, and more (https://kernelnewbies.org/MatthewWilcox/Memdescs).

I think the users of zone_device_page_init() are principally trying to create something that can be installed in a non-special PTE. Meaning the output is always a folio because it is going to be read as a folio in the page walkers.

Thus, the job of this function is to take the memory range starting at page for 2^order and turn it into a single valid folio with refcount of 1.

Quoted 3 lines

If device pages have to initialize on top of pages with obsolete states, at least it should be first initialized as pages, then as folios to avoid confusion.

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

folio initialization should not iterate over any page list, since folio is supposed to be treated as a whole instead of individual pages.

Based on my understanding,

folio->mapping = NULL;
folio->memcg_data = 0;
folio->flags.f &= ~PAGE_FLAGS_CHECK_AT_PREP;

should be enough.

if (order)

	folio_set_large_rmappable(folio);

is done at zone_device_folio_init().

Best Regards,
Yan, Zi

maintainer
#20 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 5 lines · Zi Yan
Quoted 2 lines
Quoted 2 lines

I suppose we want some prep_single_page(page) and some reorg to share code with the other prep function.

This is just an unnecessary need due to lack of knowledge of/do not want to investigate core MM page and folio initialization code.

It will be better to keep this related code together, not spread all around.

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

folio initialization should not iterate over any page list, since folio is supposed to be treated as a whole instead of individual pages.

The tail pages need to have the right data in them or compound_head won't work.

Quoted 5 lines

folio->mapping = NULL;
folio->memcg_data = 0;
folio->flags.f &= ~PAGE_FLAGS_CHECK_AT_PREP;

should be enough.

This seems believable to me for setting up an order 0 page.

Quoted 2 lines

if (order)

	folio_set_large_rmappable(folio);

That one is in zone_device_folio_init()

And maybe the naming has got really confused if we have both functions now :\

Jason

#21 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 9 lines · Jason Gunthorpe
Quoted 5 lines · Zi Yan
Quoted 2 lines
Quoted 2 lines

I suppose we want some prep_single_page(page) and some reorg to share code with the other prep function.

This is just an unnecessary need due to lack of knowledge of/do not want to investigate core MM page and folio initialization code.

It will be better to keep this related code together, not spread all around.

Or clarify what code is for preparing pages, which would go away at memdesc time, and what code is for preparing folios, which would stay.

Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

folio initialization should not iterate over any page list, since folio is supposed to be treated as a whole instead of individual pages.

The tail pages need to have the right data in them or compound_head won't work.

That is done by set_compound_head() in prep_compound_tail(). prep_compound_page() take cares of it. As long as it is called, even if the pages in that compound page have random states before, the compound page should function correctly afterwards.

Quoted 8 lines
Quoted 6 lines

folio->mapping = NULL;
folio->memcg_data = 0;
folio->flags.f &= ~PAGE_FLAGS_CHECK_AT_PREP;

should be enough.

This seems believable to me for setting up an order 0 page.

It works for any folio, regardless of its order. fields used in second or third subpages are all taken care of by prep_compound_page().

Quoted 5 lines
Quoted 3 lines

if (order)

	folio_set_large_rmappable(folio);

That one is in zone_device_folio_init()

Yes. And the code location looks right to me.

Quoted 3 lines

And maybe the naming has got really confused if we have both functions now :\

Yes. One of the issues is that device private code used to only handles order-0 pages and was converted to use high order folio directly without using high order page (namely compound page) as an intermediate step. This two-step-in-one caused confusion. But the key thing to avoid the confusion is that to form a high order folio, a list of contiguous pages would become a compound page by calling prep_compound_page(), then the compound page becomes a folio by calling folio_set_large_rmappable().

BTW, the code in prep_compound_head() after folio_set_order(folio, order) should belong to folio_set_large_rmappable() and they are causing confusion, since they are only applicable to rmappable large folios. I am going to send a patch to fix it.

Best Regards,
Yan, Zi

maintainer
#22 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 2 lines · Zi Yan

On 20 Jan 2026, at 8:53, Jason Gunthorpe wrote:

This whole thread makes my head hurt, as does core MM.

IMO the TL;DR is:

- Why is Intel the only one proving this stuff works? We can debate all day about what should or should not work — but someone else needs to actually prove it.i, rather than type hypotheticals.

- Intel has demonstrated that this works and is still getting blocked.

- This entire thread is about a fixes patch for large device pages. Changing prep_compound_page is completely out of scope for a fixes patch, and honestly so is most of the rest of what’s being proposed.

- At a minimum, you must clear every page’s flags in the loop. So why not conservatively clear anything else a folio might have set before calling an existing core-MM function, ensuring the pages are in a known state? This is a fixes patch.

- Given the current state of the discussion, I don’t think large device pages should be in 6.19. And if so, why didn’t the entire device pages series receive this level of scrutiny earlier? It’s my mistake for not saying “no” until the reallocation at different sizes issue was resolved.

@Andrew. - I'd revert large device pages in 6.19 as it doesn't work and we seemly cannot close on this.

Matt

Quoted 68 lines
Quoted 9 lines · Zi Yan
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

I suppose we want some prep_single_page(page) and some reorg to share code with the other prep function.

This is just an unnecessary need due to lack of knowledge of/do not want to investigate core MM page and folio initialization code.

It will be better to keep this related code together, not spread all around.

Or clarify what code is for preparing pages, which would go away at memdesc time, and what code is for preparing folios, which would stay.

Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

folio initialization should not iterate over any page list, since folio is supposed to be treated as a whole instead of individual pages.

The tail pages need to have the right data in them or compound_head won't work.

That is done by set_compound_head() in prep_compound_tail(). prep_compound_page() take cares of it. As long as it is called, even if the pages in that compound page have random states before, the compound page should function correctly afterwards.

Quoted 8 lines
Quoted 6 lines

folio->mapping = NULL;
folio->memcg_data = 0;
folio->flags.f &= ~PAGE_FLAGS_CHECK_AT_PREP;

should be enough.

This seems believable to me for setting up an order 0 page.

It works for any folio, regardless of its order. fields used in second or third subpages are all taken care of by prep_compound_page().

Quoted 5 lines
Quoted 3 lines

if (order)

	folio_set_large_rmappable(folio);

That one is in zone_device_folio_init()

Yes. And the code location looks right to me.

Quoted 3 lines

And maybe the naming has got really confused if we have both functions now :\

Yes. One of the issues is that device private code used to only handles order-0 pages and was converted to use high order folio directly without using high order page (namely compound page) as an intermediate step. This two-step-in-one caused confusion. But the key thing to avoid the confusion is that to form a high order folio, a list of contiguous pages would become a compound page by calling prep_compound_page(), then the compound page becomes a folio by calling folio_set_large_rmappable().

BTW, the code in prep_compound_head() after folio_set_order(folio, order) should belong to folio_set_large_rmappable() and they are causing confusion, since they are only applicable to rmappable large folios. I am going to send a patch to fix it.

Best Regards,
Yan, Zi

#23 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 12 lines · Matthew Brost
Quoted 2 lines · Zi Yan

On 20 Jan 2026, at 8:53, Jason Gunthorpe wrote:

This whole thread makes my head hurt, as does core MM.

IMO the TL;DR is:

- Why is Intel the only one proving this stuff works? We can debate all day about what should or should not work — but someone else needs to actually prove it.i, rather than type hypotheticals.

Quoted 5 lines

- Intel has demonstrated that this works and is still getting blocked.

- This entire thread is about a fixes patch for large device pages. Changing prep_compound_page is completely out of scope for a fixes patch, and honestly so is most of the rest of what’s being proposed.

FWIW I'm ok if this lands as a fix patch, and perceived the discussion to be about how refactor things more properly afterwards, going forward.

Quoted 83 lines

- At a minimum, you must clear every page’s flags in the loop. So why not conservatively clear anything else a folio might have set before calling an existing core-MM function, ensuring the pages are in a known state? This is a fixes patch.

- Given the current state of the discussion, I don’t think large device pages should be in 6.19. And if so, why didn’t the entire device pages series receive this level of scrutiny earlier? It’s my mistake for not saying “no” until the reallocation at different sizes issue was resolved.

@Andrew. - I'd revert large device pages in 6.19 as it doesn't work and we seemly cannot close on this.

Matt

Quoted 68 lines
Quoted 9 lines · Zi Yan
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

I suppose we want some prep_single_page(page) and some reorg to share code with the other prep function.

This is just an unnecessary need due to lack of knowledge of/do not want to investigate core MM page and folio initialization code.

It will be better to keep this related code together, not spread all around.

Or clarify what code is for preparing pages, which would go away at memdesc time, and what code is for preparing folios, which would stay.

Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

folio initialization should not iterate over any page list, since folio is supposed to be treated as a whole instead of individual pages.

The tail pages need to have the right data in them or compound_head won't work.

That is done by set_compound_head() in prep_compound_tail(). prep_compound_page() take cares of it. As long as it is called, even if the pages in that compound page have random states before, the compound page should function correctly afterwards.

Quoted 8 lines
Quoted 6 lines

folio->mapping = NULL;
folio->memcg_data = 0;
folio->flags.f &= ~PAGE_FLAGS_CHECK_AT_PREP;

should be enough.

This seems believable to me for setting up an order 0 page.

It works for any folio, regardless of its order. fields used in second or third subpages are all taken care of by prep_compound_page().

Quoted 5 lines
Quoted 3 lines

if (order)

	folio_set_large_rmappable(folio);

That one is in zone_device_folio_init()

Yes. And the code location looks right to me.

Quoted 3 lines

And maybe the naming has got really confused if we have both functions now :\

Yes. One of the issues is that device private code used to only handles order-0 pages and was converted to use high order folio directly without using high order page (namely compound page) as an intermediate step. This two-step-in-one caused confusion. But the key thing to avoid the confusion is that to form a high order folio, a list of contiguous pages would become a compound page by calling prep_compound_page(), then the compound page becomes a folio by calling folio_set_large_rmappable().

BTW, the code in prep_compound_head() after folio_set_order(folio, order) should belong to folio_set_large_rmappable() and they are causing confusion, since they are only applicable to rmappable large folios. I am going to send a patch to fix it.

Best Regards,
Yan, Zi

#24 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 13 lines · Vlastimil Babka
Quoted 12 lines · Matthew Brost
Quoted 2 lines · Zi Yan

On 20 Jan 2026, at 8:53, Jason Gunthorpe wrote:

This whole thread makes my head hurt, as does core MM.

IMO the TL;DR is:

- Why is Intel the only one proving this stuff works? We can debate all day about what should or should not work — but someone else needs to actually prove it.i, rather than type hypotheticals.

Quoted 9 lines
Quoted 5 lines

- Intel has demonstrated that this works and is still getting blocked.

- This entire thread is about a fixes patch for large device pages. Changing prep_compound_page is completely out of scope for a fixes patch, and honestly so is most of the rest of what’s being proposed.

FWIW I'm ok if this lands as a fix patch, and perceived the discussion to be about how refactor things more properly afterwards, going forward.

I've said the same thing and I concur, we can use the patch as-is and change this to set the relevant identified fields after 6.19

Balbir

Quoted 14 lines
Quoted 14 lines

- At a minimum, you must clear every page’s flags in the loop. So why not conservatively clear anything else a folio might have set before calling an existing core-MM function, ensuring the pages are in a known state? This is a fixes patch.

- Given the current state of the discussion, I don’t think large device pages should be in 6.19. And if so, why didn’t the entire device pages series receive this level of scrutiny earlier? It’s my mistake for not saying “no” until the reallocation at different sizes issue was resolved.

@Andrew. - I'd revert large device pages in 6.19 as it doesn't work and we seemly cannot close on this.

Matt

<snip>

maintainer Acked-by Felix Kuehling Reviewed-by Balbir Singh
#25 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 6 lines · On Thu, 22 Jan 2026 20:10:44 +1100 Balbir Singh <[email protected]> wrote:
Quoted 6 lines
Quoted 5 lines

- Intel has demonstrated that this works and is still getting blocked.

- This entire thread is about a fixes patch for large device pages. Changing prep_compound_page is completely out of scope for a fixes patch, and honestly so is most of the rest of what’s being proposed.

Quoted 6 lines
Quoted 3 lines

FWIW I'm ok if this lands as a fix patch, and perceived the discussion to be about how refactor things more properly afterwards, going forward.

I've said the same thing and I concur, we can use the patch as-is and change this to set the relevant identified fields after 6.19

So the plan is to add this patch to 6.19-rc and take another look at patches [2-5] during next -rc cycle?

I think the plan is to take Matthew's work via the DRM tree? But if people want me to patchbunny this fix then please lmk.

I presently have

If people wish to add to this then please do so.

I'll restore this patch into mm.git's hotfix branch (and hence linux-next) because testing.

#26 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

On 2026-01-23 at 08:41 +1100, Andrew Morton <[email protected]> wrote...

Quoted 12 lines · On Thu, 22 Jan 2026 20:10:44 +1100 Balbir Singh <[email protected]> wrote:
Quoted 11 lines
Quoted 10 lines
Quoted 6 lines

- Intel has demonstrated that this works and is still getting blocked.

- This entire thread is about a fixes patch for large device pages. Changing prep_compound_page is completely out of scope for a fixes patch, and honestly so is most of the rest of what’s being proposed.

FWIW I'm ok if this lands as a fix patch, and perceived the discussion to be about how refactor things more properly afterwards, going forward.

Quoted 5 lines
Quoted 2 lines

I've said the same thing and I concur, we can use the patch as-is and change this to set the relevant identified fields after 6.19

So the plan is to add this patch to 6.19-rc and take another look at patches [2-5] during next -rc cycle?

I'm ok with this as a a quick fix, and happy to take a look at cleaning this up in the next cycle or two as it's been on my TODO list for a while anyway.

Quoted 14 lines

I think the plan is to take Matthew's work via the DRM tree? But if people want me to patchbunny this fix then please lmk.

I presently have

If people wish to add to this then please do so.

I'll restore this patch into mm.git's hotfix branch (and hence linux-next) because testing.

#27 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

In reply to Andrew Morton
Quoted 21 lines · Andrew Morton
Quoted 6 lines · On Thu, 22 Jan 2026 20:10:44 +1100 Balbir Singh <[email protected]> wrote:
Quoted 6 lines
Quoted 5 lines

- Intel has demonstrated that this works and is still getting blocked.

- This entire thread is about a fixes patch for large device pages. Changing prep_compound_page is completely out of scope for a fixes patch, and honestly so is most of the rest of what’s being proposed.

Quoted 6 lines
Quoted 3 lines

FWIW I'm ok if this lands as a fix patch, and perceived the discussion to be about how refactor things more properly afterwards, going forward.

I've said the same thing and I concur, we can use the patch as-is and change this to set the relevant identified fields after 6.19

So the plan is to add this patch to 6.19-rc and take another look at patches [2-5] during next -rc cycle?

I think the plan is to take Matthew's work via the DRM tree? But if people want me to patchbunny this fix then please lmk.

Quoted 8 lines

I presently have

If people wish to add to this then please do so.

I did too.

Quoted 2 lines

I'll restore this patch into mm.git's hotfix branch (and hence linux-next) because testing.

maintainer
#28 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

In reply to Matthew Brost
Quoted 3 lines · Matthew Brost

- Why is Intel the only one proving this stuff works? We can debate all day about what should or should not work — but someone else needs to actually prove it.i, rather than type hypotheticals.

Oh come on, NVIDIA has done an *enormous* amount of work to get these things to this point where they are actually getting close to functional and usable.

Don't "Oh poor intel" me :P

Quoted 1 line

- Intel has demonstrated that this works and is still getting blocked.

We generally don't merge patches because they "works for me". The issue is the thing you presented is very ugly and inefficient, and when we start talking about the right way to do it you get all defensive and disappear.

Quoted 4 lines

- Given the current state of the discussion, I don’t think large device pages should be in 6.19. And if so, why didn’t the entire device pages series receive this level of scrutiny earlier? It’s my mistake for not saying “no” until the reallocation at different sizes issue was resolved.

It did, nobody noticed this bug or post something so obviously ugly :P

Quoted 2 lines

@Andrew. - I'd revert large device pages in 6.19 as it doesn't work and we seemly cannot close on this.

What's the issue here? You said you were going to go ahead with the ugly thing, go do it and come back with something better. That's what you wanted, right?

Jason

maintainer
#29 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

In reply to Zi Yan
Quoted 6 lines · Zi Yan
Quoted 4 lines · Jason Gunthorpe
Quoted 3 lines · Zi Yan
Quoted 2 lines
Quoted 2 lines

I suppose we want some prep_single_page(page) and some reorg to share code with the other prep function.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

This is just an unnecessary need due to lack of knowledge of/do not want to investigate core MM page and folio initialization code.

It will be better to keep this related code together, not spread all around.

Or clarify what code is for preparing pages, which would go away at memdesc time, and what code is for preparing folios, which would stay.

That comes back to the question of 'what are the rules for frozen pages'

Now that we have frozen pages where the frozen owner can use some of the struct page memory however it likes that memory needs to be reset before the page is thawed and converted back to a folio.

memdesc time is only useful for memory that is not writable by frozen owners - basically must be constant forever.

Quoted 11 lines
Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

folio initialization should not iterate over any page list, since folio is supposed to be treated as a whole instead of individual pages.

The tail pages need to have the right data in them or compound_head won't work.

That is done by set_compound_head() in prep_compound_tail().

Inside a page loop :)

	__SetPageHead(page);
	for (i = 1; i < nr_pages; i++)
		prep_compound_tail(page, i);
Quoted 7 lines

Yes. One of the issues is that device private code used to only handles order-0 pages and was converted to use high order folio directly without using high order page (namely compound page) as an intermediate step. This two-step-in-one caused confusion. But the key thing to avoid the confusion is that to form a high order folio, a list of contiguous pages would become a compound page by calling prep_compound_page(), then the compound page becomes a folio by calling folio_set_large_rmappable().

That seems logical to me.

Jason

#30 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 16 lines · Jason Gunthorpe
Quoted 6 lines · Zi Yan
Quoted 4 lines · Jason Gunthorpe
Quoted 3 lines · Zi Yan
Quoted 2 lines
Quoted 2 lines

I suppose we want some prep_single_page(page) and some reorg to share code with the other prep function.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

This is just an unnecessary need due to lack of knowledge of/do not want to investigate core MM page and folio initialization code.

It will be better to keep this related code together, not spread all around.

Or clarify what code is for preparing pages, which would go away at memdesc time, and what code is for preparing folios, which would stay.

Quoted 6 lines

That comes back to the question of 'what are the rules for frozen pages'

Now that we have frozen pages where the frozen owner can use some of the struct page memory however it likes that memory needs to be reset before the page is thawed and converted back to a folio.

Based on my understanding, a frozen folio cannot be changed however the owner wants, since the modification needs to prevent parallel scanner from misusing the folio. For example, PFN scanners like memory compaction needs to know this is a frozen folio with a certain order, so that it will skip it as a whole. But if you change the frozen folio in a way that a parallel scanner cannot recognize the right order (e.g., the frozen folio order becomes lower) and finds some of the subpages have non-zero refcount, it can cause issues.

But I assume device private pages do not have such a parallel scanner looking at each struct page one by one and examining their state.

Quoted 3 lines

memdesc time is only useful for memory that is not writable by frozen owners - basically must be constant forever.

Bits 0-3 of memdesc are a type field, so the owner should be able to set it, so that others will stay away.

BTW, it seems that you treat frozen folio and free folio interchangeable in this device private folio discussion. To me, they are different, since frozen folio is transient to prevent others from touching the folio, e.g., a free page is taken from buddy and allocator is setting up its state, or a folio is split. You do not want memory compaction code to touch these transient folios/pages. In terms of free folio, they are stable before next allocation and others can recognize it and perform reasonable operations. For example, memory compaction code can take a free page out of buddy and use it as a migration destination. That is why I want to remove all device private folio states when it is freed. But memory compaction code never scans device private folios and there is no other similar scanners, so that requirement might not be needed.

Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

folio initialization should not iterate over any page list, since folio is supposed to be treated as a whole instead of individual pages.

The tail pages need to have the right data in them or compound_head won't work.

Quoted 7 lines
Quoted 1 line

That is done by set_compound_head() in prep_compound_tail().

Inside a page loop :)

	__SetPageHead(page);
	for (i = 1; i < nr_pages; i++)
		prep_compound_tail(page, i);

Yes, but to a folio, the fields of tail page 1 and 2 are used because we do not want to inflate struct folio for high order folios. In this loop, all tail pages are processed in the same way. To follow your method, there will be some ifs for tail page 1 to clear _nr_pages and tail page 2 to clear other fields. It feels to me that we are clearly mixing struct page and struct folio.

Quoted 9 lines
Quoted 8 lines

Yes. One of the issues is that device private code used to only handles order-0 pages and was converted to use high order folio directly without using high order page (namely compound page) as an intermediate step. This two-step-in-one caused confusion. But the key thing to avoid the confusion is that to form a high order folio, a list of contiguous pages would become a compound page by calling prep_compound_page(), then the compound page becomes a folio by calling folio_set_large_rmappable().

Quoted 3 lines

That seems logical to me.

Jason

Best Regards,
Yan, Zi

maintainer
#31 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 4 lines · Zi Yan
Quoted 3 lines

Now that we have frozen pages where the frozen owner can use some of the struct page memory however it likes that memory needs to be reset before the page is thawed and converted back to a folio.

Quoted 8 lines

Based on my understanding, a frozen folio cannot be changed however the owner wants, since the modification needs to prevent parallel scanner from misusing the folio. For example, PFN scanners like memory compaction needs to know this is a frozen folio with a certain order, so that it will skip it as a whole. But if you change the frozen folio in a way that a parallel scanner cannot recognize the right order (e.g., the frozen folio order becomes lower) and finds some of the subpages have non-zero refcount, it can cause issues.

Yes, and this is part of the rules of what bits in the struct page memory you can use for frozen pages. I've never seen it clearly written unfortunately.

Quoted 2 lines

But I assume device private pages do not have such a parallel scanner looking at each struct page one by one and examining their state.

I hope not!

Quoted 3 lines

BTW, it seems that you treat frozen folio and free folio interchangeable in this device private folio discussion. To me, they are different, since frozen folio is transient to prevent others from touching the folio,

Yes, but really it is the same issue. Once the folio is frozen either for free or any other use case it must follow a certain set of rules to be compatible with the parallel scanners and things that may still inspect the page without taking any refcounts.

The scanner can't tell if the refcount is 0 because it is frozen or because it is free.

Quoted 17 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

folio initialization should not iterate over any page list, since folio is supposed to be treated as a whole instead of individual pages.

The tail pages need to have the right data in them or compound_head won't work.

Quoted 7 lines
Quoted 1 line

That is done by set_compound_head() in prep_compound_tail().

Inside a page loop :)

	__SetPageHead(page);
	for (i = 1; i < nr_pages; i++)
		prep_compound_tail(page, i);
Quoted 6 lines

Yes, but to a folio, the fields of tail page 1 and 2 are used because we do not want to inflate struct folio for high order folios. In this loop, all tail pages are processed in the same way. To follow your method, there will be some ifs for tail page 1 to clear _nr_pages and tail page 2 to clear other fields. It feels to me that we are clearly mixing struct page and struct folio.

I'm not saying mixing, I'm just pointing out we have to clean up the tail pages by writing to every one. This can also adjust the flags and order if required on tail pages. Initing the folio is a seperate step, and you already showed the right way to code that.

Jason

#32 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

In reply to Zi Yan
Quoted 119 lines · Zi Yan
Quoted 63 lines · Balbir Singh
Quoted 62 lines · Jason Gunthorpe
Quoted 13 lines · Zi Yan
Quoted 13 lines
mm/internal.h +3 -1
index e430da900430a1..a7d3f5e4b85e49 100644
@@ -806,14 +806,21 @@ static inline void prep_compound_head(struct page *page, unsigned int order)
 		atomic_set(&folio->_pincount, 0);
 		atomic_set(&folio->_entire_mapcount, -1);
 	}
-	if (order > 1)
+	if (order > 1) {
 		INIT_LIST_HEAD(&folio->_deferred_list);
+	} else {
+		folio->mapping = NULL;
Quoted 8 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 816

Quoted 4 lines
mm/internal.h +4 -0
+#ifdef CONFIG_MEMCG
+		folio->memcg_data = 0;
+#endif
+	}

prep_compound_head() is only called on >0 order pages. The above code means when order == 1, folio->mapping and folio->memcg_data are assigned NULL.

OK, fair enough, the conditionals would have to change and maybe it shouldn't be called "compound_head" if it also cleans up normal pages.

Quoted 8 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 823

Quoted 5 lines
mm/internal.h +1 -0
 static inline void prep_compound_tail(struct page *head, int tail_idx)
 {
 	struct page *p = head + tail_idx;
 
+	p->flags.f &= ~0xffUL;	/* Clear possible order, page head */

No one cares about tail page flags if it is not checked in check_new_page() from mm/page_alloc.c.

At least page_fixed_fake_head() does check PG_head in some configurations. It does seem safer to clear it. Possibly order is never used, but it is free to clear it.

Quoted 7 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 822

Quoted 3 lines
mm/internal.h +1 -2
-	if (order)
-		prep_compound_page(page, order);
+	prep_compound_page(page, order);

prep_compound_page() should only be called for >0 order pages. This creates another weirdness in device pages by assuming all pages are compound.

OK

Quoted 12 lines

mm/internal.h static inline void prep_compound_head(struct page *page, unsigned int order) · line 826

Quoted 4 lines
mm/internal.h +4 -0
+	folio = page_folio(page);
+	folio->pgmap = pgmap;
+	folio_lock(folio);
+	folio_set_count(folio, 1);

/* clear possible previous page->mapping */
folio->mapping = NULL;

/* clear possible previous page->_nr_pages */

#ifdef CONFIG_MEMCG
	folio->memcg_data = 0;

#endif

Quoted 4 lines
Quoted 4 lines

This is reasonable too, but prep_compound_head() was doing more than that, it is also clearing the order, and this needs to clear the head bit. That's why it was apppealing to reuse those functions, but you are right they are not ideal.

PG_head is and must be bit 6, that means the stored order needs to be at least 2^6=64 to get it set. Who allocates a folio with that large order? This p->flags.f &= ~0xffUL thing is unnecessary. What really needs to be done is folio->flags.f &= ~PAGE_FLAGS_CHECK_AT_PREP to make sure the new folio flags are the same as newly allocated folios from core MM page allocator.

Quoted 3 lines
Quoted 3 lines

I suppose we want some prep_single_page(page) and some reorg to share code with the other prep function.

This is just an unnecessary need due to lack of knowledge of/do not want to investigate core MM page and folio initialization code.

Quoted 31 lines
Quoted 1 line

There is __init_zone_device_page() and __init_single_page(), it does zero out the page and sets the zone, pfn, nid among other things. I propose we use the current version with zone_device_free_folio() as is.

We can figure out if __init_zone_device_page() can be reused or refactored for the purposes to doing this with core MM API's

Quoted 21 lines
Quoted 5 lines

This patch mixed the concept of page and folio together, thus causing confusion. Core MM sees page and folio two separate things:
1. page is the smallest internal physical memory management unit,
2. folio is an abstraction on top of pages, and other abstractions can be slab, ptdesc, and more (https://kernelnewbies.org/MatthewWilcox/Memdescs).

I think the users of zone_device_page_init() are principally trying to create something that can be installed in a non-special PTE. Meaning the output is always a folio because it is going to be read as a folio in the page walkers.

Thus, the job of this function is to take the memory range starting at page for 2^order and turn it into a single valid folio with refcount of 1.

Quoted 3 lines

If device pages have to initialize on top of pages with obsolete states, at least it should be first initialized as pages, then as folios to avoid confusion.

I don't think so. It should do the above job efficiently and iterate over the page list exactly once.

folio initialization should not iterate over any page list, since folio is supposed to be treated as a whole instead of individual pages.

Quoted 8 lines

Based on my understanding,

folio->mapping = NULL;
folio->memcg_data = 0;
folio->flags.f &= ~PAGE_FLAGS_CHECK_AT_PREP;

should be enough.

I think it should be enough as well, worst case memcg_data is aliased with slab_obj_exts, but we don't expect zone device folios to have slab_obj_exts to be set.

folio->memcg_data needs to be under an #ifdef CONFIG_MEMCG and folio->mapping was set to NULL during previous free (one could assume it's unchanged)

Quoted 5 lines

if (order)

	folio_set_large_rmappable(folio);

is done at zone_device_folio_init().

Balbir

maintainer
#33 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

In reply to Vlastimil Babka
Quoted 14 lines · Vlastimil Babka
Quoted 5 lines
Quoted 5 lines
mm/memremap.c +5 -0
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
Quoted 8 lines

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 508

Quoted 5 lines
mm/memremap.c +5 -0
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif

This seems too weird, why is it in the loop? There is only one _nr_pages per folio.

Quoted 3 lines

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head and we can't know that at this point so we have to reset everything?

Er, did I miss something - who reads _nr_pages from a random tail page? Doesn't everything working with random tail pages read order, compute the head page, cast to folio and then access _nr_pages?

Quoted 3 lines

Or maybe you mean that stray _nr_pages in some tail page from previous lifetimes can't affect the current lifetime in a wrong way for something looking at said page? I don't know immediately.

Yes, exactly.

Basically, what bytes exactly need to be set to what in tail pages for the system to work? Those should be set.

And if we want to have things set on free that's fine too, but there should be reasons for doing stuff, and this weird thing above makes zero sense.

Jason

#34 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

On 2026-01-17 at 11:19 +1100, Jason Gunthorpe <[email protected]> wrote...

Quoted 6 lines · Vlastimil Babka
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
mm/memremap.c +5 -0
+#ifdef NR_PAGES_IN_LARGE_FOLIO
+		/*
+		 * This pointer math looks odd, but new_page could have been
+		 * part of a previous higher order folio, which sets _nr_pages
+		 * in page + 1 (new_page). Therefore, we use pointer casting to
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 508

Quoted 5 lines
mm/memremap.c +5 -0
+		 * correctly locate the _nr_pages bits within new_page which
+		 * could have modified by previous higher order folio.
+		 */
+		((struct folio *)(new_page - 1))->_nr_pages = 0;
+#endif

This seems too weird, why is it in the loop? There is only one _nr_pages per folio.

Yeah, I don't really know what the motivation is for going via the folio field which needs the odd pointer math versus just setting page->memcg_data = 0 directly which would work equally well and would have avoided a lot of confusion.

Quoted 12 lines
Quoted 3 lines

I suppose we could be getting say an order-9 folio that was previously used as two order-8 folios? And each of them had their _nr_pages in their head and we can't know that at this point so we have to reset everything?

Er, did I miss something - who reads _nr_pages from a random tail page? Doesn't everything working with random tail pages read order, compute the head page, cast to folio and then access _nr_pages?

Quoted 3 lines

Or maybe you mean that stray _nr_pages in some tail page from previous lifetimes can't affect the current lifetime in a wrong way for something looking at said page? I don't know immediately.

Quoted 8 lines

Yes, exactly.

Basically, what bytes exactly need to be set to what in tail pages for the system to work? Those should be set.

And if we want to have things set on free that's fine too, but there should be reasons for doing stuff, and this weird thing above makes zero sense.

You can't think of these as tail pages or head pages. They are just random struct pages, possibly order-0 or PageHead or PageTail, with fields in a "random" state based on what they were last used for.

All this function should be trying to do is initialising this random state to something sane as defined by the core-mm for it to consume. Yes, some might later end up being tail (or head) pages if order > 0 and prep_compound_page() is called. But the point of this function and the loop is to initialise the struct page as an order-0 page with "sane" fields to pass to core-mm or call prep_compound_page() on.

This could for example just use memset(new_page, 0, sizeof(struct page)) and then refill all the fields correctly (although Vlastimil pointed out some page flags need preservation). But a big part of the problem is there is no single definition (AFAIK) of what state a struct page should be in before handing it to the core-mm via either vm_insert_page()/pages()/etc. or migrate_vma_*() nor what state the kernel leaves it in once freed.

I would like to see this addressed because it leads to all sorts of weirdness - for example vm_insert_page() and migrate_vma_*() both require the page refcount to be 1 for no good reason (drivers usually have to drop it immediately after the call and they implicitly own the ZONE_DEVICE page lifetimes anyway so why make them hold a reference just to map the page). Yet only migrate_vma_*() requires the page to be locked (so other ZONE_DEVICE users just have to immediately unlock).

And I presume page->memcg_data must be set to zero, or Matthew wouldn't have run into problems prompting him to reinit it. But I don't really know what other requirements there are for setting page fields, they all sort of come implicitly from the vm_insert_page/migrate_vma APIs.

- Alistair

Quoted 1 line

Jason

maintainer
#35 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 7 lines · Alistair Popple
Quoted 3 lines

And if we want to have things set on free that's fine too, but there should be reasons for doing stuff, and this weird thing above makes zero sense.

You can't think of these as tail pages or head pages. They are just random struct pages, possibly order-0 or PageHead or PageTail, with fields in a "random" state based on what they were last used for.

Agree on random state.

Quoted 4 lines

All this function should be trying to do is initialising this random state to something sane as defined by the core-mm for it to consume. Yes, some might later end up being tail (or head) pages if order > 0 and prep_compound_page() is called.

Not "later" during this function. The end result of this entire function is to setup folio starting at page and at order. Meaning we are deliberately *creating* head and tail pages out of random junk left over in the struct page.

Quoted 3 lines

But the point of this function and the loop is to initialise the struct page as an order-0 page with "sane" fields to pass to core-mm or call prep_compound_page() on.

Which is what seems nonsensical to me. prep_compound_page() does another loop over all these pages and *re sets* many of the same fields. You are aruging we should clean things and then call perp_compund_page(), I'm arguing prep_compound_page() just just accept the junk and fix it.

Quoted 6 lines

This could for example just use memset(new_page, 0, sizeof(struct page)) and then refill all the fields correctly (although Vlastimil pointed out some page flags need preservation). But a big part of the problem is there is no single definition (AFAIK) of what state a struct page should be in before handing it to the core-mm via either vm_insert_page()/pages()/etc. or migrate_vma_*() nor what state the kernel leaves it in once freed.

I agree with this, but I argue that prep_compound_page() should codify whatever that requirement is so we can trend toward such an agreed definition. See Matthew's first missive on this about doing things properly in the core code instead of hacking in drivers.

Jason

maintainer
#36 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

In reply to Francois Dugast
Quoted 11 lines · On Fri, 16 Jan 2026 12:10:16 +0100 Francois Dugast <[email protected]>…

Reinitialize metadata for large zone device private folios in zone_device_page_init prior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically between zone_device_page_init calls to avoid building a corrupt folio. As part of the metadata reinitialization, the dev_pagemap must be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.

Without this fix, individual pages could have invalid pgmap fields and flags (with PG_locked being notably problematic) due to prior different order allocations, which can, and will, result in kernel crashes.

Is it OK to leave 6.18.x without this fixed?

maintainer
#37 lore raw

Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios

Quoted 10 lines · Andrew Morton
Quoted 8 lines · On Fri, 16 Jan 2026 12:10:16 +0100 Francois Dugast <[email protected]>…

Reinitialize metadata for large zone device private folios in zone_device_page_init prior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically between zone_device_page_init calls to avoid building a corrupt folio. As part of the metadata reinitialization, the dev_pagemap must be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.

Quoted 5 lines
Quoted 3 lines

Without this fix, individual pages could have invalid pgmap fields and flags (with PG_locked being notably problematic) due to prior different order allocations, which can, and will, result in kernel crashes.

Is it OK to leave 6.18.x without this fixed?

I think 6.18.x is fine, the offending patch + large device pages is going into 6.19, right?

Matt

#38 lore raw

PATCH v6 2/5 drm/pagemap: Unlock and put folios when possible

In reply to Francois Dugast

If the page is part of a folio, unlock and put the whole folio at once instead of individual pages one after the other. This will reduce the amount of operations once device THP are in use.

Cc Andrew Morton <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Zi Yan <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Balbir Singh <[email protected]>
---
 drivers/gpu/drm/drm_pagemap.c | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)
drivers/gpu/drm/drm_pagemap.c +17 -9
index 38eca94f01a1..8e24a2c24729 100644
@@ -154,15 +154,15 @@ static void drm_pagemap_zdd_put(struct drm_pagemap_zdd *zdd)
 }
 
 /**
- * drm_pagemap_migration_unlock_put_page() - Put a migration page
- * @page: Pointer to the page to put
+ * drm_pagemap_migration_unlock_put_folio() - Put a migration folio
+ * @folio: Pointer to the folio to put
  *
- * This function unlocks and puts a page.
+ * This function unlocks and puts a folio.
  */
-static void drm_pagemap_migration_unlock_put_page(struct page *page)
+static void drm_pagemap_migration_unlock_put_folio(struct folio *folio)
 {
-	unlock_page(page);
-	put_page(page);
+	folio_unlock(folio);
+	folio_put(folio);
 }
 
 /**
@@ -177,15 +177,23 @@ static void drm_pagemap_migration_unlock_put_pages(unsigned long npages,
 {
 	unsigned long i;
 
-	for (i = 0; i < npages; ++i) {
+	for (i = 0; i < npages;) {
 		struct page *page;
+		struct folio *folio;
+		unsigned int order = 0;
 
 		if (!migrate_pfn[i])
-			continue;
+			goto next;
 
 		page = migrate_pfn_to_page(migrate_pfn[i]);
-		drm_pagemap_migration_unlock_put_page(page);
+		folio = page_folio(page);
+		order = folio_order(folio);
+
+		drm_pagemap_migration_unlock_put_folio(folio);
 		migrate_pfn[i] = 0;
+
+next:
+		i += NR_PAGES(order);
 	}
 }
 
Signature · 1 line
2.43.0
#39 lore raw

PATCH v6 3/5 drm/pagemap: Add helper to access zone_device_data

In reply to Francois Dugast

This new helper helps ensure all accesses to zone_device_data use the correct API whether the page is part of a folio or not.

v2:
- Move to drm_pagemap.h, stick to folio_zone_device_data (Matthew Brost)
- Return struct drm_pagemap_zdd * (Matthew Brost)

Cc Andrew Morton <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Zi Yan <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Balbir Singh <[email protected]>
---
 drivers/gpu/drm/drm_gpusvm.c  |  7 +++++--
 drivers/gpu/drm/drm_pagemap.c | 21 ++++++++++++---------
 include/drm/drm_pagemap.h     | 15 +++++++++++++++
 3 files changed, 32 insertions(+), 11 deletions(-)
drivers/gpu/drm/drm_gpusvm.c +5 -2
index aa9a0b60e727..585d913d3d19 100644
@@ -1488,12 +1488,15 @@ int drm_gpusvm_get_pages(struct drm_gpusvm *gpusvm,
 		order = drm_gpusvm_hmm_pfn_to_order(pfns[i], i, npages);
 		if (is_device_private_page(page) ||
 		    is_device_coherent_page(page)) {
+			struct drm_pagemap_zdd *__zdd =
+				drm_pagemap_page_zone_device_data(page);
+
 			if (!ctx->allow_mixed &&
-			    zdd != page->zone_device_data && i > 0) {
+			    zdd != __zdd && i > 0) {
 				err = -EOPNOTSUPP;
 				goto err_unmap;
 			}
-			zdd = page->zone_device_data;
+			zdd = __zdd;
 			if (pagemap != page_pgmap(page)) {
 				if (i > 0) {
 					err = -EOPNOTSUPP;
drivers/gpu/drm/drm_pagemap.c +12 -9
index 8e24a2c24729..61c6ca59df81 100644
@@ -252,7 +252,7 @@ static int drm_pagemap_migrate_map_pages(struct device *dev,
 		order = folio_order(folio);
 
 		if (is_device_private_page(page)) {
-			struct drm_pagemap_zdd *zdd = page->zone_device_data;
+			struct drm_pagemap_zdd *zdd = drm_pagemap_page_zone_device_data(page);
 			struct drm_pagemap *dpagemap = zdd->dpagemap;
 			struct drm_pagemap_addr addr;
 
@@ -323,7 +323,7 @@ static void drm_pagemap_migrate_unmap_pages(struct device *dev,
 			goto next;
 
 		if (is_zone_device_page(page)) {
-			struct drm_pagemap_zdd *zdd = page->zone_device_data;
+			struct drm_pagemap_zdd *zdd = drm_pagemap_page_zone_device_data(page);
 			struct drm_pagemap *dpagemap = zdd->dpagemap;
 
 			dpagemap->ops->device_unmap(dpagemap, dev, pagemap_addr[i]);
@@ -611,7 +611,8 @@ int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
 
 		pages[i] = NULL;
 		if (src_page && is_device_private_page(src_page)) {
-			struct drm_pagemap_zdd *src_zdd = src_page->zone_device_data;
+			struct drm_pagemap_zdd *src_zdd =
+				drm_pagemap_page_zone_device_data(src_page);
 
 			if (page_pgmap(src_page) == pagemap &&
 			    !mdetails->can_migrate_same_pagemap) {
@@ -733,8 +734,8 @@ static int drm_pagemap_migrate_populate_ram_pfn(struct vm_area_struct *vas,
 			goto next;
 
 		if (fault_page) {
-			if (src_page->zone_device_data !=
-			    fault_page->zone_device_data)
+			if (drm_pagemap_page_zone_device_data(src_page) !=
+			    drm_pagemap_page_zone_device_data(fault_page))
 				goto next;
 		}
 
@@ -1075,7 +1076,7 @@ static int __drm_pagemap_migrate_to_ram(struct vm_area_struct *vas,
 	void *buf;
 	int i, err = 0;
 
-	zdd = page->zone_device_data;
+	zdd = drm_pagemap_page_zone_device_data(page);
 	if (time_before64(get_jiffies_64(), zdd->devmem_allocation->timeslice_expiration))
 		return 0;
 
@@ -1158,7 +1159,9 @@ static int __drm_pagemap_migrate_to_ram(struct vm_area_struct *vas,
  */
 static void drm_pagemap_folio_free(struct folio *folio)
 {
-	drm_pagemap_zdd_put(folio->page.zone_device_data);
+	struct page *page = folio_page(folio, 0);
+
+	drm_pagemap_zdd_put(drm_pagemap_page_zone_device_data(page));
 }
 
 /**
@@ -1174,7 +1177,7 @@ static void drm_pagemap_folio_free(struct folio *folio)
  */
 static vm_fault_t drm_pagemap_migrate_to_ram(struct vm_fault *vmf)
 {
-	struct drm_pagemap_zdd *zdd = vmf->page->zone_device_data;
+	struct drm_pagemap_zdd *zdd = drm_pagemap_page_zone_device_data(vmf->page);
 	int err;
 
 	err = __drm_pagemap_migrate_to_ram(vmf->vma,
@@ -1240,7 +1243,7 @@ EXPORT_SYMBOL_GPL(drm_pagemap_devmem_init);
  */
 struct drm_pagemap *drm_pagemap_page_to_dpagemap(struct page *page)
 {
-	struct drm_pagemap_zdd *zdd = page->zone_device_data;
+	struct drm_pagemap_zdd *zdd = drm_pagemap_page_zone_device_data(page);
 
 	return zdd->devmem_allocation->dpagemap;
 }
include/drm/drm_pagemap.h +15 -0
index 46e9c58f09e0..736fb6cb7b33 100644
@@ -4,6 +4,7 @@
 
 #include <linux/dma-direction.h>
 #include <linux/hmm.h>
+#include <linux/memremap.h>
 #include <linux/types.h>
 
 #define NR_PAGES(order) (1U << (order))
@@ -359,4 +360,18 @@ int drm_pagemap_populate_mm(struct drm_pagemap *dpagemap,
 void drm_pagemap_destroy(struct drm_pagemap *dpagemap, bool is_atomic_or_reclaim);
 
 int drm_pagemap_reinit(struct drm_pagemap *dpagemap);
+
+/**
+ * drm_pagemap_page_zone_device_data() - Page to zone_device_data
+ * @page: Pointer to the page
+ *
+ * Return: Page's zone_device_data
+ */
+static inline struct drm_pagemap_zdd *drm_pagemap_page_zone_device_data(struct page *page)
+{
+	struct folio *folio = page_folio(page);
+
+	return folio_zone_device_data(folio);
+}
+
 #endif
Signature · 1 line
2.43.0
#40 lore raw

PATCH v6 4/5 drm/pagemap: Correct cpages calculation for migrate_vma_setup

In reply to Francois Dugast

From: Matthew Brost <[email protected]>

cpages returned from migrate_vma_setup represents the total number of individual pages found, not the number of 4K pages. The math in drm_pagemap_migrate_to_devmem for npages is based on the number of 4K pages, so cpages != npages can fail even if the entire memory range is found in migrate_vma_setup (e.g., when a single 2M page is found). Add drm_pagemap_cpages, which converts cpages to the number of 4K pages found.

Cc Andrew Morton <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Zi Yan <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Balbir Singh <[email protected]>
---
 drivers/gpu/drm/drm_pagemap.c | 38 ++++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_pagemap.c +37 -1
index 61c6ca59df81..801da343f0a6 100644
@@ -452,6 +452,41 @@ static int drm_pagemap_migrate_range(struct drm_pagemap_devmem *devmem,
 	return ret;
 }
 
+/**
+ * drm_pagemap_cpages() - Count collected pages
+ * @migrate_pfn: Array of migrate_pfn entries to account
+ * @npages: Number of entries in @migrate_pfn
+ *
+ * Compute the total number of minimum-sized pages represented by the
+ * collected entries in @migrate_pfn. The total is derived from the
+ * order encoded in each entry.
+ *
+ * Return: Total number of minimum-sized pages.
+ */
+static int drm_pagemap_cpages(unsigned long *migrate_pfn, unsigned long npages)
+{
+	unsigned long i, cpages = 0;
+
+	for (i = 0; i < npages;) {
+		struct page *page = migrate_pfn_to_page(migrate_pfn[i]);
+		struct folio *folio;
+		unsigned int order = 0;
+
+		if (page) {
+			folio = page_folio(page);
+			order = folio_order(folio);
+			cpages += NR_PAGES(order);
+		} else if (migrate_pfn[i] & MIGRATE_PFN_COMPOUND) {
+			order = HPAGE_PMD_ORDER;
+			cpages += NR_PAGES(order);
+		}
+
+		i += NR_PAGES(order);
+	}
+
+	return cpages;
+}
+
 /**
  * drm_pagemap_migrate_to_devmem() - Migrate a struct mm_struct range to device memory
  * @devmem_allocation: The device memory allocation to migrate to.
@@ -564,7 +599,8 @@ int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
 		goto err_free;
 	}
 
-	if (migrate.cpages != npages) {
+	if (migrate.cpages != npages &&
+	    drm_pagemap_cpages(migrate.src, npages) != npages) {
 		/*
 		 * Some pages to migrate. But we want to migrate all or
 		 * nothing. Raced or unknown device pages.
Signature · 1 line
2.43.0
Reviewed-by on v6 4/5
#41 lore raw

Re: [PATCH v6 4/5] drm/pagemap: Correct cpages calculation for migrate_vma_setup

Quoted 76 lines · Francois Dugast

From: Matthew Brost <[email protected]>

cpages returned from migrate_vma_setup represents the total number of individual pages found, not the number of 4K pages. The math in drm_pagemap_migrate_to_devmem for npages is based on the number of 4K pages, so cpages != npages can fail even if the entire memory range is found in migrate_vma_setup (e.g., when a single 2M page is found). Add drm_pagemap_cpages, which converts cpages to the number of 4K pages found.

Cc Andrew Morton <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Zi Yan <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Balbir Singh <[email protected]>
---
 drivers/gpu/drm/drm_pagemap.c | 38 ++++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_pagemap.c +35 -0
index 61c6ca59df81..801da343f0a6 100644
@@ -452,6 +452,41 @@ static int drm_pagemap_migrate_range(struct drm_pagemap_devmem *devmem,
 	return ret;
 }
 
+/**
+ * drm_pagemap_cpages() - Count collected pages
+ * @migrate_pfn: Array of migrate_pfn entries to account
+ * @npages: Number of entries in @migrate_pfn
+ *
+ * Compute the total number of minimum-sized pages represented by the
+ * collected entries in @migrate_pfn. The total is derived from the
+ * order encoded in each entry.
+ *
+ * Return: Total number of minimum-sized pages.
+ */
+static int drm_pagemap_cpages(unsigned long *migrate_pfn, unsigned long npages)
+{
+	unsigned long i, cpages = 0;
+
+	for (i = 0; i < npages;) {
+		struct page *page = migrate_pfn_to_page(migrate_pfn[i]);
+		struct folio *folio;
+		unsigned int order = 0;
+
+		if (page) {
+			folio = page_folio(page);
+			order = folio_order(folio);
+			cpages += NR_PAGES(order);
+		} else if (migrate_pfn[i] & MIGRATE_PFN_COMPOUND) {
+			order = HPAGE_PMD_ORDER;
+			cpages += NR_PAGES(order);
+		}
+
+		i += NR_PAGES(order);
+	}
+
+	return cpages;
+}
+
 /**
  * drm_pagemap_migrate_to_devmem() - Migrate a struct mm_struct range to device memory
  * @devmem_allocation: The device memory allocation to migrate to.

drivers/gpu/drm/drm_pagemap.c int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation, · line 606

Quoted 9 lines
drivers/gpu/drm/drm_pagemap.c +2 -1
@@ -564,7 +599,8 @@ int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
 		goto err_free;
 	}
 
-	if (migrate.cpages != npages) {
+	if (migrate.cpages != npages &&
+	    drm_pagemap_cpages(migrate.src, npages) != npages) {
 		/*
 		 * Some pages to migrate. But we want to migrate all or
 		 * nothing. Raced or unknown device pages.

I thought I did for the previous revision, but

#42 lore raw

Re: [PATCH v6 4/5] drm/pagemap: Correct cpages calculation for migrate_vma_setup

Quoted 80 lines · Balbir Singh
Quoted 79 lines · Francois Dugast

From: Matthew Brost <[email protected]>

cpages returned from migrate_vma_setup represents the total number of individual pages found, not the number of 4K pages. The math in drm_pagemap_migrate_to_devmem for npages is based on the number of 4K pages, so cpages != npages can fail even if the entire memory range is found in migrate_vma_setup (e.g., when a single 2M page is found). Add drm_pagemap_cpages, which converts cpages to the number of 4K pages found.

Cc Andrew Morton <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Zi Yan <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Balbir Singh <[email protected]>
---
 drivers/gpu/drm/drm_pagemap.c | 38 ++++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_pagemap.c +35 -0
index 61c6ca59df81..801da343f0a6 100644
@@ -452,6 +452,41 @@ static int drm_pagemap_migrate_range(struct drm_pagemap_devmem *devmem,
 	return ret;
 }
 
+/**
+ * drm_pagemap_cpages() - Count collected pages
+ * @migrate_pfn: Array of migrate_pfn entries to account
+ * @npages: Number of entries in @migrate_pfn
+ *
+ * Compute the total number of minimum-sized pages represented by the
+ * collected entries in @migrate_pfn. The total is derived from the
+ * order encoded in each entry.
+ *
+ * Return: Total number of minimum-sized pages.
+ */
+static int drm_pagemap_cpages(unsigned long *migrate_pfn, unsigned long npages)
+{
+	unsigned long i, cpages = 0;
+
+	for (i = 0; i < npages;) {
+		struct page *page = migrate_pfn_to_page(migrate_pfn[i]);
+		struct folio *folio;
+		unsigned int order = 0;
+
+		if (page) {
+			folio = page_folio(page);
+			order = folio_order(folio);
+			cpages += NR_PAGES(order);
+		} else if (migrate_pfn[i] & MIGRATE_PFN_COMPOUND) {
+			order = HPAGE_PMD_ORDER;
+			cpages += NR_PAGES(order);
+		}
+
+		i += NR_PAGES(order);
+	}
+
+	return cpages;
+}
+
 /**
  * drm_pagemap_migrate_to_devmem() - Migrate a struct mm_struct range to device memory
  * @devmem_allocation: The device memory allocation to migrate to.
@@ -564,7 +599,8 @@ int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
 		goto err_free;
 	}
 
Quoted 8 lines

drivers/gpu/drm/drm_pagemap.c int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation, · line 606

Quoted 6 lines
drivers/gpu/drm/drm_pagemap.c +2 -1
-	if (migrate.cpages != npages) {
+	if (migrate.cpages != npages &&
+	    drm_pagemap_cpages(migrate.src, npages) != npages) {
 		/*
 		 * Some pages to migrate. But we want to migrate all or
 		 * nothing. Raced or unknown device pages.

I thought I did for the previous revision, but

You did for patch #2, it was kept in this revision.

Quoted 2 lines

Thanks Balbir!

Francois

#43 lore raw

PATCH v6 5/5 drm/pagemap: Enable THP support for GPU memory migration

In reply to Francois Dugast

This enables support for Transparent Huge Pages (THP) for device pages by using MIGRATE_VMA_SELECT_COMPOUND during migration. It removes the need to split folios and loop multiple times over all pages to perform required operations at page level. Instead, we rely on newly introduced support for higher orders in drm_pagemap and folio-level API.

In Xe, this drastically improves performance when using SVM. The GT stats below collected after a 2MB page fault show overall servicing is more than 7 times faster, and thanks to reduced CPU overhead the time spent on the actual copy goes from 23% without THP to 80% with THP:

Without THP:

    svm_2M_pagefault_us: 966
    svm_2M_migrate_us: 942
    svm_2M_device_copy_us: 223
    svm_2M_get_pages_us: 9
    svm_2M_bind_us: 10

With THP:

    svm_2M_pagefault_us: 132
    svm_2M_migrate_us: 128
    svm_2M_device_copy_us: 106
    svm_2M_get_pages_us: 1
    svm_2M_bind_us: 2

v2:
- Fix one occurrence of drm_pagemap_get_devmem_page() (Matthew Brost)

v3:
- Remove migrate_device_split_page() and folio_split_lock, instead rely on free_zone_device_folio() to split folios before freeing (Matthew Brost)
- Assert folio order is HPAGE_PMD_ORDER (Matthew Brost)
- Always use folio_set_zone_device_data() in split (Matthew Brost)

v4:
- Warn on compound device page, s/continue/goto next/ (Matthew Brost)

v5:
- Revert warn on compound device page
- s/zone_device_page_init()/zone_device_folio_init() (Matthew Brost)

Cc Matthew Brost <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Michal Mrozek <[email protected]>
Cc Andrew Morton <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Zi Yan <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Balbir Singh <[email protected]>
---
 drivers/gpu/drm/drm_pagemap.c | 73 ++++++++++++++++++++++++++++++-----
 1 file changed, 63 insertions(+), 10 deletions(-)
drivers/gpu/drm/drm_pagemap.c +63 -10
index 801da343f0a6..e2aecd519f14 100644
@@ -200,16 +200,19 @@ static void drm_pagemap_migration_unlock_put_pages(unsigned long npages,
 /**
  * drm_pagemap_get_devmem_page() - Get a reference to a device memory page
  * @page: Pointer to the page
+ * @order: Order
  * @zdd: Pointer to the GPU SVM zone device data
  *
  * This function associates the given page with the specified GPU SVM zone
  * device data and initializes it for zone device usage.
  */
 static void drm_pagemap_get_devmem_page(struct page *page,
+					unsigned int order,
 					struct drm_pagemap_zdd *zdd)
 {
-	page->zone_device_data = drm_pagemap_zdd_get(zdd);
-	zone_device_page_init(page, page_pgmap(page), 0);
+	zone_device_folio_init((struct folio *)page, zdd->dpagemap->pagemap,
+			       order);
+	folio_set_zone_device_data(page_folio(page), drm_pagemap_zdd_get(zdd));
 }
 
 /**
@@ -534,7 +537,8 @@ int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
 		 * rare and only occur when the madvise attributes of memory are
 		 * changed or atomics are being used.
 		 */
-		.flags		= MIGRATE_VMA_SELECT_SYSTEM | MIGRATE_VMA_SELECT_DEVICE_COHERENT,
+		.flags		= MIGRATE_VMA_SELECT_SYSTEM | MIGRATE_VMA_SELECT_DEVICE_COHERENT |
+				  MIGRATE_VMA_SELECT_COMPOUND,
 	};
 	unsigned long i, npages = npages_in_range(start, end);
 	unsigned long own_pages = 0, migrated_pages = 0;
@@ -640,11 +644,13 @@ int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
 
 	own_pages = 0;
 
-	for (i = 0; i < npages; ++i) {
+	for (i = 0; i < npages;) {
+		unsigned long j;
 		struct page *page = pfn_to_page(migrate.dst[i]);
 		struct page *src_page = migrate_pfn_to_page(migrate.src[i]);
-		cur.start = i;
+		unsigned int order = 0;
 
+		cur.start = i;
 		pages[i] = NULL;
 		if (src_page && is_device_private_page(src_page)) {
 			struct drm_pagemap_zdd *src_zdd =
@@ -654,7 +660,7 @@ int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
 			    !mdetails->can_migrate_same_pagemap) {
 				migrate.dst[i] = 0;
 				own_pages++;
-				continue;
+				goto next;
 			}
 			if (mdetails->source_peer_migrates) {
 				cur.dpagemap = src_zdd->dpagemap;
@@ -670,7 +676,20 @@ int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
 			pages[i] = page;
 		}
 		migrate.dst[i] = migrate_pfn(migrate.dst[i]);
-		drm_pagemap_get_devmem_page(page, zdd);
+
+		if (migrate.src[i] & MIGRATE_PFN_COMPOUND) {
+			drm_WARN_ONCE(dpagemap->drm, src_page &&
+				      folio_order(page_folio(src_page)) != HPAGE_PMD_ORDER,
+				      "Unexpected folio order\n");
+
+			order = HPAGE_PMD_ORDER;
+			migrate.dst[i] |= MIGRATE_PFN_COMPOUND;
+
+			for (j = 1; j < NR_PAGES(order) && i + j < npages; j++)
+				migrate.dst[i + j] = 0;
+		}
+
+		drm_pagemap_get_devmem_page(page, order, zdd);
 
 		/* If we switched the migrating drm_pagemap, migrate previous pages now */
 		err = drm_pagemap_migrate_range(devmem_allocation, migrate.src, migrate.dst,
@@ -680,7 +699,11 @@ int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
 			npages = i + 1;
 			goto err_finalize;
 		}
+
+next:
+		i += NR_PAGES(order);
 	}
+
 	cur.start = npages;
 	cur.ops = NULL; /* Force migration */
 	err = drm_pagemap_migrate_range(devmem_allocation, migrate.src, migrate.dst,
@@ -789,6 +812,8 @@ static int drm_pagemap_migrate_populate_ram_pfn(struct vm_area_struct *vas,
 		page = folio_page(folio, 0);
 		mpfn[i] = migrate_pfn(page_to_pfn(page));
 
+		if (order)
+			mpfn[i] |= MIGRATE_PFN_COMPOUND;
 next:
 		if (page)
 			addr += page_size(page);
@@ -1044,8 +1069,15 @@ int drm_pagemap_evict_to_ram(struct drm_pagemap_devmem *devmem_allocation)
 	if (err)
 		goto err_finalize;
 
-	for (i = 0; i < npages; ++i)
+	for (i = 0; i < npages;) {
+		unsigned int order = 0;
+
 		pages[i] = migrate_pfn_to_page(src[i]);
+		if (pages[i])
+			order = folio_order(page_folio(pages[i]));
+
+		i += NR_PAGES(order);
+	}
 
 	err = ops->copy_to_ram(pages, pagemap_addr, npages, NULL);
 	if (err)
@@ -1098,7 +1130,8 @@ static int __drm_pagemap_migrate_to_ram(struct vm_area_struct *vas,
 		.vma		= vas,
 		.pgmap_owner	= page_pgmap(page)->owner,
 		.flags		= MIGRATE_VMA_SELECT_DEVICE_PRIVATE |
-		MIGRATE_VMA_SELECT_DEVICE_COHERENT,
+				  MIGRATE_VMA_SELECT_DEVICE_COHERENT |
+				  MIGRATE_VMA_SELECT_COMPOUND,
 		.fault_page	= page,
 	};
 	struct drm_pagemap_migrate_details mdetails = {};
@@ -1164,8 +1197,15 @@ static int __drm_pagemap_migrate_to_ram(struct vm_area_struct *vas,
 	if (err)
 		goto err_finalize;
 
-	for (i = 0; i < npages; ++i)
+	for (i = 0; i < npages;) {
+		unsigned int order = 0;
+
 		pages[i] = migrate_pfn_to_page(migrate.src[i]);
+		if (pages[i])
+			order = folio_order(page_folio(pages[i]));
+
+		i += NR_PAGES(order);
+	}
 
 	err = ops->copy_to_ram(pages, pagemap_addr, npages, NULL);
 	if (err)
@@ -1223,9 +1263,22 @@ static vm_fault_t drm_pagemap_migrate_to_ram(struct vm_fault *vmf)
 	return err ? VM_FAULT_SIGBUS : 0;
 }
 
+static void drm_pagemap_folio_split(struct folio *orig_folio, struct folio *new_folio)
+{
+	struct drm_pagemap_zdd *zdd;
+
+	if (!new_folio)
+		return;
+
+	new_folio->pgmap = orig_folio->pgmap;
+	zdd = folio_zone_device_data(orig_folio);
+	folio_set_zone_device_data(new_folio, drm_pagemap_zdd_get(zdd));
+}
+
 static const struct dev_pagemap_ops drm_pagemap_pagemap_ops = {
 	.folio_free = drm_pagemap_folio_free,
 	.migrate_to_ram = drm_pagemap_migrate_to_ram,
+	.folio_split = drm_pagemap_folio_split,
 };
 
 /**
Signature · 1 line
2.43.0
#44 lore raw

✓ CI.KUnit: success for Enable THP support in drm_pagemap (rev7)

In reply to Francois Dugast
== Series Details ==

== Series Details ==

Series: Enable THP support in drm_pagemap (rev7)
URL : https://patchwork.freedesktop.org/series/159119/
State : success

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [12:45:14] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[12:45:19] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[12:45:50] Starting KUnit Kernel (1/1)...
[12:45:50] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[12:45:50] ================== guc_buf (11 subtests) ===================
[12:45:50] [PASSED] test_smallest
[12:45:50] [PASSED] test_largest
[12:45:50] [PASSED] test_granular
[12:45:50] [PASSED] test_unique
[12:45:50] [PASSED] test_overlap
[12:45:50] [PASSED] test_reusable
[12:45:51] [PASSED] test_too_big
[12:45:51] [PASSED] test_flush
[12:45:51] [PASSED] test_lookup
[12:45:51] [PASSED] test_data
[12:45:51] [PASSED] test_class
[12:45:51] ===================== [PASSED] guc_buf =====================
[12:45:51] =================== guc_dbm (7 subtests) ===================
[12:45:51] [PASSED] test_empty
[12:45:51] [PASSED] test_default
[12:45:51] ======================== test_size  ========================
[12:45:51] [PASSED] 4
[12:45:51] [PASSED] 8
[12:45:51] [PASSED] 32
[12:45:51] [PASSED] 256
[12:45:51] ==================== [PASSED] test_size ====================
[12:45:51] ======================= test_reuse  ========================
[12:45:51] [PASSED] 4
[12:45:51] [PASSED] 8
[12:45:51] [PASSED] 32
[12:45:51] [PASSED] 256
[12:45:51] =================== [PASSED] test_reuse ====================
[12:45:51] =================== test_range_overlap  ====================
[12:45:51] [PASSED] 4
[12:45:51] [PASSED] 8
[12:45:51] [PASSED] 32
[12:45:51] [PASSED] 256
[12:45:51] =============== [PASSED] test_range_overlap ================
[12:45:51] =================== test_range_compact  ====================
[12:45:51] [PASSED] 4
[12:45:51] [PASSED] 8
[12:45:51] [PASSED] 32
[12:45:51] [PASSED] 256
[12:45:51] =============== [PASSED] test_range_compact ================
[12:45:51] ==================== test_range_spare  =====================
[12:45:51] [PASSED] 4
[12:45:51] [PASSED] 8
[12:45:51] [PASSED] 32
[12:45:51] [PASSED] 256
[12:45:51] ================ [PASSED] test_range_spare =================
[12:45:51] ===================== [PASSED] guc_dbm =====================
[12:45:51] =================== guc_idm (6 subtests) ===================
[12:45:51] [PASSED] bad_init
[12:45:51] [PASSED] no_init
[12:45:51] [PASSED] init_fini
[12:45:51] [PASSED] check_used
[12:45:51] [PASSED] check_quota
[12:45:51] [PASSED] check_all
[12:45:51] ===================== [PASSED] guc_idm =====================
[12:45:51] ================== no_relay (3 subtests) ===================
[12:45:51] [PASSED] xe_drops_guc2pf_if_not_ready
[12:45:51] [PASSED] xe_drops_guc2vf_if_not_ready
[12:45:51] [PASSED] xe_rejects_send_if_not_ready
[12:45:51] ==================== [PASSED] no_relay =====================
[12:45:51] ================== pf_relay (14 subtests) ==================
[12:45:51] [PASSED] pf_rejects_guc2pf_too_short
[12:45:51] [PASSED] pf_rejects_guc2pf_too_long
[12:45:51] [PASSED] pf_rejects_guc2pf_no_payload
[12:45:51] [PASSED] pf_fails_no_payload
[12:45:51] [PASSED] pf_fails_bad_origin
[12:45:51] [PASSED] pf_fails_bad_type
[12:45:51] [PASSED] pf_txn_reports_error
[12:45:51] [PASSED] pf_txn_sends_pf2guc
[12:45:51] [PASSED] pf_sends_pf2guc
[12:45:51] [SKIPPED] pf_loopback_nop
[12:45:51] [SKIPPED] pf_loopback_echo
[12:45:51] [SKIPPED] pf_loopback_fail
[12:45:51] [SKIPPED] pf_loopback_busy
[12:45:51] [SKIPPED] pf_loopback_retry
[12:45:51] ==================== [PASSED] pf_relay =====================
[12:45:51] ================== vf_relay (3 subtests) ===================
[12:45:51] [PASSED] vf_rejects_guc2vf_too_short
[12:45:51] [PASSED] vf_rejects_guc2vf_too_long
[12:45:51] [PASSED] vf_rejects_guc2vf_no_payload
[12:45:51] ==================== [PASSED] vf_relay =====================
[12:45:51] ================ pf_gt_config (6 subtests) =================
[12:45:51] [PASSED] fair_contexts_1vf
[12:45:51] [PASSED] fair_doorbells_1vf
[12:45:51] [PASSED] fair_ggtt_1vf
[12:45:51] ====================== fair_contexts  ======================
[12:45:51] [PASSED] 1 VF
[12:45:51] [PASSED] 2 VFs
[12:45:51] [PASSED] 3 VFs
[12:45:51] [PASSED] 4 VFs
[12:45:51] [PASSED] 5 VFs
[12:45:51] [PASSED] 6 VFs
[12:45:51] [PASSED] 7 VFs
[12:45:51] [PASSED] 8 VFs
[12:45:51] [PASSED] 9 VFs
[12:45:51] [PASSED] 10 VFs
[12:45:51] [PASSED] 11 VFs
[12:45:51] [PASSED] 12 VFs
[12:45:51] [PASSED] 13 VFs
[12:45:51] [PASSED] 14 VFs
[12:45:51] [PASSED] 15 VFs
[12:45:51] [PASSED] 16 VFs
[12:45:51] [PASSED] 17 VFs
[12:45:51] [PASSED] 18 VFs
[12:45:51] [PASSED] 19 VFs
[12:45:51] [PASSED] 20 VFs
[12:45:51] [PASSED] 21 VFs
[12:45:51] [PASSED] 22 VFs
[12:45:51] [PASSED] 23 VFs
[12:45:51] [PASSED] 24 VFs
[12:45:51] [PASSED] 25 VFs
[12:45:51] [PASSED] 26 VFs
[12:45:51] [PASSED] 27 VFs
[12:45:51] [PASSED] 28 VFs
[12:45:51] [PASSED] 29 VFs
[12:45:51] [PASSED] 30 VFs
[12:45:51] [PASSED] 31 VFs
[12:45:51] [PASSED] 32 VFs
[12:45:51] [PASSED] 33 VFs
[12:45:51] [PASSED] 34 VFs
[12:45:51] [PASSED] 35 VFs
[12:45:51] [PASSED] 36 VFs
[12:45:51] [PASSED] 37 VFs
[12:45:51] [PASSED] 38 VFs
[12:45:51] [PASSED] 39 VFs
[12:45:51] [PASSED] 40 VFs
[12:45:51] [PASSED] 41 VFs
[12:45:51] [PASSED] 42 VFs
[12:45:51] [PASSED] 43 VFs
[12:45:51] [PASSED] 44 VFs
[12:45:51] [PASSED] 45 VFs
[12:45:51] [PASSED] 46 VFs
[12:45:51] [PASSED] 47 VFs
[12:45:51] [PASSED] 48 VFs
[12:45:51] [PASSED] 49 VFs
[12:45:51] [PASSED] 50 VFs
[12:45:51] [PASSED] 51 VFs
[12:45:51] [PASSED] 52 VFs
[12:45:51] [PASSED] 53 VFs
[12:45:51] [PASSED] 54 VFs
[12:45:51] [PASSED] 55 VFs
[12:45:51] [PASSED] 56 VFs
[12:45:51] [PASSED] 57 VFs
[12:45:51] [PASSED] 58 VFs
[12:45:51] [PASSED] 59 VFs
[12:45:51] [PASSED] 60 VFs
[12:45:51] [PASSED] 61 VFs
[12:45:51] [PASSED] 62 VFs
[12:45:51] [PASSED] 63 VFs
[12:45:51] ================== [PASSED] fair_contexts ==================
[12:45:51] ===================== fair_doorbells  ======================
[12:45:51] [PASSED] 1 VF
[12:45:51] [PASSED] 2 VFs
[12:45:51] [PASSED] 3 VFs
[12:45:51] [PASSED] 4 VFs
[12:45:51] [PASSED] 5 VFs
[12:45:51] [PASSED] 6 VFs
[12:45:51] [PASSED] 7 VFs
[12:45:51] [PASSED] 8 VFs
[12:45:51] [PASSED] 9 VFs
[12:45:51] [PASSED] 10 VFs
[12:45:51] [PASSED] 11 VFs
[12:45:51] [PASSED] 12 VFs
[12:45:51] [PASSED] 13 VFs
[12:45:51] [PASSED] 14 VFs
[12:45:51] [PASSED] 15 VFs
[12:45:51] [PASSED] 16 VFs
[12:45:51] [PASSED] 17 VFs
[12:45:51] [PASSED] 18 VFs
[12:45:51] [PASSED] 19 VFs
[12:45:51] [PASSED] 20 VFs
[12:45:51] [PASSED] 21 VFs
[12:45:51] [PASSED] 22 VFs
[12:45:51] [PASSED] 23 VFs
[12:45:51] [PASSED] 24 VFs
[12:45:51] [PASSED] 25 VFs
[12:45:51] [PASSED] 26 VFs
[12:45:51] [PASSED] 27 VFs
[12:45:51] [PASSED] 28 VFs
[12:45:51] [PASSED] 29 VFs
[12:45:51] [PASSED] 30 VFs
[12:45:51] [PASSED] 31 VFs
[12:45:51] [PASSED] 32 VFs
[12:45:51] [PASSED] 33 VFs
[12:45:51] [PASSED] 34 VFs
[12:45:51] [PASSED] 35 VFs
[12:45:51] [PASSED] 36 VFs
[12:45:51] [PASSED] 37 VFs
[12:45:51] [PASSED] 38 VFs
[12:45:51] [PASSED] 39 VFs
[12:45:51] [PASSED] 40 VFs
[12:45:51] [PASSED] 41 VFs
[12:45:51] [PASSED] 42 VFs
[12:45:51] [PASSED] 43 VFs
[12:45:51] [PASSED] 44 VFs
[12:45:51] [PASSED] 45 VFs
[12:45:51] [PASSED] 46 VFs
[12:45:51] [PASSED] 47 VFs
[12:45:51] [PASSED] 48 VFs
[12:45:51] [PASSED] 49 VFs
[12:45:51] [PASSED] 50 VFs
[12:45:51] [PASSED] 51 VFs
[12:45:51] [PASSED] 52 VFs
[12:45:51] [PASSED] 53 VFs
[12:45:51] [PASSED] 54 VFs
[12:45:51] [PASSED] 55 VFs
[12:45:51] [PASSED] 56 VFs
[12:45:51] [PASSED] 57 VFs
[12:45:51] [PASSED] 58 VFs
[12:45:51] [PASSED] 59 VFs
[12:45:51] [PASSED] 60 VFs
[12:45:51] [PASSED] 61 VFs
[12:45:51] [PASSED] 62 VFs
[12:45:51] [PASSED] 63 VFs
[12:45:51] ================= [PASSED] fair_doorbells ==================
[12:45:51] ======================== fair_ggtt  ========================
[12:45:51] [PASSED] 1 VF
[12:45:51] [PASSED] 2 VFs
[12:45:51] [PASSED] 3 VFs
[12:45:51] [PASSED] 4 VFs
[12:45:51] [PASSED] 5 VFs
[12:45:51] [PASSED] 6 VFs
[12:45:51] [PASSED] 7 VFs
[12:45:51] [PASSED] 8 VFs
[12:45:51] [PASSED] 9 VFs
[12:45:51] [PASSED] 10 VFs
[12:45:51] [PASSED] 11 VFs
[12:45:51] [PASSED] 12 VFs
[12:45:51] [PASSED] 13 VFs
[12:45:51] [PASSED] 14 VFs
[12:45:51] [PASSED] 15 VFs
[12:45:51] [PASSED] 16 VFs
[12:45:51] [PASSED] 17 VFs
[12:45:51] [PASSED] 18 VFs
[12:45:51] [PASSED] 19 VFs
[12:45:51] [PASSED] 20 VFs
[12:45:51] [PASSED] 21 VFs
[12:45:51] [PASSED] 22 VFs
[12:45:51] [PASSED] 23 VFs
[12:45:51] [PASSED] 24 VFs
[12:45:51] [PASSED] 25 VFs
[12:45:51] [PASSED] 26 VFs
[12:45:51] [PASSED] 27 VFs
[12:45:51] [PASSED] 28 VFs
[12:45:51] [PASSED] 29 VFs
[12:45:51] [PASSED] 30 VFs
[12:45:51] [PASSED] 31 VFs
[12:45:51] [PASSED] 32 VFs
[12:45:51] [PASSED] 33 VFs
[12:45:51] [PASSED] 34 VFs
[12:45:51] [PASSED] 35 VFs
[12:45:51] [PASSED] 36 VFs
[12:45:51] [PASSED] 37 VFs
[12:45:51] [PASSED] 38 VFs
[12:45:51] [PASSED] 39 VFs
[12:45:51] [PASSED] 40 VFs
[12:45:51] [PASSED] 41 VFs
[12:45:51] [PASSED] 42 VFs
[12:45:51] [PASSED] 43 VFs
[12:45:51] [PASSED] 44 VFs
[12:45:51] [PASSED] 45 VFs
[12:45:51] [PASSED] 46 VFs
[12:45:51] [PASSED] 47 VFs
[12:45:51] [PASSED] 48 VFs
[12:45:51] [PASSED] 49 VFs
[12:45:51] [PASSED] 50 VFs
[12:45:51] [PASSED] 51 VFs
[12:45:51] [PASSED] 52 VFs
[12:45:51] [PASSED] 53 VFs
[12:45:51] [PASSED] 54 VFs
[12:45:51] [PASSED] 55 VFs
[12:45:51] [PASSED] 56 VFs
[12:45:51] [PASSED] 57 VFs
[12:45:51] [PASSED] 58 VFs
[12:45:51] [PASSED] 59 VFs
[12:45:51] [PASSED] 60 VFs
[12:45:51] [PASSED] 61 VFs
[12:45:51] [PASSED] 62 VFs
[12:45:51] [PASSED] 63 VFs
[12:45:51] ==================== [PASSED] fair_ggtt ====================
[12:45:51] ================== [PASSED] pf_gt_config ===================
[12:45:51] ===================== lmtt (1 subtest) =====================
[12:45:51] ======================== test_ops  =========================
[12:45:51] [PASSED] 2-level
[12:45:51] [PASSED] multi-level
[12:45:51] ==================== [PASSED] test_ops =====================
[12:45:51] ====================== [PASSED] lmtt =======================
[12:45:51] ================= pf_service (11 subtests) =================
[12:45:51] [PASSED] pf_negotiate_any
[12:45:51] [PASSED] pf_negotiate_base_match
[12:45:51] [PASSED] pf_negotiate_base_newer
[12:45:51] [PASSED] pf_negotiate_base_next
[12:45:51] [SKIPPED] pf_negotiate_base_older
[12:45:51] [PASSED] pf_negotiate_base_prev
[12:45:51] [PASSED] pf_negotiate_latest_match
[12:45:51] [PASSED] pf_negotiate_latest_newer
[12:45:51] [PASSED] pf_negotiate_latest_next
[12:45:51] [SKIPPED] pf_negotiate_latest_older
[12:45:51] [SKIPPED] pf_negotiate_latest_prev
[12:45:51] =================== [PASSED] pf_service ====================
[12:45:51] ================= xe_guc_g2g (2 subtests) ==================
[12:45:51] ============== xe_live_guc_g2g_kunit_default  ==============
[12:45:51] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[12:45:51] ============== xe_live_guc_g2g_kunit_allmem  ===============
[12:45:51] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[12:45:51] =================== [SKIPPED] xe_guc_g2g ===================
[12:45:51] =================== xe_mocs (2 subtests) ===================
[12:45:51] ================ xe_live_mocs_kernel_kunit  ================
[12:45:51] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[12:45:51] ================ xe_live_mocs_reset_kunit  =================
[12:45:51] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[12:45:51] ==================== [SKIPPED] xe_mocs =====================
[12:45:51] ================= xe_migrate (2 subtests) ==================
[12:45:51] ================= xe_migrate_sanity_kunit  =================
[12:45:51] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[12:45:51] ================== xe_validate_ccs_kunit  ==================
[12:45:51] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[12:45:51] =================== [SKIPPED] xe_migrate ===================
[12:45:51] ================== xe_dma_buf (1 subtest) ==================
[12:45:51] ==================== xe_dma_buf_kunit  =====================
[12:45:51] ================ [SKIPPED] xe_dma_buf_kunit ================
[12:45:51] =================== [SKIPPED] xe_dma_buf ===================
[12:45:51] ================= xe_bo_shrink (1 subtest) =================
[12:45:51] =================== xe_bo_shrink_kunit  ====================
[12:45:51] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[12:45:51] ================== [SKIPPED] xe_bo_shrink ==================
[12:45:51] ==================== xe_bo (2 subtests) ====================
[12:45:51] ================== xe_ccs_migrate_kunit  ===================
[12:45:51] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[12:45:51] ==================== xe_bo_evict_kunit  ====================
[12:45:51] =============== [SKIPPED] xe_bo_evict_kunit ================
[12:45:51] ===================== [SKIPPED] xe_bo ======================
[12:45:51] ==================== args (13 subtests) ====================
[12:45:51] [PASSED] count_args_test
[12:45:51] [PASSED] call_args_example
[12:45:51] [PASSED] call_args_test
[12:45:51] [PASSED] drop_first_arg_example
[12:45:51] [PASSED] drop_first_arg_test
[12:45:51] [PASSED] first_arg_example
[12:45:51] [PASSED] first_arg_test
[12:45:51] [PASSED] last_arg_example
[12:45:51] [PASSED] last_arg_test
[12:45:51] [PASSED] pick_arg_example
[12:45:51] [PASSED] if_args_example
[12:45:51] [PASSED] if_args_test
[12:45:51] [PASSED] sep_comma_example
[12:45:51] ====================== [PASSED] args =======================
[12:45:51] =================== xe_pci (3 subtests) ====================
[12:45:51] ==================== check_graphics_ip  ====================
[12:45:51] [PASSED] 12.00 Xe_LP
[12:45:51] [PASSED] 12.10 Xe_LP+
[12:45:51] [PASSED] 12.55 Xe_HPG
[12:45:51] [PASSED] 12.60 Xe_HPC
[12:45:51] [PASSED] 12.70 Xe_LPG
[12:45:51] [PASSED] 12.71 Xe_LPG
[12:45:51] [PASSED] 12.74 Xe_LPG+
[12:45:51] [PASSED] 20.01 Xe2_HPG
[12:45:51] [PASSED] 20.02 Xe2_HPG
[12:45:51] [PASSED] 20.04 Xe2_LPG
[12:45:51] [PASSED] 30.00 Xe3_LPG
[12:45:51] [PASSED] 30.01 Xe3_LPG
[12:45:51] [PASSED] 30.03 Xe3_LPG
[12:45:51] [PASSED] 30.04 Xe3_LPG
[12:45:51] [PASSED] 30.05 Xe3_LPG
[12:45:51] [PASSED] 35.11 Xe3p_XPC
[12:45:51] ================ [PASSED] check_graphics_ip ================
[12:45:51] ===================== check_media_ip  ======================
[12:45:51] [PASSED] 12.00 Xe_M
[12:45:51] [PASSED] 12.55 Xe_HPM
[12:45:51] [PASSED] 13.00 Xe_LPM+
[12:45:51] [PASSED] 13.01 Xe2_HPM
[12:45:51] [PASSED] 20.00 Xe2_LPM
[12:45:51] [PASSED] 30.00 Xe3_LPM
[12:45:51] [PASSED] 30.02 Xe3_LPM
[12:45:51] [PASSED] 35.00 Xe3p_LPM
[12:45:51] [PASSED] 35.03 Xe3p_HPM
[12:45:51] ================= [PASSED] check_media_ip ==================
[12:45:51] =================== check_platform_desc  ===================
[12:45:51] [PASSED] 0x9A60 (TIGERLAKE)
[12:45:51] [PASSED] 0x9A68 (TIGERLAKE)
[12:45:51] [PASSED] 0x9A70 (TIGERLAKE)
[12:45:51] [PASSED] 0x9A40 (TIGERLAKE)
[12:45:51] [PASSED] 0x9A49 (TIGERLAKE)
[12:45:51] [PASSED] 0x9A59 (TIGERLAKE)
[12:45:51] [PASSED] 0x9A78 (TIGERLAKE)
[12:45:51] [PASSED] 0x9AC0 (TIGERLAKE)
[12:45:51] [PASSED] 0x9AC9 (TIGERLAKE)
[12:45:51] [PASSED] 0x9AD9 (TIGERLAKE)
[12:45:51] [PASSED] 0x9AF8 (TIGERLAKE)
[12:45:51] [PASSED] 0x4C80 (ROCKETLAKE)
[12:45:51] [PASSED] 0x4C8A (ROCKETLAKE)
[12:45:51] [PASSED] 0x4C8B (ROCKETLAKE)
[12:45:51] [PASSED] 0x4C8C (ROCKETLAKE)
[12:45:51] [PASSED] 0x4C90 (ROCKETLAKE)
[12:45:51] [PASSED] 0x4C9A (ROCKETLAKE)
[12:45:51] [PASSED] 0x4680 (ALDERLAKE_S)
[12:45:51] [PASSED] 0x4682 (ALDERLAKE_S)
[12:45:51] [PASSED] 0x4688 (ALDERLAKE_S)
[12:45:51] [PASSED] 0x468A (ALDERLAKE_S)
[12:45:51] [PASSED] 0x468B (ALDERLAKE_S)
[12:45:51] [PASSED] 0x4690 (ALDERLAKE_S)
[12:45:51] [PASSED] 0x4692 (ALDERLAKE_S)
[12:45:51] [PASSED] 0x4693 (ALDERLAKE_S)
[12:45:51] [PASSED] 0x46A0 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46A1 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46A2 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46A3 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46A6 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46A8 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46AA (ALDERLAKE_P)
[12:45:51] [PASSED] 0x462A (ALDERLAKE_P)
[12:45:51] [PASSED] 0x4626 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x4628 (ALDERLAKE_P)
stty: 'standard input': Inappropriate ioctl for device
[12:45:51] [PASSED] 0x46B0 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46B1 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46B2 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46B3 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46C0 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46C1 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46C2 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46C3 (ALDERLAKE_P)
[12:45:51] [PASSED] 0x46D0 (ALDERLAKE_N)
[12:45:51] [PASSED] 0x46D1 (ALDERLAKE_N)
[12:45:51] [PASSED] 0x46D2 (ALDERLAKE_N)
[12:45:51] [PASSED] 0x46D3 (ALDERLAKE_N)
[12:45:51] [PASSED] 0x46D4 (ALDERLAKE_N)
[12:45:51] [PASSED] 0xA721 (ALDERLAKE_P)
[12:45:51] [PASSED] 0xA7A1 (ALDERLAKE_P)
[12:45:51] [PASSED] 0xA7A9 (ALDERLAKE_P)
[12:45:51] [PASSED] 0xA7AC (ALDERLAKE_P)
[12:45:51] [PASSED] 0xA7AD (ALDERLAKE_P)
[12:45:51] [PASSED] 0xA720 (ALDERLAKE_P)
[12:45:51] [PASSED] 0xA7A0 (ALDERLAKE_P)
[12:45:51] [PASSED] 0xA7A8 (ALDERLAKE_P)
[12:45:51] [PASSED] 0xA7AA (ALDERLAKE_P)
[12:45:51] [PASSED] 0xA7AB (ALDERLAKE_P)
[12:45:51] [PASSED] 0xA780 (ALDERLAKE_S)
[12:45:51] [PASSED] 0xA781 (ALDERLAKE_S)
[12:45:51] [PASSED] 0xA782 (ALDERLAKE_S)
[12:45:51] [PASSED] 0xA783 (ALDERLAKE_S)
[12:45:51] [PASSED] 0xA788 (ALDERLAKE_S)
[12:45:51] [PASSED] 0xA789 (ALDERLAKE_S)
[12:45:51] [PASSED] 0xA78A (ALDERLAKE_S)
[12:45:51] [PASSED] 0xA78B (ALDERLAKE_S)
[12:45:51] [PASSED] 0x4905 (DG1)
[12:45:51] [PASSED] 0x4906 (DG1)
[12:45:51] [PASSED] 0x4907 (DG1)
[12:45:51] [PASSED] 0x4908 (DG1)
[12:45:51] [PASSED] 0x4909 (DG1)
[12:45:51] [PASSED] 0x56C0 (DG2)
[12:45:51] [PASSED] 0x56C2 (DG2)
[12:45:51] [PASSED] 0x56C1 (DG2)
[12:45:51] [PASSED] 0x7D51 (METEORLAKE)
[12:45:51] [PASSED] 0x7DD1 (METEORLAKE)
[12:45:51] [PASSED] 0x7D41 (METEORLAKE)
[12:45:51] [PASSED] 0x7D67 (METEORLAKE)
[12:45:51] [PASSED] 0xB640 (METEORLAKE)
[12:45:51] [PASSED] 0x56A0 (DG2)
[12:45:51] [PASSED] 0x56A1 (DG2)
[12:45:51] [PASSED] 0x56A2 (DG2)
[12:45:51] [PASSED] 0x56BE (DG2)
[12:45:51] [PASSED] 0x56BF (DG2)
[12:45:51] [PASSED] 0x5690 (DG2)
[12:45:51] [PASSED] 0x5691 (DG2)
[12:45:51] [PASSED] 0x5692 (DG2)
[12:45:51] [PASSED] 0x56A5 (DG2)
[12:45:51] [PASSED] 0x56A6 (DG2)
[12:45:51] [PASSED] 0x56B0 (DG2)
[12:45:51] [PASSED] 0x56B1 (DG2)
[12:45:51] [PASSED] 0x56BA (DG2)
[12:45:51] [PASSED] 0x56BB (DG2)
[12:45:51] [PASSED] 0x56BC (DG2)
[12:45:51] [PASSED] 0x56BD (DG2)
[12:45:51] [PASSED] 0x5693 (DG2)
[12:45:51] [PASSED] 0x5694 (DG2)
[12:45:51] [PASSED] 0x5695 (DG2)
[12:45:51] [PASSED] 0x56A3 (DG2)
[12:45:51] [PASSED] 0x56A4 (DG2)
[12:45:51] [PASSED] 0x56B2 (DG2)
[12:45:51] [PASSED] 0x56B3 (DG2)
[12:45:51] [PASSED] 0x5696 (DG2)
[12:45:51] [PASSED] 0x5697 (DG2)
[12:45:51] [PASSED] 0xB69 (PVC)
[12:45:51] [PASSED] 0xB6E (PVC)
[12:45:51] [PASSED] 0xBD4 (PVC)
[12:45:51] [PASSED] 0xBD5 (PVC)
[12:45:51] [PASSED] 0xBD6 (PVC)
[12:45:51] [PASSED] 0xBD7 (PVC)
[12:45:51] [PASSED] 0xBD8 (PVC)
[12:45:51] [PASSED] 0xBD9 (PVC)
[12:45:51] [PASSED] 0xBDA (PVC)
[12:45:51] [PASSED] 0xBDB (PVC)
[12:45:51] [PASSED] 0xBE0 (PVC)
[12:45:51] [PASSED] 0xBE1 (PVC)
[12:45:51] [PASSED] 0xBE5 (PVC)
[12:45:51] [PASSED] 0x7D40 (METEORLAKE)
[12:45:51] [PASSED] 0x7D45 (METEORLAKE)
[12:45:51] [PASSED] 0x7D55 (METEORLAKE)
[12:45:51] [PASSED] 0x7D60 (METEORLAKE)
[12:45:51] [PASSED] 0x7DD5 (METEORLAKE)
[12:45:51] [PASSED] 0x6420 (LUNARLAKE)
[12:45:51] [PASSED] 0x64A0 (LUNARLAKE)
[12:45:51] [PASSED] 0x64B0 (LUNARLAKE)
[12:45:51] [PASSED] 0xE202 (BATTLEMAGE)
[12:45:51] [PASSED] 0xE209 (BATTLEMAGE)
[12:45:51] [PASSED] 0xE20B (BATTLEMAGE)
[12:45:51] [PASSED] 0xE20C (BATTLEMAGE)
[12:45:51] [PASSED] 0xE20D (BATTLEMAGE)
[12:45:51] [PASSED] 0xE210 (BATTLEMAGE)
[12:45:51] [PASSED] 0xE211 (BATTLEMAGE)
[12:45:51] [PASSED] 0xE212 (BATTLEMAGE)
[12:45:51] [PASSED] 0xE216 (BATTLEMAGE)
[12:45:51] [PASSED] 0xE220 (BATTLEMAGE)
[12:45:51] [PASSED] 0xE221 (BATTLEMAGE)
[12:45:51] [PASSED] 0xE222 (BATTLEMAGE)
[12:45:51] [PASSED] 0xE223 (BATTLEMAGE)
[12:45:51] [PASSED] 0xB080 (PANTHERLAKE)
[12:45:51] [PASSED] 0xB081 (PANTHERLAKE)
[12:45:51] [PASSED] 0xB082 (PANTHERLAKE)
[12:45:51] [PASSED] 0xB083 (PANTHERLAKE)
[12:45:51] [PASSED] 0xB084 (PANTHERLAKE)
[12:45:51] [PASSED] 0xB085 (PANTHERLAKE)
[12:45:51] [PASSED] 0xB086 (PANTHERLAKE)
[12:45:51] [PASSED] 0xB087 (PANTHERLAKE)
[12:45:51] [PASSED] 0xB08F (PANTHERLAKE)
[12:45:51] [PASSED] 0xB090 (PANTHERLAKE)
[12:45:51] [PASSED] 0xB0A0 (PANTHERLAKE)
[12:45:51] [PASSED] 0xB0B0 (PANTHERLAKE)
[12:45:51] [PASSED] 0xFD80 (PANTHERLAKE)
[12:45:51] [PASSED] 0xFD81 (PANTHERLAKE)
[12:45:51] [PASSED] 0xD740 (NOVALAKE_S)
[12:45:51] [PASSED] 0xD741 (NOVALAKE_S)
[12:45:51] [PASSED] 0xD742 (NOVALAKE_S)
[12:45:51] [PASSED] 0xD743 (NOVALAKE_S)
[12:45:51] [PASSED] 0xD744 (NOVALAKE_S)
[12:45:51] [PASSED] 0xD745 (NOVALAKE_S)
[12:45:51] [PASSED] 0x674C (CRESCENTISLAND)
[12:45:51] =============== [PASSED] check_platform_desc ===============
[12:45:51] ===================== [PASSED] xe_pci ======================
[12:45:51] =================== xe_rtp (2 subtests) ====================
[12:45:51] =============== xe_rtp_process_to_sr_tests  ================
[12:45:51] [PASSED] coalesce-same-reg
[12:45:51] [PASSED] no-match-no-add
[12:45:51] [PASSED] match-or
[12:45:51] [PASSED] match-or-xfail
[12:45:51] [PASSED] no-match-no-add-multiple-rules
[12:45:51] [PASSED] two-regs-two-entries
[12:45:51] [PASSED] clr-one-set-other
[12:45:51] [PASSED] set-field
[12:45:51] [PASSED] conflict-duplicate
[12:45:51] [PASSED] conflict-not-disjoint
[12:45:51] [PASSED] conflict-reg-type
[12:45:51] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[12:45:51] ================== xe_rtp_process_tests  ===================
[12:45:51] [PASSED] active1
[12:45:51] [PASSED] active2
[12:45:51] [PASSED] active-inactive
[12:45:51] [PASSED] inactive-active
[12:45:51] [PASSED] inactive-1st_or_active-inactive
[12:45:51] [PASSED] inactive-2nd_or_active-inactive
[12:45:51] [PASSED] inactive-last_or_active-inactive
[12:45:51] [PASSED] inactive-no_or_active-inactive
[12:45:51] ============== [PASSED] xe_rtp_process_tests ===============
[12:45:51] ===================== [PASSED] xe_rtp ======================
[12:45:51] ==================== xe_wa (1 subtest) =====================
[12:45:51] ======================== xe_wa_gt  =========================
[12:45:51] [PASSED] TIGERLAKE B0
[12:45:51] [PASSED] DG1 A0
[12:45:51] [PASSED] DG1 B0
[12:45:51] [PASSED] ALDERLAKE_S A0
[12:45:51] [PASSED] ALDERLAKE_S B0
[12:45:51] [PASSED] ALDERLAKE_S C0
[12:45:51] [PASSED] ALDERLAKE_S D0
[12:45:51] [PASSED] ALDERLAKE_P A0
[12:45:51] [PASSED] ALDERLAKE_P B0
[12:45:51] [PASSED] ALDERLAKE_P C0
[12:45:51] [PASSED] ALDERLAKE_S RPLS D0
[12:45:51] [PASSED] ALDERLAKE_P RPLU E0
[12:45:51] [PASSED] DG2 G10 C0
[12:45:51] [PASSED] DG2 G11 B1
[12:45:51] [PASSED] DG2 G12 A1
[12:45:51] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[12:45:51] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[12:45:51] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[12:45:51] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[12:45:51] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[12:45:51] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[12:45:51] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[12:45:51] ==================== [PASSED] xe_wa_gt =====================
[12:45:51] ====================== [PASSED] xe_wa ======================
[12:45:51] ============================================================
[12:45:51] Testing complete. Ran 512 tests: passed: 494, skipped: 18
[12:45:51] Elapsed time: 36.423s total, 4.235s configuring, 31.671s building, 0.470s running

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [12:45:51] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[12:45:53] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[12:46:18] Starting KUnit Kernel (1/1)...
[12:46:18] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[12:46:18] ============ drm_test_pick_cmdline (2 subtests) ============
[12:46:18] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[12:46:18] =============== drm_test_pick_cmdline_named  ===============
[12:46:18] [PASSED] NTSC
[12:46:18] [PASSED] NTSC-J
[12:46:18] [PASSED] PAL
[12:46:18] [PASSED] PAL-M
[12:46:18] =========== [PASSED] drm_test_pick_cmdline_named ===========
[12:46:18] ============== [PASSED] drm_test_pick_cmdline ==============
[12:46:18] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[12:46:18] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[12:46:18] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[12:46:18] =========== drm_validate_clone_mode (2 subtests) ===========
[12:46:18] ============== drm_test_check_in_clone_mode  ===============
[12:46:18] [PASSED] in_clone_mode
[12:46:18] [PASSED] not_in_clone_mode
[12:46:18] ========== [PASSED] drm_test_check_in_clone_mode ===========
[12:46:18] =============== drm_test_check_valid_clones  ===============
[12:46:18] [PASSED] not_in_clone_mode
[12:46:18] [PASSED] valid_clone
[12:46:18] [PASSED] invalid_clone
[12:46:18] =========== [PASSED] drm_test_check_valid_clones ===========
[12:46:18] ============= [PASSED] drm_validate_clone_mode =============
[12:46:18] ============= drm_validate_modeset (1 subtest) =============
[12:46:18] [PASSED] drm_test_check_connector_changed_modeset
[12:46:18] ============== [PASSED] drm_validate_modeset ===============
[12:46:18] ====== drm_test_bridge_get_current_state (2 subtests) ======
[12:46:18] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[12:46:18] [PASSED] drm_test_drm_bridge_get_current_state_legacy
[12:46:18] ======== [PASSED] drm_test_bridge_get_current_state ========
[12:46:18] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ======
[12:46:18] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[12:46:18] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[12:46:18] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy
[12:46:18] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[12:46:18] ============== drm_bridge_alloc (2 subtests) ===============
[12:46:18] [PASSED] drm_test_drm_bridge_alloc_basic
[12:46:18] [PASSED] drm_test_drm_bridge_alloc_get_put
[12:46:18] ================ [PASSED] drm_bridge_alloc =================
[12:46:18] ================== drm_buddy (8 subtests) ==================
[12:46:18] [PASSED] drm_test_buddy_alloc_limit
[12:46:18] [PASSED] drm_test_buddy_alloc_optimistic
[12:46:18] [PASSED] drm_test_buddy_alloc_pessimistic
[12:46:18] [PASSED] drm_test_buddy_alloc_pathological
[12:46:18] [PASSED] drm_test_buddy_alloc_contiguous
[12:46:18] [PASSED] drm_test_buddy_alloc_clear
[12:46:18] [PASSED] drm_test_buddy_alloc_range_bias
[12:46:18] [PASSED] drm_test_buddy_fragmentation_performance
[12:46:18] ==================== [PASSED] drm_buddy ====================
[12:46:18] ============= drm_cmdline_parser (40 subtests) =============
[12:46:18] [PASSED] drm_test_cmdline_force_d_only
[12:46:18] [PASSED] drm_test_cmdline_force_D_only_dvi
[12:46:18] [PASSED] drm_test_cmdline_force_D_only_hdmi
[12:46:18] [PASSED] drm_test_cmdline_force_D_only_not_digital
[12:46:18] [PASSED] drm_test_cmdline_force_e_only
[12:46:18] [PASSED] drm_test_cmdline_res
[12:46:18] [PASSED] drm_test_cmdline_res_vesa
[12:46:18] [PASSED] drm_test_cmdline_res_vesa_rblank
[12:46:18] [PASSED] drm_test_cmdline_res_rblank
[12:46:18] [PASSED] drm_test_cmdline_res_bpp
[12:46:18] [PASSED] drm_test_cmdline_res_refresh
[12:46:18] [PASSED] drm_test_cmdline_res_bpp_refresh
[12:46:18] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[12:46:18] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[12:46:18] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[12:46:18] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[12:46:18] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[12:46:18] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[12:46:18] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[12:46:18] [PASSED] drm_test_cmdline_res_margins_force_on
[12:46:18] [PASSED] drm_test_cmdline_res_vesa_margins
[12:46:18] [PASSED] drm_test_cmdline_name
[12:46:18] [PASSED] drm_test_cmdline_name_bpp
[12:46:18] [PASSED] drm_test_cmdline_name_option
[12:46:18] [PASSED] drm_test_cmdline_name_bpp_option
[12:46:18] [PASSED] drm_test_cmdline_rotate_0
[12:46:18] [PASSED] drm_test_cmdline_rotate_90
[12:46:18] [PASSED] drm_test_cmdline_rotate_180
[12:46:18] [PASSED] drm_test_cmdline_rotate_270
[12:46:18] [PASSED] drm_test_cmdline_hmirror
[12:46:18] [PASSED] drm_test_cmdline_vmirror
[12:46:18] [PASSED] drm_test_cmdline_margin_options
[12:46:18] [PASSED] drm_test_cmdline_multiple_options
[12:46:18] [PASSED] drm_test_cmdline_bpp_extra_and_option
[12:46:18] [PASSED] drm_test_cmdline_extra_and_option
[12:46:18] [PASSED] drm_test_cmdline_freestanding_options
[12:46:18] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[12:46:18] [PASSED] drm_test_cmdline_panel_orientation
[12:46:18] ================ drm_test_cmdline_invalid  =================
[12:46:18] [PASSED] margin_only
[12:46:18] [PASSED] interlace_only
[12:46:18] [PASSED] res_missing_x
[12:46:18] [PASSED] res_missing_y
[12:46:18] [PASSED] res_bad_y
[12:46:18] [PASSED] res_missing_y_bpp
[12:46:18] [PASSED] res_bad_bpp
[12:46:18] [PASSED] res_bad_refresh
[12:46:18] [PASSED] res_bpp_refresh_force_on_off
[12:46:18] [PASSED] res_invalid_mode
[12:46:18] [PASSED] res_bpp_wrong_place_mode
[12:46:18] [PASSED] name_bpp_refresh
[12:46:18] [PASSED] name_refresh
[12:46:18] [PASSED] name_refresh_wrong_mode
[12:46:18] [PASSED] name_refresh_invalid_mode
[12:46:18] [PASSED] rotate_multiple
[12:46:18] [PASSED] rotate_invalid_val
[12:46:18] [PASSED] rotate_truncated
[12:46:18] [PASSED] invalid_option
[12:46:18] [PASSED] invalid_tv_option
[12:46:18] [PASSED] truncated_tv_option
[12:46:18] ============ [PASSED] drm_test_cmdline_invalid =============
[12:46:18] =============== drm_test_cmdline_tv_options  ===============
[12:46:18] [PASSED] NTSC
[12:46:18] [PASSED] NTSC_443
[12:46:18] [PASSED] NTSC_J
[12:46:18] [PASSED] PAL
[12:46:18] [PASSED] PAL_M
[12:46:18] [PASSED] PAL_N
[12:46:18] [PASSED] SECAM
[12:46:18] [PASSED] MONO_525
[12:46:18] [PASSED] MONO_625
[12:46:18] =========== [PASSED] drm_test_cmdline_tv_options ===========
[12:46:18] =============== [PASSED] drm_cmdline_parser ================
[12:46:18] ========== drmm_connector_hdmi_init (20 subtests) ==========
[12:46:18] [PASSED] drm_test_connector_hdmi_init_valid
[12:46:18] [PASSED] drm_test_connector_hdmi_init_bpc_8
[12:46:18] [PASSED] drm_test_connector_hdmi_init_bpc_10
[12:46:18] [PASSED] drm_test_connector_hdmi_init_bpc_12
[12:46:18] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[12:46:18] [PASSED] drm_test_connector_hdmi_init_bpc_null
[12:46:18] [PASSED] drm_test_connector_hdmi_init_formats_empty
[12:46:18] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[12:46:18] === drm_test_connector_hdmi_init_formats_yuv420_allowed  ===
[12:46:18] [PASSED] supported_formats=0x9 yuv420_allowed=1
[12:46:18] [PASSED] supported_formats=0x9 yuv420_allowed=0
[12:46:18] [PASSED] supported_formats=0x3 yuv420_allowed=1
[12:46:18] [PASSED] supported_formats=0x3 yuv420_allowed=0
[12:46:18] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[12:46:18] [PASSED] drm_test_connector_hdmi_init_null_ddc
[12:46:18] [PASSED] drm_test_connector_hdmi_init_null_product
[12:46:18] [PASSED] drm_test_connector_hdmi_init_null_vendor
[12:46:18] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[12:46:18] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[12:46:18] [PASSED] drm_test_connector_hdmi_init_product_valid
[12:46:18] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[12:46:18] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[12:46:18] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[12:46:18] ========= drm_test_connector_hdmi_init_type_valid  =========
[12:46:18] [PASSED] HDMI-A
[12:46:18] [PASSED] HDMI-B
[12:46:18] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[12:46:18] ======== drm_test_connector_hdmi_init_type_invalid  ========
[12:46:18] [PASSED] Unknown
[12:46:18] [PASSED] VGA
[12:46:18] [PASSED] DVI-I
[12:46:18] [PASSED] DVI-D
[12:46:18] [PASSED] DVI-A
[12:46:18] [PASSED] Composite
[12:46:18] [PASSED] SVIDEO
[12:46:18] [PASSED] LVDS
[12:46:18] [PASSED] Component
[12:46:18] [PASSED] DIN
[12:46:18] [PASSED] DP
[12:46:18] [PASSED] TV
[12:46:18] [PASSED] eDP
[12:46:18] [PASSED] Virtual
[12:46:18] [PASSED] DSI
[12:46:18] [PASSED] DPI
[12:46:18] [PASSED] Writeback
[12:46:18] [PASSED] SPI
[12:46:18] [PASSED] USB
[12:46:18] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[12:46:18] ============ [PASSED] drmm_connector_hdmi_init =============
[12:46:18] ============= drmm_connector_init (3 subtests) =============
[12:46:18] [PASSED] drm_test_drmm_connector_init
[12:46:18] [PASSED] drm_test_drmm_connector_init_null_ddc
[12:46:18] ========= drm_test_drmm_connector_init_type_valid  =========
[12:46:18] [PASSED] Unknown
[12:46:18] [PASSED] VGA
[12:46:18] [PASSED] DVI-I
[12:46:18] [PASSED] DVI-D
[12:46:18] [PASSED] DVI-A
[12:46:18] [PASSED] Composite
[12:46:18] [PASSED] SVIDEO
[12:46:18] [PASSED] LVDS
[12:46:18] [PASSED] Component
[12:46:18] [PASSED] DIN
[12:46:18] [PASSED] DP
[12:46:18] [PASSED] HDMI-A
[12:46:18] [PASSED] HDMI-B
[12:46:18] [PASSED] TV
[12:46:18] [PASSED] eDP
[12:46:18] [PASSED] Virtual
[12:46:18] [PASSED] DSI
[12:46:18] [PASSED] DPI
[12:46:18] [PASSED] Writeback
[12:46:18] [PASSED] SPI
[12:46:18] [PASSED] USB
[12:46:18] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[12:46:18] =============== [PASSED] drmm_connector_init ===============
[12:46:18] ========= drm_connector_dynamic_init (6 subtests) ==========
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_init
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_init_properties
[12:46:18] ===== drm_test_drm_connector_dynamic_init_type_valid  ======
[12:46:18] [PASSED] Unknown
[12:46:18] [PASSED] VGA
[12:46:18] [PASSED] DVI-I
[12:46:18] [PASSED] DVI-D
[12:46:18] [PASSED] DVI-A
[12:46:18] [PASSED] Composite
[12:46:18] [PASSED] SVIDEO
[12:46:18] [PASSED] LVDS
[12:46:18] [PASSED] Component
[12:46:18] [PASSED] DIN
[12:46:18] [PASSED] DP
[12:46:18] [PASSED] HDMI-A
[12:46:18] [PASSED] HDMI-B
[12:46:18] [PASSED] TV
[12:46:18] [PASSED] eDP
[12:46:18] [PASSED] Virtual
[12:46:18] [PASSED] DSI
[12:46:18] [PASSED] DPI
[12:46:18] [PASSED] Writeback
[12:46:18] [PASSED] SPI
[12:46:18] [PASSED] USB
[12:46:18] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[12:46:18] ======== drm_test_drm_connector_dynamic_init_name  =========
[12:46:18] [PASSED] Unknown
[12:46:18] [PASSED] VGA
[12:46:18] [PASSED] DVI-I
[12:46:18] [PASSED] DVI-D
[12:46:18] [PASSED] DVI-A
[12:46:18] [PASSED] Composite
[12:46:18] [PASSED] SVIDEO
[12:46:18] [PASSED] LVDS
[12:46:18] [PASSED] Component
[12:46:18] [PASSED] DIN
[12:46:18] [PASSED] DP
[12:46:18] [PASSED] HDMI-A
[12:46:18] [PASSED] HDMI-B
[12:46:18] [PASSED] TV
[12:46:18] [PASSED] eDP
[12:46:18] [PASSED] Virtual
[12:46:18] [PASSED] DSI
[12:46:18] [PASSED] DPI
[12:46:18] [PASSED] Writeback
[12:46:18] [PASSED] SPI
[12:46:18] [PASSED] USB
[12:46:18] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[12:46:18] =========== [PASSED] drm_connector_dynamic_init ============
[12:46:18] ==== drm_connector_dynamic_register_early (4 subtests) =====
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[12:46:18] ====== [PASSED] drm_connector_dynamic_register_early =======
[12:46:18] ======= drm_connector_dynamic_register (7 subtests) ========
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[12:46:18] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[12:46:18] ========= [PASSED] drm_connector_dynamic_register ==========
[12:46:18] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[12:46:18] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[12:46:18] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[12:46:18] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[12:46:18] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[12:46:18] ========== drm_test_get_tv_mode_from_name_valid  ===========
[12:46:18] [PASSED] NTSC
[12:46:18] [PASSED] NTSC-443
[12:46:18] [PASSED] NTSC-J
[12:46:18] [PASSED] PAL
[12:46:18] [PASSED] PAL-M
[12:46:18] [PASSED] PAL-N
[12:46:18] [PASSED] SECAM
[12:46:18] [PASSED] Mono
[12:46:18] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[12:46:18] [PASSED] drm_test_get_tv_mode_from_name_truncated
[12:46:18] ============ [PASSED] drm_get_tv_mode_from_name ============
[12:46:18] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[12:46:18] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[12:46:18] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[12:46:18] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[12:46:18] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[12:46:18] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[12:46:18] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[12:46:18] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid  =
[12:46:18] [PASSED] VIC 96
[12:46:18] [PASSED] VIC 97
[12:46:18] [PASSED] VIC 101
[12:46:18] [PASSED] VIC 102
[12:46:18] [PASSED] VIC 106
[12:46:18] [PASSED] VIC 107
[12:46:18] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[12:46:18] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[12:46:18] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[12:46:18] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[12:46:18] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[12:46:18] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[12:46:18] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[12:46:18] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[12:46:18] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name  ====
[12:46:18] [PASSED] Automatic
[12:46:18] [PASSED] Full
[12:46:18] [PASSED] Limited 16:235
[12:46:18] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[12:46:18] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[12:46:18] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[12:46:18] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[12:46:18] === drm_test_drm_hdmi_connector_get_output_format_name  ====
[12:46:18] [PASSED] RGB
[12:46:18] [PASSED] YUV 4:2:0
[12:46:18] [PASSED] YUV 4:2:2
[12:46:18] [PASSED] YUV 4:4:4
[12:46:18] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[12:46:18] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[12:46:18] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[12:46:18] ============= drm_damage_helper (21 subtests) ==============
[12:46:18] [PASSED] drm_test_damage_iter_no_damage
[12:46:18] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[12:46:18] [PASSED] drm_test_damage_iter_no_damage_src_moved
[12:46:18] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[12:46:18] [PASSED] drm_test_damage_iter_no_damage_not_visible
[12:46:18] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[12:46:18] [PASSED] drm_test_damage_iter_no_damage_no_fb
[12:46:18] [PASSED] drm_test_damage_iter_simple_damage
[12:46:18] [PASSED] drm_test_damage_iter_single_damage
[12:46:18] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[12:46:18] [PASSED] drm_test_damage_iter_single_damage_outside_src
[12:46:18] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[12:46:18] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[12:46:18] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[12:46:18] [PASSED] drm_test_damage_iter_single_damage_src_moved
[12:46:18] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[12:46:18] [PASSED] drm_test_damage_iter_damage
[12:46:18] [PASSED] drm_test_damage_iter_damage_one_intersect
[12:46:18] [PASSED] drm_test_damage_iter_damage_one_outside
[12:46:18] [PASSED] drm_test_damage_iter_damage_src_moved
[12:46:18] [PASSED] drm_test_damage_iter_damage_not_visible
[12:46:18] ================ [PASSED] drm_damage_helper ================
[12:46:18] ============== drm_dp_mst_helper (3 subtests) ==============
[12:46:18] ============== drm_test_dp_mst_calc_pbn_mode  ==============
[12:46:18] [PASSED] Clock 154000 BPP 30 DSC disabled
[12:46:18] [PASSED] Clock 234000 BPP 30 DSC disabled
[12:46:18] [PASSED] Clock 297000 BPP 24 DSC disabled
[12:46:18] [PASSED] Clock 332880 BPP 24 DSC enabled
[12:46:18] [PASSED] Clock 324540 BPP 24 DSC enabled
[12:46:18] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[12:46:18] ============== drm_test_dp_mst_calc_pbn_div  ===============
[12:46:18] [PASSED] Link rate 2000000 lane count 4
[12:46:18] [PASSED] Link rate 2000000 lane count 2
[12:46:18] [PASSED] Link rate 2000000 lane count 1
[12:46:18] [PASSED] Link rate 1350000 lane count 4
[12:46:18] [PASSED] Link rate 1350000 lane count 2
[12:46:18] [PASSED] Link rate 1350000 lane count 1
[12:46:18] [PASSED] Link rate 1000000 lane count 4
[12:46:18] [PASSED] Link rate 1000000 lane count 2
[12:46:18] [PASSED] Link rate 1000000 lane count 1
[12:46:18] [PASSED] Link rate 810000 lane count 4
[12:46:18] [PASSED] Link rate 810000 lane count 2
[12:46:18] [PASSED] Link rate 810000 lane count 1
[12:46:18] [PASSED] Link rate 540000 lane count 4
[12:46:18] [PASSED] Link rate 540000 lane count 2
[12:46:18] [PASSED] Link rate 540000 lane count 1
[12:46:18] [PASSED] Link rate 270000 lane count 4
[12:46:18] [PASSED] Link rate 270000 lane count 2
[12:46:18] [PASSED] Link rate 270000 lane count 1
[12:46:18] [PASSED] Link rate 162000 lane count 4
[12:46:18] [PASSED] Link rate 162000 lane count 2
[12:46:18] [PASSED] Link rate 162000 lane count 1
[12:46:18] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[12:46:18] ========= drm_test_dp_mst_sideband_msg_req_decode  =========
[12:46:18] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[12:46:18] [PASSED] DP_POWER_UP_PHY with port number
[12:46:18] [PASSED] DP_POWER_DOWN_PHY with port number
[12:46:18] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[12:46:18] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[12:46:18] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[12:46:18] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[12:46:18] [PASSED] DP_QUERY_PAYLOAD with port number
[12:46:18] [PASSED] DP_QUERY_PAYLOAD with VCPI
[12:46:18] [PASSED] DP_REMOTE_DPCD_READ with port number
[12:46:18] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[12:46:18] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[12:46:18] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[12:46:18] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[12:46:18] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[12:46:18] [PASSED] DP_REMOTE_I2C_READ with port number
[12:46:18] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[12:46:18] [PASSED] DP_REMOTE_I2C_READ with transactions array
[12:46:18] [PASSED] DP_REMOTE_I2C_WRITE with port number
[12:46:18] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[12:46:18] [PASSED] DP_REMOTE_I2C_WRITE with data array
[12:46:18] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[12:46:18] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[12:46:18] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[12:46:18] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[12:46:18] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[12:46:18] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[12:46:18] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[12:46:18] ================ [PASSED] drm_dp_mst_helper ================
[12:46:18] ================== drm_exec (7 subtests) ===================
[12:46:18] [PASSED] sanitycheck
[12:46:18] [PASSED] test_lock
[12:46:18] [PASSED] test_lock_unlock
[12:46:18] [PASSED] test_duplicates
[12:46:18] [PASSED] test_prepare
[12:46:18] [PASSED] test_prepare_array
[12:46:18] [PASSED] test_multiple_loops
[12:46:18] ==================== [PASSED] drm_exec =====================
[12:46:18] =========== drm_format_helper_test (17 subtests) ===========
[12:46:18] ============== drm_test_fb_xrgb8888_to_gray8  ==============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[12:46:18] ============= drm_test_fb_xrgb8888_to_rgb332  ==============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[12:46:18] ============= drm_test_fb_xrgb8888_to_rgb565  ==============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[12:46:18] ============ drm_test_fb_xrgb8888_to_xrgb1555  =============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[12:46:18] ============ drm_test_fb_xrgb8888_to_argb1555  =============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[12:46:18] ============ drm_test_fb_xrgb8888_to_rgba5551  =============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[12:46:18] ============= drm_test_fb_xrgb8888_to_rgb888  ==============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[12:46:18] ============= drm_test_fb_xrgb8888_to_bgr888  ==============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[12:46:18] ============ drm_test_fb_xrgb8888_to_argb8888  =============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[12:46:18] =========== drm_test_fb_xrgb8888_to_xrgb2101010  ===========
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[12:46:18] =========== drm_test_fb_xrgb8888_to_argb2101010  ===========
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[12:46:18] ============== drm_test_fb_xrgb8888_to_mono  ===============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[12:46:18] ==================== drm_test_fb_swab  =====================
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ================ [PASSED] drm_test_fb_swab =================
[12:46:18] ============ drm_test_fb_xrgb8888_to_xbgr8888  =============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[12:46:18] ============ drm_test_fb_xrgb8888_to_abgr8888  =============
[12:46:18] [PASSED] single_pixel_source_buffer
[12:46:18] [PASSED] single_pixel_clip_rectangle
[12:46:18] [PASSED] well_known_colors
[12:46:18] [PASSED] destination_pitch
[12:46:18] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[12:46:18] ================= drm_test_fb_clip_offset  =================
[12:46:18] [PASSED] pass through
[12:46:18] [PASSED] horizontal offset
[12:46:18] [PASSED] vertical offset
[12:46:18] [PASSED] horizontal and vertical offset
[12:46:18] [PASSED] horizontal offset (custom pitch)
[12:46:18] [PASSED] vertical offset (custom pitch)
[12:46:18] [PASSED] horizontal and vertical offset (custom pitch)
[12:46:18] ============= [PASSED] drm_test_fb_clip_offset =============
[12:46:18] =================== drm_test_fb_memcpy  ====================
[12:46:18] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[12:46:18] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[12:46:18] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[12:46:18] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[12:46:18] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[12:46:18] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[12:46:18] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[12:46:18] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[12:46:18] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[12:46:18] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[12:46:18] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[12:46:18] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[12:46:18] =============== [PASSED] drm_test_fb_memcpy ================
[12:46:18] ============= [PASSED] drm_format_helper_test ==============
[12:46:18] ================= drm_format (18 subtests) =================
[12:46:18] [PASSED] drm_test_format_block_width_invalid
[12:46:18] [PASSED] drm_test_format_block_width_one_plane
[12:46:18] [PASSED] drm_test_format_block_width_two_plane
[12:46:18] [PASSED] drm_test_format_block_width_three_plane
[12:46:18] [PASSED] drm_test_format_block_width_tiled
[12:46:18] [PASSED] drm_test_format_block_height_invalid
[12:46:18] [PASSED] drm_test_format_block_height_one_plane
[12:46:18] [PASSED] drm_test_format_block_height_two_plane
[12:46:18] [PASSED] drm_test_format_block_height_three_plane
[12:46:18] [PASSED] drm_test_format_block_height_tiled
[12:46:18] [PASSED] drm_test_format_min_pitch_invalid
[12:46:18] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[12:46:18] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[12:46:18] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[12:46:18] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[12:46:18] [PASSED] drm_test_format_min_pitch_two_plane
[12:46:18] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[12:46:18] [PASSED] drm_test_format_min_pitch_tiled
[12:46:18] =================== [PASSED] drm_format ====================
[12:46:18] ============== drm_framebuffer (10 subtests) ===============
[12:46:18] ========== drm_test_framebuffer_check_src_coords  ==========
[12:46:18] [PASSED] Success: source fits into fb
[12:46:18] [PASSED] Fail: overflowing fb with x-axis coordinate
[12:46:18] [PASSED] Fail: overflowing fb with y-axis coordinate
[12:46:18] [PASSED] Fail: overflowing fb with source width
[12:46:18] [PASSED] Fail: overflowing fb with source height
[12:46:18] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[12:46:18] [PASSED] drm_test_framebuffer_cleanup
[12:46:18] =============== drm_test_framebuffer_create  ===============
[12:46:18] [PASSED] ABGR8888 normal sizes
[12:46:18] [PASSED] ABGR8888 max sizes
[12:46:18] [PASSED] ABGR8888 pitch greater than min required
[12:46:18] [PASSED] ABGR8888 pitch less than min required
[12:46:18] [PASSED] ABGR8888 Invalid width
[12:46:18] [PASSED] ABGR8888 Invalid buffer handle
[12:46:18] [PASSED] No pixel format
[12:46:18] [PASSED] ABGR8888 Width 0
[12:46:18] [PASSED] ABGR8888 Height 0
[12:46:18] [PASSED] ABGR8888 Out of bound height * pitch combination
[12:46:18] [PASSED] ABGR8888 Large buffer offset
[12:46:18] [PASSED] ABGR8888 Buffer offset for inexistent plane
[12:46:18] [PASSED] ABGR8888 Invalid flag
[12:46:18] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[12:46:18] [PASSED] ABGR8888 Valid buffer modifier
[12:46:18] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[12:46:18] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[12:46:18] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[12:46:18] [PASSED] NV12 Normal sizes
[12:46:18] [PASSED] NV12 Max sizes
[12:46:18] [PASSED] NV12 Invalid pitch
[12:46:18] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[12:46:18] [PASSED] NV12 different  modifier per-plane
[12:46:18] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[12:46:18] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[12:46:18] [PASSED] NV12 Modifier for inexistent plane
[12:46:18] [PASSED] NV12 Handle for inexistent plane
[12:46:18] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[12:46:18] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[12:46:18] [PASSED] YVU420 Normal sizes
[12:46:18] [PASSED] YVU420 Max sizes
[12:46:18] [PASSED] YVU420 Invalid pitch
[12:46:18] [PASSED] YVU420 Different pitches
[12:46:18] [PASSED] YVU420 Different buffer offsets/pitches
[12:46:18] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[12:46:18] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[12:46:18] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[12:46:18] [PASSED] YVU420 Valid modifier
[12:46:18] [PASSED] YVU420 Different modifiers per plane
[12:46:18] [PASSED] YVU420 Modifier for inexistent plane
[12:46:18] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[12:46:18] [PASSED] X0L2 Normal sizes
[12:46:18] [PASSED] X0L2 Max sizes
[12:46:18] [PASSED] X0L2 Invalid pitch
[12:46:18] [PASSED] X0L2 Pitch greater than minimum required
[12:46:18] [PASSED] X0L2 Handle for inexistent plane
[12:46:18] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[12:46:18] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[12:46:18] [PASSED] X0L2 Valid modifier
[12:46:18] [PASSED] X0L2 Modifier for inexistent plane
[12:46:18] =========== [PASSED] drm_test_framebuffer_create ===========
[12:46:18] [PASSED] drm_test_framebuffer_free
[12:46:18] [PASSED] drm_test_framebuffer_init
[12:46:18] [PASSED] drm_test_framebuffer_init_bad_format
[12:46:18] [PASSED] drm_test_framebuffer_init_dev_mismatch
[12:46:18] [PASSED] drm_test_framebuffer_lookup
[12:46:18] [PASSED] drm_test_framebuffer_lookup_inexistent
[12:46:18] [PASSED] drm_test_framebuffer_modifiers_not_supported
[12:46:18] ================= [PASSED] drm_framebuffer =================
[12:46:18] ================ drm_gem_shmem (8 subtests) ================
[12:46:18] [PASSED] drm_gem_shmem_test_obj_create
[12:46:18] [PASSED] drm_gem_shmem_test_obj_create_private
[12:46:18] [PASSED] drm_gem_shmem_test_pin_pages
[12:46:18] [PASSED] drm_gem_shmem_test_vmap
[12:46:18] [PASSED] drm_gem_shmem_test_get_sg_table
[12:46:18] [PASSED] drm_gem_shmem_test_get_pages_sgt
[12:46:18] [PASSED] drm_gem_shmem_test_madvise
[12:46:18] [PASSED] drm_gem_shmem_test_purge
[12:46:18] ================== [PASSED] drm_gem_shmem ==================
[12:46:18] === drm_atomic_helper_connector_hdmi_check (27 subtests) ===
[12:46:18] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[12:46:18] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[12:46:18] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[12:46:18] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[12:46:18] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[12:46:18] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[12:46:18] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420  =======
[12:46:18] [PASSED] Automatic
[12:46:18] [PASSED] Full
[12:46:18] [PASSED] Limited 16:235
[12:46:18] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[12:46:18] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[12:46:18] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[12:46:18] [PASSED] drm_test_check_disable_connector
[12:46:18] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[12:46:18] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[12:46:18] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[12:46:18] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[12:46:18] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[12:46:18] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[12:46:18] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[12:46:18] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[12:46:18] [PASSED] drm_test_check_output_bpc_dvi
[12:46:18] [PASSED] drm_test_check_output_bpc_format_vic_1
[12:46:18] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[12:46:18] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[12:46:18] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[12:46:18] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[12:46:18] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[12:46:18] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[12:46:18] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[12:46:18] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[12:46:18] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[12:46:18] [PASSED] drm_test_check_broadcast_rgb_value
[12:46:18] [PASSED] drm_test_check_bpc_8_value
[12:46:18] [PASSED] drm_test_check_bpc_10_value
[12:46:18] [PASSED] drm_test_check_bpc_12_value
[12:46:18] [PASSED] drm_test_check_format_value
[12:46:18] [PASSED] drm_test_check_tmds_char_value
[12:46:18] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[12:46:18] = drm_atomic_helper_connector_hdmi_mode_valid (4 subtests) =
[12:46:18] [PASSED] drm_test_check_mode_valid
[12:46:18] [PASSED] drm_test_check_mode_valid_reject
[12:46:18] [PASSED] drm_test_check_mode_valid_reject_rate
[12:46:18] [PASSED] drm_test_check_mode_valid_reject_max_clock
[12:46:18] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[12:46:18] ================= drm_managed (2 subtests) =================
[12:46:18] [PASSED] drm_test_managed_release_action
[12:46:18] [PASSED] drm_test_managed_run_action
[12:46:18] =================== [PASSED] drm_managed ===================
[12:46:18] =================== drm_mm (6 subtests) ====================
[12:46:18] [PASSED] drm_test_mm_init
[12:46:18] [PASSED] drm_test_mm_debug
[12:46:18] [PASSED] drm_test_mm_align32
[12:46:18] [PASSED] drm_test_mm_align64
[12:46:18] [PASSED] drm_test_mm_lowest
[12:46:18] [PASSED] drm_test_mm_highest
[12:46:18] ===================== [PASSED] drm_mm ======================
[12:46:18] ============= drm_modes_analog_tv (5 subtests) =============
[12:46:18] [PASSED] drm_test_modes_analog_tv_mono_576i
[12:46:18] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[12:46:18] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[12:46:18] [PASSED] drm_test_modes_analog_tv_pal_576i
[12:46:18] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[12:46:18] =============== [PASSED] drm_modes_analog_tv ===============
[12:46:18] ============== drm_plane_helper (2 subtests) ===============
[12:46:18] =============== drm_test_check_plane_state  ================
[12:46:18] [PASSED] clipping_simple
[12:46:18] [PASSED] clipping_rotate_reflect
[12:46:18] [PASSED] positioning_simple
[12:46:18] [PASSED] upscaling
[12:46:18] [PASSED] downscaling
[12:46:18] [PASSED] rounding1
[12:46:18] [PASSED] rounding2
[12:46:18] [PASSED] rounding3
[12:46:18] [PASSED] rounding4
[12:46:18] =========== [PASSED] drm_test_check_plane_state ============
[12:46:18] =========== drm_test_check_invalid_plane_state  ============
[12:46:18] [PASSED] positioning_invalid
[12:46:18] [PASSED] upscaling_invalid
[12:46:18] [PASSED] downscaling_invalid
[12:46:18] ======= [PASSED] drm_test_check_invalid_plane_state ========
[12:46:18] ================ [PASSED] drm_plane_helper =================
[12:46:18] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[12:46:18] ====== drm_test_connector_helper_tv_get_modes_check  =======
[12:46:18] [PASSED] None
[12:46:18] [PASSED] PAL
[12:46:18] [PASSED] NTSC
[12:46:18] [PASSED] Both, NTSC Default
[12:46:18] [PASSED] Both, PAL Default
[12:46:18] [PASSED] Both, NTSC Default, with PAL on command-line
[12:46:18] [PASSED] Both, PAL Default, with NTSC on command-line
[12:46:18] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[12:46:18] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[12:46:18] ================== drm_rect (9 subtests) ===================
[12:46:18] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[12:46:18] [PASSED] drm_test_rect_clip_scaled_not_clipped
[12:46:18] [PASSED] drm_test_rect_clip_scaled_clipped
[12:46:18] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[12:46:18] ================= drm_test_rect_intersect  =================
[12:46:18] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[12:46:18] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[12:46:18] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[12:46:18] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[12:46:18] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[12:46:18] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[12:46:18] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[12:46:18] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[12:46:18] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[12:46:18] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[12:46:18] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[12:46:18] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[12:46:18] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[12:46:18] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[12:46:18] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[12:46:18] ============= [PASSED] drm_test_rect_intersect =============
[12:46:18] ================ drm_test_rect_calc_hscale  ================
[12:46:18] [PASSED] normal use
[12:46:18] [PASSED] out of max range
[12:46:18] [PASSED] out of min range
[12:46:18] [PASSED] zero dst
[12:46:18] [PASSED] negative src
[12:46:18] [PASSED] negative dst
[12:46:18] ============ [PASSED] drm_test_rect_calc_hscale ============
[12:46:18] ================ drm_test_rect_calc_vscale  ================
[12:46:18] [PASSED] normal use
stty: 'standard input': Inappropriate ioctl for device
[12:46:18] [PASSED] out of max range
[12:46:18] [PASSED] out of min range
[12:46:18] [PASSED] zero dst
[12:46:18] [PASSED] negative src
[12:46:18] [PASSED] negative dst
[12:46:18] ============ [PASSED] drm_test_rect_calc_vscale ============
[12:46:18] ================== drm_test_rect_rotate  ===================
[12:46:18] [PASSED] reflect-x
[12:46:18] [PASSED] reflect-y
[12:46:18] [PASSED] rotate-0
[12:46:18] [PASSED] rotate-90
[12:46:18] [PASSED] rotate-180
[12:46:18] [PASSED] rotate-270
[12:46:18] ============== [PASSED] drm_test_rect_rotate ===============
[12:46:18] ================ drm_test_rect_rotate_inv  =================
[12:46:18] [PASSED] reflect-x
[12:46:18] [PASSED] reflect-y
[12:46:18] [PASSED] rotate-0
[12:46:18] [PASSED] rotate-90
[12:46:18] [PASSED] rotate-180
[12:46:18] [PASSED] rotate-270
[12:46:18] ============ [PASSED] drm_test_rect_rotate_inv =============
[12:46:18] ==================== [PASSED] drm_rect =====================
[12:46:18] ============ drm_sysfb_modeset_test (1 subtest) ============
[12:46:18] ============ drm_test_sysfb_build_fourcc_list  =============
[12:46:18] [PASSED] no native formats
[12:46:18] [PASSED] XRGB8888 as native format
[12:46:18] [PASSED] remove duplicates
[12:46:18] [PASSED] convert alpha formats
[12:46:18] [PASSED] random formats
[12:46:18] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[12:46:18] ============= [PASSED] drm_sysfb_modeset_test ==============
[12:46:18] ================== drm_fixp (2 subtests) ===================
[12:46:18] [PASSED] drm_test_int2fixp
[12:46:18] [PASSED] drm_test_sm2fixp
[12:46:18] ==================== [PASSED] drm_fixp =====================
[12:46:18] ============================================================
[12:46:18] Testing complete. Ran 624 tests: passed: 624
[12:46:18] Elapsed time: 27.465s total, 1.692s configuring, 25.355s building, 0.386s running

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [12:46:18] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[12:46:20] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[12:46:30] Starting KUnit Kernel (1/1)...
[12:46:30] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[12:46:30] ================= ttm_device (5 subtests) ==================
[12:46:30] [PASSED] ttm_device_init_basic
[12:46:30] [PASSED] ttm_device_init_multiple
[12:46:30] [PASSED] ttm_device_fini_basic
[12:46:30] [PASSED] ttm_device_init_no_vma_man
[12:46:30] ================== ttm_device_init_pools  ==================
[12:46:30] [PASSED] No DMA allocations, no DMA32 required
[12:46:30] [PASSED] DMA allocations, DMA32 required
[12:46:30] [PASSED] No DMA allocations, DMA32 required
[12:46:30] [PASSED] DMA allocations, no DMA32 required
[12:46:30] ============== [PASSED] ttm_device_init_pools ==============
[12:46:30] =================== [PASSED] ttm_device ====================
[12:46:30] ================== ttm_pool (8 subtests) ===================
[12:46:30] ================== ttm_pool_alloc_basic  ===================
[12:46:30] [PASSED] One page
[12:46:30] [PASSED] More than one page
[12:46:30] [PASSED] Above the allocation limit
[12:46:30] [PASSED] One page, with coherent DMA mappings enabled
[12:46:30] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[12:46:30] ============== [PASSED] ttm_pool_alloc_basic ===============
[12:46:30] ============== ttm_pool_alloc_basic_dma_addr  ==============
[12:46:30] [PASSED] One page
[12:46:30] [PASSED] More than one page
[12:46:30] [PASSED] Above the allocation limit
[12:46:30] [PASSED] One page, with coherent DMA mappings enabled
[12:46:30] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[12:46:30] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[12:46:30] [PASSED] ttm_pool_alloc_order_caching_match
[12:46:30] [PASSED] ttm_pool_alloc_caching_mismatch
[12:46:30] [PASSED] ttm_pool_alloc_order_mismatch
[12:46:30] [PASSED] ttm_pool_free_dma_alloc
[12:46:30] [PASSED] ttm_pool_free_no_dma_alloc
[12:46:30] [PASSED] ttm_pool_fini_basic
[12:46:30] ==================== [PASSED] ttm_pool =====================
[12:46:30] ================ ttm_resource (8 subtests) =================
[12:46:30] ================= ttm_resource_init_basic  =================
[12:46:30] [PASSED] Init resource in TTM_PL_SYSTEM
[12:46:30] [PASSED] Init resource in TTM_PL_VRAM
[12:46:30] [PASSED] Init resource in a private placement
[12:46:30] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[12:46:30] ============= [PASSED] ttm_resource_init_basic =============
[12:46:30] [PASSED] ttm_resource_init_pinned
[12:46:30] [PASSED] ttm_resource_fini_basic
[12:46:30] [PASSED] ttm_resource_manager_init_basic
[12:46:30] [PASSED] ttm_resource_manager_usage_basic
[12:46:30] [PASSED] ttm_resource_manager_set_used_basic
[12:46:30] [PASSED] ttm_sys_man_alloc_basic
[12:46:30] [PASSED] ttm_sys_man_free_basic
[12:46:30] ================== [PASSED] ttm_resource ===================
[12:46:30] =================== ttm_tt (15 subtests) ===================
[12:46:30] ==================== ttm_tt_init_basic  ====================
[12:46:30] [PASSED] Page-aligned size
[12:46:30] [PASSED] Extra pages requested
[12:46:30] ================ [PASSED] ttm_tt_init_basic ================
[12:46:30] [PASSED] ttm_tt_init_misaligned
[12:46:30] [PASSED] ttm_tt_fini_basic
[12:46:30] [PASSED] ttm_tt_fini_sg
[12:46:30] [PASSED] ttm_tt_fini_shmem
[12:46:30] [PASSED] ttm_tt_create_basic
[12:46:30] [PASSED] ttm_tt_create_invalid_bo_type
[12:46:30] [PASSED] ttm_tt_create_ttm_exists
[12:46:30] [PASSED] ttm_tt_create_failed
[12:46:30] [PASSED] ttm_tt_destroy_basic
[12:46:30] [PASSED] ttm_tt_populate_null_ttm
[12:46:30] [PASSED] ttm_tt_populate_populated_ttm
[12:46:30] [PASSED] ttm_tt_unpopulate_basic
[12:46:30] [PASSED] ttm_tt_unpopulate_empty_ttm
[12:46:30] [PASSED] ttm_tt_swapin_basic
[12:46:30] ===================== [PASSED] ttm_tt ======================
[12:46:30] =================== ttm_bo (14 subtests) ===================
[12:46:30] =========== ttm_bo_reserve_optimistic_no_ticket  ===========
[12:46:30] [PASSED] Cannot be interrupted and sleeps
[12:46:30] [PASSED] Cannot be interrupted, locks straight away
[12:46:30] [PASSED] Can be interrupted, sleeps
[12:46:30] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[12:46:30] [PASSED] ttm_bo_reserve_locked_no_sleep
[12:46:30] [PASSED] ttm_bo_reserve_no_wait_ticket
[12:46:30] [PASSED] ttm_bo_reserve_double_resv
[12:46:30] [PASSED] ttm_bo_reserve_interrupted
[12:46:30] [PASSED] ttm_bo_reserve_deadlock
[12:46:30] [PASSED] ttm_bo_unreserve_basic
[12:46:30] [PASSED] ttm_bo_unreserve_pinned
[12:46:30] [PASSED] ttm_bo_unreserve_bulk
[12:46:30] [PASSED] ttm_bo_fini_basic
[12:46:30] [PASSED] ttm_bo_fini_shared_resv
[12:46:30] [PASSED] ttm_bo_pin_basic
[12:46:30] [PASSED] ttm_bo_pin_unpin_resource
[12:46:30] [PASSED] ttm_bo_multiple_pin_one_unpin
[12:46:30] ===================== [PASSED] ttm_bo ======================
[12:46:30] ============== ttm_bo_validate (21 subtests) ===============
[12:46:30] ============== ttm_bo_init_reserved_sys_man  ===============
[12:46:30] [PASSED] Buffer object for userspace
[12:46:30] [PASSED] Kernel buffer object
[12:46:30] [PASSED] Shared buffer object
[12:46:30] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[12:46:30] ============== ttm_bo_init_reserved_mock_man  ==============
[12:46:30] [PASSED] Buffer object for userspace
[12:46:30] [PASSED] Kernel buffer object
[12:46:30] [PASSED] Shared buffer object
[12:46:30] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[12:46:30] [PASSED] ttm_bo_init_reserved_resv
[12:46:30] ================== ttm_bo_validate_basic  ==================
[12:46:30] [PASSED] Buffer object for userspace
[12:46:30] [PASSED] Kernel buffer object
[12:46:30] [PASSED] Shared buffer object
[12:46:30] ============== [PASSED] ttm_bo_validate_basic ==============
[12:46:30] [PASSED] ttm_bo_validate_invalid_placement
[12:46:30] ============= ttm_bo_validate_same_placement  ==============
[12:46:30] [PASSED] System manager
[12:46:30] [PASSED] VRAM manager
[12:46:30] ========= [PASSED] ttm_bo_validate_same_placement ==========
[12:46:30] [PASSED] ttm_bo_validate_failed_alloc
[12:46:30] [PASSED] ttm_bo_validate_pinned
[12:46:30] [PASSED] ttm_bo_validate_busy_placement
[12:46:30] ================ ttm_bo_validate_multihop  =================
[12:46:30] [PASSED] Buffer object for userspace
[12:46:30] [PASSED] Kernel buffer object
[12:46:30] [PASSED] Shared buffer object
[12:46:30] ============ [PASSED] ttm_bo_validate_multihop =============
[12:46:30] ========== ttm_bo_validate_no_placement_signaled  ==========
[12:46:30] [PASSED] Buffer object in system domain, no page vector
[12:46:30] [PASSED] Buffer object in system domain with an existing page vector
[12:46:30] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[12:46:30] ======== ttm_bo_validate_no_placement_not_signaled  ========
[12:46:30] [PASSED] Buffer object for userspace
[12:46:30] [PASSED] Kernel buffer object
[12:46:30] [PASSED] Shared buffer object
[12:46:30] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[12:46:30] [PASSED] ttm_bo_validate_move_fence_signaled
[12:46:30] ========= ttm_bo_validate_move_fence_not_signaled  =========
[12:46:30] [PASSED] Waits for GPU
[12:46:30] [PASSED] Tries to lock straight away
[12:46:30] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[12:46:30] [PASSED] ttm_bo_validate_happy_evict
[12:46:30] [PASSED] ttm_bo_validate_all_pinned_evict
[12:46:30] [PASSED] ttm_bo_validate_allowed_only_evict
[12:46:30] [PASSED] ttm_bo_validate_deleted_evict
[12:46:30] [PASSED] ttm_bo_validate_busy_domain_evict
[12:46:30] [PASSED] ttm_bo_validate_evict_gutting
[12:46:30] [PASSED] ttm_bo_validate_recrusive_evict
stty: 'standard input': Inappropriate ioctl for device
[12:46:30] ================= [PASSED] ttm_bo_validate =================
[12:46:30] ============================================================
[12:46:30] Testing complete. Ran 101 tests: passed: 101
[12:46:30] Elapsed time: 11.413s total, 1.706s configuring, 9.491s building, 0.185s running

+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel

#45 lore raw

✗ CI.checksparse: warning for Enable THP support in drm_pagemap (rev7)

In reply to Francois Dugast
== Series Details ==

== Series Details ==

Series: Enable THP support in drm_pagemap (rev7)
URL : https://patchwork.freedesktop.org/series/159119/
State : warning

== Summary ==

+ trap cleanup EXIT
+ KERNEL=/kernel
+ MT=/root/linux/maintainer-tools
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools /root/linux/maintainer-tools
Cloning into '/root/linux/maintainer-tools'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ make -C /root/linux/maintainer-tools
make: Entering directory '/root/linux/maintainer-tools'
cc -O2 -g -Wextra -o remap-log remap-log.c
make: Leaving directory '/root/linux/maintainer-tools'
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ /root/linux/maintainer-tools/dim sparse --fast eaf341ec50e661b2c81347e4bb9f3348b7fea5b9
Sparse version: 0.6.4 (Ubuntu: 0.6.4-4ubuntu3)
Fast mode used, each commit won't be checked separately.
-
+drivers/gpu/drm/display/drm_dp_helper.c:1979:1: error: bad constant expression
+drivers/gpu/drm/display/drm_dp_helper.c:1980:1: error: bad constant expression
+drivers/gpu/drm/display/drm_dp_helper.c:2144:1: error: bad constant expression
+drivers/gpu/drm/display/drm_dp_helper.c:2145:1: error: bad constant expression
+drivers/gpu/drm/drm_bridge.c:1643:1: error: bad constant expression
+drivers/gpu/drm/drm_bridge.c:1644:1: error: bad constant expression
+drivers/gpu/drm/drm_bridge.c:1645:1: error: bad constant expression
+drivers/gpu/drm/drm_bridge.c:1645:1: error: bad constant expression
+drivers/gpu/drm/drm_drv.c:60:1: error: bad constant expression
+drivers/gpu/drm/drm_drv.c:61:1: error: bad constant expression
+drivers/gpu/drm/drm_drv.c:62:1: error: bad constant expression
+drivers/gpu/drm/drm_drv.c:62:1: error: bad constant expression
+drivers/gpu/drm/drm_edid.c:1800:1: error: bad constant expression
+drivers/gpu/drm/drm_edid.c:1801:1: error: bad constant expression
+drivers/gpu/drm/drm_gem_framebuffer_helper.c:23:1: error: bad constant expression
+drivers/gpu/drm/drm_gem_shmem_helper.c:28:1: error: bad constant expression
+drivers/gpu/drm/drm_gem_shmem_helper.c:967:1: error: bad constant expression
+drivers/gpu/drm/drm_gem_shmem_helper.c:968:1: error: bad constant expression
+drivers/gpu/drm/drm_gem_shmem_helper.c:969:1: error: bad constant expression
+drivers/gpu/drm/drm_gem_shmem_helper.c:969:1: error: bad constant expression
+drivers/gpu/drm/drm_panel.c:733:1: error: bad constant expression
+drivers/gpu/drm/drm_panel.c:734:1: error: bad constant expression
+drivers/gpu/drm/drm_panel.c:735:1: error: bad constant expression
+drivers/gpu/drm/drm_panel.c:735:1: error: bad constant expression
+drivers/gpu/drm/drm_panel_orientation_quirks.c:601:1: error: bad constant expression
+drivers/gpu/drm/drm_panel_orientation_quirks.c:602:1: error: bad constant expression
+drivers/gpu/drm/drm_panel_orientation_quirks.c:602:1: error: bad constant expression
+drivers/gpu/drm/drm_prime.c:44:1: error: bad constant expression
+drivers/gpu/drm/drm_probe_helper.c:68:1: error: bad constant expression
+drivers/gpu/drm/drm_simple_kms_helper.c:457:1: error: bad constant expression
+drivers/gpu/drm/drm_simple_kms_helper.c:458:1: error: bad constant expression
+drivers/gpu/drm/drm_simple_kms_helper.c:458:1: error: bad constant expression
+drivers/gpu/drm/drm_vblank.c:173:1: error: bad constant expression
+drivers/gpu/drm/drm_vblank.c:174:1: error: bad constant expression
+drivers/gpu/drm/drm_vblank.c:175:1: error: bad constant expression
+drivers/gpu/drm/drm_vblank.c:176:1: error: bad constant expression
+drivers/gpu/drm/i915/display/dvo_ch7017.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/dvo_ch7xxx.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/dvo_ivch.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/dvo_ns2501.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/dvo_sil164.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/dvo_tfp410.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/g4x_dp.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/g4x_hdmi.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/hsw_ips.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/i9xx_plane.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/i9xx_wm.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_display_trace.h):
+drivers/gpu/drm/i915/display/icl_dsi.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_dsi.h):
+drivers/gpu/drm/i915/display/intel_acpi.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_alpm.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_atomic.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_audio.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_backlight.c: note: in included file:
+drivers/gpu/drm/i915/display/intel_bios.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_bw.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_casf.c:147:21: error: too long token expansion
+drivers/gpu/drm/i915/display/intel_casf.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_cdclk.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_color.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_colorop.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_color_pipeline.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_combo_phy.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_connector.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_crtc.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_display_trace.h):
+drivers/gpu/drm/i915/display/intel_crt.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_crtc_state_dump.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_cursor.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_cx0_phy.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dbuf_bw.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_ddi.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_display.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_display_debugfs.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_display_device.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_display_driver.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_display_irq.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_display_trace.h):
+drivers/gpu/drm/i915/display/intel_display_power.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_display_power_map.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_display_power_well.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_display_reset.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_display_rps.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dmc.c:131:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:134:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:137:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:140:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:143:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:146:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:149:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:153:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:154:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:157:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:160:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:163:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:166:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:170:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:174:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:178:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:182:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c:186:1: error: bad constant expression
+drivers/gpu/drm/i915/display/intel_dmc.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dp_aux.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dp.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dp_hdcp.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dpio_phy.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dp_link_training.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dpll.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dpll_mgr.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dp_mst.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dpt.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dpt_common.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dp_test.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_drrs.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dsb.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dsi.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_dsi.h):
+drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dsi_vbt.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_dvo.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_encoder.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_fb_bo.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_fbc.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_display_trace.h):
+drivers/gpu/drm/i915/display/intel_fb.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_fb_pin.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_fdi.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_fifo_underrun.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_display_trace.h):
+drivers/gpu/drm/i915/display/intel_flipq.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_frontbuffer.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_display_trace.h):
+drivers/gpu/drm/i915/display/intel_global_state.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_gmbus.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_hdcp.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_hdcp_gsc_message.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_hdmi.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_hotplug.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_hotplug_irq.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_initial_plane.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_link_bw.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_load_detect.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_lspcon.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_lt_phy.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_lvds.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_modeset_lock.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_modeset_setup.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_modeset_verify.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_opregion.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_overlay.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_panel.c: note: in included file:
+drivers/gpu/drm/i915/display/intel_pch_display.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_pch_refclk.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_pfit.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_pipe_crc.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_plane.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_display_trace.h):
+drivers/gpu/drm/i915/display/intel_pmdemand.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_display_trace.h):
+drivers/gpu/drm/i915/display/intel_pps.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_psr.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_quirks.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_sdvo.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_snps_phy.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_sprite.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_sprite_uapi.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_tc.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_tv.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_vblank.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_vdsc.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_vga.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_vrr.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/intel_wm.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/skl_prefill.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/skl_scaler.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h, drivers/gpu/drm/i915/display/intel_display_trace.h):
+drivers/gpu/drm/i915/display/skl_universal_plane.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/skl_watermark.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/vlv_clock.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/vlv_dsi.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/vlv_dsi_pll.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/display/vlv_sideband.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c:18:1: error: bad constant expression
+drivers/gpu/drm/i915/gem/i915_gem_pages.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/gt/intel_reset.c:1569:12: warning: context imbalance in '_intel_gt_reset_lock' - different lock contexts for basic block +drivers/gpu/drm/i915/gt/intel_sseu.c:600:17: error: too long token expansion
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:191:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:192:1: error: bad constant expression
+drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:193:1: error: bad constant expression
+drivers/gpu/drm/i915/i915_active.c:1062:16: warning: context imbalance in '__i915_active_fence_set' - different lock contexts for basic block +drivers/gpu/drm/i915/i915_drm_client.c:92:9: error: incompatible types in comparison expression (different address spaces):
+drivers/gpu/drm/i915/i915_drm_client.c:92:9: error: incompatible types in comparison expression (different address spaces):

+drivers/gpu/drm/i915/i915_drm_client.c:92:9:    expected struct list_head const *list
+drivers/gpu/drm/i915/i915_drm_client.c:92:9:    got struct list_head [noderef] __rcu *pos
+drivers/gpu/drm/i915/i915_drm_client.c:92:9:    struct list_head *
+drivers/gpu/drm/i915/i915_drm_client.c:92:9:    struct list_head *
+drivers/gpu/drm/i915/i915_drm_client.c:92:9:    struct list_head [noderef] __rcu *
+drivers/gpu/drm/i915/i915_drm_client.c:92:9:    struct list_head [noderef] __rcu *

+drivers/gpu/drm/i915/i915_drm_client.c:92:9: warning: incorrect type in argument 1 (different address spaces) +drivers/gpu/drm/i915/i915_initial_plane.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/i915_irq.c:467:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:467:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:475:16: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:475:16: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:480:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:480:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:480:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:518:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:518:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:526:16: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:526:16: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:531:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:531:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:531:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:575:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:575:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:578:15: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:578:15: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:582:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:582:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:589:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:589:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:589:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_irq.c:589:9: warning: unreplaced symbol '<noident>' +drivers/gpu/drm/i915/i915_mitigations.c:133:1: error: bad constant expression +drivers/gpu/drm/i915/i915_module.c:125:1: error: bad constant expression +drivers/gpu/drm/i915/i915_module.c:126:1: error: bad constant expression +drivers/gpu/drm/i915/i915_module.c:128:1: error: bad constant expression +drivers/gpu/drm/i915/i915_module.c:129:1: error: bad constant expression +drivers/gpu/drm/i915/i915_module.c:129:1: error: bad constant expression +drivers/gpu/drm/i915/i915_panic.c: note: in included file (through drivers/gpu/drm/i915/display/intel_display_types.h):
+drivers/gpu/drm/i915/i915_params.c:100:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:100:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:104:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:104:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:107:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:107:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:110:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:110:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:119:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:119:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:123:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:123:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:125:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:125:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:66:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:66:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:69:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:69:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:73:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:73:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:79:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:79:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:84:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:84:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:88:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:88:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:91:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:91:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:95:1: error: bad constant expression +drivers/gpu/drm/i915/i915_params.c:95:1: error: bad constant expression +drivers/gpu/drm/i915/intel_uncore.c:1930:1: warning: context imbalance in 'fwtable_read8' - unexpected unlock +drivers/gpu/drm/i915/intel_uncore.c:1931:1: warning: context imbalance in 'fwtable_read16' - unexpected unlock +drivers/gpu/drm/i915/intel_uncore.c:1932:1: warning: context imbalance in 'fwtable_read32' - unexpected unlock +drivers/gpu/drm/i915/intel_uncore.c:1933:1: warning: context imbalance in 'fwtable_read64' - unexpected unlock +drivers/gpu/drm/i915/intel_uncore.c:1998:1: warning: context imbalance in 'gen6_write8' - unexpected unlock +drivers/gpu/drm/i915/intel_uncore.c:1999:1: warning: context imbalance in 'gen6_write16' - unexpected unlock +drivers/gpu/drm/i915/intel_uncore.c:2000:1: warning: context imbalance in 'gen6_write32' - unexpected unlock +drivers/gpu/drm/i915/intel_uncore.c:2020:1: warning: context imbalance in 'fwtable_write8' - unexpected unlock +drivers/gpu/drm/i915/intel_uncore.c:2021:1: warning: context imbalance in 'fwtable_write16' - unexpected unlock +drivers/gpu/drm/i915/intel_uncore.c:2022:1: warning: context imbalance in 'fwtable_write32' - unexpected unlock +drivers/gpu/drm/i915/intel_wakeref.c:148:19: warning: context imbalance in 'wakeref_auto_timeout' - unexpected unlock +drivers/gpu/drm/ttm/ttm_bo.c:1203:31: warning: symbol 'ttm_swap_ops' was not declared. Should it be static?
+drivers/gpu/drm/ttm/ttm_bo_util.c:329:38: expected void *virtual
+drivers/gpu/drm/ttm/ttm_bo_util.c:329:38: got void [noderef] __iomem *
+drivers/gpu/drm/ttm/ttm_bo_util.c:329:38: warning: incorrect type in assignment (different address spaces)
+drivers/gpu/drm/ttm/ttm_bo_util.c:332:38: expected void *virtual
+drivers/gpu/drm/ttm/ttm_bo_util.c:332:38: got void [noderef] __iomem *
+drivers/gpu/drm/ttm/ttm_bo_util.c:332:38: warning: incorrect type in assignment (different address spaces)
+drivers/gpu/drm/ttm/ttm_bo_util.c:335:38: expected void *virtual
+drivers/gpu/drm/ttm/ttm_bo_util.c:335:38: got void [noderef] __iomem *
+drivers/gpu/drm/ttm/ttm_bo_util.c:335:38: warning: incorrect type in assignment (different address spaces)
+drivers/gpu/drm/ttm/ttm_bo_util.c:465:28: expected void volatile [noderef] __iomem *addr
+drivers/gpu/drm/ttm/ttm_bo_util.c:465:28: got void *virtual
+drivers/gpu/drm/ttm/ttm_bo_util.c:465:28: warning: incorrect type in argument 1 (different address spaces) +drivers/gpu/drm/ttm/ttm_pool.c:119:1: error: bad constant expression +drivers/gpu/drm/ttm/ttm_pool.c:120:1: error: bad constant expression
+drivers/gpu/drm/ttm/ttm_tt.c:54:1: error: bad constant expression
+drivers/gpu/drm/ttm/ttm_tt.c:55:1: error: bad constant expression
+drivers/gpu/drm/ttm/ttm_tt.c:59:1: error: bad constant expression
+drivers/gpu/drm/ttm/ttm_tt.c:60:1: error: bad constant expression +drivers/gpu/drm/virtio/virtgpu_drv.c:217:1: error: bad constant expression +drivers/gpu/drm/virtio/virtgpu_drv.c:218:1: error: bad constant expression +drivers/gpu/drm/virtio/virtgpu_drv.c:218:1: error: bad constant expression +drivers/gpu/drm/virtio/virtgpu_drv.c:219:1: error: bad constant expression +drivers/gpu/drm/virtio/virtgpu_drv.c:220:1: error: bad constant expression +drivers/gpu/drm/virtio/virtgpu_drv.c:221:1: error: bad constant expression +drivers/gpu/drm/virtio/virtgpu_drv.c:52:1: error: bad constant expression +drivers/gpu/drm/virtio/virtgpu_drv.c:53:1: error: bad constant expression +drivers/gpu/drm/virtio/virtgpu_object.c:34:1: error: bad constant expression +drivers/gpu/drm/virtio/virtgpu_prime.c:30:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression
+./include/linux/pwm.h:13:1: error: bad constant expression

+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel

#46 lore raw

✓ Xe.CI.BAT: success for Enable THP support in drm_pagemap (rev7)

In reply to Francois Dugast
== Series Details ==

== Series Details ==

Series: Enable THP support in drm_pagemap (rev7)
URL : https://patchwork.freedesktop.org/series/159119/
State : success

== Summary ==

CI Bug Log - changes from xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a_BAT -> xe-pw-159119v7_BAT
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Participating hosts (12 -> 12)
------------------------------

No changes in participating hosts

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

Here are the changes found in xe-pw-159119v7_BAT that come from known issues:

### IGT changes ###

#### Possible fixes ####

* igt@xe_pat@pat-index-xe2@render:
- bat-ptl-vm: [DMESG-WARN][1] -> [PASS][2] +1 other test pass
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/bat-ptl-vm/igt@xe_pat@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/bat-ptl-vm/igt@xe_pat@[email protected]

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

* Linux: xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a -> xe-pw-159119v7

IGT_8704: 8704
xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a: 278a33d3977124821c19b51fb88d9d651b4fe40a
xe-pw-159119v7: 159119v7

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/index.html

#47 lore raw

✗ Xe.CI.Full: failure for Enable THP support in drm_pagemap (rev7)

In reply to Francois Dugast
== Series Details ==

== Series Details ==

Series: Enable THP support in drm_pagemap (rev7)
URL : https://patchwork.freedesktop.org/series/159119/
State : failure

== Summary ==

CI Bug Log - changes from xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a_FULL -> xe-pw-159119v7_FULL
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with xe-pw-159119v7_FULL absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in xe-pw-159119v7_FULL, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.

Participating hosts (2 -> 2)
------------------------------

No changes in participating hosts

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in xe-pw-159119v7_FULL:

### IGT changes ###

#### Possible regressions ####

* igt@kms_atomic_transition@plane-toggle-modeset-transition@pipe-b-dp-2:
- shard-bmg: [PASS][1] -> [INCOMPLETE][2] +1 other test incomplete
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-1/igt@kms_atomic_transition@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-3/igt@kms_atomic_transition@[email protected]

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

Here are the changes found in xe-pw-159119v7_FULL that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@kms_big_fb@linear-max-hw-stride-64bpp-rotate-180-hflip:
- shard-bmg: NOTRUN -> [SKIP][3] ([Intel XE#7059]) +1 other test skip
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]

* igt@kms_big_fb@x-tiled-32bpp-rotate-90:
- shard-bmg: NOTRUN -> [SKIP][4] ([Intel XE#2327]) +3 other tests skip
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_big_fb@y-tiled-addfb:
- shard-bmg: NOTRUN -> [SKIP][5] ([Intel XE#2328])
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_big_fb@yf-tiled-32bpp-rotate-0:
- shard-bmg: NOTRUN -> [SKIP][6] ([Intel XE#1124]) +11 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_bw@connected-linear-tiling-4-displays-2160x1440p:
- shard-bmg: NOTRUN -> [SKIP][7] ([Intel XE#2314] / [Intel XE#2894]) +2 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_bw@linear-tiling-4-displays-1920x1080p:
- shard-bmg: NOTRUN -> [SKIP][8] ([Intel XE#367]) +1 other test skip
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_ccs@crc-primary-suspend-y-tiled-gen12-rc-ccs-cc:
- shard-bmg: NOTRUN -> [SKIP][9] ([Intel XE#3432]) +1 other test skip
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_ccs@missing-ccs-buffer-y-tiled-gen12-rc-ccs:
- shard-bmg: NOTRUN -> [SKIP][10] ([Intel XE#2887]) +13 other tests skip
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_ccs@random-ccs-data-4-tiled-lnl-ccs@pipe-c-dp-2:
- shard-bmg: NOTRUN -> [SKIP][11] ([Intel XE#2652] / [Intel XE#787]) +17 other tests skip
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@kms_ccs@[email protected]

* igt@kms_cdclk@plane-scaling:
- shard-bmg: NOTRUN -> [SKIP][12] ([Intel XE#2724])
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]

* igt@kms_chamelium_color@ctm-0-50:
- shard-bmg: NOTRUN -> [SKIP][13] ([Intel XE#2325]) +1 other test skip
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_chamelium_hpd@dp-hpd:
- shard-bmg: NOTRUN -> [SKIP][14] ([Intel XE#2252]) +9 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_content_protection@atomic-dpms-hdcp14@pipe-a-dp-2:
- shard-bmg: NOTRUN -> [FAIL][15] ([Intel XE#3304]) +1 other test fail
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@kms_content_protection@[email protected]

* igt@kms_content_protection@dp-mst-type-0:
- shard-bmg: NOTRUN -> [SKIP][16] ([Intel XE#2390] / [Intel XE#6974]) +1 other test skip
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@[email protected]

* igt@kms_cursor_crc@cursor-offscreen-128x42:
- shard-bmg: NOTRUN -> [SKIP][17] ([Intel XE#2320]) +5 other tests skip
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]

* igt@kms_cursor_crc@cursor-random-512x512:
- shard-bmg: NOTRUN -> [SKIP][18] ([Intel XE#2321])
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size:
- shard-bmg: NOTRUN -> [SKIP][19] ([Intel XE#2286])
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size.html

* igt@kms_dp_link_training@uhbr-sst:
- shard-bmg: NOTRUN -> [SKIP][20] ([Intel XE#4354])
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_dsc@dsc-with-output-formats:
- shard-bmg: NOTRUN -> [SKIP][21] ([Intel XE#2244])
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@[email protected]

* igt@kms_fbc_dirty_rect@fbc-dirty-rectangle-out-visible-area:
- shard-bmg: NOTRUN -> [SKIP][22] ([Intel XE#4422])
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]

* igt@kms_feature_discovery@dp-mst:
- shard-bmg: NOTRUN -> [SKIP][23] ([Intel XE#2375])
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_feature_discovery@psr2:
- shard-bmg: NOTRUN -> [SKIP][24] ([Intel XE#2374])
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-lnl: [PASS][25] -> [FAIL][26] ([Intel XE#301]) +1 other test fail
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-lnl-8/igt@kms_flip@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-lnl-2/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-bmg: [PASS][27] -> [INCOMPLETE][28] ([Intel XE#2049] / [Intel XE#2597]) +2 other tests incomplete
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-9/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-3/igt@[email protected]

* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-downscaling:
- shard-bmg: NOTRUN -> [SKIP][29] ([Intel XE#2293] / [Intel XE#2380]) +5 other tests skip
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-downscaling.html

* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling@pipe-a-valid-mode:
- shard-bmg: NOTRUN -> [SKIP][30] ([Intel XE#2293]) +5 other tests skip
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling@pipe-a-valid-mode.html

* igt@kms_frontbuffer_tracking@drrs-abgr161616f-draw-render:
- shard-bmg: NOTRUN -> [SKIP][31] ([Intel XE#7061]) +5 other tests skip
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-onoff:
- shard-bmg: NOTRUN -> [SKIP][32] ([Intel XE#4141]) +14 other tests skip
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcdrrs-1p-offscreen-pri-indfb-draw-render:
- shard-bmg: NOTRUN -> [SKIP][33] ([Intel XE#2311]) +32 other tests skip
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@kms_frontbuffer_tracking@fbcdrrs-1p-offscreen-pri-indfb-draw-render.html

* igt@kms_frontbuffer_tracking@plane-fbc-rte:
- shard-bmg: NOTRUN -> [SKIP][34] ([Intel XE#2350])
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-fullscreen:
- shard-bmg: NOTRUN -> [SKIP][35] ([Intel XE#2313]) +30 other tests skip
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-fullscreen.html

* igt@kms_hdr@static-toggle-dpms@pipe-a-dp-2:
- shard-bmg: [PASS][36] -> [ABORT][37] ([Intel XE#6740]) +3 other tests abort
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-7/igt@kms_hdr@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@kms_hdr@[email protected]

* igt@kms_joiner@basic-big-joiner:
- shard-bmg: NOTRUN -> [SKIP][38] ([Intel XE#6901])
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_joiner@basic-max-non-joiner:
- shard-bmg: NOTRUN -> [SKIP][39] ([Intel XE#4298])
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]

* igt@kms_pipe_stress@stress-xrgb8888-yftiled:
- shard-bmg: NOTRUN -> [SKIP][40] ([Intel XE#6912])
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_pipe_stress@stress-xrgb8888-ytiled:
- shard-bmg: NOTRUN -> [SKIP][41] ([Intel XE#4329] / [Intel XE#6912])
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]

* igt@kms_plane_multiple@2x-tiling-yf:
- shard-bmg: NOTRUN -> [SKIP][42] ([Intel XE#5021])
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75:
- shard-bmg: NOTRUN -> [SKIP][43] ([Intel XE#6886]) +4 other tests skip
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75.html

* igt@kms_pm_backlight@fade-with-dpms:
- shard-bmg: NOTRUN -> [SKIP][44] ([Intel XE#870])
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@[email protected]

* igt@kms_pm_rpm@dpms-mode-unset-lpsp:
- shard-bmg: NOTRUN -> [SKIP][45] ([Intel XE#1439] / [Intel XE#836])
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_pm_rpm@modeset-lpsp-stress:
- shard-bmg: NOTRUN -> [SKIP][46] ([Intel XE#1439] / [Intel XE#3141] / [Intel XE#836])
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_pm_rpm@package-g7:
- shard-bmg: NOTRUN -> [SKIP][47] ([Intel XE#6814])
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_psr2_sf@psr2-overlay-plane-move-continuous-exceed-fully-sf:
- shard-bmg: NOTRUN -> [SKIP][48] ([Intel XE#1406] / [Intel XE#1489]) +9 other tests skip
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@kms_psr2_sf@psr2-overlay-plane-move-continuous-exceed-fully-sf.html

* igt@kms_psr2_su@page_flip-p010:
- shard-bmg: NOTRUN -> [SKIP][49] ([Intel XE#1406] / [Intel XE#2387])
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@kms_psr2_su@page_flip-p010.html

* igt@kms_psr@psr-primary-page-flip:
- shard-bmg: NOTRUN -> [SKIP][50] ([Intel XE#1406] / [Intel XE#2234] / [Intel XE#2850]) +10 other tests skip
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
- shard-bmg: NOTRUN -> [SKIP][51] ([Intel XE#1406] / [Intel XE#2414])
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@[email protected]

* igt@kms_rotation_crc@primary-rotation-90:
- shard-bmg: NOTRUN -> [SKIP][52] ([Intel XE#3414] / [Intel XE#3904]) +1 other test skip
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@kms_rotation_crc@primary-y-tiled-reflect-x-0:
- shard-bmg: NOTRUN -> [SKIP][53] ([Intel XE#2330]) +1 other test skip
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_scaling_modes@scaling-mode-center:
- shard-bmg: NOTRUN -> [SKIP][54] ([Intel XE#2413])
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]

* igt@kms_sharpness_filter@filter-modifiers:
- shard-bmg: NOTRUN -> [SKIP][55] ([Intel XE#6503]) +1 other test skip
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@kms_vrr@flip-suspend:
- shard-bmg: NOTRUN -> [SKIP][56] ([Intel XE#1499]) +1 other test skip
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@[email protected]

* igt@testdisplay:
- shard-bmg: [PASS][57] -> [ABORT][58] ([Intel XE#6740] / [Intel XE#6976])
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-10/[email protected]
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/[email protected]

* igt@xe_eudebug@basic-exec-queues:
- shard-bmg: NOTRUN -> [SKIP][59] ([Intel XE#4837]) +7 other tests skip
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@[email protected]

* igt@xe_eudebug_online@stopped-thread:
- shard-bmg: NOTRUN -> [SKIP][60] ([Intel XE#4837] / [Intel XE#6665]) +7 other tests skip
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@xe_exec_basic@multigpu-once-bindexecqueue-rebind:
- shard-bmg: NOTRUN -> [SKIP][61] ([Intel XE#2322]) +8 other tests skip
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@xe_exec_multi_queue@one-queue-preempt-mode-close-fd-smem:
- shard-bmg: NOTRUN -> [SKIP][62] ([Intel XE#6874]) +30 other tests skip
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@xe_exec_system_allocator@many-64k-mmap-new-huge:
- shard-bmg: NOTRUN -> [SKIP][63] ([Intel XE#5007]) +1 other test skip
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@xe_exec_system_allocator@many-execqueues-mmap-huge-nomemset:
- shard-bmg: NOTRUN -> [SKIP][64] ([Intel XE#4943]) +24 other tests skip
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@xe_exec_system_allocator@many-stride-new-prefetch:
- shard-bmg: NOTRUN -> [INCOMPLETE][65] ([Intel XE#7098])
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@xe_live_ktest@xe_eudebug:
- shard-bmg: NOTRUN -> [SKIP][66] ([Intel XE#2833])
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@xe_live_ktest@xe_eudebug.html

* igt@xe_media_fill@media-fill:
- shard-bmg: NOTRUN -> [SKIP][67] ([Intel XE#2459] / [Intel XE#2596])
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@xe_multigpu_svm@mgpu-migration-prefetch:
- shard-bmg: NOTRUN -> [SKIP][68] ([Intel XE#6964]) +2 other tests skip
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@xe_pat@pat-index-xehpc:
- shard-bmg: NOTRUN -> [SKIP][69] ([Intel XE#1420])
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]

* igt@xe_pm@s2idle-d3cold-basic-exec:
- shard-bmg: NOTRUN -> [SKIP][70] ([Intel XE#2284]) +1 other test skip
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]

* igt@xe_pxp@pxp-stale-bo-exec-post-termination-irq:
- shard-bmg: NOTRUN -> [SKIP][71] ([Intel XE#4733]) +2 other tests skip
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

* igt@xe_query@multigpu-query-invalid-cs-cycles:
- shard-bmg: NOTRUN -> [SKIP][72] ([Intel XE#944]) +2 other tests skip
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

#### Possible fixes ####

* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1:
- shard-lnl: [FAIL][73] ([Intel XE#301]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-lnl-4/igt@kms_flip@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-lnl-4/igt@kms_flip@[email protected]

* igt@xe_module_load@load:
- shard-bmg: ([ABORT][75], [PASS][76], [PASS][77], [PASS][78], [PASS][79], [PASS][80], [PASS][81], [PASS][82], [PASS][83], [PASS][84], [PASS][85], [PASS][86], [PASS][87], [PASS][88], [PASS][89], [PASS][90], [PASS][91], [PASS][92], [PASS][93], [ABORT][94], [ABORT][95], [PASS][96], [PASS][97]) ([Intel XE#7083]) -> ([PASS][98], [PASS][99], [PASS][100], [PASS][101], [PASS][102], [PASS][103], [PASS][104], [PASS][105], [PASS][106], [PASS][107], [PASS][108], [PASS][109], [PASS][110], [PASS][111], [PASS][112], [PASS][113], [PASS][114], [PASS][115], [PASS][116], [PASS][117], [PASS][118], [PASS][119], [PASS][120], [PASS][121], [PASS][122])
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-6/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-3/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-2/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-3/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-1/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-1/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-1/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-10/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-9/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-9/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-9/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-1/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-10/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-2/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-8/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-8/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-7/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-8/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-7/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-6/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-6/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-10/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-bmg-7/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-1/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-1/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-1/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-3/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-1/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-2/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-3/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-3/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-8/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-10/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-8/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-8/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-8/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-7/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-bmg-9/igt@[email protected]

#### Warnings ####

* igt@xe_exec_system_allocator@twice-large-mmap-free-nomemset:
- shard-lnl: [DMESG-WARN][123] ([Intel XE#7063]) -> [DMESG-WARN][124] ([Intel XE#4537] / [Intel XE#7063])
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-lnl-8/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-lnl-2/igt@[email protected]

* igt@xe_pat@pat-sanity:
- shard-lnl: [DMESG-WARN][125] ([Intel XE#4537] / [Intel XE#7063]) -> [DMESG-WARN][126] ([Intel XE#7063])
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a/shard-lnl-8/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/shard-lnl-2/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406
[Intel XE#1420]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1420
[Intel XE#1439]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1439
[Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
[Intel XE#1499]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1499
[Intel XE#2049]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2049
[Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234
[Intel XE#2244]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2244
[Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
[Intel XE#2284]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2284
[Intel XE#2286]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2286
[Intel XE#2293]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2293
[Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
[Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
[Intel XE#2314]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2314
[Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
[Intel XE#2321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2321
[Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
[Intel XE#2325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2325
[Intel XE#2327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2327
[Intel XE#2328]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2328
[Intel XE#2330]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2330
[Intel XE#2350]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2350
[Intel XE#2374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2374
[Intel XE#2375]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2375
[Intel XE#2380]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2380
[Intel XE#2387]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2387
[Intel XE#2390]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2390
[Intel XE#2413]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2413
[Intel XE#2414]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2414
[Intel XE#2459]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2459
[Intel XE#2596]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2596
[Intel XE#2597]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2597
[Intel XE#2652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2652
[Intel XE#2724]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2724
[Intel XE#2833]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2833
[Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
[Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
[Intel XE#2894]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2894
[Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
[Intel XE#3141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3141
[Intel XE#3304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3304
[Intel XE#3414]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3414
[Intel XE#3432]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3432
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#3904]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3904
[Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
[Intel XE#4298]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4298
[Intel XE#4329]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4329
[Intel XE#4354]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4354
[Intel XE#4422]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4422
[Intel XE#4537]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4537
[Intel XE#4733]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4733
[Intel XE#4837]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4837
[Intel XE#4943]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4943
[Intel XE#5007]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5007
[Intel XE#5021]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5021
[Intel XE#6503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6503
[Intel XE#6665]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6665
[Intel XE#6740]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6740
[Intel XE#6814]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6814
[Intel XE#6874]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6874
[Intel XE#6886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6886
[Intel XE#6901]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6901
[Intel XE#6912]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6912
[Intel XE#6964]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6964
[Intel XE#6974]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6974
[Intel XE#6976]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6976
[Intel XE#7059]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7059
[Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
[Intel XE#7063]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7063
[Intel XE#7083]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7083
[Intel XE#7098]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7098
[Intel XE#787]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/787
[Intel XE#836]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/836
[Intel XE#870]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/870
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944

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

* Linux: xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a -> xe-pw-159119v7

IGT_8704: 8704
xe-4395-278a33d3977124821c19b51fb88d9d651b4fe40a: 278a33d3977124821c19b51fb88d9d651b4fe40a
xe-pw-159119v7: 159119v7

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v7/index.html