Enable THP support in drm_pagemap
Subsystems (16)
v5 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
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 | 20 ++- 9 files changed, 180 insertions(+), 39 deletions(-)
Signature · 1 line
2.43.0
PATCH v5 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.
--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)
arch/powerpc/kvm/book3s_hv_uvmem.c +1 -1
@@ -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
@@ -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
@@ -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, zdd->dpagemap->pagemap,0 ); }/**
drivers/gpu/drm/nouveau/nouveau_dmem.c +1 -1
@@ -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
@@ -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
@@ -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 +19 -1
@@ -477,10 +477,28 @@ 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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ +#ifdef NR_PAGES_IN_LARGE_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
Andrew Morton
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 7 lines · On Wed, 14 Jan 2026 20:19:52 +0100 Francois Dugast <[email protected]>…
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.
Thanks. What are the worst-case userspace-visible effects of the bug?
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 11 lines · Andrew Morton
Quoted 7 lines · On Wed, 14 Jan 2026 20:19:52 +0100 Francois Dugast <[email protected]>…
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks. What are the worst-case userspace-visible effects of the bug?
If you reallocate a subset of pages from what was originally a large device folio, the pgmap mapping becomes invalid because it was overwritten by the compound head, and this can crash the kernel.
Alternatively, consider the case where the original folio had an order of 9 and _nr_pages was set. If you then reallocate the folio plus one as an individual page, the flags would still have PG_locked set, causing a hang the next time you try to lock the page.
This is pretty bad if drivers implement a buddy allocator for device pages (Xe does; Nouveau doesn’t, which is why they haven’t hit this issue). Only Nouveau enables large device pages in 6.19 but probably best to have kernel flying around with known issues.
Matt
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 11 lines · Matthew Brost
Quoted 10 lines · Andrew Morton
Quoted 7 lines · On Wed, 14 Jan 2026 20:19:52 +0100 Francois Dugast <[email protected]>…
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.
Quoted 8 lines
Quoted 1 line
Thanks. What are the worst-case userspace-visible effects of the bug?
If you reallocate a subset of pages from what was originally a large device folio, the pgmap mapping becomes invalid because it was overwritten by the compound head, and this can crash the kernel.
Alternatively, consider the case where the original folio had an order of 9 and
_nr_pageswas set. If you then reallocate the folio plus one as
s/_nr_pages/the order was encoded the page flags.
Not clearing _nr_pages is probably bad too, not sure what the side affect of that is, but it can't be good.
Quoted 7 lines
an individual page, the flags would still have
PG_lockedset, causing a hang the next time you try to lock the page.This is pretty bad if drivers implement a buddy allocator for device pages (Xe does; Nouveau doesn’t, which is why they haven’t hit this issue). Only Nouveau enables large device pages in 6.19 but probably best to have kernel flying around with known issues.
s/best to have kernel/best to not have kernels
Matt
Quoted 2 lines
Matt
Andrew Morton
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 18 lines · On Wed, 14 Jan 2026 15:51:16 -0800 Matthew Brost <[email protected]>…
Quoted 17 lines · Matthew Brost
Quoted 11 lines · Andrew Morton
Quoted 7 lines · On Wed, 14 Jan 2026 20:19:52 +0100 Francois Dugast <[email protected]>…
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks. What are the worst-case userspace-visible effects of the bug?
If you reallocate a subset of pages from what was originally a large device folio, the pgmap mapping becomes invalid because it was overwritten by the compound head, and this can crash the kernel.
Quoted 9 lines
Quoted 2 lines
Alternatively, consider the case where the original folio had an order of 9 and
_nr_pageswas set. If you then reallocate the folio plus one ass/_nr_pages/the order was encoded the page flags.
...
s/best to have kernel/best to not have kernels
Great, thanks. I pasted all the above into the changelog to help explain our reasons. I'll retain the patch in mm-hotfixes, targeting 6.19-rcX. The remainder of the series is DRM stuff, NotMyProblem. I assume that getting this into 6.19-rcX is helpful to DRM - if not, and if taking this via the DRM tree is preferable then let's discuss.
Can reviewers please take a look at this reasonably promptly?
btw, this patch uses
+ struct folio *new_folio = (struct folio *)new_page;
Was page_folio() unsuitable?
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 27 lines · Andrew Morton
Quoted 25 lines · On Wed, 14 Jan 2026 15:51:16 -0800 Matthew Brost <[email protected]>…
Quoted 11 lines · Matthew Brost
Quoted 10 lines · Andrew Morton
Quoted 7 lines · On Wed, 14 Jan 2026 20:19:52 +0100 Francois Dugast <[email protected]>…
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Quoted 8 lines
Quoted 1 line
Thanks. What are the worst-case userspace-visible effects of the bug?
If you reallocate a subset of pages from what was originally a large device folio, the pgmap mapping becomes invalid because it was overwritten by the compound head, and this can crash the kernel.
Alternatively, consider the case where the original folio had an order of 9 and
_nr_pageswas set. If you then reallocate the folio plus one ass/_nr_pages/the order was encoded the page flags.
...
Quoted 9 lines
Quoted 2 lines
s/best to have kernel/best to not have kernels
Great, thanks. I pasted all the above into the changelog to help explain our reasons. I'll retain the patch in mm-hotfixes, targeting 6.19-rcX. The remainder of the series is DRM stuff, NotMyProblem. I assume that getting this into 6.19-rcX is helpful to DRM - if not, and if taking this via the DRM tree is preferable then let's discuss.
I would prefer to take this through DRM since our window for 7.0 closes earlier than the rest of Linux (typically this Friday), which makes it easier for me to merge the other four patches and include them in the next PR. If we can't take it through DRM, I'm sure we can figure something out - new as a maintainer here, so still figuring out all DRM flows.
Quoted 9 lines
Can reviewers please take a look at this reasonably promptly?
btw, this patch uses
mm/memremap.c +1
-0+struct folio *new_folio = (struct folio *)new_page;Was
page_folio()unsuitable?
The compound head might be pointing somewhere else here, and we are trying to clear the metadata from new_page up to order << 1. So we explictly do not want to use page_folio here.
Matt
Re: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
In reply to Francois DugastQuoted 168 lines · Francois Dugast
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +4
-1@@ -477,10 +477,28 @@ 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;
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 494
Quoted 10 lines
mm/memremap.c +8
-0+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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ +#ifdef NR_PAGES_IN_LARGE_FOLIO + ((struct folio *)(new_page -1 ))->_nr_pages =0 ; +#endif
Not sure I follow the new_page - 1? What happens when order is 0?
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 504
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().
I wish we did not have to pass in the pgmap, but I can see why we can't rely on the existing pgmap
Balbir
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 172 lines · Balbir Singh
Quoted 171 lines · Francois Dugast
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +5
-1@@ -477,10 +477,28 @@ 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 );
Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 494
Quoted 7 lines
mm/memremap.c +7
-0+for (i =0 ; i < (1UL << order); ++i, ++new_page) { +struct folio *new_folio = (struct folio *)new_page; + + new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ +#ifdef NR_PAGES_IN_LARGE_FOLIO + ((struct folio *)(new_page -1 ))->_nr_pages =0 ; +#endif Not sure I follow the
new_page- 1? What happens when order is 0?
This is just to get _nr_pages in the new_page as folio->_nr_pages is in the folio's second page. So it just modifying itself. I agree this is a bit goofy but couldn't think of a better way to do this. In the page structure this is the memcg_data field on most builds.
Matt
Quoted 16 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 504
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(). I wish we did not have to pass in the pgmap, but I can see why we can't rely on the existing pgmap
Balbir
Re: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
On 2026-01-15 at 13:41 +1100, Matthew Brost <[email protected]> wrote...
Quoted 184 lines · Balbir Singh
Quoted 172 lines · Francois Dugast
Quoted 171 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +5
-1@@ -477,10 +477,28 @@ 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 );Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 494
Quoted 7 lines
mm/memremap.c +7
-0+for (i =0 ; i < (1UL << order); ++i, ++new_page) { +struct folio *new_folio = (struct folio *)new_page; + + new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ +#ifdef NR_PAGES_IN_LARGE_FOLIO + ((struct folio *)(new_page -1 ))->_nr_pages =0 ; +#endif Not sure I follow the
new_page- 1? What happens when order is 0?
Quoted 4 lines
This is just to get
_nr_pagesin thenew_pageasfolio->_nr_pagesis in the folio's second page. So it just modifying itself. I agree this is a bit goofy but couldn't think of a better way to do this. In the page structure this is thememcg_datafield on most builds.
I still don't follow - page == new_page == new_folio so isn't &new_page->_nr_pages the same as &new_folio->_nr_pages? I don't understand why we would care about the a second page here.
- Alistair
Quoted 19 lines
Matt
Quoted 16 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 504
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(). I wish we did not have to pass in the pgmap, but I can see why we can't rely on the existing pgmap
Balbir
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 185 lines · Alistair Popple
On 2026-01-15 at 13:41 +1100, Matthew Brost <[email protected]> wrote...
Quoted 184 lines · Balbir Singh
Quoted 182 lines · Francois Dugast
Quoted 168 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +4
-1@@ -477,10 +477,28 @@ 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;mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 494
Quoted 10 lines
mm/memremap.c +8
-0+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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ +#ifdef NR_PAGES_IN_LARGE_FOLIO + ((struct folio *)(new_page -1 ))->_nr_pages =0 ; +#endif Not sure I follow the
new_page- 1? What happens when order is 0?
Quoted 9 lines
Quoted 4 lines
This is just to get
_nr_pagesin thenew_pageasfolio->_nr_pagesis in the folio's second page. So it just modifying itself. I agree this is a bit goofy but couldn't think of a better way to do this. In the page structure this is thememcg_datafield on most builds.I still don't follow - page ==
new_page==new_folioso isn't&new_page->_nr_pagesthe same as&new_folio->_nr_pages? I don't understand why we would care about the a second page here.
I just replied to another email—this is quite confusing, but let me try here...
Memory layout of a folio:
page0
page1 <-- this is where _nr_pages is
...
So ((struct folio *)(new_page - 1))->_nr_pages is pointing to memory at new_page but using casting to determine the _nr_pages location.
At this point, we have no idea if _nr_pages in new_page was set by a prior larger folio, so we just blindly clear it, which is safe. This is no different than what folio_reset_order() does; we just do it for every single page’s memory within the orderi passed in.
Matt
Quoted 21 lines
- Alistair
Quoted 19 lines
Matt
Quoted 16 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 504
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(). I wish we did not have to pass in the pgmap, but I can see why we can't rely on the existing pgmap
Balbir
Andrew Morton
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
In reply to Francois DugastQuoted 13 lines · On Wed, 14 Jan 2026 20:19:52 +0100 Francois Dugast <[email protected]>…
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.
drivers/gpu/drm/drm_pagemap.c static void drm_pagemap_get_devmem_page(struct page *page, · line 205
Quoted 6 lines
drivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }
drivers/gpu/drm/drm_pagemap.c:200:40: error: 'struct drm_pagemap_zdd' has no member named 'dpagemap'
I guess this was accidentally fixed in a later patch?
Please let's decide whether to fast-track the [1/N] fix into mainline and if so, prepare something which compiles!
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 24 lines · Andrew Morton
Quoted 13 lines · On Wed, 14 Jan 2026 20:19:52 +0100 Francois Dugast <[email protected]>…
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.drivers/gpu/drm/drm_pagemap.c static void drm_pagemap_get_devmem_page(struct page *page, · line 205
Quoted 6 lines
drivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }
drivers/gpu/drm/drm_pagemap.c:200:40: error: 'structdrm_pagemap_zdd' has no member named 'dpagemap'
Quoted 2 lines
I guess this was accidentally fixed in a later patch?
Ah, no. This is because we merged some in drm-tip which is not 6.19, this is based on the drm-tip branch.
Quoted 2 lines
Please let's decide whether to fast-track the [1/N] fix into mainline and if so, prepare something which compiles!
Maybe we just take this through the MM repo then? I suppose I should send out patch which applies to the MM repo? I just cloned that repo.
Matt
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 28 lines · Matthew Brost
Quoted 24 lines · Andrew Morton
Quoted 13 lines · On Wed, 14 Jan 2026 20:19:52 +0100 Francois Dugast <[email protected]>…
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.drivers/gpu/drm/drm_pagemap.c static void drm_pagemap_get_devmem_page(struct page *page, · line 205
Quoted 6 lines
drivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }
drivers/gpu/drm/drm_pagemap.c:200:40: error: 'structdrm_pagemap_zdd' has no member named 'dpagemap'Quoted 2 lines
I guess this was accidentally fixed in a later patch?
Quoted 9 lines
Ah, no. This is because we merged some in drm-tip which is not 6.19, this is based on the drm-tip branch.
Quoted 2 lines
Please let's decide whether to fast-track the [1/N] fix into mainline and if so, prepare something which compiles!
Maybe we just take this through the MM repo then? I suppose I should send out patch which applies to the MM repo? I just cloned that repo.
Sorry, typing to fast. I believe have a patch structure that applies to 6.19, MM branches, and drm-tip. Just need to run CI on 3 branches :).
Matt
Quoted 1 line
Matt
Re: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
In reply to Francois DugastOn 2026-01-15 at 06:19 +1100, Francois Dugast <[email protected]> wrote...
Quoted 9 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.
Thanks for fixing, a couple of minor comments below.
Quoted 155 lines
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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +2
-1@@ -477,10 +477,28 @@ 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)
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 491
Quoted 10 lines
mm/memremap.c +7
-0{ +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->flags.f &= ~0xffUL ;/* Clear possible order, page head */
This seems odd to me, mainly due to the "magic" number. Why not just clear the flags entirely? Or at least explicitly just clear the flags you care about which would remove the need for the comment and should let you use the proper PageFlag functions.
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 497
Quoted 6 lines
mm/memremap.c +6
-0+#ifdef NR_PAGES_IN_LARGE_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 would be nice if the FS DAX code actually used this as well. Is there a reason that change was dropped from the series?
Quoted 10 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(). Signature · 1 line
2.43.0
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 174 lines · Alistair Popple
On 2026-01-15 at 06:19 +1100, Francois Dugast <[email protected]> wrote...
Quoted 9 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks for fixing, a couple of minor comments below.
Quoted 161 lines
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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +5
-1@@ -477,10 +477,28 @@ 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 );
Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 491
Quoted 4 lines
mm/memremap.c +4
-0+for (i =0 ; i < (1UL << order); ++i, ++new_page) { +struct folio *new_folio = (struct folio *)new_page; + + new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ This seems odd to me, mainly due to the "magic" number. Why not just clear the flags entirely? Or at least explicitly just clear the flags you care about which would remove the need for the comment and should let you use the proper PageFlag functions.
I'm copying this from folio_reset_order [1]. My paranoia about touching anything related to struct page is high, so I did the same thing folio_reset_order does here.
[1] https://elixir.bootlin.com/linux/v6.18.5/source/include/linux/mm.h#L1075
Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 497
Quoted 6 lines
mm/memremap.c +6
-0+#ifdef NR_PAGES_IN_LARGE_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 would be nice if the FS DAX code actually used this as well. Is there a reason that change was dropped from the series?
I don't have a test platform for FS DAX. In prior revisions, I was just moving existing FS DAX code to a helper, which I felt confident about.
This revision is slightly different, and I don't feel comfortable modifying FS DAX code without a test platform. I agree we should update FS DAX, but that should be done in a follow-up with coordinated testing.
Matt
Quoted 10 lines
Quoted 10 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(). Signature · 1 line
2.43.0
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 186 lines · Matthew Brost
Quoted 174 lines · Alistair Popple
On 2026-01-15 at 06:19 +1100, Francois Dugast <[email protected]> wrote...
Quoted 9 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks for fixing, a couple of minor comments below.
Quoted 161 lines
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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +5
-1@@ -477,10 +477,28 @@ 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 );Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 491
Quoted 4 lines
mm/memremap.c +4
-0+for (i =0 ; i < (1UL << order); ++i, ++new_page) { +struct folio *new_folio = (struct folio *)new_page; + + new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ This seems odd to me, mainly due to the "magic" number. Why not just clear the flags entirely? Or at least explicitly just clear the flags you care about which would remove the need for the comment and should let you use the proper PageFlag functions.
Quoted 6 lines
I'm copying this from
folio_reset_order[1]. My paranoia about touching anything related to struct page is high, so I did the same thingfolio_reset_orderdoes here.[1] https://elixir.bootlin.com/linux/v6.18.5/source/include/linux/mm.h#L1075
This immediately hangs my first SVM test...
mm/memremap.c +1 -1
@@ -488,7 +488,7 @@ void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,for (i =0 ; i < (1UL << order); ++i, ++new_page) {struct folio *new_folio = (struct folio *)new_page; - new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ + new_page->flags.f =0 ;#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page -1 ))->_nr_pages =0 ;#endif
I can walk through exactly which flags need to be cleared, but my feeling is that likely any flag that the order field overloads and can possibly encode should be cleared—so bits 0–7 based on the existing code.
How about in a follow-up we normalize setting / clearing the order flag field with a #define and an inline helper?
Matt
Quoted 30 lines
Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 497
Quoted 6 lines
mm/memremap.c +6
-0+#ifdef NR_PAGES_IN_LARGE_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 would be nice if the FS DAX code actually used this as well. Is there a reason that change was dropped from the series?
I don't have a test platform for FS DAX. In prior revisions, I was just moving existing FS DAX code to a helper, which I felt confident about.
This revision is slightly different, and I don't feel comfortable modifying FS DAX code without a test platform. I agree we should update FS DAX, but that should be done in a follow-up with coordinated testing.
Matt
Quoted 10 lines
Quoted 10 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(). Signature · 1 line
2.43.0
Re: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
On 2026-01-15 at 17:18 +1100, Matthew Brost <[email protected]> wrote...
Quoted 187 lines · Matthew Brost
Quoted 186 lines · Alistair Popple
Quoted 184 lines
On 2026-01-15 at 06:19 +1100, Francois Dugast <[email protected]> wrote...
Quoted 9 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks for fixing, a couple of minor comments below.
Quoted 155 lines
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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +2
-1@@ -477,10 +477,28 @@ 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)mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 491
Quoted 10 lines
mm/memremap.c +7
-0{ +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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ This seems odd to me, mainly due to the "magic" number. Why not just clear the flags entirely? Or at least explicitly just clear the flags you care about which would remove the need for the comment and should let you use the proper PageFlag functions.
Quoted 3 lines
Quoted 3 lines
I'm copying this from
folio_reset_order[1]. My paranoia about touching anything related to struct page is high, so I did the same thingfolio_reset_orderdoes here.
So why not just use folio_reset_order() below?
Quoted 11 lines
Quoted 3 lines
[1] https://elixir.bootlin.com/linux/v6.18.5/source/include/linux/mm.h#L1075
This immediately hangs my first SVM test...
mm/memremap.c +0
-0
mm/memremap.c void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap, · line 493
Quoted 7 lines
mm/memremap.c +1
-1@@ -488,7 +488,7 @@ void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,for (i =0 ; i < (1UL << order); ++i, ++new_page) {struct folio *new_folio = (struct folio *)new_page; - new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ + new_page->flags.f =0 ;#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page -1 ))->_nr_pages =0 ;
This seems wrong to me - I saw your reply to Balbir but for an order-0 page isn't this going to access a completely different, possibly already allocated, page?
Quoted 9 lines
mm/memremap.c +0
-0#endif I can walk through exactly which flags need to be cleared, but my feeling is that likely any flag that the order field overloads and can possibly encode should be cleared—so bits 0–7 based on the existing code.
How about in a follow-up we normalize setting / clearing the order flag field with a #define and an inline helper?
Ie: Would something like the following work:
ClearPageHead(new_page); clear_compound_head(new_page); folio_reset_order(new_folio);
Which would also deal with setting _nr_pages.
Quoted 19 lines
Matt
Quoted 17 lines
Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 497
Quoted 6 lines
mm/memremap.c +6
-0+#ifdef NR_PAGES_IN_LARGE_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 would be nice if the FS DAX code actually used this as well. Is there a reason that change was dropped from the series?
I don't have a test platform for FS DAX. In prior revisions, I was just moving existing FS DAX code to a helper, which I felt confident about.
This revision is slightly different, and I don't feel comfortable modifying FS DAX code without a test platform. I agree we should update FS DAX, but that should be done in a follow-up with coordinated testing.
Fair enough, I figured something like this might be your answer :-) You could update it and ask people with access to such a system to test it though (unfortunately my setup has bit-rotted beyond repair).
But I'm ok leaving to for a future change.
Quoted 13 lines
Quoted 13 lines
Matt
Quoted 10 lines
Quoted 10 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(). Signature · 1 line
2.43.0
Re: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 227 lines · Alistair Popple
On 2026-01-15 at 17:18 +1100, Matthew Brost <[email protected]> wrote...
Quoted 187 lines · Matthew Brost
Quoted 186 lines · Alistair Popple
Quoted 184 lines
On 2026-01-15 at 06:19 +1100, Francois Dugast <[email protected]> wrote...
Quoted 9 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks for fixing, a couple of minor comments below.
Quoted 155 lines
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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +2
-1@@ -477,10 +477,28 @@ 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)mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 491
Quoted 10 lines
mm/memremap.c +7
-0{ +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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ This seems odd to me, mainly due to the "magic" number. Why not just clear the flags entirely? Or at least explicitly just clear the flags you care about which would remove the need for the comment and should let you use the proper PageFlag functions.
Quoted 3 lines
Quoted 3 lines
I'm copying this from
folio_reset_order[1]. My paranoia about touching anything related to struct page is high, so I did the same thingfolio_reset_orderdoes here.So why not just use
folio_reset_order()below?Quoted 11 lines
Quoted 3 lines
[1] https://elixir.bootlin.com/linux/v6.18.5/source/include/linux/mm.h#L1075
This immediately hangs my first SVM test...
mm/memremap.c +0
-0mm/memremap.c void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap, · line 493
Quoted 7 lines
mm/memremap.c +1
-1@@ -488,7 +488,7 @@ void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,for (i =0 ; i < (1UL << order); ++i, ++new_page) {struct folio *new_folio = (struct folio *)new_page; - new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ + new_page->flags.f =0 ;#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page -1 ))->_nr_pages =0 ;This seems wrong to me - I saw your reply to Balbir but for an order-0 page isn't this going to access a completely different, possibly already allocated, page?
Quoted 9 lines
mm/memremap.c +0
-0#endif I can walk through exactly which flags need to be cleared, but my feeling is that likely any flag that the order field overloads and can possibly encode should be cleared—so bits 0–7 based on the existing code.
How about in a follow-up we normalize setting / clearing the order flag field with a #define and an inline helper?
Quoted 8 lines
Ie: Would something like the following work:
ClearPageHead(new_page); clear_compound_head(new_page); folio_reset_order(new_folio);Which would also deal with setting
_nr_pages.
I thought about this, but folio_reset_order works only for larger folios otherwise there is a VM_WARN_ON.
Quoted 39 lines
Quoted 19 lines
Matt
Quoted 17 lines
Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 497
Quoted 6 lines
mm/memremap.c +6
-0+#ifdef NR_PAGES_IN_LARGE_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 would be nice if the FS DAX code actually used this as well. Is there a reason that change was dropped from the series?
I don't have a test platform for FS DAX. In prior revisions, I was just moving existing FS DAX code to a helper, which I felt confident about.
This revision is slightly different, and I don't feel comfortable modifying FS DAX code without a test platform. I agree we should update FS DAX, but that should be done in a follow-up with coordinated testing.
Fair enough, I figured something like this might be your answer :-) You could update it and ask people with access to such a system to test it though (unfortunately my setup has bit-rotted beyond repair).
But I'm ok leaving to for a future change.
Quoted 13 lines
Quoted 13 lines
Matt
Quoted 10 lines
Quoted 10 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(). Signature · 1 line
2.43.0
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
In reply to Alistair PoppleQuoted 208 lines · Alistair Popple
On 2026-01-15 at 17:18 +1100, Matthew Brost <[email protected]> wrote...
Quoted 187 lines · Matthew Brost
Quoted 186 lines · Alistair Popple
Quoted 184 lines
On 2026-01-15 at 06:19 +1100, Francois Dugast <[email protected]> wrote...
Quoted 9 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks for fixing, a couple of minor comments below.
Quoted 155 lines
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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +2
-1@@ -477,10 +477,28 @@ 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)mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 491
Quoted 10 lines
mm/memremap.c +7
-0{ +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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ This seems odd to me, mainly due to the "magic" number. Why not just clear the flags entirely? Or at least explicitly just clear the flags you care about which would remove the need for the comment and should let you use the proper PageFlag functions.
Quoted 3 lines
Quoted 3 lines
I'm copying this from
folio_reset_order[1]. My paranoia about touching anything related to struct page is high, so I did the same thingfolio_reset_orderdoes here.So why not just use
folio_reset_order()below?Quoted 14 lines
Quoted 3 lines
[1] https://elixir.bootlin.com/linux/v6.18.5/source/include/linux/mm.h#L1075
This immediately hangs my first SVM test...
mm/memremap.c +0
-0@@ -488,7 +488,7 @@ void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,for (i =0 ; i < (1UL << order); ++i, ++new_page) {struct folio *new_folio = (struct folio *)new_page;
Quoted 9 lines
mm/memremap.c void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap, · line 493
Quoted 4 lines
mm/memremap.c +1
-1- new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ + new_page->flags.f =0 ;#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page -1 ))->_nr_pages =0 ;This seems wrong to me - I saw your reply to Balbir but for an order-0 page isn't this going to access a completely different, possibly already allocated, page?
No — it accesses itself (new_page). It just uses some odd memory tricks for this, which I agree isn’t the best thing I’ve ever written, but it was the least-worst idea I had. I didn’t design the folio/page field aliasing; I understand why it exists, but it still makes my head hurt.
folio->_nr_pages is page + 1 for reference (new_page after this math). Again, if I touched this memory directly in new_page, it’s most likely memcg_data, but that is hidden behind a Kconfig.
This just blindly implementing part of folio_reset_order which clears _nr_pages.
Quoted 7 lines
Quoted 7 lines
mm/memremap.c +0
-0#endif I can walk through exactly which flags need to be cleared, but my feeling is that likely any flag that the order field overloads and can possibly encode should be cleared—so bits 0–7 based on the existing code.
Quoted 6 lines
Quoted 2 lines
How about in a follow-up we normalize setting / clearing the order flag field with a #define and an inline helper?
Ie: Would something like the following work:
ClearPageHead(new_page);
Any of these bit could possibly be set the order field in a folio, which modifies page + 1 flags field.
PG_locked, /* Page is locked. Don't touch. */
PG_writeback, /* Page is under writeback */
PG_referenced,
PG_uptodate,
PG_dirty,
PG_lru,
PG_head, /* Must be in bit 6 */
PG_waiters, /* Page has waiters, check its waitqueue. Must be bit #7 and in the same byte as "PG_locked" */
So a common order-9 (2MB) folio would have PG_locked | PG_uptodate set. Now we get stuck on the next page lock because PG_locked is set. Offhand, I don’t know if different orders—which set different bits—cause any nasty issues either. So I figured the safest thing was clear any bits which folio order can set within subsequent page's memory flags like folio_reset_order does.
Quoted 5 lines
clear_compound_head(new_page); folio_reset_order(new_folio);Which would also deal with setting
_nr_pages.
folio_reset_order(new_folio) would set _nr_pages in the memory that is new_page + 1. So let's say that page has a ref count + memcg_data, now that memory is corrupted and will crash the kernel.
All of the above is why is took me multiple hours to write 6 lines of code :).
Quoted 20 lines
Quoted 19 lines
Matt
Quoted 17 lines
Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 497
Quoted 6 lines
mm/memremap.c +6
-0+#ifdef NR_PAGES_IN_LARGE_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 would be nice if the FS DAX code actually used this as well. Is there a reason that change was dropped from the series?
I don't have a test platform for FS DAX. In prior revisions, I was just moving existing FS DAX code to a helper, which I felt confident about.
This revision is slightly different, and I don't feel comfortable modifying FS DAX code without a test platform. I agree we should update FS DAX, but that should be done in a follow-up with coordinated testing.
Quoted 6 lines
Fair enough, I figured something like this might be your answer :-) You could update it and ask people with access to such a system to test it though (unfortunately my setup has bit-rotted beyond repair).
But I'm ok leaving to for a future change.
I did a quick grep in fs/dax.c and don’t see zone_device_page_init called there. It probably could be used if it’s creating compound pages and drop the open-coded reinit when shared == 0, but yeah, that’s not something I can blindly code without testing.
I can try to put something together for people to test soonish.
Matt
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Matt
Quoted 10 lines
Quoted 10 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(). Signature · 1 line
2.43.0
Re: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
On 2026-01-15 at 18:43 +1100, Matthew Brost <[email protected]> wrote...
Quoted 219 lines · Alistair Popple
Quoted 208 lines
On 2026-01-15 at 17:18 +1100, Matthew Brost <[email protected]> wrote...
Quoted 187 lines · Matthew Brost
Quoted 186 lines · Alistair Popple
Quoted 184 lines
On 2026-01-15 at 06:19 +1100, Francois Dugast <[email protected]> wrote...
Quoted 9 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks for fixing, a couple of minor comments below.
Quoted 155 lines
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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +2
-1@@ -477,10 +477,28 @@ 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)mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 491
Quoted 10 lines
mm/memremap.c +7
-0{ +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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ This seems odd to me, mainly due to the "magic" number. Why not just clear the flags entirely? Or at least explicitly just clear the flags you care about which would remove the need for the comment and should let you use the proper PageFlag functions.
Quoted 3 lines
Quoted 3 lines
I'm copying this from
folio_reset_order[1]. My paranoia about touching anything related to struct page is high, so I did the same thingfolio_reset_orderdoes here.So why not just use
folio_reset_order()below?Quoted 14 lines
Quoted 3 lines
[1] https://elixir.bootlin.com/linux/v6.18.5/source/include/linux/mm.h#L1075
This immediately hangs my first SVM test...
mm/memremap.c +0
-0@@ -488,7 +488,7 @@ void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,for (i =0 ; i < (1UL << order); ++i, ++new_page) {struct folio *new_folio = (struct folio *)new_page;Quoted 9 lines
mm/memremap.c void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap, · line 493
Quoted 4 lines
mm/memremap.c +1
-1- new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ + new_page->flags.f =0 ;#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page -1 ))->_nr_pages =0 ;This seems wrong to me - I saw your reply to Balbir but for an order-0 page isn't this going to access a completely different, possibly already allocated, page?
Quoted 4 lines
No — it accesses itself (
new_page). It just uses some odd memory tricks for this, which I agree isn’t the best thing I’ve ever written, but it was the least-worst idea I had. I didn’t design the folio/page field aliasing; I understand why it exists, but it still makes my head hurt.
And obviously mine, because I (was) still not getting it and had typed up a whole response and code walk through to show what was wrong, in the hope it would help settle the misunderstanding. Which it did, because I discovered where I was getting things wrong. But I've left the analysis below because it's probably useful for others following along:
Walking through the code we have:
void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,
unsigned int order)
{
The first argument, page, is the first in a set of 1 << order contiguous struct page. In the simplest case order == 0, meaning this function should only initialise (ie. touch) a single struct page pointer which is passed as the first argument to the function.
struct page *new_page = page;
So now *new_page points to the single struct page we should touch.
unsigned int i;
VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES);
for (i = 0; i < (1UL << order); ++i, ++new_page) {order == 0, so this loop will only execute once.
struct folio *new_folio = (struct folio *)new_page;
new_page still points to the single page we're initialising, and new_folio points to the same page. Ie: &new_folio->page == new_page. There is a hazard here because new_folio->__page_1, __page_2, etc. all point to pages we shouldn't touch.
new_page->flags.f &= ~0xffUL; /* Clear possible order, page head */
Clears the flags, makes sense.
#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page - 1))->_nr_pages = 0;
If we break this down we have:
struct page *tmp_new_page = new_page - 1;
Which is the page before the one we're initialising and shouldn't be touched. Then we cast to a folio:
struct folio *tmp_new_folio = (struct folio *) tmp_new_page;
And reset _nr_pages:
tmp_new_folio->_nr_pages = 0
And now I can see where I was confused - &tmp_new_folio->_nr_pages == &tmp_new_folio->__page_1->memcg_data == &new_page->memcg_data
So after both Balbir, probably yourself, and definitely myself scratching our heads for way too long over this change I think we can conclude that the code as is is way too confusing to merge without a lot more comments :-)
However why go through all this magic in the first place? Why not just treat everything here as a page and just do
new_page->memcg_data = 0
directly? That seems like the more straight forward approach. In fact given all the confusion I wonder if it wouldn't be better to just do memset(new_page, 0, sizeof(*new_page)) and reinitialise everything from scratch.
Quoted 6 lines
folio->_nr_pagesis page + 1 for reference (new_pageafter this math). Again, if I touched this memory directly innew_page, it’s most likelymemcg_data, but that is hidden behind aKconfig.This just blindly implementing part of
folio_reset_orderwhich clears_nr_pages.
Yeah, I get it now. But I think just clearing memcg_data would be the easiest to understand approach, especially if it had a comment explaining that it may have previously been used for _nr_pages.
Quoted 26 lines
Quoted 7 lines
Quoted 7 lines
mm/memremap.c +0
-0#endif I can walk through exactly which flags need to be cleared, but my feeling is that likely any flag that the order field overloads and can possibly encode should be cleared—so bits 0–7 based on the existing code.
Quoted 6 lines
Quoted 2 lines
How about in a follow-up we normalize setting / clearing the order flag field with a #define and an inline helper?
Ie: Would something like the following work:
ClearPageHead(new_page);Any of these bit could possibly be set the order field in a folio, which modifies page + 1 flags field.
PG_locked, /* Page is locked. Don't touch. */
PG_writeback, /* Page is under writeback */
PG_referenced,
PG_uptodate,
PG_dirty,
PG_lru,
PG_head, /* Must be in bit 6 */
PG_waiters, /* Page has waiters, check its waitqueue. Must be bit #7 and in the same byte as "PG_locked" */
Quoted 6 lines
So a common order-9 (2MB) folio would have
PG_locked|PG_uptodateset. Now we get stuck on the next page lock becausePG_lockedis set. Offhand, I don’t know if different orders—which set different bits—cause any nasty issues either. So I figured the safest thing was clear any bits which folio order can set within subsequent page's memory flags likefolio_reset_orderdoes.
Oh, I get the above. I was thinking folio_reset_order() below would clear the flags, but I see the folly there - that resets the flags for the next page.
Quoted 10 lines
Quoted 6 lines
clear_compound_head(new_page); folio_reset_order(new_folio);Which would also deal with setting
_nr_pages.
folio_reset_order(new_folio)would set_nr_pagesin the memory that isnew_page+ 1. So let's say that page has a ref count +memcg_data, now that memory is corrupted and will crash the kernel.
Yep, I just noticed that. Thanks for pointing that out.
Quoted 2 lines
All of the above is why is took me multiple hours to write 6 lines of code :).
And to review :) Good thing we don't get paid per SLOC of code right?
- Alistair
Quoted 49 lines
Quoted 20 lines
Quoted 19 lines
Matt
Quoted 17 lines
Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 497
Quoted 6 lines
mm/memremap.c +6
-0+#ifdef NR_PAGES_IN_LARGE_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 would be nice if the FS DAX code actually used this as well. Is there a reason that change was dropped from the series?
I don't have a test platform for FS DAX. In prior revisions, I was just moving existing FS DAX code to a helper, which I felt confident about.
This revision is slightly different, and I don't feel comfortable modifying FS DAX code without a test platform. I agree we should update FS DAX, but that should be done in a follow-up with coordinated testing.
Quoted 6 lines
Fair enough, I figured something like this might be your answer :-) You could update it and ask people with access to such a system to test it though (unfortunately my setup has bit-rotted beyond repair).
But I'm ok leaving to for a future change.
I did a quick grep in
fs/dax.cand don’t seezone_device_page_initcalled there. It probably could be used if it’s creating compound pages and drop the open-coded reinit when shared == 0, but yeah, that’s not something I can blindly code without testing.I can try to put something together for people to test soonish.
Matt
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Matt
Quoted 10 lines
Quoted 10 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(). Signature · 1 line
2.43.0
Matthew Brost
maintainerRe: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 233 lines · Alistair Popple
On 2026-01-15 at 18:43 +1100, Matthew Brost <[email protected]> wrote...
Quoted 219 lines · Alistair Popple
Quoted 208 lines
On 2026-01-15 at 17:18 +1100, Matthew Brost <[email protected]> wrote...
Quoted 187 lines · Matthew Brost
Quoted 186 lines · Alistair Popple
Quoted 184 lines
On 2026-01-15 at 06:19 +1100, Francois Dugast <[email protected]> wrote...
Quoted 9 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks for fixing, a couple of minor comments below.
Quoted 155 lines
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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +2
-1@@ -477,10 +477,28 @@ 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)mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 491
Quoted 10 lines
mm/memremap.c +7
-0{ +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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ This seems odd to me, mainly due to the "magic" number. Why not just clear the flags entirely? Or at least explicitly just clear the flags you care about which would remove the need for the comment and should let you use the proper PageFlag functions.
Quoted 3 lines
Quoted 3 lines
I'm copying this from
folio_reset_order[1]. My paranoia about touching anything related to struct page is high, so I did the same thingfolio_reset_orderdoes here.So why not just use
folio_reset_order()below?Quoted 14 lines
Quoted 3 lines
[1] https://elixir.bootlin.com/linux/v6.18.5/source/include/linux/mm.h#L1075
This immediately hangs my first SVM test...
mm/memremap.c +0
-0@@ -488,7 +488,7 @@ void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,for (i =0 ; i < (1UL << order); ++i, ++new_page) {struct folio *new_folio = (struct folio *)new_page;Quoted 9 lines
mm/memremap.c void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap, · line 493
Quoted 4 lines
mm/memremap.c +1
-1- new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ + new_page->flags.f =0 ;#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page -1 ))->_nr_pages =0 ;This seems wrong to me - I saw your reply to Balbir but for an order-0 page isn't this going to access a completely different, possibly already allocated, page?
Quoted 4 lines
No — it accesses itself (
new_page). It just uses some odd memory tricks for this, which I agree isn’t the best thing I’ve ever written, but it was the least-worst idea I had. I didn’t design the folio/page field aliasing; I understand why it exists, but it still makes my head hurt.And obviously mine, because I (was) still not getting it and had typed up a whole response and code walk through to show what was wrong, in the hope it would help settle the misunderstanding. Which it did, because I discovered where I was getting things wrong. But I've left the analysis below because it's probably useful for others following along:
Walking through the code we have:
Quoted 8 lines
void zone_device_page_init(struct page *page, struct
dev_pagemap*pgmap,
unsigned int order)
{The first argument, page, is the first in a set of 1 << order contiguous struct page. In the simplest case order == 0, meaning this function should only initialise (ie. touch) a single struct page pointer which is passed as the first argument to the function.
Yes.
Quoted 5 lines
struct page *new_page = page;So now
*new_pagepoints to the single struct page we should touch.
Quoted 8 lines
unsigned int i; VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES); for (i = 0; i < (1UL << order); ++i, ++new_page) {order == 0, so this loop will only execute once.
Yes.
Quoted 7 lines
struct folio *new_folio = (struct folio *)new_page;
new_pagestill points to the single page we're initialising, andnew_foliopoints to the same page. Ie:&new_folio->page==new_page. There is a hazard here becausenew_folio->__page_1,__page_2, etc. all point to pages we shouldn't touch.
Yes.
Quoted 4 lines
new_page->flags.f &= ~0xffUL; /* Clear possible order, page head */Clears the flags, makes sense.
+1
Quoted 10 lines
#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page - 1))->_nr_pages = 0;If we break this down we have:
struct page
*tmp_new_page=new_page- 1;Which is the page before the one we're initialising and shouldn't be touched. Then we cast to a folio:
Quoted 8 lines
struct folio
*tmp_new_folio= (struct folio *)tmp_new_page;And reset
_nr_pages:
tmp_new_folio->_nr_pages= 0And now I can see where I was confused -
&tmp_new_folio->_nr_pages==&tmp_new_folio->__page_1->memcg_data==&new_page->memcg_data
Not 100% right, as _nr_pages is 4 bytes and memcg_data is 8, but the pointer base address is the same.
Quoted 4 lines
So after both Balbir, probably yourself, and definitely myself scratching our heads for way too long over this change I think we can conclude that the code as is is way too confusing to merge without a lot more comments :-)
I think more comments is the way to go. More below.
Quoted 5 lines
However why go through all this magic in the first place? Why not just treat everything here as a page and just do
new_page->memcg_data = 0
Well, memcg_data is 8 bytes and _nr_pages is 4. They also have different #ifdef conditions around each field, etc.
I’ve also seen failures in our testing, and so has François, with the memcg_data change. I wish I had a stack trace to share or explain, but the times I hit the error I didn’t capture the dmesg, and I’ve been having issues with my dev machine today. If I catch the error again, I’ll reply with a stack trace and analysis.
Quoted 4 lines
directly? That seems like the more straight forward approach. In fact given all the confusion I wonder if it wouldn't be better to just do
memset(new_page, 0, sizeof(*new_page))and reinitialise everything from scratch.
I had considered this option too, but I’d be a little concerned about the performance. Reinitializing a zone page/folio is a hot path, as this is typically done in a GPU fault handler. I think adding verbose comments explaining why this works, plus some follow-up helpers, might be the better option.
Quoted 5 lines
Quoted 5 lines
folio->_nr_pagesis page + 1 for reference (new_pageafter this math). Again, if I touched this memory directly innew_page, it’s most likelymemcg_data, but that is hidden behind aKconfig.
Quoted 7 lines
Quoted 2 lines
This just blindly implementing part of
folio_reset_orderwhich clears_nr_pages.Yeah, I get it now. But I think just clearing
memcg_datawould be the easiest to understand approach, especially if it had a comment explaining that it may have previously been used for_nr_pages.
See above — the different sizes, the failure I’m seeing, and the conflicting #ifdefs are why this is not my preferred option.
Quoted 33 lines
Quoted 26 lines
Quoted 7 lines
Quoted 7 lines
mm/memremap.c +0
-0#endif I can walk through exactly which flags need to be cleared, but my feeling is that likely any flag that the order field overloads and can possibly encode should be cleared—so bits 0–7 based on the existing code.
Quoted 6 lines
Quoted 2 lines
How about in a follow-up we normalize setting / clearing the order flag field with a #define and an inline helper?
Ie: Would something like the following work:
ClearPageHead(new_page);Any of these bit could possibly be set the order field in a folio, which modifies page + 1 flags field.
PG_locked, /* Page is locked. Don't touch. */
PG_writeback, /* Page is under writeback */
PG_referenced,
PG_uptodate,
PG_dirty,
PG_lru,
PG_head, /* Must be in bit 6 */
PG_waiters, /* Page has waiters, check its waitqueue. Must be bit #7 and in the same byte as "PG_locked" */Quoted 6 lines
So a common order-9 (2MB) folio would have
PG_locked|PG_uptodateset. Now we get stuck on the next page lock becausePG_lockedis set. Offhand, I don’t know if different orders—which set different bits—cause any nasty issues either. So I figured the safest thing was clear any bits which folio order can set within subsequent page's memory flags likefolio_reset_orderdoes.
Quoted 3 lines
Oh, I get the above. I was thinking
folio_reset_order()below would clear the flags, but I see the folly there - that resets the flags for the next page.
Correct.
Quoted 11 lines
Quoted 10 lines
Quoted 6 lines
clear_compound_head(new_page); folio_reset_order(new_folio);Which would also deal with setting
_nr_pages.
folio_reset_order(new_folio)would set_nr_pagesin the memory that isnew_page+ 1. So let's say that page has a ref count +memcg_data, now that memory is corrupted and will crash the kernel.
Quoted 7 lines
Yep, I just noticed that. Thanks for pointing that out.
Quoted 2 lines
All of the above is why is took me multiple hours to write 6 lines of code :).
And to review :) Good thing we don't get paid per SLOC of code right?
I don’t think anyone would touch core MM if pay were based on SLOC — it would be a terrible career choice. :)
All joking aside, I think the next revision should use this version, plus more comments and helpers/defines in a follow-up—which I’ll commit to—along with fixing the branch mismatch Andrew pointed out between drm-tip (which this series is based on) and 6.19 (where this patch needs to apply).
Matt
Quoted 51 lines
- Alistair
Quoted 49 lines
Quoted 20 lines
Quoted 19 lines
Matt
Quoted 17 lines
Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 497
Quoted 6 lines
mm/memremap.c +6
-0+#ifdef NR_PAGES_IN_LARGE_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 would be nice if the FS DAX code actually used this as well. Is there a reason that change was dropped from the series?
I don't have a test platform for FS DAX. In prior revisions, I was just moving existing FS DAX code to a helper, which I felt confident about.
This revision is slightly different, and I don't feel comfortable modifying FS DAX code without a test platform. I agree we should update FS DAX, but that should be done in a follow-up with coordinated testing.
Quoted 6 lines
Fair enough, I figured something like this might be your answer :-) You could update it and ask people with access to such a system to test it though (unfortunately my setup has bit-rotted beyond repair).
But I'm ok leaving to for a future change.
I did a quick grep in
fs/dax.cand don’t seezone_device_page_initcalled there. It probably could be used if it’s creating compound pages and drop the open-coded reinit when shared == 0, but yeah, that’s not something I can blindly code without testing.I can try to put something together for people to test soonish.
Matt
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Matt
Quoted 10 lines
Quoted 10 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(). Signature · 1 line
2.43.0
Re: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 407 lines · Matthew Brost
Quoted 233 lines · Alistair Popple
On 2026-01-15 at 18:43 +1100, Matthew Brost <[email protected]> wrote...
Quoted 219 lines · Alistair Popple
Quoted 208 lines
On 2026-01-15 at 17:18 +1100, Matthew Brost <[email protected]> wrote...
Quoted 187 lines · Matthew Brost
Quoted 186 lines · Alistair Popple
Quoted 184 lines
On 2026-01-15 at 06:19 +1100, Francois Dugast <[email protected]> wrote...
Quoted 9 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks for fixing, a couple of minor comments below.
Quoted 155 lines
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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +2
-1@@ -477,10 +477,28 @@ 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)mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 491
Quoted 10 lines
mm/memremap.c +7
-0{ +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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ This seems odd to me, mainly due to the "magic" number. Why not just clear the flags entirely? Or at least explicitly just clear the flags you care about which would remove the need for the comment and should let you use the proper PageFlag functions.
Quoted 3 lines
Quoted 3 lines
I'm copying this from
folio_reset_order[1]. My paranoia about touching anything related to struct page is high, so I did the same thingfolio_reset_orderdoes here.So why not just use
folio_reset_order()below?Quoted 14 lines
Quoted 3 lines
[1] https://elixir.bootlin.com/linux/v6.18.5/source/include/linux/mm.h#L1075
This immediately hangs my first SVM test...
mm/memremap.c +0
-0@@ -488,7 +488,7 @@ void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,for (i =0 ; i < (1UL << order); ++i, ++new_page) {struct folio *new_folio = (struct folio *)new_page;Quoted 9 lines
mm/memremap.c void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap, · line 493
Quoted 4 lines
mm/memremap.c +1
-1- new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ + new_page->flags.f =0 ;#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page -1 ))->_nr_pages =0 ;This seems wrong to me - I saw your reply to Balbir but for an order-0 page isn't this going to access a completely different, possibly already allocated, page?
Quoted 4 lines
No — it accesses itself (
new_page). It just uses some odd memory tricks for this, which I agree isn’t the best thing I’ve ever written, but it was the least-worst idea I had. I didn’t design the folio/page field aliasing; I understand why it exists, but it still makes my head hurt.And obviously mine, because I (was) still not getting it and had typed up a whole response and code walk through to show what was wrong, in the hope it would help settle the misunderstanding. Which it did, because I discovered where I was getting things wrong. But I've left the analysis below because it's probably useful for others following along:
Walking through the code we have:
Quoted 8 lines
void zone_device_page_init(struct page *page, struct
dev_pagemap*pgmap,
unsigned int order)
{The first argument, page, is the first in a set of 1 << order contiguous struct page. In the simplest case order == 0, meaning this function should only initialise (ie. touch) a single struct page pointer which is passed as the first argument to the function.
Yes.
Quoted 5 lines
struct page *new_page = page;So now
*new_pagepoints to the single struct page we should touch.Quoted 8 lines
unsigned int i; VM_WARN_ON_ONCE(order > MAX_ORDER_NR_PAGES); for (i = 0; i < (1UL << order); ++i, ++new_page) {order == 0, so this loop will only execute once.
Yes.
Quoted 7 lines
struct folio *new_folio = (struct folio *)new_page;
new_pagestill points to the single page we're initialising, andnew_foliopoints to the same page. Ie:&new_folio->page==new_page. There is a hazard here becausenew_folio->__page_1,__page_2, etc. all point to pages we shouldn't touch.Yes.
Quoted 4 lines
new_page->flags.f &= ~0xffUL; /* Clear possible order, page head */Clears the flags, makes sense.
+1
Quoted 10 lines
#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page - 1))->_nr_pages = 0;If we break this down we have:
struct page
*tmp_new_page=new_page- 1;Which is the page before the one we're initialising and shouldn't be touched. Then we cast to a folio:
Quoted 8 lines
struct folio
*tmp_new_folio= (struct folio *)tmp_new_page;And reset
_nr_pages:
tmp_new_folio->_nr_pages= 0And now I can see where I was confused -
&tmp_new_folio->_nr_pages==&tmp_new_folio->__page_1->memcg_data==&new_page->memcg_dataNot 100% right, as
_nr_pagesis 4 bytes andmemcg_datais 8, but the pointer base address is the same.Quoted 4 lines
So after both Balbir, probably yourself, and definitely myself scratching our heads for way too long over this change I think we can conclude that the code as is is way too confusing to merge without a lot more comments :-)
I think more comments is the way to go. More below.
Quoted 5 lines
However why go through all this magic in the first place? Why not just treat everything here as a page and just do
new_page->memcg_data = 0Well,
memcg_datais 8 bytes and_nr_pagesis 4. They also have different #ifdef conditions around each field, etc.I’ve also seen failures in our testing, and so has François, with the
memcg_datachange. I wish I had a stack trace to share or explain, but the times I hit the error I didn’t capture the dmesg, and I’ve been having issues with my dev machine today. If I catch the error again, I’ll reply with a stack trace and analysis.Quoted 4 lines
directly? That seems like the more straight forward approach. In fact given all the confusion I wonder if it wouldn't be better to just do
memset(new_page, 0, sizeof(*new_page))and reinitialise everything from scratch.I had considered this option too, but I’d be a little concerned about the performance. Reinitializing a zone page/folio is a hot path, as this is typically done in a GPU fault handler. I think adding verbose comments explaining why this works, plus some follow-up helpers, might be the better option.
Quoted 5 lines
Quoted 5 lines
folio->_nr_pagesis page + 1 for reference (new_pageafter this math). Again, if I touched this memory directly innew_page, it’s most likelymemcg_data, but that is hidden behind aKconfig.Quoted 7 lines
Quoted 2 lines
This just blindly implementing part of
folio_reset_orderwhich clears_nr_pages.Yeah, I get it now. But I think just clearing
memcg_datawould be the easiest to understand approach, especially if it had a comment explaining that it may have previously been used for_nr_pages.See above — the different sizes, the failure I’m seeing, and the conflicting #ifdefs are why this is not my preferred option.
Quoted 33 lines
Quoted 26 lines
Quoted 7 lines
Quoted 7 lines
mm/memremap.c +0
-0#endif I can walk through exactly which flags need to be cleared, but my feeling is that likely any flag that the order field overloads and can possibly encode should be cleared—so bits 0–7 based on the existing code.
Quoted 6 lines
Quoted 2 lines
How about in a follow-up we normalize setting / clearing the order flag field with a #define and an inline helper?
Ie: Would something like the following work:
ClearPageHead(new_page);Any of these bit could possibly be set the order field in a folio, which modifies page + 1 flags field.
PG_locked, /* Page is locked. Don't touch. */
PG_writeback, /* Page is under writeback */
PG_referenced,
PG_uptodate,
PG_dirty,
PG_lru,
PG_head, /* Must be in bit 6 */
PG_waiters, /* Page has waiters, check its waitqueue. Must be bit #7 and in the same byte as "PG_locked" */Quoted 6 lines
So a common order-9 (2MB) folio would have
PG_locked|PG_uptodateset. Now we get stuck on the next page lock becausePG_lockedis set. Offhand, I don’t know if different orders—which set different bits—cause any nasty issues either. So I figured the safest thing was clear any bits which folio order can set within subsequent page's memory flags likefolio_reset_orderdoes.Quoted 3 lines
Oh, I get the above. I was thinking
folio_reset_order()below would clear the flags, but I see the folly there - that resets the flags for the next page.Correct.
Quoted 11 lines
Quoted 10 lines
Quoted 6 lines
clear_compound_head(new_page); folio_reset_order(new_folio);Which would also deal with setting
_nr_pages.
folio_reset_order(new_folio)would set_nr_pagesin the memory that isnew_page+ 1. So let's say that page has a ref count +memcg_data, now that memory is corrupted and will crash the kernel.Quoted 7 lines
Yep, I just noticed that. Thanks for pointing that out.
Quoted 2 lines
All of the above is why is took me multiple hours to write 6 lines of code :).
And to review :) Good thing we don't get paid per SLOC of code right?
Quoted 8 lines
I don’t think anyone would touch core MM if pay were based on SLOC — it would be a terrible career choice. :)
All joking aside, I think the next revision should use this version, plus more comments and helpers/defines in a follow-up—which I’ll commit to—along with fixing the branch mismatch Andrew pointed out between drm-tip (which this series is based on) and 6.19 (where this patch needs to apply).
I believe the best branch for this series would be drm-misc-next indeed.
But this patch in particular needs multiple acks to get through drm trees. At least one from each block:
## arch/powerpc/kvm/book3s_hv_uvmem.c
Madhavan Srinivasan <[email protected]> (maintainer:KERNEL VIRTUAL MACHINE FOR POWERPC (KVM/powerpc)) Nicholas Piggin <[email protected]> (reviewer:KERNEL VIRTUAL MACHINE FOR POWERPC (KVM/powerpc)) Michael Ellerman <[email protected]> (maintainer:LINUX FOR POWERPC (32-BIT AND 64-BIT)) "Christophe Leroy (CS GROUP)" <[email protected]> (reviewer:LINUX FOR POWERPC (32-BIT AND 64-BIT))
## include/linux/memremap.h
David Hildenbrand <[email protected]> (maintainer:MEMORY HOT(UN)PLUG) Oscar Salvador <[email protected]> (maintainer:MEMORY HOT(UN)PLUG)
## lib/test_hmm.c
Andrew Morton <[email protected]> (maintainer:LIBRARY CODE) Jason Gunthorpe <[email protected]> (maintainer:HMM - Heterogeneous Memory Management) Leon Romanovsky <[email protected]> (maintainer:HMM - Heterogeneous Memory Management)
## mm/memremap.c
David Hildenbrand <[email protected]> (maintainer:MEMORY HOT(UN)PLUG) Oscar Salvador <[email protected]> (maintainer:MEMORY HOT(UN)PLUG) Andrew Morton <[email protected]> (maintainer:MEMORY MANAGEMENT)
On the other hand we would also need Max to do one extra last pull-request towards 7.0 after we get this merged. Because our window in drm closed earlier.
Or this patch goes to any regular mm tree, and we hold the drm ones after we backmerge 7.0-rc1
Quoted 54 lines
Matt
Quoted 51 lines
- Alistair
Quoted 49 lines
Quoted 20 lines
Quoted 19 lines
Matt
Quoted 17 lines
Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 497
Quoted 6 lines
mm/memremap.c +6
-0+#ifdef NR_PAGES_IN_LARGE_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 would be nice if the FS DAX code actually used this as well. Is there a reason that change was dropped from the series?
I don't have a test platform for FS DAX. In prior revisions, I was just moving existing FS DAX code to a helper, which I felt confident about.
This revision is slightly different, and I don't feel comfortable modifying FS DAX code without a test platform. I agree we should update FS DAX, but that should be done in a follow-up with coordinated testing.
Quoted 6 lines
Fair enough, I figured something like this might be your answer :-) You could update it and ask people with access to such a system to test it though (unfortunately my setup has bit-rotted beyond repair).
But I'm ok leaving to for a future change.
I did a quick grep in
fs/dax.cand don’t seezone_device_page_initcalled there. It probably could be used if it’s creating compound pages and drop the open-coded reinit when shared == 0, but yeah, that’s not something I can blindly code without testing.I can try to put something together for people to test soonish.
Matt
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Matt
Quoted 10 lines
Quoted 10 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(). Signature · 1 line
2.43.0
Re: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
In reply to Matthew BrostQuoted 201 lines · Matthew Brost
Quoted 186 lines · Matthew Brost
Quoted 174 lines · Alistair Popple
On 2026-01-15 at 06:19 +1100, Francois Dugast <[email protected]> wrote...
Quoted 9 lines
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.Thanks for fixing, a couple of minor comments below.
Quoted 161 lines
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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- 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 | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +5
-1@@ -477,10 +477,28 @@ 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 );Quoted 10 lines
mm/memremap.c void free_zone_device_folio(struct folio *folio) · line 491
Quoted 4 lines
mm/memremap.c +4
-0+for (i =0 ; i < (1UL << order); ++i, ++new_page) { +struct folio *new_folio = (struct folio *)new_page; + + new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ This seems odd to me, mainly due to the "magic" number. Why not just clear the flags entirely? Or at least explicitly just clear the flags you care about which would remove the need for the comment and should let you use the proper PageFlag functions.
Quoted 6 lines
I'm copying this from
folio_reset_order[1]. My paranoia about touching anything related to struct page is high, so I did the same thingfolio_reset_orderdoes here.[1] https://elixir.bootlin.com/linux/v6.18.5/source/include/linux/mm.h#L1075
This immediately hangs my first SVM test...
mm/memremap.c +0
-0
mm/memremap.c void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap, · line 494
Quoted 8 lines
mm/memremap.c +1
-1@@ -488,7 +488,7 @@ void zone_device_page_init(struct page *page, struct dev_pagemap *pgmap,for (i =0 ; i < (1UL << order); ++i, ++new_page) {struct folio *new_folio = (struct folio *)new_page; - new_page->flags.f &= ~0xffUL ;/* Clear possible order, page head */ + new_page->flags.f =0 ;#ifdef NR_PAGES_IN_LARGE_FOLIO ((struct folio *)(new_page -1 ))->_nr_pages =0 ;#endif
the flags field includes also zone and node id, so clearing that will break the pages's node+zone association, that's probably why...
Re: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
In reply to Francois DugastQuoted 49 lines · Francois Dugast
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>
Quoted 3 lines
--- arch/powerpc/kvm/book3s_hv_uvmem.c | 2 +- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c | 2 +-
AMD folks, ack to get this patch through drm-misc-next or even perhaps some mm related tree?
Quoted 2 lines
drivers/gpu/drm/drm_pagemap.c | 2 +- drivers/gpu/drm/nouveau/nouveau_dmem.c | 2 +-
Nouveau folks, ack as well?
Quoted 137 lines
include/linux/memremap.h | 9 ++++++--- lib/test_hmm.c | 4 +++- mm/memremap.c | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +19
-1@@ -477,10 +477,28 @@ 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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ +#ifdef NR_PAGES_IN_LARGE_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
Re: [PATCH v5 1/5] mm/zone_device: Reinitialize large zone device private folios
Quoted 53 lines · Rodrigo Vivi
Quoted 49 lines · Francois Dugast
From: Matthew Brost <[email protected]>
Reinitialize metadata for large zone device private folios in
zone_device_page_initprior to creating a higher-order zone device private folio. This step is necessary when the folio’s order changes dynamically betweenzone_device_page_initcalls to avoid building a corrupt folio. As part of the metadata reinitialization, thedev_pagemapmust be passed in from the caller because the pgmap stored in the folio page may have been overwritten with a compound head.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")Signed-off-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>Quoted 3 lines
--- arch/powerpc/kvm/book3s_hv_uvmem.c | 2 +- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c | 2 +-
Quoted 2 lines
AMD folks, ack to get this patch through drm-misc-next or even perhaps some mm related tree?
The kfd_migrate change looks straight-forward enough for me. We don't use large device pages yet, so I guess the changes in zone_device_page_init should be safe for us. Feel free to add my
I have no objections to merging this through drm-misc-next. @Alex, how will this flow back into our amd-staging-drm-next branch? I guess we'll get it on the next branch rebase. There should be no rush as I don't think we're affected by the bug being fixed here.
Thanks,
Felix
Quoted 142 lines
Quoted 3 lines
drivers/gpu/drm/drm_pagemap.c | 2 +- drivers/gpu/drm/nouveau/nouveau_dmem.c | 2 +-Nouveau folks, ack as well?
Quoted 137 lines
include/linux/memremap.h | 9 ++++++--- lib/test_hmm.c | 4 +++- mm/memremap.c | 20 +++++++++++++++++++- 7 files changed, 32 insertions(+), 9 deletions(-)arch/powerpc/kvm/book3s_hv_uvmem.c +1
-1@@ -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@@ -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 voiddrivers/gpu/drm/drm_pagemap.c +1
-1@@ -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, zdd->dpagemap->pagemap,0 ); }/** drivers/gpu/drm/nouveau/nouveau_dmem.c +1
-1@@ -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@@ -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@@ -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 +19
-1@@ -477,10 +477,28 @@ 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->flags.f &= ~0xffUL ;/* Clear possible order, page head */ +#ifdef NR_PAGES_IN_LARGE_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
PATCH v5 2/5 drm/pagemap: Unlock and put folios when possible
In reply to Francois DugastIf 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.
--- drivers/gpu/drm/drm_pagemap.c | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-)
drivers/gpu/drm/drm_pagemap.c +17 -9
@@ -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
Re: [PATCH v5 2/5] drm/pagemap: Unlock and put folios when possible
Quoted 63 lines · 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]>Suggested-by Matthew Brost <[email protected]>Reviewed-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- drivers/gpu/drm/drm_pagemap.c | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-)drivers/gpu/drm/drm_pagemap.c +10
-8@@ -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;
drivers/gpu/drm/drm_pagemap.c static void drm_pagemap_migration_unlock_put_pages(unsigned long npages, · line 196
Quoted 10 lines
drivers/gpu/drm/drm_pagemap.c +7
-1page =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);
Is this just a wrapper on top of folio_nr_pages()?
drivers/gpu/drm/drm_pagemap.c static void drm_pagemap_migration_unlock_put_pages(unsigned long npages, · line 199
Quoted 3 lines
drivers/gpu/drm/drm_pagemap.c +0
-0} }
Matthew Brost
maintainerRe: [PATCH v5 2/5] drm/pagemap: Unlock and put folios when possible
Quoted 64 lines · Balbir Singh
Quoted 63 lines · 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]>Suggested-by Matthew Brost <[email protected]>Reviewed-by Matthew Brost <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- drivers/gpu/drm/drm_pagemap.c | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-)drivers/gpu/drm/drm_pagemap.c +10
-8@@ -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;
Quoted 13 lines
drivers/gpu/drm/drm_pagemap.c static void drm_pagemap_migration_unlock_put_pages(unsigned long npages, · line 196
Quoted 10 lines
drivers/gpu/drm/drm_pagemap.c +7
-1page =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);Is this just a wrapper on top of
folio_nr_pages()?
We might not have folio order. This is a macro defined here [1].
There probably is a similar macro elsewhere in kernel that does the same thing, I can look for that and clean this up in a follow up if I can find one.
[1] https://elixir.bootlin.com/linux/v6.19-rc5/source/include/drm/drm_pagemap.h#L9
Quoted 5 lines
drivers/gpu/drm/drm_pagemap.c static void drm_pagemap_migration_unlock_put_pages(unsigned long npages, · line 199
Quoted 3 lines
drivers/gpu/drm/drm_pagemap.c +0
-0} }Reviewed-by Balbir Singh <[email protected]>
Thanks!
Matt
PATCH v5 3/5 drm/pagemap: Add helper to access zone_device_data
In reply to Francois DugastThis 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)
--- 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
@@ -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
@@ -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
@@ -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
PATCH v5 4/5 drm/pagemap: Correct cpages calculation for migrate_vma_setup
In reply to Francois DugastFrom: 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.
--- drivers/gpu/drm/drm_pagemap.c | 38 ++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_pagemap.c +37 -1
@@ -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
Re: [PATCH v5 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_setuprepresents the total number of individual pages found, not the number of 4K pages. The math indrm_pagemap_migrate_to_devmemfor npages is based on the number of 4K pages, so cpages != npages can fail even if the entire memory range is found inmigrate_vma_setup(e.g., when a single 2M page is found). Adddrm_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]>Signed-off-by Matthew Brost <[email protected]>Reviewed-by Francois Dugast <[email protected]>Signed-off-by Francois Dugast <[email protected]>--- drivers/gpu/drm/drm_pagemap.c | 38 ++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-)drivers/gpu/drm/drm_pagemap.c +35
-0@@ -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.
PATCH v5 5/5 drm/pagemap: Enable THP support for GPU memory migration
In reply to Francois DugastThis 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: 10With 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: 2v2:
- 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)
--- drivers/gpu/drm/drm_pagemap.c | 73 ++++++++++++++++++++++++++++++----- 1 file changed, 63 insertions(+), 10 deletions(-)
drivers/gpu/drm/drm_pagemap.c +63 -10
@@ -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, zdd->dpagemap->pagemap,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
Patchwork
CI✓ CI.KUnit: success for Enable THP support in drm_pagemap (rev6)
In reply to Francois Dugast== Series Details ==
== Series Details ==
Series: Enable THP support in drm_pagemap (rev6)
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 [20:15:22] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [20:15:26] 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 [20:15:57] Starting KUnit Kernel (1/1)... [20:15:57] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [20:15:58] ================== guc_buf (11 subtests) =================== [20:15:58] [PASSED] test_smallest [20:15:58] [PASSED] test_largest [20:15:58] [PASSED] test_granular [20:15:58] [PASSED] test_unique [20:15:58] [PASSED] test_overlap [20:15:58] [PASSED] test_reusable [20:15:58] [PASSED] test_too_big [20:15:58] [PASSED] test_flush [20:15:58] [PASSED] test_lookup [20:15:58] [PASSED] test_data [20:15:58] [PASSED] test_class [20:15:58] ===================== [PASSED] guc_buf ===================== [20:15:58] =================== guc_dbm (7 subtests) =================== [20:15:58] [PASSED] test_empty [20:15:58] [PASSED] test_default [20:15:58] ======================== test_size ======================== [20:15:58] [PASSED] 4 [20:15:58] [PASSED] 8 [20:15:58] [PASSED] 32 [20:15:58] [PASSED] 256 [20:15:58] ==================== [PASSED] test_size ==================== [20:15:58] ======================= test_reuse ======================== [20:15:58] [PASSED] 4 [20:15:58] [PASSED] 8 [20:15:58] [PASSED] 32 [20:15:58] [PASSED] 256 [20:15:58] =================== [PASSED] test_reuse ==================== [20:15:58] =================== test_range_overlap ==================== [20:15:58] [PASSED] 4 [20:15:58] [PASSED] 8 [20:15:58] [PASSED] 32 [20:15:58] [PASSED] 256 [20:15:58] =============== [PASSED] test_range_overlap ================ [20:15:58] =================== test_range_compact ==================== [20:15:58] [PASSED] 4 [20:15:58] [PASSED] 8 [20:15:58] [PASSED] 32 [20:15:58] [PASSED] 256 [20:15:58] =============== [PASSED] test_range_compact ================ [20:15:58] ==================== test_range_spare ===================== [20:15:58] [PASSED] 4 [20:15:58] [PASSED] 8 [20:15:58] [PASSED] 32 [20:15:58] [PASSED] 256 [20:15:58] ================ [PASSED] test_range_spare ================= [20:15:58] ===================== [PASSED] guc_dbm ===================== [20:15:58] =================== guc_idm (6 subtests) =================== [20:15:58] [PASSED] bad_init [20:15:58] [PASSED] no_init [20:15:58] [PASSED] init_fini [20:15:58] [PASSED] check_used [20:15:58] [PASSED] check_quota [20:15:58] [PASSED] check_all [20:15:58] ===================== [PASSED] guc_idm ===================== [20:15:58] ================== no_relay (3 subtests) =================== [20:15:58] [PASSED] xe_drops_guc2pf_if_not_ready [20:15:58] [PASSED] xe_drops_guc2vf_if_not_ready [20:15:58] [PASSED] xe_rejects_send_if_not_ready [20:15:58] ==================== [PASSED] no_relay ===================== [20:15:58] ================== pf_relay (14 subtests) ================== [20:15:58] [PASSED] pf_rejects_guc2pf_too_short [20:15:58] [PASSED] pf_rejects_guc2pf_too_long [20:15:58] [PASSED] pf_rejects_guc2pf_no_payload [20:15:58] [PASSED] pf_fails_no_payload [20:15:58] [PASSED] pf_fails_bad_origin [20:15:58] [PASSED] pf_fails_bad_type [20:15:58] [PASSED] pf_txn_reports_error [20:15:58] [PASSED] pf_txn_sends_pf2guc [20:15:58] [PASSED] pf_sends_pf2guc [20:15:58] [SKIPPED] pf_loopback_nop [20:15:58] [SKIPPED] pf_loopback_echo [20:15:58] [SKIPPED] pf_loopback_fail [20:15:58] [SKIPPED] pf_loopback_busy [20:15:58] [SKIPPED] pf_loopback_retry [20:15:58] ==================== [PASSED] pf_relay ===================== [20:15:58] ================== vf_relay (3 subtests) =================== [20:15:58] [PASSED] vf_rejects_guc2vf_too_short [20:15:58] [PASSED] vf_rejects_guc2vf_too_long [20:15:58] [PASSED] vf_rejects_guc2vf_no_payload [20:15:58] ==================== [PASSED] vf_relay ===================== [20:15:58] ================ pf_gt_config (6 subtests) ================= [20:15:58] [PASSED] fair_contexts_1vf [20:15:58] [PASSED] fair_doorbells_1vf [20:15:58] [PASSED] fair_ggtt_1vf [20:15:58] ====================== fair_contexts ====================== [20:15:58] [PASSED] 1 VF [20:15:58] [PASSED] 2 VFs [20:15:58] [PASSED] 3 VFs [20:15:58] [PASSED] 4 VFs [20:15:58] [PASSED] 5 VFs [20:15:58] [PASSED] 6 VFs [20:15:58] [PASSED] 7 VFs [20:15:58] [PASSED] 8 VFs [20:15:58] [PASSED] 9 VFs [20:15:58] [PASSED] 10 VFs [20:15:58] [PASSED] 11 VFs [20:15:58] [PASSED] 12 VFs [20:15:58] [PASSED] 13 VFs [20:15:58] [PASSED] 14 VFs [20:15:58] [PASSED] 15 VFs [20:15:58] [PASSED] 16 VFs [20:15:58] [PASSED] 17 VFs [20:15:58] [PASSED] 18 VFs [20:15:58] [PASSED] 19 VFs [20:15:58] [PASSED] 20 VFs [20:15:58] [PASSED] 21 VFs [20:15:58] [PASSED] 22 VFs [20:15:58] [PASSED] 23 VFs [20:15:58] [PASSED] 24 VFs [20:15:58] [PASSED] 25 VFs [20:15:58] [PASSED] 26 VFs [20:15:58] [PASSED] 27 VFs [20:15:58] [PASSED] 28 VFs [20:15:58] [PASSED] 29 VFs [20:15:58] [PASSED] 30 VFs [20:15:58] [PASSED] 31 VFs [20:15:58] [PASSED] 32 VFs [20:15:58] [PASSED] 33 VFs [20:15:58] [PASSED] 34 VFs [20:15:58] [PASSED] 35 VFs [20:15:58] [PASSED] 36 VFs [20:15:58] [PASSED] 37 VFs [20:15:58] [PASSED] 38 VFs [20:15:58] [PASSED] 39 VFs [20:15:58] [PASSED] 40 VFs [20:15:58] [PASSED] 41 VFs [20:15:58] [PASSED] 42 VFs [20:15:58] [PASSED] 43 VFs [20:15:58] [PASSED] 44 VFs [20:15:58] [PASSED] 45 VFs [20:15:58] [PASSED] 46 VFs [20:15:58] [PASSED] 47 VFs [20:15:58] [PASSED] 48 VFs [20:15:58] [PASSED] 49 VFs [20:15:58] [PASSED] 50 VFs [20:15:58] [PASSED] 51 VFs [20:15:58] [PASSED] 52 VFs [20:15:58] [PASSED] 53 VFs [20:15:58] [PASSED] 54 VFs [20:15:58] [PASSED] 55 VFs [20:15:58] [PASSED] 56 VFs [20:15:58] [PASSED] 57 VFs [20:15:58] [PASSED] 58 VFs [20:15:58] [PASSED] 59 VFs [20:15:58] [PASSED] 60 VFs [20:15:58] [PASSED] 61 VFs [20:15:58] [PASSED] 62 VFs [20:15:58] [PASSED] 63 VFs [20:15:58] ================== [PASSED] fair_contexts ================== [20:15:58] ===================== fair_doorbells ====================== [20:15:58] [PASSED] 1 VF [20:15:58] [PASSED] 2 VFs [20:15:58] [PASSED] 3 VFs [20:15:58] [PASSED] 4 VFs [20:15:58] [PASSED] 5 VFs [20:15:58] [PASSED] 6 VFs [20:15:58] [PASSED] 7 VFs [20:15:58] [PASSED] 8 VFs [20:15:58] [PASSED] 9 VFs [20:15:58] [PASSED] 10 VFs [20:15:58] [PASSED] 11 VFs [20:15:58] [PASSED] 12 VFs [20:15:58] [PASSED] 13 VFs [20:15:58] [PASSED] 14 VFs [20:15:58] [PASSED] 15 VFs [20:15:58] [PASSED] 16 VFs [20:15:58] [PASSED] 17 VFs [20:15:58] [PASSED] 18 VFs [20:15:58] [PASSED] 19 VFs [20:15:58] [PASSED] 20 VFs [20:15:58] [PASSED] 21 VFs [20:15:58] [PASSED] 22 VFs [20:15:58] [PASSED] 23 VFs [20:15:58] [PASSED] 24 VFs [20:15:58] [PASSED] 25 VFs [20:15:58] [PASSED] 26 VFs [20:15:58] [PASSED] 27 VFs [20:15:58] [PASSED] 28 VFs [20:15:58] [PASSED] 29 VFs [20:15:58] [PASSED] 30 VFs [20:15:58] [PASSED] 31 VFs [20:15:58] [PASSED] 32 VFs [20:15:58] [PASSED] 33 VFs [20:15:58] [PASSED] 34 VFs [20:15:58] [PASSED] 35 VFs [20:15:58] [PASSED] 36 VFs [20:15:58] [PASSED] 37 VFs [20:15:58] [PASSED] 38 VFs [20:15:58] [PASSED] 39 VFs [20:15:58] [PASSED] 40 VFs [20:15:58] [PASSED] 41 VFs [20:15:58] [PASSED] 42 VFs [20:15:58] [PASSED] 43 VFs [20:15:58] [PASSED] 44 VFs [20:15:58] [PASSED] 45 VFs [20:15:58] [PASSED] 46 VFs [20:15:58] [PASSED] 47 VFs [20:15:58] [PASSED] 48 VFs [20:15:58] [PASSED] 49 VFs [20:15:58] [PASSED] 50 VFs [20:15:58] [PASSED] 51 VFs [20:15:58] [PASSED] 52 VFs [20:15:58] [PASSED] 53 VFs [20:15:58] [PASSED] 54 VFs [20:15:58] [PASSED] 55 VFs [20:15:58] [PASSED] 56 VFs [20:15:58] [PASSED] 57 VFs [20:15:58] [PASSED] 58 VFs [20:15:58] [PASSED] 59 VFs [20:15:58] [PASSED] 60 VFs [20:15:58] [PASSED] 61 VFs [20:15:58] [PASSED] 62 VFs [20:15:58] [PASSED] 63 VFs [20:15:58] ================= [PASSED] fair_doorbells ================== [20:15:58] ======================== fair_ggtt ======================== [20:15:58] [PASSED] 1 VF [20:15:58] [PASSED] 2 VFs [20:15:58] [PASSED] 3 VFs [20:15:58] [PASSED] 4 VFs [20:15:58] [PASSED] 5 VFs [20:15:58] [PASSED] 6 VFs [20:15:58] [PASSED] 7 VFs [20:15:58] [PASSED] 8 VFs [20:15:58] [PASSED] 9 VFs [20:15:58] [PASSED] 10 VFs [20:15:58] [PASSED] 11 VFs [20:15:58] [PASSED] 12 VFs [20:15:58] [PASSED] 13 VFs [20:15:58] [PASSED] 14 VFs [20:15:58] [PASSED] 15 VFs [20:15:58] [PASSED] 16 VFs [20:15:58] [PASSED] 17 VFs [20:15:58] [PASSED] 18 VFs [20:15:58] [PASSED] 19 VFs [20:15:58] [PASSED] 20 VFs [20:15:58] [PASSED] 21 VFs [20:15:58] [PASSED] 22 VFs [20:15:58] [PASSED] 23 VFs [20:15:58] [PASSED] 24 VFs [20:15:58] [PASSED] 25 VFs [20:15:58] [PASSED] 26 VFs [20:15:58] [PASSED] 27 VFs [20:15:58] [PASSED] 28 VFs [20:15:58] [PASSED] 29 VFs [20:15:58] [PASSED] 30 VFs [20:15:58] [PASSED] 31 VFs [20:15:58] [PASSED] 32 VFs [20:15:58] [PASSED] 33 VFs [20:15:58] [PASSED] 34 VFs [20:15:58] [PASSED] 35 VFs [20:15:58] [PASSED] 36 VFs [20:15:58] [PASSED] 37 VFs [20:15:58] [PASSED] 38 VFs [20:15:58] [PASSED] 39 VFs [20:15:58] [PASSED] 40 VFs [20:15:58] [PASSED] 41 VFs [20:15:58] [PASSED] 42 VFs [20:15:58] [PASSED] 43 VFs [20:15:58] [PASSED] 44 VFs [20:15:58] [PASSED] 45 VFs [20:15:58] [PASSED] 46 VFs [20:15:58] [PASSED] 47 VFs [20:15:58] [PASSED] 48 VFs [20:15:58] [PASSED] 49 VFs [20:15:58] [PASSED] 50 VFs [20:15:58] [PASSED] 51 VFs [20:15:58] [PASSED] 52 VFs [20:15:58] [PASSED] 53 VFs [20:15:58] [PASSED] 54 VFs [20:15:58] [PASSED] 55 VFs [20:15:58] [PASSED] 56 VFs [20:15:58] [PASSED] 57 VFs [20:15:58] [PASSED] 58 VFs [20:15:58] [PASSED] 59 VFs [20:15:58] [PASSED] 60 VFs [20:15:58] [PASSED] 61 VFs [20:15:58] [PASSED] 62 VFs [20:15:58] [PASSED] 63 VFs [20:15:58] ==================== [PASSED] fair_ggtt ==================== [20:15:58] ================== [PASSED] pf_gt_config =================== [20:15:58] ===================== lmtt (1 subtest) ===================== [20:15:58] ======================== test_ops ========================= [20:15:58] [PASSED] 2-level [20:15:58] [PASSED] multi-level [20:15:58] ==================== [PASSED] test_ops ===================== [20:15:58] ====================== [PASSED] lmtt ======================= [20:15:58] ================= pf_service (11 subtests) ================= [20:15:58] [PASSED] pf_negotiate_any [20:15:58] [PASSED] pf_negotiate_base_match [20:15:58] [PASSED] pf_negotiate_base_newer [20:15:58] [PASSED] pf_negotiate_base_next [20:15:58] [SKIPPED] pf_negotiate_base_older [20:15:58] [PASSED] pf_negotiate_base_prev [20:15:58] [PASSED] pf_negotiate_latest_match [20:15:58] [PASSED] pf_negotiate_latest_newer [20:15:58] [PASSED] pf_negotiate_latest_next [20:15:58] [SKIPPED] pf_negotiate_latest_older [20:15:58] [SKIPPED] pf_negotiate_latest_prev [20:15:58] =================== [PASSED] pf_service ==================== [20:15:58] ================= xe_guc_g2g (2 subtests) ================== [20:15:58] ============== xe_live_guc_g2g_kunit_default ============== [20:15:58] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [20:15:58] ============== xe_live_guc_g2g_kunit_allmem =============== [20:15:58] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [20:15:58] =================== [SKIPPED] xe_guc_g2g =================== [20:15:58] =================== xe_mocs (2 subtests) =================== [20:15:58] ================ xe_live_mocs_kernel_kunit ================ [20:15:58] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [20:15:58] ================ xe_live_mocs_reset_kunit ================= [20:15:58] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [20:15:58] ==================== [SKIPPED] xe_mocs ===================== [20:15:58] ================= xe_migrate (2 subtests) ================== [20:15:58] ================= xe_migrate_sanity_kunit ================= [20:15:58] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [20:15:58] ================== xe_validate_ccs_kunit ================== [20:15:58] ============= [SKIPPED] xe_validate_ccs_kunit ============== [20:15:58] =================== [SKIPPED] xe_migrate =================== [20:15:58] ================== xe_dma_buf (1 subtest) ================== [20:15:58] ==================== xe_dma_buf_kunit ===================== [20:15:58] ================ [SKIPPED] xe_dma_buf_kunit ================ [20:15:58] =================== [SKIPPED] xe_dma_buf =================== [20:15:58] ================= xe_bo_shrink (1 subtest) ================= [20:15:58] =================== xe_bo_shrink_kunit ==================== [20:15:58] =============== [SKIPPED] xe_bo_shrink_kunit =============== [20:15:58] ================== [SKIPPED] xe_bo_shrink ================== [20:15:58] ==================== xe_bo (2 subtests) ==================== [20:15:58] ================== xe_ccs_migrate_kunit =================== [20:15:58] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [20:15:58] ==================== xe_bo_evict_kunit ==================== [20:15:58] =============== [SKIPPED] xe_bo_evict_kunit ================ [20:15:58] ===================== [SKIPPED] xe_bo ====================== [20:15:58] ==================== args (13 subtests) ==================== [20:15:58] [PASSED] count_args_test [20:15:58] [PASSED] call_args_example [20:15:58] [PASSED] call_args_test [20:15:58] [PASSED] drop_first_arg_example [20:15:58] [PASSED] drop_first_arg_test [20:15:58] [PASSED] first_arg_example [20:15:58] [PASSED] first_arg_test [20:15:58] [PASSED] last_arg_example [20:15:58] [PASSED] last_arg_test [20:15:58] [PASSED] pick_arg_example [20:15:58] [PASSED] if_args_example [20:15:58] [PASSED] if_args_test [20:15:58] [PASSED] sep_comma_example [20:15:58] ====================== [PASSED] args ======================= [20:15:58] =================== xe_pci (3 subtests) ==================== [20:15:58] ==================== check_graphics_ip ==================== [20:15:58] [PASSED] 12.00 Xe_LP [20:15:58] [PASSED] 12.10 Xe_LP+ [20:15:58] [PASSED] 12.55 Xe_HPG [20:15:58] [PASSED] 12.60 Xe_HPC [20:15:58] [PASSED] 12.70 Xe_LPG [20:15:58] [PASSED] 12.71 Xe_LPG [20:15:58] [PASSED] 12.74 Xe_LPG+ [20:15:58] [PASSED] 20.01 Xe2_HPG [20:15:58] [PASSED] 20.02 Xe2_HPG [20:15:58] [PASSED] 20.04 Xe2_LPG [20:15:58] [PASSED] 30.00 Xe3_LPG [20:15:58] [PASSED] 30.01 Xe3_LPG [20:15:58] [PASSED] 30.03 Xe3_LPG [20:15:58] [PASSED] 30.04 Xe3_LPG [20:15:58] [PASSED] 30.05 Xe3_LPG [20:15:58] [PASSED] 35.11 Xe3p_XPC [20:15:58] ================ [PASSED] check_graphics_ip ================ [20:15:58] ===================== check_media_ip ====================== [20:15:58] [PASSED] 12.00 Xe_M [20:15:58] [PASSED] 12.55 Xe_HPM [20:15:58] [PASSED] 13.00 Xe_LPM+ [20:15:58] [PASSED] 13.01 Xe2_HPM [20:15:58] [PASSED] 20.00 Xe2_LPM [20:15:58] [PASSED] 30.00 Xe3_LPM [20:15:58] [PASSED] 30.02 Xe3_LPM [20:15:58] [PASSED] 35.00 Xe3p_LPM [20:15:58] [PASSED] 35.03 Xe3p_HPM [20:15:58] ================= [PASSED] check_media_ip ================== [20:15:58] =================== check_platform_desc =================== [20:15:58] [PASSED] 0x9A60 (TIGERLAKE) [20:15:58] [PASSED] 0x9A68 (TIGERLAKE) [20:15:58] [PASSED] 0x9A70 (TIGERLAKE) [20:15:58] [PASSED] 0x9A40 (TIGERLAKE) [20:15:58] [PASSED] 0x9A49 (TIGERLAKE) [20:15:58] [PASSED] 0x9A59 (TIGERLAKE) [20:15:58] [PASSED] 0x9A78 (TIGERLAKE) [20:15:58] [PASSED] 0x9AC0 (TIGERLAKE) [20:15:58] [PASSED] 0x9AC9 (TIGERLAKE) [20:15:58] [PASSED] 0x9AD9 (TIGERLAKE) [20:15:58] [PASSED] 0x9AF8 (TIGERLAKE) [20:15:58] [PASSED] 0x4C80 (ROCKETLAKE) [20:15:58] [PASSED] 0x4C8A (ROCKETLAKE) [20:15:58] [PASSED] 0x4C8B (ROCKETLAKE) [20:15:58] [PASSED] 0x4C8C (ROCKETLAKE) [20:15:58] [PASSED] 0x4C90 (ROCKETLAKE) [20:15:58] [PASSED] 0x4C9A (ROCKETLAKE) [20:15:58] [PASSED] 0x4680 (ALDERLAKE_S) [20:15:58] [PASSED] 0x4682 (ALDERLAKE_S) [20:15:58] [PASSED] 0x4688 (ALDERLAKE_S) [20:15:58] [PASSED] 0x468A (ALDERLAKE_S) [20:15:58] [PASSED] 0x468B (ALDERLAKE_S) [20:15:58] [PASSED] 0x4690 (ALDERLAKE_S) [20:15:58] [PASSED] 0x4692 (ALDERLAKE_S) [20:15:58] [PASSED] 0x4693 (ALDERLAKE_S) [20:15:58] [PASSED] 0x46A0 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46A1 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46A2 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46A3 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46A6 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46A8 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46AA (ALDERLAKE_P) [20:15:58] [PASSED] 0x462A (ALDERLAKE_P) [20:15:58] [PASSED] 0x4626 (ALDERLAKE_P) [20:15:58] [PASSED] 0x4628 (ALDERLAKE_P) stty: 'standard input': Inappropriate ioctl for device [20:15:58] [PASSED] 0x46B0 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46B1 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46B2 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46B3 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46C0 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46C1 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46C2 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46C3 (ALDERLAKE_P) [20:15:58] [PASSED] 0x46D0 (ALDERLAKE_N) [20:15:58] [PASSED] 0x46D1 (ALDERLAKE_N) [20:15:58] [PASSED] 0x46D2 (ALDERLAKE_N) [20:15:58] [PASSED] 0x46D3 (ALDERLAKE_N) [20:15:58] [PASSED] 0x46D4 (ALDERLAKE_N) [20:15:58] [PASSED] 0xA721 (ALDERLAKE_P) [20:15:58] [PASSED] 0xA7A1 (ALDERLAKE_P) [20:15:58] [PASSED] 0xA7A9 (ALDERLAKE_P) [20:15:58] [PASSED] 0xA7AC (ALDERLAKE_P) [20:15:58] [PASSED] 0xA7AD (ALDERLAKE_P) [20:15:58] [PASSED] 0xA720 (ALDERLAKE_P) [20:15:58] [PASSED] 0xA7A0 (ALDERLAKE_P) [20:15:58] [PASSED] 0xA7A8 (ALDERLAKE_P) [20:15:58] [PASSED] 0xA7AA (ALDERLAKE_P) [20:15:58] [PASSED] 0xA7AB (ALDERLAKE_P) [20:15:58] [PASSED] 0xA780 (ALDERLAKE_S) [20:15:58] [PASSED] 0xA781 (ALDERLAKE_S) [20:15:58] [PASSED] 0xA782 (ALDERLAKE_S) [20:15:58] [PASSED] 0xA783 (ALDERLAKE_S) [20:15:58] [PASSED] 0xA788 (ALDERLAKE_S) [20:15:58] [PASSED] 0xA789 (ALDERLAKE_S) [20:15:58] [PASSED] 0xA78A (ALDERLAKE_S) [20:15:58] [PASSED] 0xA78B (ALDERLAKE_S) [20:15:58] [PASSED] 0x4905 (DG1) [20:15:58] [PASSED] 0x4906 (DG1) [20:15:58] [PASSED] 0x4907 (DG1) [20:15:58] [PASSED] 0x4908 (DG1) [20:15:58] [PASSED] 0x4909 (DG1) [20:15:58] [PASSED] 0x56C0 (DG2) [20:15:58] [PASSED] 0x56C2 (DG2) [20:15:58] [PASSED] 0x56C1 (DG2) [20:15:58] [PASSED] 0x7D51 (METEORLAKE) [20:15:58] [PASSED] 0x7DD1 (METEORLAKE) [20:15:58] [PASSED] 0x7D41 (METEORLAKE) [20:15:58] [PASSED] 0x7D67 (METEORLAKE) [20:15:58] [PASSED] 0xB640 (METEORLAKE) [20:15:58] [PASSED] 0x56A0 (DG2) [20:15:58] [PASSED] 0x56A1 (DG2) [20:15:58] [PASSED] 0x56A2 (DG2) [20:15:58] [PASSED] 0x56BE (DG2) [20:15:58] [PASSED] 0x56BF (DG2) [20:15:58] [PASSED] 0x5690 (DG2) [20:15:58] [PASSED] 0x5691 (DG2) [20:15:58] [PASSED] 0x5692 (DG2) [20:15:58] [PASSED] 0x56A5 (DG2) [20:15:58] [PASSED] 0x56A6 (DG2) [20:15:58] [PASSED] 0x56B0 (DG2) [20:15:58] [PASSED] 0x56B1 (DG2) [20:15:58] [PASSED] 0x56BA (DG2) [20:15:58] [PASSED] 0x56BB (DG2) [20:15:58] [PASSED] 0x56BC (DG2) [20:15:58] [PASSED] 0x56BD (DG2) [20:15:58] [PASSED] 0x5693 (DG2) [20:15:58] [PASSED] 0x5694 (DG2) [20:15:58] [PASSED] 0x5695 (DG2) [20:15:58] [PASSED] 0x56A3 (DG2) [20:15:58] [PASSED] 0x56A4 (DG2) [20:15:58] [PASSED] 0x56B2 (DG2) [20:15:58] [PASSED] 0x56B3 (DG2) [20:15:58] [PASSED] 0x5696 (DG2) [20:15:58] [PASSED] 0x5697 (DG2) [20:15:58] [PASSED] 0xB69 (PVC) [20:15:58] [PASSED] 0xB6E (PVC) [20:15:58] [PASSED] 0xBD4 (PVC) [20:15:58] [PASSED] 0xBD5 (PVC) [20:15:58] [PASSED] 0xBD6 (PVC) [20:15:58] [PASSED] 0xBD7 (PVC) [20:15:58] [PASSED] 0xBD8 (PVC) [20:15:58] [PASSED] 0xBD9 (PVC) [20:15:58] [PASSED] 0xBDA (PVC) [20:15:58] [PASSED] 0xBDB (PVC) [20:15:58] [PASSED] 0xBE0 (PVC) [20:15:58] [PASSED] 0xBE1 (PVC) [20:15:58] [PASSED] 0xBE5 (PVC) [20:15:58] [PASSED] 0x7D40 (METEORLAKE) [20:15:58] [PASSED] 0x7D45 (METEORLAKE) [20:15:58] [PASSED] 0x7D55 (METEORLAKE) [20:15:58] [PASSED] 0x7D60 (METEORLAKE) [20:15:58] [PASSED] 0x7DD5 (METEORLAKE) [20:15:58] [PASSED] 0x6420 (LUNARLAKE) [20:15:58] [PASSED] 0x64A0 (LUNARLAKE) [20:15:58] [PASSED] 0x64B0 (LUNARLAKE) [20:15:58] [PASSED] 0xE202 (BATTLEMAGE) [20:15:58] [PASSED] 0xE209 (BATTLEMAGE) [20:15:58] [PASSED] 0xE20B (BATTLEMAGE) [20:15:58] [PASSED] 0xE20C (BATTLEMAGE) [20:15:58] [PASSED] 0xE20D (BATTLEMAGE) [20:15:58] [PASSED] 0xE210 (BATTLEMAGE) [20:15:58] [PASSED] 0xE211 (BATTLEMAGE) [20:15:58] [PASSED] 0xE212 (BATTLEMAGE) [20:15:58] [PASSED] 0xE216 (BATTLEMAGE) [20:15:58] [PASSED] 0xE220 (BATTLEMAGE) [20:15:58] [PASSED] 0xE221 (BATTLEMAGE) [20:15:58] [PASSED] 0xE222 (BATTLEMAGE) [20:15:58] [PASSED] 0xE223 (BATTLEMAGE) [20:15:58] [PASSED] 0xB080 (PANTHERLAKE) [20:15:58] [PASSED] 0xB081 (PANTHERLAKE) [20:15:58] [PASSED] 0xB082 (PANTHERLAKE) [20:15:58] [PASSED] 0xB083 (PANTHERLAKE) [20:15:58] [PASSED] 0xB084 (PANTHERLAKE) [20:15:58] [PASSED] 0xB085 (PANTHERLAKE) [20:15:58] [PASSED] 0xB086 (PANTHERLAKE) [20:15:58] [PASSED] 0xB087 (PANTHERLAKE) [20:15:58] [PASSED] 0xB08F (PANTHERLAKE) [20:15:58] [PASSED] 0xB090 (PANTHERLAKE) [20:15:58] [PASSED] 0xB0A0 (PANTHERLAKE) [20:15:58] [PASSED] 0xB0B0 (PANTHERLAKE) [20:15:58] [PASSED] 0xFD80 (PANTHERLAKE) [20:15:58] [PASSED] 0xFD81 (PANTHERLAKE) [20:15:58] [PASSED] 0xD740 (NOVALAKE_S) [20:15:58] [PASSED] 0xD741 (NOVALAKE_S) [20:15:58] [PASSED] 0xD742 (NOVALAKE_S) [20:15:58] [PASSED] 0xD743 (NOVALAKE_S) [20:15:58] [PASSED] 0xD744 (NOVALAKE_S) [20:15:58] [PASSED] 0xD745 (NOVALAKE_S) [20:15:58] [PASSED] 0x674C (CRESCENTISLAND) [20:15:58] =============== [PASSED] check_platform_desc =============== [20:15:58] ===================== [PASSED] xe_pci ====================== [20:15:58] =================== xe_rtp (2 subtests) ==================== [20:15:58] =============== xe_rtp_process_to_sr_tests ================ [20:15:58] [PASSED] coalesce-same-reg [20:15:58] [PASSED] no-match-no-add [20:15:58] [PASSED] match-or [20:15:58] [PASSED] match-or-xfail [20:15:58] [PASSED] no-match-no-add-multiple-rules [20:15:58] [PASSED] two-regs-two-entries [20:15:58] [PASSED] clr-one-set-other [20:15:58] [PASSED] set-field [20:15:58] [PASSED] conflict-duplicate [20:15:58] [PASSED] conflict-not-disjoint [20:15:58] [PASSED] conflict-reg-type [20:15:58] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [20:15:58] ================== xe_rtp_process_tests =================== [20:15:58] [PASSED] active1 [20:15:58] [PASSED] active2 [20:15:58] [PASSED] active-inactive [20:15:58] [PASSED] inactive-active [20:15:58] [PASSED] inactive-1st_or_active-inactive [20:15:58] [PASSED] inactive-2nd_or_active-inactive [20:15:58] [PASSED] inactive-last_or_active-inactive [20:15:58] [PASSED] inactive-no_or_active-inactive [20:15:58] ============== [PASSED] xe_rtp_process_tests =============== [20:15:58] ===================== [PASSED] xe_rtp ====================== [20:15:58] ==================== xe_wa (1 subtest) ===================== [20:15:58] ======================== xe_wa_gt ========================= [20:15:58] [PASSED] TIGERLAKE B0 [20:15:58] [PASSED] DG1 A0 [20:15:58] [PASSED] DG1 B0 [20:15:58] [PASSED] ALDERLAKE_S A0 [20:15:58] [PASSED] ALDERLAKE_S B0 [20:15:58] [PASSED] ALDERLAKE_S C0 [20:15:58] [PASSED] ALDERLAKE_S D0 [20:15:58] [PASSED] ALDERLAKE_P A0 [20:15:58] [PASSED] ALDERLAKE_P B0 [20:15:58] [PASSED] ALDERLAKE_P C0 [20:15:58] [PASSED] ALDERLAKE_S RPLS D0 [20:15:58] [PASSED] ALDERLAKE_P RPLU E0 [20:15:58] [PASSED] DG2 G10 C0 [20:15:58] [PASSED] DG2 G11 B1 [20:15:58] [PASSED] DG2 G12 A1 [20:15:58] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0 [20:15:58] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0 [20:15:58] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0 [20:15:58] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0 [20:15:58] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0 [20:15:58] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1 [20:15:58] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [20:15:58] ==================== [PASSED] xe_wa_gt ===================== [20:15:58] ====================== [PASSED] xe_wa ====================== [20:15:58] ============================================================ [20:15:58] Testing complete. Ran 512 tests: passed: 494, skipped: 18 [20:15:58] Elapsed time: 36.144s total, 4.229s configuring, 31.398s building, 0.475s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [20:15:58] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [20:16:00] 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 [20:16:25] Starting KUnit Kernel (1/1)... [20:16:25] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [20:16:25] ============ drm_test_pick_cmdline (2 subtests) ============ [20:16:25] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [20:16:25] =============== drm_test_pick_cmdline_named =============== [20:16:25] [PASSED] NTSC [20:16:25] [PASSED] NTSC-J [20:16:25] [PASSED] PAL [20:16:25] [PASSED] PAL-M [20:16:25] =========== [PASSED] drm_test_pick_cmdline_named =========== [20:16:25] ============== [PASSED] drm_test_pick_cmdline ============== [20:16:25] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [20:16:25] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [20:16:25] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [20:16:25] =========== drm_validate_clone_mode (2 subtests) =========== [20:16:25] ============== drm_test_check_in_clone_mode =============== [20:16:25] [PASSED] in_clone_mode [20:16:25] [PASSED] not_in_clone_mode [20:16:25] ========== [PASSED] drm_test_check_in_clone_mode =========== [20:16:25] =============== drm_test_check_valid_clones =============== [20:16:25] [PASSED] not_in_clone_mode [20:16:25] [PASSED] valid_clone [20:16:25] [PASSED] invalid_clone [20:16:25] =========== [PASSED] drm_test_check_valid_clones =========== [20:16:25] ============= [PASSED] drm_validate_clone_mode ============= [20:16:25] ============= drm_validate_modeset (1 subtest) ============= [20:16:25] [PASSED] drm_test_check_connector_changed_modeset [20:16:25] ============== [PASSED] drm_validate_modeset =============== [20:16:25] ====== drm_test_bridge_get_current_state (2 subtests) ====== [20:16:25] [PASSED] drm_test_drm_bridge_get_current_state_atomic [20:16:25] [PASSED] drm_test_drm_bridge_get_current_state_legacy [20:16:25] ======== [PASSED] drm_test_bridge_get_current_state ======== [20:16:25] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [20:16:25] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [20:16:25] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [20:16:25] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy [20:16:25] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [20:16:25] ============== drm_bridge_alloc (2 subtests) =============== [20:16:25] [PASSED] drm_test_drm_bridge_alloc_basic [20:16:25] [PASSED] drm_test_drm_bridge_alloc_get_put [20:16:25] ================ [PASSED] drm_bridge_alloc ================= [20:16:25] ================== drm_buddy (8 subtests) ================== [20:16:25] [PASSED] drm_test_buddy_alloc_limit [20:16:25] [PASSED] drm_test_buddy_alloc_optimistic [20:16:25] [PASSED] drm_test_buddy_alloc_pessimistic [20:16:25] [PASSED] drm_test_buddy_alloc_pathological [20:16:25] [PASSED] drm_test_buddy_alloc_contiguous [20:16:25] [PASSED] drm_test_buddy_alloc_clear [20:16:25] [PASSED] drm_test_buddy_alloc_range_bias [20:16:25] [PASSED] drm_test_buddy_fragmentation_performance [20:16:25] ==================== [PASSED] drm_buddy ==================== [20:16:25] ============= drm_cmdline_parser (40 subtests) ============= [20:16:25] [PASSED] drm_test_cmdline_force_d_only [20:16:25] [PASSED] drm_test_cmdline_force_D_only_dvi [20:16:25] [PASSED] drm_test_cmdline_force_D_only_hdmi [20:16:25] [PASSED] drm_test_cmdline_force_D_only_not_digital [20:16:25] [PASSED] drm_test_cmdline_force_e_only [20:16:25] [PASSED] drm_test_cmdline_res [20:16:25] [PASSED] drm_test_cmdline_res_vesa [20:16:25] [PASSED] drm_test_cmdline_res_vesa_rblank [20:16:25] [PASSED] drm_test_cmdline_res_rblank [20:16:25] [PASSED] drm_test_cmdline_res_bpp [20:16:25] [PASSED] drm_test_cmdline_res_refresh [20:16:25] [PASSED] drm_test_cmdline_res_bpp_refresh [20:16:25] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [20:16:25] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [20:16:25] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [20:16:25] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [20:16:25] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [20:16:25] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [20:16:25] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [20:16:25] [PASSED] drm_test_cmdline_res_margins_force_on [20:16:25] [PASSED] drm_test_cmdline_res_vesa_margins [20:16:25] [PASSED] drm_test_cmdline_name [20:16:25] [PASSED] drm_test_cmdline_name_bpp [20:16:25] [PASSED] drm_test_cmdline_name_option [20:16:25] [PASSED] drm_test_cmdline_name_bpp_option [20:16:25] [PASSED] drm_test_cmdline_rotate_0 [20:16:25] [PASSED] drm_test_cmdline_rotate_90 [20:16:25] [PASSED] drm_test_cmdline_rotate_180 [20:16:25] [PASSED] drm_test_cmdline_rotate_270 [20:16:25] [PASSED] drm_test_cmdline_hmirror [20:16:25] [PASSED] drm_test_cmdline_vmirror [20:16:25] [PASSED] drm_test_cmdline_margin_options [20:16:25] [PASSED] drm_test_cmdline_multiple_options [20:16:25] [PASSED] drm_test_cmdline_bpp_extra_and_option [20:16:25] [PASSED] drm_test_cmdline_extra_and_option [20:16:25] [PASSED] drm_test_cmdline_freestanding_options [20:16:25] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [20:16:25] [PASSED] drm_test_cmdline_panel_orientation [20:16:25] ================ drm_test_cmdline_invalid ================= [20:16:25] [PASSED] margin_only [20:16:25] [PASSED] interlace_only [20:16:25] [PASSED] res_missing_x [20:16:25] [PASSED] res_missing_y [20:16:25] [PASSED] res_bad_y [20:16:25] [PASSED] res_missing_y_bpp [20:16:25] [PASSED] res_bad_bpp [20:16:25] [PASSED] res_bad_refresh [20:16:25] [PASSED] res_bpp_refresh_force_on_off [20:16:25] [PASSED] res_invalid_mode [20:16:25] [PASSED] res_bpp_wrong_place_mode [20:16:25] [PASSED] name_bpp_refresh [20:16:25] [PASSED] name_refresh [20:16:25] [PASSED] name_refresh_wrong_mode [20:16:25] [PASSED] name_refresh_invalid_mode [20:16:25] [PASSED] rotate_multiple [20:16:25] [PASSED] rotate_invalid_val [20:16:25] [PASSED] rotate_truncated [20:16:25] [PASSED] invalid_option [20:16:25] [PASSED] invalid_tv_option [20:16:25] [PASSED] truncated_tv_option [20:16:25] ============ [PASSED] drm_test_cmdline_invalid ============= [20:16:25] =============== drm_test_cmdline_tv_options =============== [20:16:25] [PASSED] NTSC [20:16:25] [PASSED] NTSC_443 [20:16:25] [PASSED] NTSC_J [20:16:25] [PASSED] PAL [20:16:25] [PASSED] PAL_M [20:16:25] [PASSED] PAL_N [20:16:25] [PASSED] SECAM [20:16:25] [PASSED] MONO_525 [20:16:25] [PASSED] MONO_625 [20:16:25] =========== [PASSED] drm_test_cmdline_tv_options =========== [20:16:25] =============== [PASSED] drm_cmdline_parser ================ [20:16:25] ========== drmm_connector_hdmi_init (20 subtests) ========== [20:16:25] [PASSED] drm_test_connector_hdmi_init_valid [20:16:25] [PASSED] drm_test_connector_hdmi_init_bpc_8 [20:16:25] [PASSED] drm_test_connector_hdmi_init_bpc_10 [20:16:25] [PASSED] drm_test_connector_hdmi_init_bpc_12 [20:16:25] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [20:16:25] [PASSED] drm_test_connector_hdmi_init_bpc_null [20:16:25] [PASSED] drm_test_connector_hdmi_init_formats_empty [20:16:25] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [20:16:25] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [20:16:25] [PASSED] supported_formats=0x9 yuv420_allowed=1 [20:16:25] [PASSED] supported_formats=0x9 yuv420_allowed=0 [20:16:25] [PASSED] supported_formats=0x3 yuv420_allowed=1 [20:16:25] [PASSED] supported_formats=0x3 yuv420_allowed=0 [20:16:25] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [20:16:25] [PASSED] drm_test_connector_hdmi_init_null_ddc [20:16:25] [PASSED] drm_test_connector_hdmi_init_null_product [20:16:25] [PASSED] drm_test_connector_hdmi_init_null_vendor [20:16:25] [PASSED] drm_test_connector_hdmi_init_product_length_exact [20:16:25] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [20:16:25] [PASSED] drm_test_connector_hdmi_init_product_valid [20:16:25] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [20:16:25] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [20:16:25] [PASSED] drm_test_connector_hdmi_init_vendor_valid [20:16:25] ========= drm_test_connector_hdmi_init_type_valid ========= [20:16:25] [PASSED] HDMI-A [20:16:25] [PASSED] HDMI-B [20:16:25] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [20:16:25] ======== drm_test_connector_hdmi_init_type_invalid ======== [20:16:25] [PASSED] Unknown [20:16:25] [PASSED] VGA [20:16:25] [PASSED] DVI-I [20:16:25] [PASSED] DVI-D [20:16:25] [PASSED] DVI-A [20:16:25] [PASSED] Composite [20:16:25] [PASSED] SVIDEO [20:16:25] [PASSED] LVDS [20:16:25] [PASSED] Component [20:16:25] [PASSED] DIN [20:16:25] [PASSED] DP [20:16:25] [PASSED] TV [20:16:25] [PASSED] eDP [20:16:25] [PASSED] Virtual [20:16:25] [PASSED] DSI [20:16:25] [PASSED] DPI [20:16:25] [PASSED] Writeback [20:16:25] [PASSED] SPI [20:16:25] [PASSED] USB [20:16:25] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [20:16:25] ============ [PASSED] drmm_connector_hdmi_init ============= [20:16:25] ============= drmm_connector_init (3 subtests) ============= [20:16:25] [PASSED] drm_test_drmm_connector_init [20:16:25] [PASSED] drm_test_drmm_connector_init_null_ddc [20:16:25] ========= drm_test_drmm_connector_init_type_valid ========= [20:16:25] [PASSED] Unknown [20:16:25] [PASSED] VGA [20:16:25] [PASSED] DVI-I [20:16:25] [PASSED] DVI-D [20:16:25] [PASSED] DVI-A [20:16:25] [PASSED] Composite [20:16:25] [PASSED] SVIDEO [20:16:25] [PASSED] LVDS [20:16:25] [PASSED] Component [20:16:25] [PASSED] DIN [20:16:25] [PASSED] DP [20:16:25] [PASSED] HDMI-A [20:16:25] [PASSED] HDMI-B [20:16:25] [PASSED] TV [20:16:25] [PASSED] eDP [20:16:25] [PASSED] Virtual [20:16:25] [PASSED] DSI [20:16:25] [PASSED] DPI [20:16:25] [PASSED] Writeback [20:16:25] [PASSED] SPI [20:16:25] [PASSED] USB [20:16:25] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [20:16:25] =============== [PASSED] drmm_connector_init =============== [20:16:25] ========= drm_connector_dynamic_init (6 subtests) ========== [20:16:25] [PASSED] drm_test_drm_connector_dynamic_init [20:16:25] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [20:16:25] [PASSED] drm_test_drm_connector_dynamic_init_not_added [20:16:25] [PASSED] drm_test_drm_connector_dynamic_init_properties [20:16:25] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [20:16:25] [PASSED] Unknown [20:16:25] [PASSED] VGA [20:16:25] [PASSED] DVI-I [20:16:25] [PASSED] DVI-D [20:16:25] [PASSED] DVI-A [20:16:25] [PASSED] Composite [20:16:25] [PASSED] SVIDEO [20:16:25] [PASSED] LVDS [20:16:25] [PASSED] Component [20:16:25] [PASSED] DIN [20:16:25] [PASSED] DP [20:16:25] [PASSED] HDMI-A [20:16:25] [PASSED] HDMI-B [20:16:25] [PASSED] TV [20:16:25] [PASSED] eDP [20:16:25] [PASSED] Virtual [20:16:25] [PASSED] DSI [20:16:25] [PASSED] DPI [20:16:25] [PASSED] Writeback [20:16:25] [PASSED] SPI [20:16:25] [PASSED] USB [20:16:25] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [20:16:25] ======== drm_test_drm_connector_dynamic_init_name ========= [20:16:25] [PASSED] Unknown [20:16:25] [PASSED] VGA [20:16:25] [PASSED] DVI-I [20:16:25] [PASSED] DVI-D [20:16:25] [PASSED] DVI-A [20:16:25] [PASSED] Composite [20:16:25] [PASSED] SVIDEO [20:16:25] [PASSED] LVDS [20:16:25] [PASSED] Component [20:16:25] [PASSED] DIN [20:16:25] [PASSED] DP [20:16:25] [PASSED] HDMI-A [20:16:25] [PASSED] HDMI-B [20:16:25] [PASSED] TV [20:16:25] [PASSED] eDP [20:16:25] [PASSED] Virtual [20:16:25] [PASSED] DSI [20:16:25] [PASSED] DPI [20:16:25] [PASSED] Writeback [20:16:25] [PASSED] SPI [20:16:25] [PASSED] USB [20:16:25] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [20:16:25] =========== [PASSED] drm_connector_dynamic_init ============ [20:16:25] ==== drm_connector_dynamic_register_early (4 subtests) ===== [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [20:16:25] ====== [PASSED] drm_connector_dynamic_register_early ======= [20:16:25] ======= drm_connector_dynamic_register (7 subtests) ======== [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_on_list [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_no_init [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [20:16:25] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [20:16:25] ========= [PASSED] drm_connector_dynamic_register ========== [20:16:25] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [20:16:25] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [20:16:25] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [20:16:25] === [PASSED] drm_connector_attach_broadcast_rgb_property === [20:16:25] ========== drm_get_tv_mode_from_name (2 subtests) ========== [20:16:25] ========== drm_test_get_tv_mode_from_name_valid =========== [20:16:25] [PASSED] NTSC [20:16:25] [PASSED] NTSC-443 [20:16:25] [PASSED] NTSC-J [20:16:25] [PASSED] PAL [20:16:25] [PASSED] PAL-M [20:16:25] [PASSED] PAL-N [20:16:25] [PASSED] SECAM [20:16:25] [PASSED] Mono [20:16:25] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [20:16:25] [PASSED] drm_test_get_tv_mode_from_name_truncated [20:16:25] ============ [PASSED] drm_get_tv_mode_from_name ============ [20:16:25] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [20:16:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [20:16:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [20:16:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [20:16:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [20:16:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [20:16:25] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [20:16:25] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [20:16:25] [PASSED] VIC 96 [20:16:25] [PASSED] VIC 97 [20:16:25] [PASSED] VIC 101 [20:16:25] [PASSED] VIC 102 [20:16:25] [PASSED] VIC 106 [20:16:25] [PASSED] VIC 107 [20:16:25] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [20:16:25] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [20:16:25] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [20:16:25] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [20:16:25] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [20:16:25] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [20:16:25] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [20:16:25] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [20:16:25] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [20:16:25] [PASSED] Automatic [20:16:25] [PASSED] Full [20:16:25] [PASSED] Limited 16:235 [20:16:25] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [20:16:25] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [20:16:25] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [20:16:25] == drm_hdmi_connector_get_output_format_name (2 subtests) == [20:16:25] === drm_test_drm_hdmi_connector_get_output_format_name ==== [20:16:25] [PASSED] RGB [20:16:25] [PASSED] YUV 4:2:0 [20:16:25] [PASSED] YUV 4:2:2 [20:16:25] [PASSED] YUV 4:4:4 [20:16:25] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [20:16:25] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [20:16:25] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [20:16:25] ============= drm_damage_helper (21 subtests) ============== [20:16:25] [PASSED] drm_test_damage_iter_no_damage [20:16:25] [PASSED] drm_test_damage_iter_no_damage_fractional_src [20:16:25] [PASSED] drm_test_damage_iter_no_damage_src_moved [20:16:25] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [20:16:25] [PASSED] drm_test_damage_iter_no_damage_not_visible [20:16:25] [PASSED] drm_test_damage_iter_no_damage_no_crtc [20:16:25] [PASSED] drm_test_damage_iter_no_damage_no_fb [20:16:25] [PASSED] drm_test_damage_iter_simple_damage [20:16:25] [PASSED] drm_test_damage_iter_single_damage [20:16:25] [PASSED] drm_test_damage_iter_single_damage_intersect_src [20:16:25] [PASSED] drm_test_damage_iter_single_damage_outside_src [20:16:25] [PASSED] drm_test_damage_iter_single_damage_fractional_src [20:16:25] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [20:16:25] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [20:16:25] [PASSED] drm_test_damage_iter_single_damage_src_moved [20:16:25] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [20:16:25] [PASSED] drm_test_damage_iter_damage [20:16:25] [PASSED] drm_test_damage_iter_damage_one_intersect [20:16:25] [PASSED] drm_test_damage_iter_damage_one_outside [20:16:25] [PASSED] drm_test_damage_iter_damage_src_moved [20:16:25] [PASSED] drm_test_damage_iter_damage_not_visible [20:16:25] ================ [PASSED] drm_damage_helper ================ [20:16:25] ============== drm_dp_mst_helper (3 subtests) ============== [20:16:25] ============== drm_test_dp_mst_calc_pbn_mode ============== [20:16:25] [PASSED] Clock 154000 BPP 30 DSC disabled [20:16:25] [PASSED] Clock 234000 BPP 30 DSC disabled [20:16:25] [PASSED] Clock 297000 BPP 24 DSC disabled [20:16:25] [PASSED] Clock 332880 BPP 24 DSC enabled [20:16:25] [PASSED] Clock 324540 BPP 24 DSC enabled [20:16:25] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [20:16:25] ============== drm_test_dp_mst_calc_pbn_div =============== [20:16:25] [PASSED] Link rate 2000000 lane count 4 [20:16:25] [PASSED] Link rate 2000000 lane count 2 [20:16:25] [PASSED] Link rate 2000000 lane count 1 [20:16:25] [PASSED] Link rate 1350000 lane count 4 [20:16:25] [PASSED] Link rate 1350000 lane count 2 [20:16:25] [PASSED] Link rate 1350000 lane count 1 [20:16:25] [PASSED] Link rate 1000000 lane count 4 [20:16:25] [PASSED] Link rate 1000000 lane count 2 [20:16:25] [PASSED] Link rate 1000000 lane count 1 [20:16:25] [PASSED] Link rate 810000 lane count 4 [20:16:25] [PASSED] Link rate 810000 lane count 2 [20:16:25] [PASSED] Link rate 810000 lane count 1 [20:16:25] [PASSED] Link rate 540000 lane count 4 [20:16:25] [PASSED] Link rate 540000 lane count 2 [20:16:25] [PASSED] Link rate 540000 lane count 1 [20:16:25] [PASSED] Link rate 270000 lane count 4 [20:16:25] [PASSED] Link rate 270000 lane count 2 [20:16:25] [PASSED] Link rate 270000 lane count 1 [20:16:25] [PASSED] Link rate 162000 lane count 4 [20:16:25] [PASSED] Link rate 162000 lane count 2 [20:16:25] [PASSED] Link rate 162000 lane count 1 [20:16:25] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [20:16:25] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [20:16:25] [PASSED] DP_ENUM_PATH_RESOURCES with port number [20:16:25] [PASSED] DP_POWER_UP_PHY with port number [20:16:25] [PASSED] DP_POWER_DOWN_PHY with port number [20:16:25] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [20:16:25] [PASSED] DP_ALLOCATE_PAYLOAD with port number [20:16:25] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [20:16:25] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [20:16:25] [PASSED] DP_QUERY_PAYLOAD with port number [20:16:25] [PASSED] DP_QUERY_PAYLOAD with VCPI [20:16:25] [PASSED] DP_REMOTE_DPCD_READ with port number [20:16:25] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [20:16:25] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [20:16:25] [PASSED] DP_REMOTE_DPCD_WRITE with port number [20:16:25] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [20:16:25] [PASSED] DP_REMOTE_DPCD_WRITE with data array [20:16:25] [PASSED] DP_REMOTE_I2C_READ with port number [20:16:25] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [20:16:25] [PASSED] DP_REMOTE_I2C_READ with transactions array [20:16:25] [PASSED] DP_REMOTE_I2C_WRITE with port number [20:16:25] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [20:16:25] [PASSED] DP_REMOTE_I2C_WRITE with data array [20:16:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [20:16:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [20:16:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [20:16:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [20:16:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [20:16:25] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [20:16:25] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [20:16:25] ================ [PASSED] drm_dp_mst_helper ================ [20:16:25] ================== drm_exec (7 subtests) =================== [20:16:25] [PASSED] sanitycheck [20:16:25] [PASSED] test_lock [20:16:25] [PASSED] test_lock_unlock [20:16:25] [PASSED] test_duplicates [20:16:25] [PASSED] test_prepare [20:16:25] [PASSED] test_prepare_array [20:16:25] [PASSED] test_multiple_loops [20:16:25] ==================== [PASSED] drm_exec ===================== [20:16:25] =========== drm_format_helper_test (17 subtests) =========== [20:16:25] ============== drm_test_fb_xrgb8888_to_gray8 ============== [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [20:16:25] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [20:16:25] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [20:16:25] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [20:16:25] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [20:16:25] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [20:16:25] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [20:16:25] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [20:16:25] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [20:16:25] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [20:16:25] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [20:16:25] ============== drm_test_fb_xrgb8888_to_mono =============== [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [20:16:25] ==================== drm_test_fb_swab ===================== [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ================ [PASSED] drm_test_fb_swab ================= [20:16:25] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [20:16:25] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [20:16:25] [PASSED] single_pixel_source_buffer [20:16:25] [PASSED] single_pixel_clip_rectangle [20:16:25] [PASSED] well_known_colors [20:16:25] [PASSED] destination_pitch [20:16:25] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [20:16:25] ================= drm_test_fb_clip_offset ================= [20:16:25] [PASSED] pass through [20:16:25] [PASSED] horizontal offset [20:16:25] [PASSED] vertical offset [20:16:25] [PASSED] horizontal and vertical offset [20:16:25] [PASSED] horizontal offset (custom pitch) [20:16:25] [PASSED] vertical offset (custom pitch) [20:16:25] [PASSED] horizontal and vertical offset (custom pitch) [20:16:25] ============= [PASSED] drm_test_fb_clip_offset ============= [20:16:25] =================== drm_test_fb_memcpy ==================== [20:16:25] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [20:16:25] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [20:16:25] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [20:16:25] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [20:16:25] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [20:16:25] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [20:16:25] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [20:16:25] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [20:16:25] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [20:16:25] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [20:16:25] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [20:16:25] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [20:16:25] =============== [PASSED] drm_test_fb_memcpy ================ [20:16:25] ============= [PASSED] drm_format_helper_test ============== [20:16:25] ================= drm_format (18 subtests) ================= [20:16:25] [PASSED] drm_test_format_block_width_invalid [20:16:25] [PASSED] drm_test_format_block_width_one_plane [20:16:25] [PASSED] drm_test_format_block_width_two_plane [20:16:25] [PASSED] drm_test_format_block_width_three_plane [20:16:25] [PASSED] drm_test_format_block_width_tiled [20:16:25] [PASSED] drm_test_format_block_height_invalid [20:16:25] [PASSED] drm_test_format_block_height_one_plane [20:16:25] [PASSED] drm_test_format_block_height_two_plane [20:16:25] [PASSED] drm_test_format_block_height_three_plane [20:16:25] [PASSED] drm_test_format_block_height_tiled [20:16:25] [PASSED] drm_test_format_min_pitch_invalid [20:16:25] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [20:16:25] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [20:16:25] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [20:16:25] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [20:16:25] [PASSED] drm_test_format_min_pitch_two_plane [20:16:25] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [20:16:25] [PASSED] drm_test_format_min_pitch_tiled [20:16:25] =================== [PASSED] drm_format ==================== [20:16:25] ============== drm_framebuffer (10 subtests) =============== [20:16:25] ========== drm_test_framebuffer_check_src_coords ========== [20:16:25] [PASSED] Success: source fits into fb [20:16:25] [PASSED] Fail: overflowing fb with x-axis coordinate [20:16:25] [PASSED] Fail: overflowing fb with y-axis coordinate [20:16:25] [PASSED] Fail: overflowing fb with source width [20:16:25] [PASSED] Fail: overflowing fb with source height [20:16:25] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [20:16:25] [PASSED] drm_test_framebuffer_cleanup [20:16:25] =============== drm_test_framebuffer_create =============== [20:16:25] [PASSED] ABGR8888 normal sizes [20:16:25] [PASSED] ABGR8888 max sizes [20:16:25] [PASSED] ABGR8888 pitch greater than min required [20:16:25] [PASSED] ABGR8888 pitch less than min required [20:16:25] [PASSED] ABGR8888 Invalid width [20:16:25] [PASSED] ABGR8888 Invalid buffer handle [20:16:25] [PASSED] No pixel format [20:16:25] [PASSED] ABGR8888 Width 0 [20:16:25] [PASSED] ABGR8888 Height 0 [20:16:25] [PASSED] ABGR8888 Out of bound height * pitch combination [20:16:25] [PASSED] ABGR8888 Large buffer offset [20:16:25] [PASSED] ABGR8888 Buffer offset for inexistent plane [20:16:25] [PASSED] ABGR8888 Invalid flag [20:16:25] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [20:16:25] [PASSED] ABGR8888 Valid buffer modifier [20:16:25] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [20:16:25] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [20:16:25] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [20:16:25] [PASSED] NV12 Normal sizes [20:16:25] [PASSED] NV12 Max sizes [20:16:25] [PASSED] NV12 Invalid pitch [20:16:25] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [20:16:25] [PASSED] NV12 different modifier per-plane [20:16:25] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [20:16:25] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [20:16:25] [PASSED] NV12 Modifier for inexistent plane [20:16:25] [PASSED] NV12 Handle for inexistent plane [20:16:25] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [20:16:25] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [20:16:25] [PASSED] YVU420 Normal sizes [20:16:25] [PASSED] YVU420 Max sizes [20:16:25] [PASSED] YVU420 Invalid pitch [20:16:25] [PASSED] YVU420 Different pitches [20:16:25] [PASSED] YVU420 Different buffer offsets/pitches [20:16:25] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [20:16:25] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [20:16:25] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [20:16:25] [PASSED] YVU420 Valid modifier [20:16:25] [PASSED] YVU420 Different modifiers per plane [20:16:25] [PASSED] YVU420 Modifier for inexistent plane [20:16:25] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [20:16:25] [PASSED] X0L2 Normal sizes [20:16:25] [PASSED] X0L2 Max sizes [20:16:25] [PASSED] X0L2 Invalid pitch [20:16:25] [PASSED] X0L2 Pitch greater than minimum required [20:16:25] [PASSED] X0L2 Handle for inexistent plane [20:16:25] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [20:16:25] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [20:16:25] [PASSED] X0L2 Valid modifier [20:16:25] [PASSED] X0L2 Modifier for inexistent plane [20:16:25] =========== [PASSED] drm_test_framebuffer_create =========== [20:16:25] [PASSED] drm_test_framebuffer_free [20:16:25] [PASSED] drm_test_framebuffer_init [20:16:25] [PASSED] drm_test_framebuffer_init_bad_format [20:16:25] [PASSED] drm_test_framebuffer_init_dev_mismatch [20:16:25] [PASSED] drm_test_framebuffer_lookup [20:16:25] [PASSED] drm_test_framebuffer_lookup_inexistent [20:16:25] [PASSED] drm_test_framebuffer_modifiers_not_supported [20:16:25] ================= [PASSED] drm_framebuffer ================= [20:16:25] ================ drm_gem_shmem (8 subtests) ================ [20:16:25] [PASSED] drm_gem_shmem_test_obj_create [20:16:25] [PASSED] drm_gem_shmem_test_obj_create_private [20:16:25] [PASSED] drm_gem_shmem_test_pin_pages [20:16:25] [PASSED] drm_gem_shmem_test_vmap [20:16:25] [PASSED] drm_gem_shmem_test_get_sg_table [20:16:25] [PASSED] drm_gem_shmem_test_get_pages_sgt [20:16:25] [PASSED] drm_gem_shmem_test_madvise [20:16:25] [PASSED] drm_gem_shmem_test_purge [20:16:25] ================== [PASSED] drm_gem_shmem ================== [20:16:25] === drm_atomic_helper_connector_hdmi_check (27 subtests) === [20:16:25] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [20:16:25] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [20:16:25] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [20:16:25] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [20:16:25] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [20:16:25] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [20:16:25] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [20:16:25] [PASSED] Automatic [20:16:25] [PASSED] Full [20:16:25] [PASSED] Limited 16:235 [20:16:25] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [20:16:25] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [20:16:25] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [20:16:25] [PASSED] drm_test_check_disable_connector [20:16:25] [PASSED] drm_test_check_hdmi_funcs_reject_rate [20:16:25] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [20:16:25] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [20:16:25] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [20:16:25] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [20:16:25] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [20:16:25] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [20:16:25] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [20:16:25] [PASSED] drm_test_check_output_bpc_dvi [20:16:25] [PASSED] drm_test_check_output_bpc_format_vic_1 [20:16:25] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [20:16:25] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [20:16:25] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [20:16:25] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [20:16:25] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [20:16:25] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [20:16:25] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [20:16:25] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [20:16:25] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [20:16:25] [PASSED] drm_test_check_broadcast_rgb_value [20:16:25] [PASSED] drm_test_check_bpc_8_value [20:16:25] [PASSED] drm_test_check_bpc_10_value [20:16:25] [PASSED] drm_test_check_bpc_12_value [20:16:25] [PASSED] drm_test_check_format_value [20:16:25] [PASSED] drm_test_check_tmds_char_value [20:16:25] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [20:16:25] = drm_atomic_helper_connector_hdmi_mode_valid (4 subtests) = [20:16:25] [PASSED] drm_test_check_mode_valid [20:16:25] [PASSED] drm_test_check_mode_valid_reject [20:16:25] [PASSED] drm_test_check_mode_valid_reject_rate [20:16:25] [PASSED] drm_test_check_mode_valid_reject_max_clock [20:16:25] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [20:16:25] ================= drm_managed (2 subtests) ================= [20:16:25] [PASSED] drm_test_managed_release_action [20:16:25] [PASSED] drm_test_managed_run_action [20:16:25] =================== [PASSED] drm_managed =================== [20:16:25] =================== drm_mm (6 subtests) ==================== [20:16:25] [PASSED] drm_test_mm_init [20:16:25] [PASSED] drm_test_mm_debug [20:16:25] [PASSED] drm_test_mm_align32 [20:16:25] [PASSED] drm_test_mm_align64 [20:16:25] [PASSED] drm_test_mm_lowest [20:16:25] [PASSED] drm_test_mm_highest [20:16:25] ===================== [PASSED] drm_mm ====================== [20:16:25] ============= drm_modes_analog_tv (5 subtests) ============= [20:16:25] [PASSED] drm_test_modes_analog_tv_mono_576i [20:16:25] [PASSED] drm_test_modes_analog_tv_ntsc_480i [20:16:25] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [20:16:25] [PASSED] drm_test_modes_analog_tv_pal_576i [20:16:25] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [20:16:25] =============== [PASSED] drm_modes_analog_tv =============== [20:16:25] ============== drm_plane_helper (2 subtests) =============== [20:16:25] =============== drm_test_check_plane_state ================ [20:16:25] [PASSED] clipping_simple [20:16:25] [PASSED] clipping_rotate_reflect [20:16:25] [PASSED] positioning_simple [20:16:25] [PASSED] upscaling [20:16:25] [PASSED] downscaling [20:16:25] [PASSED] rounding1 [20:16:25] [PASSED] rounding2 [20:16:25] [PASSED] rounding3 [20:16:25] [PASSED] rounding4 [20:16:25] =========== [PASSED] drm_test_check_plane_state ============ [20:16:25] =========== drm_test_check_invalid_plane_state ============ [20:16:25] [PASSED] positioning_invalid [20:16:25] [PASSED] upscaling_invalid [20:16:25] [PASSED] downscaling_invalid [20:16:25] ======= [PASSED] drm_test_check_invalid_plane_state ======== [20:16:25] ================ [PASSED] drm_plane_helper ================= [20:16:25] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [20:16:25] ====== drm_test_connector_helper_tv_get_modes_check ======= [20:16:25] [PASSED] None [20:16:25] [PASSED] PAL [20:16:25] [PASSED] NTSC [20:16:25] [PASSED] Both, NTSC Default [20:16:25] [PASSED] Both, PAL Default [20:16:25] [PASSED] Both, NTSC Default, with PAL on command-line [20:16:25] [PASSED] Both, PAL Default, with NTSC on command-line [20:16:25] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [20:16:25] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [20:16:25] ================== drm_rect (9 subtests) =================== [20:16:25] [PASSED] drm_test_rect_clip_scaled_div_by_zero [20:16:25] [PASSED] drm_test_rect_clip_scaled_not_clipped [20:16:25] [PASSED] drm_test_rect_clip_scaled_clipped [20:16:25] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [20:16:25] ================= drm_test_rect_intersect ================= [20:16:25] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [20:16:25] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [20:16:25] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [20:16:25] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [20:16:25] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [20:16:25] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [20:16:25] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [20:16:25] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [20:16:25] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [20:16:25] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [20:16:25] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [20:16:25] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [20:16:25] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [20:16:25] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [20:16:25] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [20:16:25] ============= [PASSED] drm_test_rect_intersect ============= [20:16:25] ================ drm_test_rect_calc_hscale ================ [20:16:25] [PASSED] normal use [20:16:25] [PASSED] out of max range [20:16:25] [PASSED] out of min range [20:16:25] [PASSED] zero dst [20:16:25] [PASSED] negative src [20:16:25] [PASSED] negative dst [20:16:25] ============ [PASSED] drm_test_rect_calc_hscale ============ [20:16:25] ================ drm_test_rect_calc_vscale ================ [20:16:25] [PASSED] normal use stty: 'standard input': Inappropriate ioctl for device [20:16:25] [PASSED] out of max range [20:16:25] [PASSED] out of min range [20:16:25] [PASSED] zero dst [20:16:25] [PASSED] negative src [20:16:25] [PASSED] negative dst [20:16:25] ============ [PASSED] drm_test_rect_calc_vscale ============ [20:16:25] ================== drm_test_rect_rotate =================== [20:16:25] [PASSED] reflect-x [20:16:25] [PASSED] reflect-y [20:16:25] [PASSED] rotate-0 [20:16:25] [PASSED] rotate-90 [20:16:25] [PASSED] rotate-180 [20:16:25] [PASSED] rotate-270 [20:16:25] ============== [PASSED] drm_test_rect_rotate =============== [20:16:25] ================ drm_test_rect_rotate_inv ================= [20:16:25] [PASSED] reflect-x [20:16:25] [PASSED] reflect-y [20:16:25] [PASSED] rotate-0 [20:16:25] [PASSED] rotate-90 [20:16:25] [PASSED] rotate-180 [20:16:25] [PASSED] rotate-270 [20:16:25] ============ [PASSED] drm_test_rect_rotate_inv ============= [20:16:25] ==================== [PASSED] drm_rect ===================== [20:16:25] ============ drm_sysfb_modeset_test (1 subtest) ============ [20:16:25] ============ drm_test_sysfb_build_fourcc_list ============= [20:16:25] [PASSED] no native formats [20:16:25] [PASSED] XRGB8888 as native format [20:16:25] [PASSED] remove duplicates [20:16:25] [PASSED] convert alpha formats [20:16:25] [PASSED] random formats [20:16:25] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [20:16:25] ============= [PASSED] drm_sysfb_modeset_test ============== [20:16:25] ================== drm_fixp (2 subtests) =================== [20:16:25] [PASSED] drm_test_int2fixp [20:16:25] [PASSED] drm_test_sm2fixp [20:16:25] ==================== [PASSED] drm_fixp ===================== [20:16:25] ============================================================ [20:16:25] Testing complete. Ran 624 tests: passed: 624 [20:16:25] Elapsed time: 27.249s total, 1.644s configuring, 25.184s building, 0.377s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [20:16:25] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [20:16:27] 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 [20:16:37] Starting KUnit Kernel (1/1)... [20:16:37] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [20:16:37] ================= ttm_device (5 subtests) ================== [20:16:37] [PASSED] ttm_device_init_basic [20:16:37] [PASSED] ttm_device_init_multiple [20:16:37] [PASSED] ttm_device_fini_basic [20:16:37] [PASSED] ttm_device_init_no_vma_man [20:16:37] ================== ttm_device_init_pools ================== [20:16:37] [PASSED] No DMA allocations, no DMA32 required [20:16:37] [PASSED] DMA allocations, DMA32 required [20:16:37] [PASSED] No DMA allocations, DMA32 required [20:16:37] [PASSED] DMA allocations, no DMA32 required [20:16:37] ============== [PASSED] ttm_device_init_pools ============== [20:16:37] =================== [PASSED] ttm_device ==================== [20:16:37] ================== ttm_pool (8 subtests) =================== [20:16:37] ================== ttm_pool_alloc_basic =================== [20:16:37] [PASSED] One page [20:16:37] [PASSED] More than one page [20:16:37] [PASSED] Above the allocation limit [20:16:37] [PASSED] One page, with coherent DMA mappings enabled [20:16:37] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [20:16:37] ============== [PASSED] ttm_pool_alloc_basic =============== [20:16:37] ============== ttm_pool_alloc_basic_dma_addr ============== [20:16:37] [PASSED] One page [20:16:37] [PASSED] More than one page [20:16:37] [PASSED] Above the allocation limit [20:16:37] [PASSED] One page, with coherent DMA mappings enabled [20:16:37] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [20:16:37] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [20:16:37] [PASSED] ttm_pool_alloc_order_caching_match [20:16:37] [PASSED] ttm_pool_alloc_caching_mismatch [20:16:37] [PASSED] ttm_pool_alloc_order_mismatch [20:16:37] [PASSED] ttm_pool_free_dma_alloc [20:16:37] [PASSED] ttm_pool_free_no_dma_alloc [20:16:37] [PASSED] ttm_pool_fini_basic [20:16:37] ==================== [PASSED] ttm_pool ===================== [20:16:37] ================ ttm_resource (8 subtests) ================= [20:16:37] ================= ttm_resource_init_basic ================= [20:16:37] [PASSED] Init resource in TTM_PL_SYSTEM [20:16:37] [PASSED] Init resource in TTM_PL_VRAM [20:16:37] [PASSED] Init resource in a private placement [20:16:37] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [20:16:37] ============= [PASSED] ttm_resource_init_basic ============= [20:16:37] [PASSED] ttm_resource_init_pinned [20:16:37] [PASSED] ttm_resource_fini_basic [20:16:37] [PASSED] ttm_resource_manager_init_basic [20:16:37] [PASSED] ttm_resource_manager_usage_basic [20:16:37] [PASSED] ttm_resource_manager_set_used_basic [20:16:37] [PASSED] ttm_sys_man_alloc_basic [20:16:37] [PASSED] ttm_sys_man_free_basic [20:16:37] ================== [PASSED] ttm_resource =================== [20:16:37] =================== ttm_tt (15 subtests) =================== [20:16:37] ==================== ttm_tt_init_basic ==================== [20:16:37] [PASSED] Page-aligned size [20:16:37] [PASSED] Extra pages requested [20:16:37] ================ [PASSED] ttm_tt_init_basic ================ [20:16:37] [PASSED] ttm_tt_init_misaligned [20:16:37] [PASSED] ttm_tt_fini_basic [20:16:37] [PASSED] ttm_tt_fini_sg [20:16:37] [PASSED] ttm_tt_fini_shmem [20:16:37] [PASSED] ttm_tt_create_basic [20:16:37] [PASSED] ttm_tt_create_invalid_bo_type [20:16:37] [PASSED] ttm_tt_create_ttm_exists [20:16:37] [PASSED] ttm_tt_create_failed [20:16:37] [PASSED] ttm_tt_destroy_basic [20:16:37] [PASSED] ttm_tt_populate_null_ttm [20:16:37] [PASSED] ttm_tt_populate_populated_ttm [20:16:37] [PASSED] ttm_tt_unpopulate_basic [20:16:37] [PASSED] ttm_tt_unpopulate_empty_ttm [20:16:37] [PASSED] ttm_tt_swapin_basic [20:16:37] ===================== [PASSED] ttm_tt ====================== [20:16:37] =================== ttm_bo (14 subtests) =================== [20:16:37] =========== ttm_bo_reserve_optimistic_no_ticket =========== [20:16:37] [PASSED] Cannot be interrupted and sleeps [20:16:37] [PASSED] Cannot be interrupted, locks straight away [20:16:37] [PASSED] Can be interrupted, sleeps [20:16:37] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [20:16:37] [PASSED] ttm_bo_reserve_locked_no_sleep [20:16:37] [PASSED] ttm_bo_reserve_no_wait_ticket [20:16:37] [PASSED] ttm_bo_reserve_double_resv [20:16:37] [PASSED] ttm_bo_reserve_interrupted [20:16:37] [PASSED] ttm_bo_reserve_deadlock [20:16:37] [PASSED] ttm_bo_unreserve_basic [20:16:37] [PASSED] ttm_bo_unreserve_pinned [20:16:37] [PASSED] ttm_bo_unreserve_bulk [20:16:37] [PASSED] ttm_bo_fini_basic [20:16:37] [PASSED] ttm_bo_fini_shared_resv [20:16:37] [PASSED] ttm_bo_pin_basic [20:16:37] [PASSED] ttm_bo_pin_unpin_resource [20:16:37] [PASSED] ttm_bo_multiple_pin_one_unpin [20:16:37] ===================== [PASSED] ttm_bo ====================== [20:16:37] ============== ttm_bo_validate (21 subtests) =============== [20:16:37] ============== ttm_bo_init_reserved_sys_man =============== [20:16:37] [PASSED] Buffer object for userspace [20:16:37] [PASSED] Kernel buffer object [20:16:37] [PASSED] Shared buffer object [20:16:37] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [20:16:37] ============== ttm_bo_init_reserved_mock_man ============== [20:16:37] [PASSED] Buffer object for userspace [20:16:37] [PASSED] Kernel buffer object [20:16:37] [PASSED] Shared buffer object [20:16:37] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [20:16:37] [PASSED] ttm_bo_init_reserved_resv [20:16:37] ================== ttm_bo_validate_basic ================== [20:16:37] [PASSED] Buffer object for userspace [20:16:37] [PASSED] Kernel buffer object [20:16:37] [PASSED] Shared buffer object [20:16:37] ============== [PASSED] ttm_bo_validate_basic ============== [20:16:37] [PASSED] ttm_bo_validate_invalid_placement [20:16:37] ============= ttm_bo_validate_same_placement ============== [20:16:37] [PASSED] System manager [20:16:37] [PASSED] VRAM manager [20:16:37] ========= [PASSED] ttm_bo_validate_same_placement ========== [20:16:37] [PASSED] ttm_bo_validate_failed_alloc [20:16:37] [PASSED] ttm_bo_validate_pinned [20:16:37] [PASSED] ttm_bo_validate_busy_placement [20:16:37] ================ ttm_bo_validate_multihop ================= [20:16:37] [PASSED] Buffer object for userspace [20:16:37] [PASSED] Kernel buffer object [20:16:37] [PASSED] Shared buffer object [20:16:37] ============ [PASSED] ttm_bo_validate_multihop ============= [20:16:37] ========== ttm_bo_validate_no_placement_signaled ========== [20:16:37] [PASSED] Buffer object in system domain, no page vector [20:16:37] [PASSED] Buffer object in system domain with an existing page vector [20:16:37] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [20:16:37] ======== ttm_bo_validate_no_placement_not_signaled ======== [20:16:37] [PASSED] Buffer object for userspace [20:16:37] [PASSED] Kernel buffer object [20:16:37] [PASSED] Shared buffer object [20:16:37] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [20:16:37] [PASSED] ttm_bo_validate_move_fence_signaled [20:16:37] ========= ttm_bo_validate_move_fence_not_signaled ========= [20:16:37] [PASSED] Waits for GPU [20:16:37] [PASSED] Tries to lock straight away [20:16:37] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [20:16:37] [PASSED] ttm_bo_validate_happy_evict [20:16:37] [PASSED] ttm_bo_validate_all_pinned_evict [20:16:37] [PASSED] ttm_bo_validate_allowed_only_evict [20:16:37] [PASSED] ttm_bo_validate_deleted_evict [20:16:37] [PASSED] ttm_bo_validate_busy_domain_evict [20:16:37] [PASSED] ttm_bo_validate_evict_gutting [20:16:37] [PASSED] ttm_bo_validate_recrusive_evict stty: 'standard input': Inappropriate ioctl for device [20:16:37] ================= [PASSED] ttm_bo_validate ================= [20:16:37] ============================================================ [20:16:37] Testing complete. Ran 101 tests: passed: 101 [20:16:37] Elapsed time: 11.406s total, 1.661s configuring, 9.530s building, 0.176s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
Patchwork
CI✗ CI.checksparse: warning for Enable THP support in drm_pagemap (rev6)
In reply to Francois Dugast== Series Details ==
== Series Details ==
Series: Enable THP support in drm_pagemap (rev6)
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 733664f1edf3c01cc68e6dd0bbdb135158a98a1d
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
Patchwork
CI✓ Xe.CI.BAT: success for Enable THP support in drm_pagemap (rev6)
In reply to Francois Dugast== Series Details ==
== Series Details ==
Series: Enable THP support in drm_pagemap (rev6)
URL : https://patchwork.freedesktop.org/series/159119/
State : success
== Summary ==
CI Bug Log - changes from xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d_BAT -> xe-pw-159119v6_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-159119v6_BAT that come from known issues:
### IGT changes ###
#### Possible fixes ####
* igt@xe_waitfence@reltime:
- bat-dg2-oem2: [FAIL][1] ([Intel XE#6520]) -> [PASS][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/bat-dg2-oem2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/bat-dg2-oem2/igt@[email protected]
[Intel XE#6520]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6520
Build changes
-------------
* Linux: xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d -> xe-pw-159119v6
IGT_8701: 8701
xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d: 733664f1edf3c01cc68e6dd0bbdb135158a98a1d
xe-pw-159119v6: 159119v6
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/index.html
Patchwork
CI✗ Xe.CI.Full: failure for Enable THP support in drm_pagemap (rev6)
In reply to Francois Dugast== Series Details ==
== Series Details ==
Series: Enable THP support in drm_pagemap (rev6)
URL : https://patchwork.freedesktop.org/series/159119/
State : failure
== Summary ==
CI Bug Log - changes from xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d_FULL -> xe-pw-159119v6_FULL
====================================================
Summary
-------
**WARNING**
Minor unknown changes coming with xe-pw-159119v6_FULL need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in xe-pw-159119v6_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-159119v6_FULL:
### IGT changes ###
#### Warnings ####
* igt@xe_exec_system_allocator@process-many-mmap-file-mlock-nomemset:
- shard-lnl: [DMESG-WARN][1] ([Intel XE#4537]) -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-lnl-3/igt@xe_exec_system_allocator@process-many-mmap-file-mlock-nomemset.html
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-lnl-3/igt@xe_exec_system_allocator@process-many-mmap-file-mlock-nomemset.html
Known issues
------------
Here are the changes found in xe-pw-159119v6_FULL that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_3d@basic:
- shard-lnl: NOTRUN -> [SKIP][3] ([Intel XE#6011])
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-lnl-7/igt@[email protected]
* igt@kms_atomic_transition@plane-all-modeset-transition-internal-panels:
- shard-bmg: NOTRUN -> [SKIP][4] ([Intel XE#2370])
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@kms_atomic_transition@plane-all-modeset-transition-internal-panels.html
* igt@kms_big_fb@linear-32bpp-rotate-270:
- shard-bmg: NOTRUN -> [SKIP][5] ([Intel XE#2327]) +4 other tests skip
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_big_fb@linear-64bpp-rotate-90:
- shard-lnl: NOTRUN -> [SKIP][6] ([Intel XE#1407])
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-lnl-7/igt@[email protected]
* igt@kms_big_fb@linear-max-hw-stride-32bpp-rotate-180-hflip:
- shard-bmg: NOTRUN -> [SKIP][7] ([Intel XE#7059])
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_big_fb@y-tiled-addfb:
- shard-bmg: NOTRUN -> [SKIP][8] ([Intel XE#2328])
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180:
- shard-bmg: NOTRUN -> [SKIP][9] ([Intel XE#1124]) +12 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@kms_bw@connected-linear-tiling-3-displays-1920x1080p:
- shard-bmg: NOTRUN -> [SKIP][10] ([Intel XE#2314] / [Intel XE#2894]) +1 other test skip
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_bw@linear-tiling-4-displays-3840x2160p:
- shard-bmg: NOTRUN -> [SKIP][11] ([Intel XE#367]) +3 other tests skip
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@kms_ccs@bad-rotation-90-4-tiled-dg2-mc-ccs:
- shard-bmg: NOTRUN -> [SKIP][12] ([Intel XE#2887]) +16 other tests skip
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-mtl-rc-ccs:
- shard-bmg: NOTRUN -> [SKIP][13] ([Intel XE#3432])
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@[email protected]
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-lnl-ccs@pipe-b-dp-2:
- shard-bmg: NOTRUN -> [SKIP][14] ([Intel XE#2652] / [Intel XE#787]) +8 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@kms_ccs@[email protected]
* igt@kms_cdclk@plane-scaling:
- shard-bmg: NOTRUN -> [SKIP][15] ([Intel XE#2724])
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_chamelium_color@ctm-0-25:
- shard-bmg: NOTRUN -> [SKIP][16] ([Intel XE#2325]) +2 other tests skip
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-10/igt@[email protected]
* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- shard-bmg: NOTRUN -> [SKIP][17] ([Intel XE#2252]) +9 other tests skip
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_content_protection@dp-mst-lic-type-0:
- shard-bmg: NOTRUN -> [SKIP][18] ([Intel XE#2390] / [Intel XE#6974])
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_content_protection@dp-mst-type-1-suspend-resume:
- shard-bmg: NOTRUN -> [SKIP][19] ([Intel XE#6974])
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@[email protected]
* igt@kms_content_protection@lic-type-0-hdcp14@pipe-a-dp-2:
- shard-bmg: NOTRUN -> [FAIL][20] ([Intel XE#3304]) +3 other tests fail
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@kms_content_protection@[email protected]
* igt@kms_content_protection@suspend-resume@pipe-a-dp-2:
- shard-bmg: NOTRUN -> [FAIL][21] ([Intel XE#1178] / [Intel XE#3304]) +3 other tests fail
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@kms_content_protection@[email protected]
* igt@kms_cursor_crc@cursor-random-32x32:
- shard-bmg: NOTRUN -> [SKIP][22] ([Intel XE#2320]) +2 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-10/igt@[email protected]
* igt@kms_dither@fb-8bpc-vs-panel-6bpc@pipe-a-hdmi-a-3:
- shard-bmg: NOTRUN -> [SKIP][23] ([Intel XE#1340])
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@kms_dither@[email protected]
* igt@kms_dp_link_training@uhbr-sst:
- shard-bmg: NOTRUN -> [SKIP][24] ([Intel XE#4354])
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-10/igt@[email protected]
* igt@kms_dp_linktrain_fallback@dsc-fallback:
- shard-bmg: NOTRUN -> [SKIP][25] ([Intel XE#4331])
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_dsc@dsc-with-output-formats-with-bpc:
- shard-bmg: NOTRUN -> [SKIP][26] ([Intel XE#2244]) +2 other tests skip
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_fbcon_fbt@psr:
- shard-bmg: NOTRUN -> [SKIP][27] ([Intel XE#776])
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_feature_discovery@display-3x:
- shard-bmg: NOTRUN -> [SKIP][28] ([Intel XE#2373])
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/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-159119v6/shard-bmg-2/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-downscaling.html
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@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-159119v6/shard-bmg-7/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-valid-mode.html
* igt@kms_frontbuffer_tracking@drrs-1p-primscrn-cur-indfb-draw-render:
- shard-lnl: NOTRUN -> [SKIP][31] ([Intel XE#651])
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-lnl-7/igt@kms_frontbuffer_tracking@drrs-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-shrfb-msflip-blt:
- shard-lnl: NOTRUN -> [SKIP][32] ([Intel XE#656])
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-lnl-7/igt@[email protected]
* igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-spr-indfb-draw-blt:
- shard-bmg: NOTRUN -> [SKIP][33] ([Intel XE#2311]) +34 other tests skip
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-spr-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-indfb-msflip-blt:
- shard-bmg: NOTRUN -> [SKIP][34] ([Intel XE#4141]) +15 other tests skip
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-argb161616f-draw-render:
- shard-bmg: NOTRUN -> [SKIP][35] ([Intel XE#7061]) +7 other tests skip
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscreen-pri-indfb-draw-mmap-wc:
- shard-bmg: NOTRUN -> [SKIP][36] ([Intel XE#2313]) +34 other tests skip
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscreen-pri-indfb-draw-mmap-wc.html
* igt@kms_hdr@bpc-switch-dpms@pipe-a-dp-2:
- shard-bmg: [PASS][37] -> [ABORT][38] ([Intel XE#6740]) +1 other test abort
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-2/igt@kms_hdr@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@kms_hdr@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-bmg: NOTRUN -> [ABORT][39] ([Intel XE#6740]) +1 other test abort
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@kms_hdr@brightness-with-hdr:
- shard-bmg: NOTRUN -> [SKIP][40] ([Intel XE#3374] / [Intel XE#3544])
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_joiner@basic-max-non-joiner:
- shard-bmg: NOTRUN -> [SKIP][41] ([Intel XE#4298])
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_joiner@invalid-modeset-force-ultra-joiner:
- shard-bmg: NOTRUN -> [SKIP][42] ([Intel XE#6911])
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@[email protected]
* igt@kms_joiner@switch-modeset-ultra-joiner-big-joiner:
- shard-bmg: NOTRUN -> [SKIP][43] ([Intel XE#2925])
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
- shard-bmg: NOTRUN -> [SKIP][44] ([Intel XE#2501])
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@kms_panel_fitting@legacy:
- shard-bmg: NOTRUN -> [SKIP][45] ([Intel XE#2486])
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc@pipe-d-dp-2:
- shard-bmg: [PASS][46] -> [DMESG-FAIL][47] ([Intel XE#5545]) +1 other test dmesg-fail
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@kms_pipe_crc_basic@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@kms_pipe_crc_basic@[email protected]
* igt@kms_plane_cursor@viewport:
- shard-bmg: NOTRUN -> [INCOMPLETE][48] ([Intel XE#1727] / [Intel XE#6819])
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_plane_cursor@viewport@pipe-c-dp-2-size-256:
- shard-bmg: NOTRUN -> [DMESG-FAIL][49] ([Intel XE#1727] / [Intel XE#6819])
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@kms_plane_cursor@[email protected]
* igt@kms_plane_multiple@tiling-yf:
- shard-bmg: NOTRUN -> [SKIP][50] ([Intel XE#5020])
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-c:
- shard-bmg: NOTRUN -> [SKIP][51] ([Intel XE#6886]) +4 other tests skip
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-10/igt@kms_plane_scaling@[email protected]
* igt@kms_pm_rpm@dpms-lpsp:
- shard-bmg: NOTRUN -> [SKIP][52] ([Intel XE#1439] / [Intel XE#3141] / [Intel XE#836])
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_pm_rpm@package-g7:
- shard-bmg: NOTRUN -> [SKIP][53] ([Intel XE#6814])
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_psr2_sf@psr2-primary-plane-update-sf-dmg-area-big-fb:
- shard-bmg: NOTRUN -> [SKIP][54] ([Intel XE#1406] / [Intel XE#1489]) +8 other tests skip
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_psr2_su@page_flip-p010:
- shard-bmg: NOTRUN -> [SKIP][55] ([Intel XE#1406] / [Intel XE#2387])
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@kms_psr2_su@page_flip-p010.html
* igt@kms_psr@fbc-psr2-cursor-plane-move:
- shard-bmg: NOTRUN -> [SKIP][56] ([Intel XE#1406] / [Intel XE#2234] / [Intel XE#2850]) +14 other tests skip
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
- shard-bmg: NOTRUN -> [SKIP][57] ([Intel XE#1406] / [Intel XE#2414])
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_rotation_crc@primary-y-tiled-reflect-x-180:
- shard-bmg: NOTRUN -> [SKIP][58] ([Intel XE#2330]) +1 other test skip
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_rotation_crc@primary-y-tiled-reflect-x-270:
- shard-bmg: NOTRUN -> [SKIP][59] ([Intel XE#3414] / [Intel XE#3904])
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_scaling_modes@scaling-mode-full:
- shard-bmg: NOTRUN -> [SKIP][60] ([Intel XE#2413])
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- shard-bmg: NOTRUN -> [SKIP][61] ([Intel XE#1435])
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@[email protected]
* igt@kms_sharpness_filter@invalid-filter-with-scaler:
- shard-bmg: NOTRUN -> [SKIP][62] ([Intel XE#6503]) +1 other test skip
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-bmg: NOTRUN -> [SKIP][63] ([Intel XE#2509])
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_vrr@flip-suspend:
- shard-bmg: NOTRUN -> [SKIP][64] ([Intel XE#1499])
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@xe_eudebug@vma-ufence:
- shard-bmg: NOTRUN -> [SKIP][65] ([Intel XE#4837]) +9 other tests skip
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@xe_eudebug_online@breakpoint-many-sessions-single-tile:
- shard-bmg: NOTRUN -> [SKIP][66] ([Intel XE#4837] / [Intel XE#6665]) +5 other tests skip
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@[email protected]
* igt@xe_eudebug_online@pagefault-one-of-many:
- shard-bmg: NOTRUN -> [SKIP][67] ([Intel XE#6665])
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-10/igt@[email protected]
* igt@xe_eudebug_online@pagefault-read-stress:
- shard-bmg: NOTRUN -> [SKIP][68] ([Intel XE#6665] / [Intel XE#6681])
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@xe_eudebug_sriov@deny-sriov:
- shard-bmg: NOTRUN -> [SKIP][69] ([Intel XE#5793])
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@xe_exec_basic@multigpu-once-null-rebind:
- shard-bmg: NOTRUN -> [SKIP][70] ([Intel XE#2322]) +11 other tests skip
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-10/igt@[email protected]
* igt@xe_exec_multi_queue@two-queues-priority:
- shard-bmg: NOTRUN -> [SKIP][71] ([Intel XE#6874]) +32 other tests skip
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@xe_exec_system_allocator@many-64k-mmap-new-huge-nomemset:
- shard-bmg: NOTRUN -> [SKIP][72] ([Intel XE#5007])
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@xe_exec_system_allocator@threads-shared-vm-many-execqueues-mmap-new-huge:
- shard-bmg: NOTRUN -> [SKIP][73] ([Intel XE#4943]) +28 other tests skip
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@xe_exec_system_allocator@threads-shared-vm-many-execqueues-mmap-new-huge.html
* igt@xe_multigpu_svm@mgpu-atomic-op-basic:
- shard-bmg: NOTRUN -> [SKIP][74] ([Intel XE#6964]) +2 other tests skip
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@xe_pat@pat-index-xehpc:
- shard-bmg: NOTRUN -> [SKIP][75] ([Intel XE#1420])
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@xe_peer2peer@read:
- shard-bmg: NOTRUN -> [SKIP][76] ([Intel XE#2427] / [Intel XE#6953])
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@[email protected]
* igt@xe_pm@d3cold-i2c:
- shard-bmg: NOTRUN -> [SKIP][77] ([Intel XE#5694])
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@xe_pm@d3cold-multiple-execs:
- shard-bmg: NOTRUN -> [SKIP][78] ([Intel XE#2284]) +2 other tests skip
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@xe_pxp@pxp-stale-bo-bind-post-termination-irq:
- shard-bmg: NOTRUN -> [SKIP][79] ([Intel XE#4733]) +2 other tests skip
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@xe_query@multigpu-query-mem-usage:
- shard-bmg: NOTRUN -> [SKIP][80] ([Intel XE#944]) +3 other tests skip
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-7/igt@[email protected]
* igt@xe_vm@mmap-style-bind-many-either-side-partial-hammer:
- shard-bmg: [PASS][81] -> [SKIP][82] ([Intel XE#6703]) +78 other tests skip
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
#### Possible fixes ####
* igt@kms_flip@2x-flip-vs-absolute-wf_vblank:
- shard-bmg: [ABORT][83] ([Intel XE#5545]) -> [PASS][84] +1 other test pass
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-2/igt@kms_flip@2x-flip-vs-absolute-wf_vblank.html
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-1/igt@kms_flip@2x-flip-vs-absolute-wf_vblank.html
* igt@testdisplay:
- shard-bmg: [ABORT][85] ([Intel XE#6740] / [Intel XE#6976]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-9/[email protected]
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-10/[email protected]
* igt@xe_compute@loop-duration-2s:
- shard-bmg: [FAIL][87] -> [PASS][88]
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-10/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-8/igt@[email protected]
* igt@xe_evict@evict-mixed-many-threads-small:
- shard-bmg: [INCOMPLETE][89] ([Intel XE#6321]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-8/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-9/igt@[email protected]
#### Warnings ####
* igt@kms_big_fb@4-tiled-8bpp-rotate-90:
- shard-bmg: [SKIP][91] ([Intel XE#2327]) -> [SKIP][92] ([Intel XE#6703])
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_big_fb@yf-tiled-8bpp-rotate-90:
- shard-bmg: [SKIP][93] ([Intel XE#1124]) -> [SKIP][94] ([Intel XE#6703]) +1 other test skip
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_bw@linear-tiling-1-displays-1920x1080p:
- shard-bmg: [SKIP][95] ([Intel XE#367]) -> [SKIP][96] ([Intel XE#6703])
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_ccs@crc-primary-basic-4-tiled-mtl-mc-ccs:
- shard-bmg: [SKIP][97] ([Intel XE#2887]) -> [SKIP][98] ([Intel XE#6703]) +2 other tests skip
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_chamelium_audio@hdmi-audio-edid:
- shard-bmg: [SKIP][99] ([Intel XE#2252]) -> [SKIP][100] ([Intel XE#6703]) +2 other tests skip
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_cursor_crc@cursor-sliding-512x512:
- shard-bmg: [SKIP][101] ([Intel XE#2321]) -> [SKIP][102] ([Intel XE#6703])
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling:
- shard-bmg: [SKIP][103] ([Intel XE#2293] / [Intel XE#2380]) -> [SKIP][104] ([Intel XE#6703])
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling.html
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen:
- shard-bmg: [SKIP][105] ([Intel XE#4141]) -> [SKIP][106] ([Intel XE#6703]) +1 other test skip
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen.html
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen.html
* igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-pri-shrfb-draw-render:
- shard-bmg: [SKIP][107] ([Intel XE#2311]) -> [SKIP][108] ([Intel XE#6703]) +5 other tests skip
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-pri-shrfb-draw-render.html
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-pri-shrfb-draw-render.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-indfb-pgflip-blt:
- shard-bmg: [SKIP][109] ([Intel XE#2313]) -> [SKIP][110] ([Intel XE#6703]) +5 other tests skip
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-abgr161616f-draw-blt:
- shard-bmg: [SKIP][111] ([Intel XE#7061]) -> [SKIP][112] ([Intel XE#6703])
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_pm_dc@dc6-psr:
- shard-bmg: [SKIP][113] ([Intel XE#2392]) -> [SKIP][114] ([Intel XE#6703])
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_psr2_sf@fbc-psr2-overlay-plane-move-continuous-sf:
- shard-bmg: [SKIP][115] ([Intel XE#1406] / [Intel XE#1489]) -> [SKIP][116] ([Intel XE#1406] / [Intel XE#6703]) +1 other test skip
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_psr@pr-sprite-plane-onoff:
- shard-bmg: [SKIP][117] ([Intel XE#1406] / [Intel XE#2234] / [Intel XE#2850]) -> [SKIP][118] ([Intel XE#1406] / [Intel XE#6703]) +1 other test skip
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-270:
- shard-bmg: [SKIP][119] ([Intel XE#3414] / [Intel XE#3904]) -> [SKIP][120] ([Intel XE#6703])
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern:
- shard-bmg: [SKIP][121] ([Intel XE#2426]) -> [FAIL][122] ([Intel XE#1729])
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@kms_vrr@flip-basic:
- shard-bmg: [SKIP][123] ([Intel XE#1499]) -> [SKIP][124] ([Intel XE#6703])
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@xe_eudebug@basic-connect:
- shard-bmg: [SKIP][125] ([Intel XE#4837]) -> [SKIP][126] ([Intel XE#6703])
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@xe_eudebug_online@set-breakpoint-sigint-debugger:
- shard-bmg: [SKIP][127] ([Intel XE#4837] / [Intel XE#6665]) -> [SKIP][128] ([Intel XE#6703])
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@xe_exec_basic@multigpu-once-null-defer-bind:
- shard-bmg: [SKIP][129] ([Intel XE#2322]) -> [SKIP][130] ([Intel XE#6703])
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@xe_exec_multi_queue@many-queues-preempt-mode-close-fd:
- shard-bmg: [SKIP][131] ([Intel XE#6874]) -> [SKIP][132] ([Intel XE#6703]) +4 other tests skip
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@xe_exec_system_allocator@twice-large-mmap-huge:
- shard-bmg: [SKIP][133] ([Intel XE#4943]) -> [SKIP][134] ([Intel XE#6703]) +1 other test skip
[133]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
* igt@xe_pxp@pxp-termination-key-update-post-suspend:
- shard-bmg: [SKIP][135] ([Intel XE#4733]) -> [SKIP][136] ([Intel XE#6703])
[135]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d/shard-bmg-7/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/shard-bmg-2/igt@[email protected]
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1178
[Intel XE#1340]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1340
[Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406
[Intel XE#1407]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1407
[Intel XE#1420]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1420
[Intel XE#1435]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1435
[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#1727]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1727
[Intel XE#1729]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1729
[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#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#2370]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2370
[Intel XE#2373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2373
[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#2392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2392
[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#2426]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2426
[Intel XE#2427]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2427
[Intel XE#2486]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2486
[Intel XE#2501]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2501
[Intel XE#2509]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2509
[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#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#2925]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2925
[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#3374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3374
[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#3544]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3544
[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#4331]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4331
[Intel XE#4354]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4354
[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#5020]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5020
[Intel XE#5545]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5545
[Intel XE#5694]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5694
[Intel XE#5793]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5793
[Intel XE#6011]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6011
[Intel XE#6321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6321
[Intel XE#6503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6503
[Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651
[Intel XE#656]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/656
[Intel XE#6665]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6665
[Intel XE#6681]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6681
[Intel XE#6703]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6703
[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#6819]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6819
[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#6911]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6911
[Intel XE#6953]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6953
[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#776]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/776
[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#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
Build changes
-------------
* Linux: xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d -> xe-pw-159119v6
IGT_8701: 8701
xe-4384-733664f1edf3c01cc68e6dd0bbdb135158a98a1d: 733664f1edf3c01cc68e6dd0bbdb135158a98a1d
xe-pw-159119v6: 159119v6
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-159119v6/index.html