mm: remove nth_page()
Subsystems (38)
cover mm: remove nth_page()
This is based on mm-unstable.
I will only CC non-MM folks on the cover letter and the respective patch to not flood too many inboxes (the lists receive all patches).
--
As discussed recently with Linus, nth_page() is just nasty and we would like to remove it.
To recap, the reason we currently need nth_page() within a folio is because on some kernel configs (SPARSEMEM without SPARSEMEM_VMEMMAP), the memmap is allocated per memory section.
While buddy allocations cannot cross memory section boundaries, hugetlb and dax folios can.
So crossing a memory section means that "page++" could do the wrong thing. Instead, nth_page() on these problematic configs always goes from page->pfn, to the go from (++pfn)->page, which is rather nasty.
Likely, many people have no idea when nth_page() is required and when it might be dropped.
We refer to such problematic PFN ranges and "non-contiguous pages". If we only deal with "contiguous pages", there is not need for nth_page().
Besides that "obvious" folio case, we might end up using nth_page() within CMA allocations (again, could span memory sections), and in one corner case (kfence) when processing memblock allocations (again, could span memory sections).
So let's handle all that, add sanity checks, and remove nth_page().
Patch #1 -> #5 : stop making SPARSEMEM_VMEMMAP user-selectable + cleanups
Patch #6 -> #13 : disallow folios to have non-contiguous pages Patch #14 -> #20 : remove nth_page() usage within folios
Patch #21 : disallow CMA allocations of non-contiguous pages
Patch #22 -> #32 : sanity+check + remove nth_page() usage within SG entry
Patch #33 : sanity-check + remove nth_page() usage in
unpin_user_page_range_dirty_lock()
Patch #34 : remove nth_page() in kfence Patch #35 : adjust stale comment regarding nth_page Patch #36 : mm: remove nth_page()
A lot of this is inspired from the discussion at [1] between Linus, Jason and me, so cudos to them.
[1] https://lore.kernel.org/all/CAHk-=wiCYfNp4AJLBORU-c7ZyRBUp66W2-Et6cdQ4REx-GyQ_A@mail.gmail.com/T/#u
RFC -> v1:
* "wireguard: selftests: remove CONFIG_SPARSEMEM_VMEMMAP=y from qemu kernel config"
-> Mention that it was never really relevant for the test
* "mm/mm_init: make memmap_init_compound() look more like prep_compound_page()"
-> Mention the setup of page links
* "mm: limit folio/compound page sizes in problematic kernel configs" -> Improve comment for PUD handling, mentioning hugetlb and dax
* "mm: simplify folio_page() and folio_page_idx()"
-> Call variable "n"
* "mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()"
-> Keep __init_single_page() and refer to the usage of
memblock_reserved_mark_noinit()
* "fs: hugetlbfs: cleanup folio in adjust_range_hwpoison()"
* "fs: hugetlbfs: remove nth_page() usage within folio in adjust_range_hwpoison()"
-> Separate nth_page() removal from cleanups
-> Further improve cleanups
* "io_uring/zcrx: remove nth_page() usage within folio"
-> Keep the io_copy_cache for now and limit to nth_page() removal
* "mm/gup: drop nth_page() usage within folio when recording subpages" -> Cleanup record_subpages as bit
* "mm/cma: refuse handing out non-contiguous page ranges"
-> Replace another instance of "pfn_to_page(pfn)" where we already have
the page
* "scatterlist: disallow non-contigous page ranges in a single SG entry" -> We have to EXPORT the symbol. I thought about moving it to mm_inline.h, but I really don't want to include that in include/linux/scatterlist.h
* "ata: libata-eh: drop nth_page() usage within SG entry"
* "mspro_block: drop nth_page() usage within SG entry"
* "memstick: drop nth_page() usage within SG entry"
* "mmc: drop nth_page() usage within SG entry"
-> Keep PAGE_SHIFT
* "scsi: scsi_lib: drop nth_page() usage within SG entry"
* "scsi: sg: drop nth_page() usage within SG entry"
-> Split patches, Keep PAGE_SHIFT
* "crypto: remove nth_page() usage within SG entry"
-> Keep PAGE_SHIFT
* "kfence: drop nth_page() usage"
-> Keep modifying i and use "start_pfn" only instead
David Hildenbrand (36):
mm: stop making SPARSEMEM_VMEMMAP user-selectable
arm64: Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP" s390/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP" x86/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
wireguard: selftests: remove CONFIG_SPARSEMEM_VMEMMAP=y from qemu
kernel config
mm/page_alloc: reject unreasonable folio/compound page sizes in
alloc_contig_range_noprof()
mm/memremap: reject unreasonable folio/compound page sizes in
memremap_pages()
mm/hugetlb: check for unreasonable folio sizes when registering hstate mm/mm_init: make memmap_init_compound() look more like
prep_compound_page()
mm: sanity-check maximum folio size in folio_set_order()
mm: limit folio/compound page sizes in problematic kernel configs
mm: simplify folio_page() and folio_page_idx()
mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap() mm/mm/percpu-km: drop nth_page() usage within single allocation
fs: hugetlbfs: remove nth_page() usage within folio in
adjust_range_hwpoison()
fs: hugetlbfs: cleanup folio in adjust_range_hwpoison() mm/pagewalk: drop nth_page() usage within folio in folio_walk_start() mm/gup: drop nth_page() usage within folio when recording subpages io_uring/zcrx: remove nth_page() usage within folio
mips: mm: convert __flush_dcache_pages() to
__flush_dcache_folio_pages()
mm/cma: refuse handing out non-contiguous page ranges
dma-remap: drop nth_page() in dma_common_contiguous_remap()
scatterlist: disallow non-contigous page ranges in a single SG entry
ata: libata-eh: drop nth_page() usage within SG entry drm/i915/gem: drop nth_page() usage within SG entry
mspro_block: drop nth_page() usage within SG entry
memstick: drop nth_page() usage within SG entry
mmc: drop nth_page() usage within SG entry
scsi: scsi_lib: drop nth_page() usage within SG entry
scsi: sg: drop nth_page() usage within SG entry
vfio/pci: drop nth_page() usage within SG entry
crypto: remove nth_page() usage within SG entry
mm/gup: drop nth_page() usage in unpin_user_page_range_dirty_lock()
kfence: drop nth_page() usage
block: update comment of "struct bio_vec" regarding nth_page()
mm: remove nth_page()
arch/arm64/Kconfig | 1 - arch/mips/include/asm/cacheflush.h | 11 +++-- arch/mips/mm/cache.c | 8 ++-- arch/s390/Kconfig | 1 - arch/x86/Kconfig | 1 - crypto/ahash.c | 4 +- crypto/scompress.c | 8 ++-- drivers/ata/libata-sff.c | 6 +-- drivers/gpu/drm/i915/gem/i915_gem_pages.c | 2 +- drivers/memstick/core/mspro_block.c | 3 +- drivers/memstick/host/jmb38x_ms.c | 3 +- drivers/memstick/host/tifm_ms.c | 3 +- drivers/mmc/host/tifm_sd.c | 4 +- drivers/mmc/host/usdhi6rol0.c | 4 +- drivers/scsi/scsi_lib.c | 3 +- drivers/scsi/sg.c | 3 +- drivers/vfio/pci/pds/lm.c | 3 +- drivers/vfio/pci/virtio/migrate.c | 3 +- fs/hugetlbfs/inode.c | 33 +++++-------- include/crypto/scatterwalk.h | 4 +- include/linux/bvec.h | 7 +-- include/linux/mm.h | 48 +++++++++++++++---- include/linux/page-flags.h | 5 +- include/linux/scatterlist.h | 3 +- io_uring/zcrx.c | 4 +- kernel/dma/remap.c | 2 +- mm/Kconfig | 3 +- mm/cma.c | 39 +++++++++------ mm/gup.c | 14 ++++-- mm/hugetlb.c | 22 +++++---- mm/internal.h | 1 + mm/kfence/core.c | 12 +++-- mm/memremap.c | 3 ++ mm/mm_init.c | 15 +++--- mm/page_alloc.c | 5 +- mm/pagewalk.c | 2 +- mm/percpu-km.c | 2 +- mm/util.c | 34 +++++++++++++ tools/testing/scatterlist/linux/mm.h | 1 - .../selftests/wireguard/qemu/kernel.config | 1 - 40 files changed, 202 insertions(+), 129 deletions(-)
base-commit: efa7612003b44c220551fd02466bfbad5180fc83
Signature · 1 line
2.50.1
PATCH 1/36 mm: stop making SPARSEMEM_VMEMMAP user-selectable
In an ideal world, we wouldn't have to deal with SPARSEMEM without SPARSEMEM_VMEMMAP, but in particular for 32bit SPARSEMEM_VMEMMAP is considered too costly and consequently not supported.
However, if an architecture does support SPARSEMEM with SPARSEMEM_VMEMMAP, let's forbid the user to disable VMEMMAP: just like we already do for arm64, s390 and x86.
So if SPARSEMEM_VMEMMAP is supported, don't allow to use SPARSEMEM without SPARSEMEM_VMEMMAP.
This implies that the option to not use SPARSEMEM_VMEMMAP will now be gone for loongarch, powerpc, riscv and sparc. All architectures only enable SPARSEMEM_VMEMMAP with 64bit support, so there should not really be a big downside to using the VMEMMAP (quite the contrary).
This is a preparation for not supporting
(1) folio sizes that exceed a single memory section
(2) CMA allocations of non-contiguous page ranges
in SPARSEMEM without SPARSEMEM_VMEMMAP configs, whereby we want to limit possible impact as much as possible (e.g., gigantic hugetlb page allocations suddenly fails).
--- mm/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
mm/Kconfig +1 -2
@@ -439,9 +439,8 @@ config SPARSEMEM_VMEMMAP_ENABLE bool config SPARSEMEM_VMEMMAP - bool "Sparse Memory virtual memmap" + def_bool y depends on SPARSEMEM && SPARSEMEM_VMEMMAP_ENABLE - default y help SPARSEMEM_VMEMMAP uses a virtually mapped memmap to optimise pfn_to_page and page_to_pfn operations. This is the most
Signature · 1 line
2.50.1
PATCH 2/36 arm64: Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandNow handled by the core automatically once SPARSEMEM_VMEMMAP_ENABLE is selected.
--- arch/arm64/Kconfig | 1 - 1 file changed, 1 deletion(-)
arch/arm64/Kconfig +0 -1
@@ -1570,7 +1570,6 @@ source "kernel/Kconfig.hz" config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_VMEMMAP_ENABLE - select SPARSEMEM_VMEMMAP config HW_PERF_EVENTS def_bool y
Signature · 1 line
2.50.1
PATCH 3/36 s390/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandNow handled by the core automatically once SPARSEMEM_VMEMMAP_ENABLE is selected.
--- arch/s390/Kconfig | 1 - 1 file changed, 1 deletion(-)
arch/s390/Kconfig +0 -1
@@ -710,7 +710,6 @@ menu "Memory setup" config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_VMEMMAP_ENABLE - select SPARSEMEM_VMEMMAP config ARCH_SPARSEMEM_DEFAULT def_bool y
Signature · 1 line
2.50.1
PATCH 4/36 x86/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandNow handled by the core automatically once SPARSEMEM_VMEMMAP_ENABLE is selected.
--- arch/x86/Kconfig | 1 - 1 file changed, 1 deletion(-)
arch/x86/Kconfig +0 -1
@@ -1552,7 +1552,6 @@ config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_STATIC if X86_32 select SPARSEMEM_VMEMMAP_ENABLE if X86_64 - select SPARSEMEM_VMEMMAP if X86_64 config ARCH_SPARSEMEM_DEFAULT def_bool X86_64 || (NUMA && X86_32)
Signature · 1 line
2.50.1
PATCH 5/36 wireguard: selftests: remove CONFIG_SPARSEMEM_VMEMMAP=y from qemu kernel config
In reply to David HildenbrandIt's no longer user-selectable (and the default was already "y"), so let's just drop it.
It was never really relevant to the wireguard selftests either way.
--- tools/testing/selftests/wireguard/qemu/kernel.config | 1 - 1 file changed, 1 deletion(-)
tools/testing/selftests/wireguard/qemu/kernel.config +0 -1
@@ -48,7 +48,6 @@ CONFIG_JUMP_LABEL=y CONFIG_FUTEX=y CONFIG_SHMEM=y CONFIG_SLUB=y -CONFIG_SPARSEMEM_VMEMMAP=y CONFIG_SMP=y CONFIG_SCHED_SMT=y CONFIG_SCHED_MC=y
Signature · 1 line
2.50.1
PATCH 6/36 mm/page_alloc: reject unreasonable folio/compound page sizes in alloc_contig_range_noprof()
In reply to David HildenbrandLet's reject them early, which in turn makes folio_alloc_gigantic() reject them properly.
To avoid converting from order to nr_pages, let's just add MAX_FOLIO_ORDER and calculate MAX_FOLIO_NR_PAGES based on that.
--- include/linux/mm.h | 6 ++++-- mm/page_alloc.c | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-)
include/linux/mm.h +4 -2
@@ -2055,11 +2055,13 @@ static inline long folio_nr_pages(const struct folio *folio)/* Only hugetlbfs can allocate folios larger than MAX_ORDER */ #ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE -#define MAX_FOLIO_NR_PAGES (1UL << PUD_ORDER) +#define MAX_FOLIO_ORDER PUD_ORDER#else -#define MAX_FOLIO_NR_PAGES MAX_ORDER_NR_PAGES +#define MAX_FOLIO_ORDER MAX_PAGE_ORDER#endif +#define MAX_FOLIO_NR_PAGES (1UL << MAX_FOLIO_ORDER) +/* * compound_nr() returns the number of pages in this potentially compound * page. compound_nr() can be called on a tail page, and is defined to
mm/page_alloc.c +4 -1
@@ -6833,6 +6833,7 @@ static int __alloc_contig_verify_gfp_mask(gfp_t gfp_mask, gfp_t *gfp_cc_mask)int alloc_contig_range_noprof (unsigned long start,unsigned long end,acr_flags_t alloc_flags,gfp_t gfp_mask) { +const unsigned int order =ilog2 (end - start);unsigned long outer_start, outer_end;int ret =0 ;
@@ -6850,6 +6851,9 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end, PB_ISOLATE_MODE_CMA_ALLOC :PB_ISOLATE_MODE_OTHER ; +if (WARN_ON_ONCE ((gfp_mask & __GFP_COMP) && order >MAX_FOLIO_ORDER )) +return -EINVAL ; + gfp_mask =current_gfp_context (gfp_mask);if (__alloc_contig_verify_gfp_mask (gfp_mask, (gfp_t *)&cc.gfp_mask))return -EINVAL ;
@@ -6947,7 +6951,6 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end,free_contig_range (end, outer_end - end); }else if (start == outer_start && end == outer_end &&is_power_of_2 (end - start)) {struct page *head =pfn_to_page (start); -int order =ilog2 (end - start);check_new_pages (head, order);prep_new_page (head, order, gfp_mask,0 );
Signature · 1 line
2.50.1
PATCH 7/36 mm/memremap: reject unreasonable folio/compound page sizes in memremap_pages()
In reply to David HildenbrandLet's reject unreasonable folio sizes early, where we can still fail. We'll add sanity checks to prepare_compound_head/prepare_compound_page next.
Is there a way to configure a system such that unreasonable folio sizes would be possible? It would already be rather questionable.
If so, we'd probably want to bail out earlier, where we can avoid a WARN and just report a proper error message that indicates where something went wrong such that we messed up.
--- mm/memremap.c | 3 +++ 1 file changed, 3 insertions(+)
mm/memremap.c +3 -0
@@ -275,6 +275,9 @@ void *memremap_pages(struct dev_pagemap *pgmap, int nid)if (WARN_ONCE (!nr_range,"nr_range must be specified\n" ))return ERR_PTR (-EINVAL ); +if (WARN_ONCE (pgmap->vmemmap_shift >MAX_FOLIO_ORDER , +"requested folio size unsupported\n" )) +return ERR_PTR (-EINVAL );switch (pgmap->type) {case MEMORY_DEVICE_PRIVATE :
Signature · 1 line
2.50.1
PATCH 8/36 mm/hugetlb: check for unreasonable folio sizes when registering hstate
In reply to David HildenbrandLet's check that no hstate that corresponds to an unreasonable folio size is registered by an architecture. If we were to succeed registering, we could later try allocating an unsupported gigantic folio size.
Further, let's add a BUILD_BUG_ON() for checking that HUGETLB_PAGE_ORDER is sane at build time. As HUGETLB_PAGE_ORDER is dynamic on powerpc, we have to use a BUILD_BUG_ON_INVALID() to make it compile.
No existing kernel configuration should be able to trigger this check:
either SPARSEMEM without SPARSEMEM_VMEMMAP cannot be configured or gigantic folios will not exceed a memory section (the case on sparse).
--- mm/hugetlb.c | 2 ++ 1 file changed, 2 insertions(+)
mm/hugetlb.c +2 -0
@@ -4657,6 +4657,7 @@ static int __init hugetlb_init(void) BUILD_BUG_ON(sizeof_field(struct page, private) * BITS_PER_BYTE < __NR_HPAGEFLAGS); +BUILD_BUG_ON_INVALID (HUGETLB_PAGE_ORDER >MAX_FOLIO_ORDER );if (!hugepages_supported ()) {if (hugetlb_max_hstate || default_hstate_max_huge_pages)
@@ -4740,6 +4741,7 @@ void __init hugetlb_add_hstate(unsigned int order) }BUG_ON (hugetlb_max_hstate >=HUGE_MAX_HSTATE );BUG_ON (order <order_base_2 (__NR_USED_SUBPAGE)); +WARN_ON (order >MAX_FOLIO_ORDER ); h = &hstates[hugetlb_max_hstate++];__mutex_init (&h->resize_lock,"resize mutex" , &h->resize_key); h->order = order;
Signature · 1 line
2.50.1
PATCH 9/36 mm/mm_init: make memmap_init_compound() look more like prep_compound_page()
In reply to David HildenbrandGrepping for "prep_compound_page" leaves on clueless how devdax gets its compound pages initialized.
Let's add a comment that might help finding this open-coded prep_compound_page() initialization more easily.
Further, let's be less smart about the ordering of initialization and just perform the prep_compound_head() call after all tail pages were
initialized: just like prep_compound_page() does.
No need for a comment to describe the initialization order: again, just like prep_compound_page().
--- mm/mm_init.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
mm/mm_init.c +7 -8
@@ -1091,6 +1091,12 @@ static void __ref memmap_init_compound(struct page *head,unsigned long pfn, end_pfn = head_pfn + nr_pages;unsigned int order = pgmap->vmemmap_shift; +/* +* We have to initialize the pages, including setting up page links. +* prep_compound_page() does not take care of that, so instead we +* open-code prep_compound_page() so we can take care of initializing +* the pages in the same go. +*/ __SetPageHead (head);for (pfn = head_pfn +1 ; pfn < end_pfn; pfn++) {struct page *page =pfn_to_page (pfn);
@@ -1098,15 +1104,8 @@ static void __ref memmap_init_compound(struct page *head,__init_zone_device_page (page, pfn, zone_idx, nid, pgmap);prep_compound_tail (head, pfn - head_pfn);set_page_count (page,0 ); - -/* -* The first tail page stores important compound page info. -* Call prep_compound_head() after the first tail page has -* been initialized, to not have the data overwritten. -*/ -if (pfn == head_pfn +1 ) -prep_compound_head (head, order); } +prep_compound_head (head, order); } void __ref memmap_init_zone_device(struct zone *zone,
Signature · 1 line
2.50.1
PATCH 10/36 mm: sanity-check maximum folio size in folio_set_order()
In reply to David HildenbrandLet's sanity-check in folio_set_order() whether we would be trying to create a folio with an order that would make it exceed MAX_FOLIO_ORDER.
This will enable the check whenever a folio/compound page is initialized through prepare_compound_head() / prepare_compound_page().
--- mm/internal.h | 1 + 1 file changed, 1 insertion(+)
mm/internal.h +1 -0
@@ -755,6 +755,7 @@ static inline void folio_set_order(struct folio *folio, unsigned int order) {if (WARN_ON_ONCE (!order || !folio_test_large (folio)))return ; +VM_WARN_ON_ONCE (order >MAX_FOLIO_ORDER ); folio->_flags_1 = (folio->_flags_1 & ~0xffUL ) | order;#ifdef NR_PAGES_IN_LARGE_FOLIO
Signature · 1 line
2.50.1
PATCH 11/36 mm: limit folio/compound page sizes in problematic kernel configs
In reply to David HildenbrandLet's limit the maximum folio size in problematic kernel config where the memmap is allocated per memory section (SPARSEMEM without SPARSEMEM_VMEMMAP) to a single memory section.
Currently, only a single architectures supports ARCH_HAS_GIGANTIC_PAGE but not SPARSEMEM_VMEMMAP: sh.
Fortunately, the biggest hugetlb size sh supports is 64 MiB (HUGETLB_PAGE_SIZE_64MB) and the section size is at least 64 MiB (SECTION_SIZE_BITS == 26), so their use case is not degraded.
As folios and memory sections are naturally aligned to their order-2 size in memory, consequently a single folio can no longer span multiple memory sections on these problematic kernel configs.
nth_page() is no longer required when operating within a single compound page / folio.
--- include/linux/mm.h | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-)
include/linux/mm.h +18 -4
@@ -2053,11 +2053,25 @@ static inline long folio_nr_pages(const struct folio *folio)return folio_large_nr_pages (folio); } -/* Only hugetlbfs can allocate folios larger than MAX_ORDER */ -#ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE -#define MAX_FOLIO_ORDER PUD_ORDER -#else +#if !defined(CONFIG_ARCH_HAS_GIGANTIC_PAGE ) +/* +* We don't expect any folios that exceed buddy sizes (and consequently +* memory sections). +*/ #define MAX_FOLIO_ORDER MAX_PAGE_ORDER +#elif defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +/* +* Only pages within a single memory section are guaranteed to be +* contiguous. By limiting folios to a single memory section, all folio +* pages are guaranteed to be contiguous. +*/ +#define MAX_FOLIO_ORDER PFN_SECTION_SHIFT +#else +/* +* There is no real limit on the folio size. We limit them to the maximum we +* currently expect (e.g., hugetlb, dax). +*/ +#define MAX_FOLIO_ORDER PUD_ORDER#endif #define MAX_FOLIO_NR_PAGES (1UL << MAX_FOLIO_ORDER)
Signature · 1 line
2.50.1
PATCH 12/36 mm: simplify folio_page() and folio_page_idx()
In reply to David HildenbrandNow that a single folio/compound page can no longer span memory sections in problematic kernel configurations, we can stop using nth_page().
While at it, turn both macros into static inline functions and add kernel doc for folio_page_idx().
--- include/linux/mm.h | 16 ++++++++++++++-- include/linux/page-flags.h | 5 ++++- 2 files changed, 18 insertions(+), 3 deletions(-)
include/linux/mm.h +14 -2
@@ -210,10 +210,8 @@ extern unsigned long sysctl_admin_reserve_kbytes;#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP )#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n)) -#define folio_page_idx (folio, p) (page_to_pfn(p) - folio_pfn(folio))#else #define nth_page (page,n) ((page) + (n)) -#define folio_page_idx (folio, p) ((p) - &(folio)->page)#endif /* to align the pointer to the (next) page boundary */
@@ -225,6 +223,20 @@ extern unsigned long sysctl_admin_reserve_kbytes;/* test whether an address (unsigned long or pointer) is aligned to PAGE_SIZE */ #define PAGE_ALIGNED (addr) IS_ALIGNED((unsigned long)(addr), PAGE_SIZE) +/** +* folio_page_idx - Return the number of a page in a folio. +* @folio: The folio. +* @page: The folio page. +* +* This function expects that the page is actually part of the folio. +* The returned number is relative to the start of the folio. +*/ +static inline unsigned long folio_page_idx (const struct folio *folio, +const struct page *page) +{ +return page - &folio->page; +} +static inline struct folio *lru_to_folio (struct list_head *head) { return list_entry((head)->prev, struct folio, lru);
include/linux/page-flags.h +4 -1
@@ -316,7 +316,10 @@ static __always_inline unsigned long _compound_head(const struct page *page)* check that the page number lies within @folio; the caller is presumed * to have a reference to the page. */ -#define folio_page (folio, n) nth_page(&(folio)->page, n) +static inline struct page *folio_page (struct folio *folio,unsigned long n) +{ +return &folio->page + n; +} static __always_inline int PageTail(const struct page *page) {
Signature · 1 line
2.50.1
PATCH 13/36 mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
In reply to David HildenbrandWe can now safely iterate over all pages in a folio, so no need for the pfn_to_page().
Also, as we already force the refcount in __init_single_page() to 1, we can just set the refcount to 0 and avoid page_ref_freeze() + VM_BUG_ON. Likely, in the future, we would just want to tell __init_single_page() to which value to initialize the refcount.
Further, adjust the comments to highlight that we are dealing with an open-coded prep_compound_page() variant, and add another comment explaining why we really need the __init_single_page() only on the tail pages.
Note that the current code was likely problematic, but we never ran into
it: prep_compound_tail() would have been called with an offset that might exceed a memory section, and prep_compound_tail() would have simply added that offset to the page pointer -- which would not have done the right thing on sparsemem without vmemmap.
--- mm/hugetlb.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)
mm/hugetlb.c +12 -8
@@ -3237,17 +3237,18 @@ static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, {enum zone_type zone =zone_idx (folio_zone (folio));int nid =folio_nid (folio); +struct page *page =folio_page (folio, start_page_number);unsigned long head_pfn =folio_pfn (folio);unsigned long pfn, end_pfn = head_pfn + end_page_number; -int ret; - -for (pfn = head_pfn + start_page_number; pfn < end_pfn; pfn++) { -struct page *page =pfn_to_page (pfn); +/* +* We mark all tail pages with memblock_reserved_mark_noinit(), +* so these pages are completely uninitialized. +*/ +for (pfn = head_pfn + start_page_number; pfn < end_pfn; page++, pfn++) {__init_single_page (page, pfn, zone, nid);prep_compound_tail ((struct page *)folio, pfn - head_pfn); - ret =page_ref_freeze (page,1 ); -VM_BUG_ON (!ret); +set_page_count (page,0 ); } }
@@ -3257,12 +3258,15 @@ static void __init hugetlb_folio_init_vmemmap(struct folio *folio, {int ret; -/* Prepare folio head */ +/* +* This is an open-coded prep_compound_page() whereby we avoid +* walking pages twice by initializing/preparing+freezing them in the +* same go. +*/ __folio_clear_reserved (folio);__folio_set_head (folio); ret =folio_ref_freeze (folio,1 );VM_BUG_ON (!ret); -/* Initialize the necessary tail struct pages */ hugetlb_folio_init_tail_vmemmap (folio,1 , nr_pages);prep_compound_head ((struct page *)folio,huge_page_order (h)); }
Signature · 1 line
2.50.1
PATCH 14/36 mm/mm/percpu-km: drop nth_page() usage within single allocation
In reply to David HildenbrandWe're allocating a higher-order page from the buddy. For these pages (that are guaranteed to not exceed a single memory section) there is no need to use nth_page().
--- mm/percpu-km.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/percpu-km.c +1 -1
@@ -69,7 +69,7 @@ static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp) }for (i =0 ; i < nr_pages; i++) -pcpu_set_page_chunk (nth_page (pages, i), chunk); +pcpu_set_page_chunk (pages + i, chunk); chunk->data = pages; chunk->base_addr =page_address (pages);
Signature · 1 line
2.50.1
PATCH 15/36 fs: hugetlbfs: remove nth_page() usage within folio in adjust_range_hwpoison()
In reply to David HildenbrandThe nth_page() is not really required anymore, so let's remove it. While at it, cleanup and simplify the code a bit.
--- fs/hugetlbfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/hugetlbfs/inode.c +1 -1
@@ -217,7 +217,7 @@ static size_t adjust_range_hwpoison(struct folio *folio, size_t offset,break ; offset += n;if (offset ==PAGE_SIZE ) { - page =nth_page (page,1 ); + page++; offset =0 ; } }
Signature · 1 line
2.50.1
PATCH 16/36 fs: hugetlbfs: cleanup folio in adjust_range_hwpoison()
In reply to David HildenbrandLet's cleanup and simplify the function a bit.
--- fs/hugetlbfs/inode.c | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-)
fs/hugetlbfs/inode.c +11 -22
@@ -198,31 +198,20 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,static size_t adjust_range_hwpoison (struct folio *folio,size_t offset,size_t bytes) { -struct page *page; -size_t n =0 ; -size_t res =0 ; - -/* First page to start the loop. */ - page =folio_page (folio, offset /PAGE_SIZE ); - offset %=PAGE_SIZE ; -while (1 ) { -if (is_raw_hwpoison_page_in_hugepage (page)) -break ; +struct page *page =folio_page (folio, offset /PAGE_SIZE ); +size_t safe_bytes; + +if (is_raw_hwpoison_page_in_hugepage (page)) +return 0 ; +/* Safe to read the remaining bytes in this page. */ + safe_bytes =PAGE_SIZE - (offset %PAGE_SIZE ); + page++; -/* Safe to read n bytes without touching HWPOISON subpage. */ - n =min (bytes, (size_t )PAGE_SIZE - offset); - res += n; - bytes -= n; -if (!bytes || !n) +for (; safe_bytes < bytes; safe_bytes +=PAGE_SIZE , page++) +if (is_raw_hwpoison_page_in_hugepage (page))break ; - offset += n; -if (offset ==PAGE_SIZE ) { - page++; - offset =0 ; - } - } -return res; +return min (safe_bytes, bytes); }/*
Signature · 1 line
2.50.1
PATCH 17/36 mm/pagewalk: drop nth_page() usage within folio in folio_walk_start()
In reply to David HildenbrandIt's no longer required to use nth_page() within a folio, so let's just drop the nth_page() in folio_walk_start().
--- mm/pagewalk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/pagewalk.c +1 -1
@@ -1004,7 +1004,7 @@ struct folio *folio_walk_start(struct folio_walk *fw, found:if (expose_page)/* Note: Offset from the mapped page, not the folio start. */ - fw->page =nth_page (page, (addr & (entry_size -1 )) >>PAGE_SHIFT ); + fw->page = page + ((addr & (entry_size -1 )) >>PAGE_SHIFT );else fw->page =NULL ; fw->ptl = ptl;
Signature · 1 line
2.50.1
PATCH 18/36 mm/gup: drop nth_page() usage within folio when recording subpages
In reply to David Hildenbrandnth_page() is no longer required when iterating over pages within a single folio, so let's just drop it when recording subpages.
--- mm/gup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
mm/gup.c +3 -4
@@ -488,12 +488,11 @@ static int record_subpages(struct page *page, unsigned long sz, unsigned long addr, unsigned long end, struct page **pages) { - struct page *start_page; int nr; - start_page =nth_page (page, (addr & (sz -1 )) >>PAGE_SHIFT ); + page += (addr & (sz -1 )) >>PAGE_SHIFT ;for (nr =0 ; addr != end; nr++, addr +=PAGE_SIZE ) - pages[nr] =nth_page (start_page, nr); + pages[nr] = page++;return nr; }
@@ -1512,7 +1511,7 @@ static long __get_user_pages(struct mm_struct *mm, }for (j =0 ; j < page_increm; j++) { - subpage =nth_page (page, j); + subpage = page + j; pages[i + j] = subpage;flush_anon_page (vma, subpage, start + j *PAGE_SIZE );flush_dcache_page (subpage);
Signature · 1 line
2.50.1
PATCH 19/36 io_uring/zcrx: remove nth_page() usage within folio
In reply to David HildenbrandWithin a folio/compound page, nth_page() is no longer required. Given that we call folio_test_partial_kmap()+kmap_local_page(), the code would already be problematic if the pages would span multiple folios.
So let's just assume that all src pages belong to a single folio/compound page and can be iterated ordinarily. The dst page is currently always a single page, so we're not actually iterating anything.
--- io_uring/zcrx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
io_uring/zcrx.c +2 -2
@@ -975,9 +975,9 @@ static ssize_t io_copy_page(struct io_copy_cache *cc, struct page *src_page,if (folio_test_partial_kmap (page_folio (dst_page)) ||folio_test_partial_kmap (page_folio (src_page))) { - dst_page =nth_page (dst_page, dst_offset /PAGE_SIZE ); + dst_page += dst_offset /PAGE_SIZE ; dst_offset =offset_in_page (dst_offset); - src_page =nth_page (src_page, src_offset /PAGE_SIZE ); + src_page += src_offset /PAGE_SIZE ; src_offset =offset_in_page (src_offset); n =min (PAGE_SIZE - src_offset,PAGE_SIZE - dst_offset); n =min (n, len);
Signature · 1 line
2.50.1
PATCH 20/36 mips: mm: convert __flush_dcache_pages() to __flush_dcache_folio_pages()
In reply to David HildenbrandLet's make it clearer that we are operating within a single folio by providing both the folio and the page.
This implies that for flush_dcache_folio() we'll now avoid one more page->folio lookup, and that we can safely drop the "nth_page" usage.
--- arch/mips/include/asm/cacheflush.h | 11 +++++++---- arch/mips/mm/cache.c | 8 ++++---- 2 files changed, 11 insertions(+), 8 deletions(-)
arch/mips/include/asm/cacheflush.h +7 -4
@@ -50,13 +50,14 @@ extern void (*flush_cache_mm)(struct mm_struct *mm);extern void (*flush_cache_range)(struct vm_area_struct *vma,unsigned long start,unsigned long end);extern void (*flush_cache_page)(struct vm_area_struct *vma,unsigned long page,unsigned long pfn); -extern void __flush_dcache_pages (struct page *page,unsigned int nr); +extern void __flush_dcache_folio_pages (struct folio *folio,struct page *page,unsigned int nr);#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1static inline void flush_dcache_folio (struct folio *folio) {if (cpu_has_dc_aliases) -__flush_dcache_pages (&folio->page,folio_nr_pages (folio)); +__flush_dcache_folio_pages (folio,folio_page (folio,0 ), +folio_nr_pages (folio));else if (!cpu_has_ic_fills_f_dc)folio_set_dcache_dirty (folio); }
@@ -64,10 +65,12 @@ static inline void flush_dcache_folio(struct folio *folio)static inline void flush_dcache_page (struct page *page) { +struct folio *folio =page_folio (page); +if (cpu_has_dc_aliases) -__flush_dcache_pages (page,1 ); +__flush_dcache_folio_pages (folio, page,folio_nr_pages (folio));else if (!cpu_has_ic_fills_f_dc) -folio_set_dcache_dirty (page_folio (page)); +folio_set_dcache_dirty (folio); }#define flush_dcache_mmap_lock (mapping) do { } while (0)
arch/mips/mm/cache.c +4 -4
@@ -99,9 +99,9 @@ SYSCALL_DEFINE3(cacheflush, unsigned long, addr, unsigned long, bytes,return 0 ; } -void __flush_dcache_pages (struct page *page,unsigned int nr) +void __flush_dcache_folio_pages (struct folio *folio,struct page *page, +unsigned int nr) { -struct folio *folio =page_folio (page);struct address_space *mapping =folio_flush_mapping (folio);unsigned long addr;unsigned int i;
@@ -117,12 +117,12 @@ void __flush_dcache_pages(struct page *page, unsigned int nr)* get faulted into the tlb (and thus flushed) anyways. */ for (i =0 ; i < nr; i++) { - addr = (unsigned long )kmap_local_page (nth_page (page, i)); + addr = (unsigned long )kmap_local_page (page + i);flush_data_cache_page (addr);kunmap_local ((void *)addr); } } -EXPORT_SYMBOL (__flush_dcache_pages); +EXPORT_SYMBOL (__flush_dcache_folio_pages);void __flush_anon_page (struct page *page,unsigned long vmaddr) {
Signature · 1 line
2.50.1
PATCH 21/36 mm/cma: refuse handing out non-contiguous page ranges
In reply to David HildenbrandLet's disallow handing out PFN ranges with non-contiguous pages, so we can remove the nth-page usage in __cma_alloc(), and so any callers don't have to worry about that either when wanting to blindly iterate pages.
This is really only a problem in configs with SPARSEMEM but without SPARSEMEM_VMEMMAP, and only when we would cross memory sections in some cases.
Will this cause harm? Probably not, because it's mostly 32bit that does not support SPARSEMEM_VMEMMAP. If this ever becomes a problem we could look into allocating the memmap for the memory sections spanned by a single CMA region in one go from memblock.
--- include/linux/mm.h | 6 ++++++ mm/cma.c | 39 ++++++++++++++++++++++++--------------- mm/util.c | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 15 deletions(-)
include/linux/mm.h +6 -0
@@ -209,9 +209,15 @@ extern unsigned long sysctl_user_reserve_kbytes;extern unsigned long sysctl_admin_reserve_kbytes;#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +bool page_range_contiguous (const struct page *page,unsigned long nr_pages);#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n))#else #define nth_page (page,n) ((page) + (n)) +static inline bool page_range_contiguous (const struct page *page, +unsigned long nr_pages) +{ +return true; +}#endif /* to align the pointer to the (next) page boundary */
mm/cma.c +24 -15
@@ -780,10 +780,8 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr, unsigned long count, unsigned int align, struct page **pagep, gfp_t gfp) { - unsigned long mask, offset; -unsigned long pfn =-1 ; -unsigned long start =0 ; unsigned long bitmap_maxno, bitmap_no, bitmap_count; +unsigned long start, pfn, mask, offset;int ret = -EBUSY ;struct page *page =NULL ;
@@ -795,7 +793,7 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,if (bitmap_count > bitmap_maxno) goto out; -for (;;) { +for (start =0 ; ; start = bitmap_no + mask +1 ) {spin_lock_irq (&cma->lock);/* * If the request is larger than the available number
@@ -812,6 +810,22 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,spin_unlock_irq (&cma->lock);break ; } + + pfn = cmr->base_pfn + (bitmap_no << cma->order_per_bit); + page =pfn_to_page (pfn); + +/* +* Do not hand out page ranges that are not contiguous, so +* callers can just iterate the pages without having to worry +* about these corner cases. +*/ +if (!page_range_contiguous (page, count)) { +spin_unlock_irq (&cma->lock); +pr_warn_ratelimited ("%s: %s: skipping incompatible area [0x%lx-0x%lx]" , + __func__, cma->name, pfn, pfn + count -1 ); +continue ; + } +bitmap_set (cmr->bitmap, bitmap_no, bitmap_count); cma->available_count -= count;/*
@@ -821,29 +835,24 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,*/ spin_unlock_irq (&cma->lock); - pfn = cmr->base_pfn + (bitmap_no << cma->order_per_bit);mutex_lock (&cma->alloc_mutex); ret =alloc_contig_range (pfn, pfn + count,ACR_FLAGS_CMA , gfp);mutex_unlock (&cma->alloc_mutex); -if (ret ==0 ) { - page =pfn_to_page (pfn); +if (!ret)break ; - }cma_clear_bitmap (cma, cmr, pfn, count);if (ret != -EBUSY )break ;pr_debug ("%s(): memory range at pfn 0x%lx %p is busy, retrying\n" , - __func__, pfn,pfn_to_page (pfn)); + __func__, pfn, page); -trace_cma_alloc_busy_retry (cma->name, pfn,pfn_to_page (pfn), - count, align); -/* try again with a bit different memory target */ - start = bitmap_no + mask +1 ; +trace_cma_alloc_busy_retry (cma->name, pfn, page, count, align); } out: - *pagep = page; +if (!ret) + *pagep = page;return ret; }
@@ -882,7 +891,7 @@ static struct page *__cma_alloc(struct cma *cma, unsigned long count,*/ if (page) {for (i =0 ; i < count; i++) -page_kasan_tag_reset (nth_page (page, i)); +page_kasan_tag_reset (page + i); }if (ret && !(gfp & __GFP_NOWARN)) {
mm/util.c +33 -0
@@ -1280,4 +1280,37 @@ unsigned int folio_pte_batch(struct folio *folio, pte_t *ptep, pte_t pte, {return folio_pte_batch_flags (folio,NULL , ptep, &pte, max_nr,0 ); } + +#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +/** +* page_range_contiguous - test whether the page range is contiguous +* @page: the start of the page range. +* @nr_pages: the number of pages in the range. +* +* Test whether the page range is contiguous, such that they can be iterated +* naively, corresponding to iterating a contiguous PFN range. +* +* This function should primarily only be used for debug checks, or when +* working with page ranges that are not naturally contiguous (e.g., pages +* within a folio are). +* +* Returns true if contiguous, otherwise false. +*/ +bool page_range_contiguous (const struct page *page,unsigned long nr_pages) +{ +const unsigned long start_pfn =page_to_pfn (page); +const unsigned long end_pfn = start_pfn + nr_pages; +unsigned long pfn; + +/* +* The memmap is allocated per memory section. We need to check +* each involved memory section once. +*/ +for (pfn =ALIGN (start_pfn,PAGES_PER_SECTION ); + pfn < end_pfn; pfn +=PAGES_PER_SECTION ) +if (unlikely (page + (pfn - start_pfn) !=pfn_to_page (pfn))) +return false; +return true; +} +#endif #endif /* CONFIG_MMU */
Signature · 1 line
2.50.1
PATCH 22/36 dma-remap: drop nth_page() in dma_common_contiguous_remap()
In reply to David Hildenbranddma_common_contiguous_remap() is used to remap an "allocated contiguous region". Within a single allocation, there is no need to use nth_page() anymore.
Neither the buddy, nor hugetlb, nor CMA will hand out problematic page ranges.
--- kernel/dma/remap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/dma/remap.c +1 -1
@@ -49,7 +49,7 @@ void *dma_common_contiguous_remap(struct page *page, size_t size,if (!pages)return NULL ;for (i =0 ; i < count; i++) - pages[i] =nth_page (page, i); + pages[i] = page++; vaddr =vmap (pages, count,VM_DMA_COHERENT , prot);kvfree (pages);
Signature · 1 line
2.50.1
PATCH 23/36 scatterlist: disallow non-contigous page ranges in a single SG entry
In reply to David HildenbrandThe expectation is that there is currently no user that would pass in non-contigous page ranges: no allocator, not even VMA, will hand these out.
The only problematic part would be if someone would provide a range obtained directly from memblock, or manually merge problematic ranges. If we find such cases, we should fix them to create separate SG entries.
Let's check in sg_set_page() that this is really the case. No need to check in sg_set_folio(), as pages in a folio are guaranteed to be contiguous. As sg_set_page() gets inlined into modules, we have to export the page_range_contiguous() helper -- use EXPORT_SYMBOL, there is nothing special about this helper such that we would want to enforce GPL-only modules.
We can now drop the nth_page() usage in sg_page_iter_page().
--- include/linux/scatterlist.h | 3 ++- mm/util.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
include/linux/scatterlist.h +2 -1
@@ -158,6 +158,7 @@ static inline void sg_assign_page(struct scatterlist *sg, struct page *page)static inline void sg_set_page (struct scatterlist *sg,struct page *page,unsigned int len,unsigned int offset) { +VM_WARN_ON_ONCE (!page_range_contiguous (page,ALIGN (len + offset,PAGE_SIZE ) /PAGE_SIZE ));sg_assign_page (sg, page); sg->offset = offset; sg->length = len;
@@ -600,7 +601,7 @@ void __sg_page_iter_start(struct sg_page_iter *piter,*/ static inline struct page *sg_page_iter_page (struct sg_page_iter *piter) { -return nth_page (sg_page (piter->sg), piter->sg_pgoffset); +return sg_page (piter->sg) + piter->sg_pgoffset; }/**
mm/util.c +1 -0
@@ -1312,5 +1312,6 @@ bool page_range_contiguous(const struct page *page, unsigned long nr_pages)return false;return true; } +EXPORT_SYMBOL (page_range_contiguous);#endif #endif /* CONFIG_MMU */
Signature · 1 line
2.50.1
PATCH 24/36 ata: libata-eh: drop nth_page() usage within SG entry
In reply to David HildenbrandIt's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.
--- drivers/ata/libata-sff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/ata/libata-sff.c +3 -3
@@ -614,7 +614,7 @@ static void ata_pio_sector(struct ata_queued_cmd *qc) offset = qc->cursg->offset + qc->cursg_ofs;/* get the current page and offset */ - page =nth_page (page, (offset >>PAGE_SHIFT )); + page += offset >>PAGE_SHIFT ; offset %=PAGE_SIZE ;/* don't overrun current sg */
@@ -631,7 +631,7 @@ static void ata_pio_sector(struct ata_queued_cmd *qc)unsigned int split_len =PAGE_SIZE - offset;ata_pio_xfer (qc, page, offset, split_len); -ata_pio_xfer (qc,nth_page (page,1 ),0 , count - split_len); +ata_pio_xfer (qc, page +1 ,0 , count - split_len); }else {ata_pio_xfer (qc, page, offset, count); }
@@ -751,7 +751,7 @@ static int __atapi_pio_bytes(struct ata_queued_cmd *qc, unsigned int bytes) offset = sg->offset + qc->cursg_ofs;/* get the current page and offset */ - page =nth_page (page, (offset >>PAGE_SHIFT )); + page += offset >>PAGE_SHIFT ; offset %=PAGE_SIZE ;/* don't overrun current sg */
Signature · 1 line
2.50.1
PATCH 25/36 drm/i915/gem: drop nth_page() usage within SG entry
In reply to David HildenbrandIt's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.
--- drivers/gpu/drm/i915/gem/i915_gem_pages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/gem/i915_gem_pages.c +1 -1
@@ -779,7 +779,7 @@ __i915_gem_object_get_page(struct drm_i915_gem_object *obj, pgoff_t n)GEM_BUG_ON (!i915_gem_object_has_struct_page (obj)); sg =i915_gem_object_get_sg (obj, n, &offset); -return nth_page (sg_page (sg), offset); +return sg_page (sg) + offset; }/* Like i915_gem_object_get_page(), but mark the returned page dirty */
Signature · 1 line
2.50.1
PATCH 26/36 mspro_block: drop nth_page() usage within SG entry
In reply to David HildenbrandIt's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.
--- drivers/memstick/core/mspro_block.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/memstick/core/mspro_block.c +1 -2
@@ -560,8 +560,7 @@ static int h_mspro_block_transfer_data(struct memstick_dev *card, t_offset += msb->current_page * msb->page_size;sg_set_page (&t_sg, -nth_page (sg_page (&(msb->req_sg[msb->current_seg])), - t_offset >>PAGE_SHIFT ), +sg_page (&(msb->req_sg[msb->current_seg])) + (t_offset >>PAGE_SHIFT ), msb->page_size,offset_in_page (t_offset)); memstick_init_req_sg(*mrq, msb->data_dir == READ
Signature · 1 line
2.50.1
PATCH 27/36 memstick: drop nth_page() usage within SG entry
In reply to David HildenbrandIt's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.
--- drivers/memstick/host/jmb38x_ms.c | 3 +-- drivers/memstick/host/tifm_ms.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/memstick/host/jmb38x_ms.c +1 -2
@@ -317,8 +317,7 @@ static int jmb38x_ms_transfer_data(struct jmb38x_ms_host *host)unsigned int p_off;if (host->req->long_data) { - pg =nth_page (sg_page (&host->req->sg), - off >>PAGE_SHIFT ); + pg =sg_page (&host->req->sg) + (off >>PAGE_SHIFT ); p_off =offset_in_page (off); p_cnt =PAGE_SIZE - p_off; p_cnt =min (p_cnt, length);
drivers/memstick/host/tifm_ms.c +1 -2
@@ -201,8 +201,7 @@ static unsigned int tifm_ms_transfer_data(struct tifm_ms *host)unsigned int p_off;if (host->req->long_data) { - pg =nth_page (sg_page (&host->req->sg), - off >>PAGE_SHIFT ); + pg =sg_page (&host->req->sg) + (off >>PAGE_SHIFT ); p_off =offset_in_page (off); p_cnt =PAGE_SIZE - p_off; p_cnt =min (p_cnt, length);
Signature · 1 line
2.50.1
PATCH 28/36 mmc: drop nth_page() usage within SG entry
In reply to David HildenbrandIt's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.
--- drivers/mmc/host/tifm_sd.c | 4 ++-- drivers/mmc/host/usdhi6rol0.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/mmc/host/tifm_sd.c +2 -2
@@ -191,7 +191,7 @@ static void tifm_sd_transfer_data(struct tifm_sd *host) } off = sg[host->sg_pos].offset + host->block_pos; - pg =nth_page (sg_page (&sg[host->sg_pos]), off >>PAGE_SHIFT ); + pg =sg_page (&sg[host->sg_pos]) + (off >>PAGE_SHIFT ); p_off =offset_in_page (off); p_cnt =PAGE_SIZE - p_off; p_cnt =min (p_cnt, cnt);
@@ -240,7 +240,7 @@ static void tifm_sd_bounce_block(struct tifm_sd *host, struct mmc_data *r_data) } off = sg[host->sg_pos].offset + host->block_pos; - pg =nth_page (sg_page (&sg[host->sg_pos]), off >>PAGE_SHIFT ); + pg =sg_page (&sg[host->sg_pos]) + (off >>PAGE_SHIFT ); p_off =offset_in_page (off); p_cnt =PAGE_SIZE - p_off; p_cnt =min (p_cnt, cnt);
drivers/mmc/host/usdhi6rol0.c +2 -2
@@ -323,7 +323,7 @@ static void usdhi6_blk_bounce(struct usdhi6_host *host, host->head_pg.page = host->pg.page; host->head_pg.mapped = host->pg.mapped; - host->pg.page =nth_page (host->pg.page,1 ); + host->pg.page = host->pg.page +1 ; host->pg.mapped =kmap (host->pg.page); host->blk_page = host->bounce_buf;
@@ -503,7 +503,7 @@ static void usdhi6_sg_advance(struct usdhi6_host *host)/* We cannot get here after crossing a page border */ /* Next page in the same SG */ - host->pg.page =nth_page (sg_page (host->sg), host->page_idx); + host->pg.page =sg_page (host->sg) + host->page_idx; host->pg.mapped =kmap (host->pg.page); host->blk_page = host->pg.mapped;
Signature · 1 line
2.50.1
PATCH 29/36 scsi: scsi_lib: drop nth_page() usage within SG entry
In reply to David HildenbrandIt's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.
--- drivers/scsi/scsi_lib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/scsi_lib.c +1 -2
@@ -3148,8 +3148,7 @@ void *scsi_kmap_atomic_sg(struct scatterlist *sgl, int sg_count,/* Offset starting from the beginning of first page in this sg-entry */ *offset = *offset - len_complete + sg->offset; -/* Assumption: contiguous pages can be accessed as "page + i" */ - page =nth_page (sg_page (sg), (*offset >>PAGE_SHIFT )); + page =sg_page (sg) + (*offset >>PAGE_SHIFT ); *offset &= ~PAGE_MASK ;/* Bytes in this sg-entry from *offset to the end of the page */
Signature · 1 line
2.50.1
PATCH 30/36 scsi: sg: drop nth_page() usage within SG entry
In reply to David HildenbrandIt's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.
--- drivers/scsi/sg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/sg.c +1 -2
@@ -1235,8 +1235,7 @@ sg_vma_fault(struct vm_fault *vmf) len = vma->vm_end - sa; len = (len < length) ? len : length;if (offset < len) { -struct page *page =nth_page (rsv_schp->pages[k], - offset >>PAGE_SHIFT ); +struct page *page = rsv_schp->pages[k] + (offset >>PAGE_SHIFT );get_page (page);/* increment page count */ vmf->page = page;return 0 ;/* success */
Signature · 1 line
2.50.1
PATCH 31/36 vfio/pci: drop nth_page() usage within SG entry
In reply to David HildenbrandIt's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.
--- drivers/vfio/pci/pds/lm.c | 3 +-- drivers/vfio/pci/virtio/migrate.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/vfio/pci/pds/lm.c +1 -2
@@ -151,8 +151,7 @@ static struct page *pds_vfio_get_file_page(struct pds_vfio_lm_file *lm_file, lm_file->last_offset_sg = sg; lm_file->sg_last_entry += i; lm_file->last_offset = cur_offset; -return nth_page (sg_page (sg), - (offset - cur_offset) /PAGE_SIZE ); +return sg_page (sg) + (offset - cur_offset) /PAGE_SIZE ; } cur_offset += sg->length; }
drivers/vfio/pci/virtio/migrate.c +1 -2
@@ -53,8 +53,7 @@ virtiovf_get_migration_page(struct virtiovf_data_buffer *buf, buf->last_offset_sg = sg; buf->sg_last_entry += i; buf->last_offset = cur_offset; -return nth_page (sg_page (sg), - (offset - cur_offset) /PAGE_SIZE ); +return sg_page (sg) + (offset - cur_offset) /PAGE_SIZE ; } cur_offset += sg->length; }
Signature · 1 line
2.50.1
PATCH 32/36 crypto: remove nth_page() usage within SG entry
In reply to David HildenbrandIt's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.
--- crypto/ahash.c | 4 ++-- crypto/scompress.c | 8 ++++---- include/crypto/scatterwalk.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-)
crypto/ahash.c +2 -2
@@ -88,7 +88,7 @@ static int hash_walk_new_entry(struct crypto_hash_walk *walk) sg = walk->sg; walk->offset = sg->offset; - walk->pg =nth_page (sg_page (walk->sg), (walk->offset >>PAGE_SHIFT )); + walk->pg =sg_page (walk->sg) + (walk->offset >>PAGE_SHIFT ); walk->offset =offset_in_page (walk->offset); walk->entrylen = sg->length;
@@ -226,7 +226,7 @@ int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc)if (!IS_ENABLED (CONFIG_HIGHMEM ))return crypto_shash_digest (desc, data, nbytes, req->result); - page =nth_page (page, offset >>PAGE_SHIFT ); + page += offset >>PAGE_SHIFT ; offset =offset_in_page (offset);if (nbytes > (unsigned int )PAGE_SIZE - offset)
crypto/scompress.c +4 -4
@@ -198,7 +198,7 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir) }else return -ENOSYS ; - dpage =nth_page (dpage, doff /PAGE_SIZE ); + dpage += doff /PAGE_SIZE ; doff =offset_in_page (doff); n = (dlen -1 ) /PAGE_SIZE ;
@@ -220,12 +220,12 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir) }else break ; - spage =nth_page (spage, soff /PAGE_SIZE ); + spage = spage + soff /PAGE_SIZE ; soff =offset_in_page (soff); n = (slen -1 ) /PAGE_SIZE ; n += (offset_in_page (slen -1 ) + soff) /PAGE_SIZE ; -if (PageHighMem (nth_page (spage, n)) && +if (PageHighMem (spage + n) &&size_add (soff, slen) >PAGE_SIZE )break ; src =kmap_local_page (spage) + soff;
@@ -270,7 +270,7 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir)if (dlen <=PAGE_SIZE )break ; dlen -=PAGE_SIZE ; - dpage =nth_page (dpage,1 ); + dpage++; } }
include/crypto/scatterwalk.h +2 -2
@@ -159,7 +159,7 @@ static inline void scatterwalk_map(struct scatter_walk *walk)if (IS_ENABLED (CONFIG_HIGHMEM )) {struct page *page; - page =nth_page (base_page, offset >>PAGE_SHIFT ); + page = base_page + (offset >>PAGE_SHIFT ); offset =offset_in_page (offset); addr =kmap_local_page (page) + offset; }else {
@@ -259,7 +259,7 @@ static inline void scatterwalk_done_dst(struct scatter_walk *walk, end += (offset_in_page (offset) +offset_in_page (nbytes) +PAGE_SIZE -1 ) >>PAGE_SHIFT ;for (i = start; i < end; i++) -flush_dcache_page (nth_page (base_page, i)); +flush_dcache_page (base_page + i); }scatterwalk_advance (walk, nbytes); }
Signature · 1 line
2.50.1
PATCH 33/36 mm/gup: drop nth_page() usage in unpin_user_page_range_dirty_lock()
In reply to David HildenbrandThere is the concern that unpin_user_page_range_dirty_lock() might do some weird merging of PFN ranges -- either now or in the future -- such that PFN range is contiguous but the page range might not be.
Let's sanity-check for that and drop the nth_page() usage.
--- mm/gup.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
mm/gup.c +6 -1
@@ -237,7 +237,7 @@ void folio_add_pin(struct folio *folio)static inline struct folio *gup_folio_range_next (struct page *start,unsigned long npages,unsigned long i,unsigned int *ntails) { -struct page *next =nth_page (start, i); +struct page *next = start + i;struct folio *folio =page_folio (next);unsigned int nr =1 ;
@@ -342,6 +342,9 @@ EXPORT_SYMBOL(unpin_user_pages_dirty_lock);* "gup-pinned page range" refers to a range of pages that has had one of the * pin_user_pages() variants called on that page. * +* The page range must be truly contiguous: the page range corresponds +* to a contiguous PFN range and all pages can be iterated naturally. +* * For the page ranges defined by [page .. page+npages], make that range (or * its head pages, if a compound page) dirty, if @make_dirty is true, and if the * page range was previously listed as clean.
@@ -359,6 +362,8 @@ void unpin_user_page_range_dirty_lock(struct page *page, unsigned long npages,struct folio *folio;unsigned int nr; +VM_WARN_ON_ONCE (!page_range_contiguous (page, npages)); +for (i =0 ; i < npages; i += nr) { folio =gup_folio_range_next (page, npages, i, &nr);if (make_dirty && !folio_test_dirty (folio)) {
Signature · 1 line
2.50.1
PATCH 34/36 kfence: drop nth_page() usage
In reply to David HildenbrandWe want to get rid of nth_page(), and kfence init code is the last user.
Unfortunately, we might actually walk a PFN range where the pages are not contiguous, because we might be allocating an area from memblock that could span memory sections in problematic kernel configs (SPARSEMEM without SPARSEMEM_VMEMMAP).
We could check whether the page range is contiguous
using page_range_contiguous() and failing kfence init, or making kfence incompatible these problemtic kernel configs.
Let's keep it simple and simply use pfn_to_page() by iterating PFNs.
--- mm/kfence/core.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
mm/kfence/core.c +7 -5
@@ -594,15 +594,14 @@ static void rcu_guarded_free(struct rcu_head *h)*/ static unsigned long kfence_init_pool (void ) { -unsigned long addr; -struct page *pages; +unsigned long addr, start_pfn;int i;if (!arch_kfence_init_pool ())return (unsigned long )__kfence_pool; addr = (unsigned long )__kfence_pool; - pages =virt_to_page (__kfence_pool); + start_pfn =PHYS_PFN (virt_to_phys (__kfence_pool));/* * Set up object pages: they must have PGTY_slab set to avoid freeing
@@ -613,11 +612,12 @@ static unsigned long kfence_init_pool(void)* enters __slab_free() slow-path. */ for (i =0 ; i <KFENCE_POOL_SIZE /PAGE_SIZE ; i++) { -struct slab *slab =page_slab (nth_page (pages, i)); +struct slab *slab;if (!i || (i %2 ))continue ; + slab =page_slab (pfn_to_page (start_pfn + i));__folio_set_slab (slab_folio (slab));#ifdef CONFIG_MEMCG slab->obj_exts = (unsigned long)&kfence_metadata_init[i / 2 - 1].obj_exts |
@@ -665,10 +665,12 @@ static unsigned long kfence_init_pool(void) reset_slab:for (i =0 ; i <KFENCE_POOL_SIZE /PAGE_SIZE ; i++) { -struct slab *slab =page_slab (nth_page (pages, i)); +struct slab *slab;if (!i || (i %2 ))continue ; + + slab =page_slab (pfn_to_page (start_pfn + i));#ifdef CONFIG_MEMCG slab->obj_exts =0 ;#endif
Signature · 1 line
2.50.1
PATCH 35/36 block: update comment of "struct bio_vec" regarding nth_page()
In reply to David HildenbrandEver since commit 858c708d9efb ("block: move the bi_size update out of __bio_try_merge_page"), page_is_mergeable() no longer exists, and the logic in bvec_try_merge_page() is now a simple page pointer comparison.
--- include/linux/bvec.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
include/linux/bvec.h +2 -5
@@ -22,11 +22,8 @@ struct page;* @bv_len: Number of bytes in the address range. * @bv_offset: Start of the address range relative to the start of @bv_page. * -* The following holds for a bvec if n * PAGE_SIZE < bv_offset + bv_len: -* -* nth_page(@bv_page, n) == @bv_page + n -* -* This holds because page_is_mergeable() checks the above property. +* All pages within a bio_vec starting from @bv_page are contiguous and +* can simply be iterated (see bvec_advance()). */ struct bio_vec {struct page *bv_page;
Signature · 1 line
2.50.1
PATCH 36/36 mm: remove nth_page()
In reply to David HildenbrandNow that all users are gone, let's remove it.
--- include/linux/mm.h | 2 -- tools/testing/scatterlist/linux/mm.h | 1 - 2 files changed, 3 deletions(-)
include/linux/mm.h +0 -2
@@ -210,9 +210,7 @@ extern unsigned long sysctl_admin_reserve_kbytes;#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP )bool page_range_contiguous (const struct page *page,unsigned long nr_pages); -#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n))#else -#define nth_page (page,n) ((page) + (n))static inline bool page_range_contiguous (const struct page *page,unsigned long nr_pages) {
tools/testing/scatterlist/linux/mm.h +0 -1
@@ -51,7 +51,6 @@ static inline unsigned long page_to_phys(struct page *page)#define page_to_pfn (page) ((unsigned long)(page) / PAGE_SIZE)#define pfn_to_page (pfn) (void *)((pfn) * PAGE_SIZE) -#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n))#define __min (t1, t2, min1, min2, x, y) ({ \ t1 min1 = (x); \
Signature · 1 line
2.50.1
Re: [PATCH v1 04/36] x86/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandQuoted 2 lines · David Hildenbrand
Now handled by the core automatically once
SPARSEMEM_VMEMMAP_ENABLEis selected.
Zi Yan
reviewerRe: [PATCH v1 08/36] mm/hugetlb: check for unreasonable folio sizes when registering hstate
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
Let's check that no hstate that corresponds to an unreasonable folio size is registered by an architecture. If we were to succeed registering, we could later try allocating an unsupported gigantic folio size.
Further, let's add a
BUILD_BUG_ON()for checking thatHUGETLB_PAGE_ORDERis sane at build time. AsHUGETLB_PAGE_ORDERis dynamic on powerpc, we have to use aBUILD_BUG_ON_INVALID()to make it compile.
Quoted 9 lines
No existing kernel configuration should be able to trigger this check:
either SPARSEMEM withoutSPARSEMEM_VMEMMAPcannot be configured or gigantic folios will not exceed a memory section (the case on sparse).Signed-off-by David Hildenbrand <[email protected]>--- mm/hugetlb.c | 2 ++ 1 file changed, 2 insertions(+)
LGTM. Reviewed-by: Zi Yan <[email protected]>
--
Best Regards,
Yan, Zi
Zi Yan
reviewerRe: [PATCH v1 15/36] hugetlbfs: remove nth_page() usage within folio in adjust_range_hwpoison()
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
The
nth_page()is not really required anymore, so let's remove it. While at it, cleanup and simplify the code a bit.Signed-off-by David Hildenbrand <[email protected]>--- fs/hugetlbfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
LGTM. Reviewed-by: Zi Yan <[email protected]>
--
Best Regards,
Yan, Zi
Zi Yan
reviewerRe: [PATCH v1 16/36] hugetlbfs: cleanup folio in adjust_range_hwpoison()
In reply to David HildenbrandQuoted 7 lines · David Hildenbrand
Let's cleanup and simplify the function a bit.
Signed-off-by David Hildenbrand <[email protected]>--- fs/hugetlbfs/inode.c | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-)
LGTM. Reviewed-by: Zi Yan <[email protected]>
--
Best Regards,
Yan, Zi
Re: [PATCH v1 24/36] ata: libata-eh: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 6 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Cc Damien Le Moal <[email protected]>Cc Niklas Cassel <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Signature · 2 lines
Damien Le Moal Western Digital Research
Re: [PATCH v1 01/36] mm: stop making SPARSEMEM_VMEMMAP user-selectable
In reply to David HildenbrandQuoted 25 lines · David Hildenbrand
In an ideal world, we wouldn't have to deal with SPARSEMEM without
SPARSEMEM_VMEMMAP, but in particular for 32bitSPARSEMEM_VMEMMAPis considered too costly and consequently not supported.However, if an architecture does support SPARSEMEM with
SPARSEMEM_VMEMMAP, let's forbid the user to disable VMEMMAP: just like we already do for arm64, s390 and x86.So if
SPARSEMEM_VMEMMAPis supported, don't allow to use SPARSEMEM withoutSPARSEMEM_VMEMMAP.This implies that the option to not use
SPARSEMEM_VMEMMAPwill now be gone for loongarch, powerpc, riscv and sparc. All architectures only enableSPARSEMEM_VMEMMAPwith 64bit support, so there should not really be a big downside to using the VMEMMAP (quite the contrary).This is a preparation for not supporting
(1) folio sizes that exceed a single memory section
(2) CMA allocations of non-contiguous page rangesin SPARSEMEM without
SPARSEMEM_VMEMMAPconfigs, whereby we want to limit possible impact as much as possible (e.g., gigantic hugetlb page allocations suddenly fails).
Quoted 16 lines
Acked-by Zi Yan <[email protected]>Acked-by SeongJae Park <[email protected]>Cc Huacai Chen <[email protected]>Cc WANG Xuerui <[email protected]>Cc Madhavan Srinivasan <[email protected]>Cc Michael Ellerman <[email protected]>Cc Nicholas Piggin <[email protected]>Cc Christophe Leroy <[email protected]>Cc Paul Walmsley <[email protected]>Cc Palmer Dabbelt <[email protected]>Cc Albert Ou <[email protected]>Cc Alexandre Ghiti <[email protected]>Cc "David S. Miller" <[email protected]>Cc Andreas Larsson <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 22 lines
---
mm/Kconfig | 3 +--1 file changed, 1 insertion(+), 2 deletions(-)mm/Kconfig +0
-0@@ -439,9 +439,8 @@ config SPARSEMEM_VMEMMAP_ENABLE boolconfig
SPARSEMEM_VMEMMAPmm/Kconfig +1
-1- bool "Sparse Memory virtual memmap" + def_bool ydepends on SPARSEMEM && SPARSEMEM_VMEMMAP_ENABLEmm/Kconfig +0
-1- default yhelp
SPARSEMEM_VMEMMAPuses a virtually mapped memmap to optimisepfn_to_pageandpage_to_pfnoperations. This is the mostSignature · 1 line
2.50.1
Signature · 2 lines
Wei Yang Help you, Help me
Mike Rapoport
maintainerRe: [PATCH v1 13/36] mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
In reply to David HildenbrandQuoted 32 lines · David Hildenbrand
We can now safely iterate over all pages in a folio, so no need for the
pfn_to_page().Also, as we already force the refcount in
__init_single_page()to 1, we can just set the refcount to 0 and avoidpage_ref_freeze()+VM_BUG_ON. Likely, in the future, we would just want to tell__init_single_page()to which value to initialize the refcount.Further, adjust the comments to highlight that we are dealing with an open-coded
prep_compound_page()variant, and add another comment explaining why we really need the__init_single_page()only on the tail pages.Note that the current code was likely problematic, but we never ran into
it:prep_compound_tail()would have been called with an offset that might exceed a memory section, andprep_compound_tail()would have simply added that offset to the page pointer -- which would not have done the right thing on sparsemem without vmemmap.Signed-off-by David Hildenbrand <[email protected]>--- mm/hugetlb.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)mm/hugetlb.c +1
-0@@ -3237,17 +3237,18 @@ static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, {enum zone_type zone =zone_idx (folio_zone (folio));int nid =folio_nid (folio); +struct page *page =folio_page (folio, start_page_number);
mm/hugetlb.c static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, · line 3246
Quoted 10 lines
mm/hugetlb.c +3
-4unsigned long head_pfn =folio_pfn (folio);unsigned long pfn, end_pfn = head_pfn + end_page_number; -int ret; - -for (pfn = head_pfn + start_page_number; pfn < end_pfn; pfn++) { -struct page *page =pfn_to_page (pfn); +/* +* We mark all tail pages with memblock_reserved_mark_noinit(), +* so these pages are completely uninitialized.
^ not? ;-)
Quoted 31 lines
mm/hugetlb.c +8
-4+*/ +for (pfn = head_pfn + start_page_number; pfn < end_pfn; page++, pfn++) {__init_single_page (page, pfn, zone, nid);prep_compound_tail ((struct page *)folio, pfn - head_pfn); - ret =page_ref_freeze (page,1 ); -VM_BUG_ON (!ret); +set_page_count (page,0 ); } }@@ -3257,12 +3258,15 @@ static void __init hugetlb_folio_init_vmemmap(struct folio *folio, {int ret; -/* Prepare folio head */ +/* +* This is an open-coded prep_compound_page() whereby we avoid +* walking pages twice by initializing/preparing+freezing them in the +* same go. +*/ __folio_clear_reserved (folio);__folio_set_head (folio); ret =folio_ref_freeze (folio,1 );VM_BUG_ON (!ret); -/* Initialize the necessary tail struct pages */ hugetlb_folio_init_tail_vmemmap (folio,1 , nr_pages);prep_compound_head ((struct page *)folio,huge_page_order (h)); }Signature · 1 line
2.50.1
Signature · 2 lines
Sincerely yours, Mike.
Re: [PATCH v1 06/36] mm/page_alloc: reject unreasonable folio/compound page sizes in alloc_contig_range_noprof()
In reply to David HildenbrandQuoted 9 lines · David Hildenbrand
Let's reject them early, which in turn makes
folio_alloc_gigantic()reject them properly.To avoid converting from order to
nr_pages, let's just addMAX_FOLIO_ORDERand calculateMAX_FOLIO_NR_PAGESbased on that.Reviewed-by Zi Yan <[email protected]>Acked-by SeongJae Park <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Signature · 2 lines
Wei Yang Help you, Help me
Re: [PATCH v1 09/36] mm/mm_init: make memmap_init_compound() look more like prep_compound_page()
In reply to David HildenbrandQuoted 10 lines · David Hildenbrand
Grepping for "
prep_compound_page" leaves on clueless how devdax gets its compound pages initialized.Let's add a comment that might help finding this open-coded
prep_compound_page()initialization more easily.Further, let's be less smart about the ordering of initialization and just perform the
prep_compound_head()call after all tail pages were
initialized: just likeprep_compound_page()does.
Quoted 5 lines
No need for a comment to describe the initialization order: again, just like
prep_compound_page().Reviewed-by Mike Rapoport (Microsoft) <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Signature · 2 lines
Wei Yang Help you, Help me
Re: [PATCH v1 10/36] mm: sanity-check maximum folio size in folio_set_order()
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
Let's sanity-check in
folio_set_order()whether we would be trying to create a folio with an order that would make it exceedMAX_FOLIO_ORDER.This will enable the check whenever a folio/compound page is initialized through
prepare_compound_head()/prepare_compound_page().Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Signature · 2 lines
Wei Yang Help you, Help me
Re: [PATCH v1 11/36] mm: limit folio/compound page sizes in problematic kernel configs
In reply to David HildenbrandQuoted 15 lines · David Hildenbrand
Let's limit the maximum folio size in problematic kernel config where the memmap is allocated per memory section (SPARSEMEM without
SPARSEMEM_VMEMMAP) to a single memory section.Currently, only a single architectures supports
ARCH_HAS_GIGANTIC_PAGEbut notSPARSEMEM_VMEMMAP: sh.Fortunately, the biggest hugetlb size sh supports is 64 MiB (
HUGETLB_PAGE_SIZE_64MB) and the section size is at least 64 MiB (SECTION_SIZE_BITS== 26), so their use case is not degraded.As folios and memory sections are naturally aligned to their order-2 size in memory, consequently a single folio can no longer span multiple memory sections on these problematic kernel configs.
Quoted 6 lines
nth_page()is no longer required when operating within a single compound page / folio.Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Signature · 2 lines
Wei Yang Help you, Help me
Re: [PATCH v1 12/36] mm: simplify folio_page() and folio_page_idx()
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
Now that a single folio/compound page can no longer span memory sections in problematic kernel configurations, we can stop using
nth_page().While at it, turn both macros into static inline functions and add kernel doc for
folio_page_idx().Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
The code looks good, while one nit below.
Quoted 46 lines
---
include/linux/mm.h| 16 ++++++++++++++--include/linux/page-flags.h| 5 ++++-2 files changed, 18 insertions(+), 3 deletions(-)include/linux/mm.h +14
-2@@ -210,10 +210,8 @@ extern unsigned long sysctl_admin_reserve_kbytes;#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP )#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n)) -#define folio_page_idx (folio, p) (page_to_pfn(p) - folio_pfn(folio))#else #define nth_page (page,n) ((page) + (n)) -#define folio_page_idx (folio, p) ((p) - &(folio)->page)#endif /* to align the pointer to the (next) page boundary */ @@ -225,6 +223,20 @@ extern unsigned long sysctl_admin_reserve_kbytes;/* test whether an address (unsigned long or pointer) is aligned to PAGE_SIZE */ #define PAGE_ALIGNED (addr) IS_ALIGNED((unsigned long)(addr), PAGE_SIZE) +/** +* folio_page_idx - Return the number of a page in a folio. +* @folio: The folio. +* @page: The folio page. +* +* This function expects that the page is actually part of the folio. +* The returned number is relative to the start of the folio. +*/ +static inline unsigned long folio_page_idx (const struct folio *folio, +const struct page *page) +{ +return page - &folio->page; +} +static inline struct folio *lru_to_folio (struct list_head *head) { return list_entry((head)->prev, struct folio, lru);include/linux/page-flags.h +0
-0
include/linux/page-flags.h static __always_inline unsigned long _compound_head(const struct page *page) · line 323
Quoted 9 lines
include/linux/page-flags.h +4
-1@@ -316,7 +316,10 @@ static __always_inline unsigned long _compound_head(const struct page *page)* check that the page number lies within @folio; the caller is presumed * to have a reference to the page. */ -#define folio_page (folio, n) nth_page(&(folio)->page, n) +static inline struct page *folio_page (struct folio *folio,unsigned long n) +{ +return &folio->page + n; +}
Curious about why it is in page-flags.h. It seems not related to page-flags.
Quoted 5 lines
include/linux/page-flags.h +0
-0static __always_inline int PageTail(const struct page *page) {Signature · 1 line
2.50.1
Signature · 2 lines
Wei Yang Help you, Help me
Re: [PATCH v1 13/36] mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
In reply to Mike RapoportQuoted 40 lines · Mike Rapoport
Quoted 39 lines · David Hildenbrand
We can now safely iterate over all pages in a folio, so no need for the
pfn_to_page().Also, as we already force the refcount in
__init_single_page()to 1, we can just set the refcount to 0 and avoidpage_ref_freeze()+VM_BUG_ON. Likely, in the future, we would just want to tell__init_single_page()to which value to initialize the refcount.Further, adjust the comments to highlight that we are dealing with an open-coded
prep_compound_page()variant, and add another comment explaining why we really need the__init_single_page()only on the tail pages.Note that the current code was likely problematic, but we never ran into
it:prep_compound_tail()would have been called with an offset that might exceed a memory section, andprep_compound_tail()would have simply added that offset to the page pointer -- which would not have done the right thing on sparsemem without vmemmap.Signed-off-by David Hildenbrand <[email protected]>--- mm/hugetlb.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)mm/hugetlb.c +1
-4@@ -3237,17 +3237,18 @@ static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, {enum zone_type zone =zone_idx (folio_zone (folio));int nid =folio_nid (folio); +struct page *page =folio_page (folio, start_page_number);unsigned long head_pfn =folio_pfn (folio);unsigned long pfn, end_pfn = head_pfn + end_page_number; -int ret; - -for (pfn = head_pfn + start_page_number; pfn < end_pfn; pfn++) { -struct page *page =pfn_to_page (pfn);
Quoted 5 lines
mm/hugetlb.c static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, · line 3246
Quoted 3 lines
mm/hugetlb.c +3
-0+/* +* We mark all tail pages with memblock_reserved_mark_noinit(), +* so these pages are completely uninitialized. ^ not? ;-)
Can you elaborate?
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 12/36] mm: simplify folio_page() and folio_page_idx()
In reply to Wei YangQuoted 2 lines
Curious about why it is in
page-flags.h. It seems not related to page-flags.
Likely because we have the page_folio() in there as well.
Signature · 3 lines
Cheers David / dhildenb
Mike Rapoport
maintainerRe: [PATCH v1 13/36] mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
In reply to David HildenbrandQuoted 46 lines · David Hildenbrand
Quoted 36 lines · Mike Rapoport
Quoted 35 lines · David Hildenbrand
We can now safely iterate over all pages in a folio, so no need for the
pfn_to_page().Also, as we already force the refcount in
__init_single_page()to 1, we can just set the refcount to 0 and avoidpage_ref_freeze()+VM_BUG_ON. Likely, in the future, we would just want to tell__init_single_page()to which value to initialize the refcount.Further, adjust the comments to highlight that we are dealing with an open-coded
prep_compound_page()variant, and add another comment explaining why we really need the__init_single_page()only on the tail pages.Note that the current code was likely problematic, but we never ran into
it:prep_compound_tail()would have been called with an offset that might exceed a memory section, andprep_compound_tail()would have simply added that offset to the page pointer -- which would not have done the right thing on sparsemem without vmemmap.Signed-off-by David Hildenbrand <[email protected]>--- mm/hugetlb.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)mm/hugetlb.c +1
-1@@ -3237,17 +3237,18 @@ static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, {enum zone_type zone =zone_idx (folio_zone (folio));int nid =folio_nid (folio); +struct page *page =folio_page (folio, start_page_number);unsigned long head_pfn =folio_pfn (folio);unsigned long pfn, end_pfn = head_pfn + end_page_number; -int ret;Quoted 8 lines
mm/hugetlb.c static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, · line 3246
Quoted 6 lines
mm/hugetlb.c +3
-3- -for (pfn = head_pfn + start_page_number; pfn < end_pfn; pfn++) { -struct page *page =pfn_to_page (pfn); +/* +* We mark all tail pages with memblock_reserved_mark_noinit(), +* so these pages are completely uninitialized. ^ not? ;-)
Quoted 1 line
Can you elaborate?
Oh, sorry, I misread "uninitialized".
Still, I'd phrase it as
/* * We marked all tail pages with memblock_reserved_mark_noinit(), * so we must initialize them here. */
Quoted 5 lines
Signature · 3 lines
Cheers David / dhildenb
Signature · 2 lines
Sincerely yours, Mike.
Re: [PATCH v1 13/36] mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
Quoted 49 lines · Mike Rapoport
Quoted 46 lines · David Hildenbrand
Quoted 36 lines · Mike Rapoport
Quoted 35 lines · David Hildenbrand
We can now safely iterate over all pages in a folio, so no need for the
pfn_to_page().Also, as we already force the refcount in
__init_single_page()to 1, we can just set the refcount to 0 and avoidpage_ref_freeze()+VM_BUG_ON. Likely, in the future, we would just want to tell__init_single_page()to which value to initialize the refcount.Further, adjust the comments to highlight that we are dealing with an open-coded
prep_compound_page()variant, and add another comment explaining why we really need the__init_single_page()only on the tail pages.Note that the current code was likely problematic, but we never ran into
it:prep_compound_tail()would have been called with an offset that might exceed a memory section, andprep_compound_tail()would have simply added that offset to the page pointer -- which would not have done the right thing on sparsemem without vmemmap.Signed-off-by David Hildenbrand <[email protected]>--- mm/hugetlb.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)mm/hugetlb.c +1
-1@@ -3237,17 +3237,18 @@ static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, {enum zone_type zone =zone_idx (folio_zone (folio));int nid =folio_nid (folio); +struct page *page =folio_page (folio, start_page_number);unsigned long head_pfn =folio_pfn (folio);unsigned long pfn, end_pfn = head_pfn + end_page_number; -int ret;Quoted 8 lines
mm/hugetlb.c static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, · line 3246
Quoted 6 lines
mm/hugetlb.c +3
-3- -for (pfn = head_pfn + start_page_number; pfn < end_pfn; pfn++) { -struct page *page =pfn_to_page (pfn); +/* +* We mark all tail pages with memblock_reserved_mark_noinit(), +* so these pages are completely uninitialized. ^ not? ;-)Quoted 1 line
Can you elaborate?
Quoted 7 lines
Oh, sorry, I misread "uninitialized".
Still, I'd phrase it as/* * We marked all tail pages with memblock_reserved_mark_noinit(), * so we must initialize them here. */
I prefer what I currently have, but thanks for the review.
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 12/36] mm: simplify folio_page() and folio_page_idx()
In reply to David HildenbrandQuoted 5 lines · David Hildenbrand
Quoted 2 lines
Curious about why it is in
page-flags.h. It seems not related to page-flags.Likely because we have the
page_folio()in there as well.
Hmm... sorry for this silly question.
Quoted 4 lines
Signature · 3 lines
Cheers David / dhildenb
Signature · 2 lines
Wei Yang Help you, Help me
Re: [PATCH v1 13/36] mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
In reply to David HildenbrandQuoted 15 lines · David Hildenbrand
Quoted 14 lines · Mike Rapoport
Quoted 9 lines · David Hildenbrand
Quoted 6 lines · Mike Rapoport
mm/hugetlb.c static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, · line 3246
Quoted 3 lines · David Hildenbrand
mm/hugetlb.c +3
-0+/* +* We mark all tail pages with memblock_reserved_mark_noinit(), +* so these pages are completely uninitialized. ^ not? ;-)Can you elaborate?
Oh, sorry, I misread "uninitialized".
Still, I'd phrase it as
Quoted 6 lines
Quoted 4 lines
/* * We marked all tail pages with memblock_reserved_mark_noinit(), * so we must initialize them here. */I prefer what I currently have, but thanks for the review.
No strong feelings, feel free to add
Signature · 2 lines
Sincerely yours, Mike.
Re: [PATCH v1 34/36] kfence: drop nth_page() usage
In reply to David HildenbrandQuoted 12 lines · David Hildenbrand' via kasan-dev
We want to get rid of
nth_page(), and kfence init code is the last user.Unfortunately, we might actually walk a PFN range where the pages are not contiguous, because we might be allocating an area from memblock that could span memory sections in problematic kernel configs (SPARSEMEM without
SPARSEMEM_VMEMMAP).We could check whether the page range is contiguous
usingpage_range_contiguous()and failing kfence init, or making kfence incompatible these problemtic kernel configs.
Quoted 6 lines
Let's keep it simple and simply use
pfn_to_page()by iterating PFNs.Cc Alexander Potapenko <[email protected]>Cc Marco Elver <[email protected]>Cc Dmitry Vyukov <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Thanks.
Quoted 61 lines
--- mm/kfence/core.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)mm/kfence/core.c +7
-6@@ -594,15 +594,14 @@ static void rcu_guarded_free(struct rcu_head *h)*/ static unsigned long kfence_init_pool (void ) { -unsigned long addr; -struct page *pages; +unsigned long addr, start_pfn;int i;if (!arch_kfence_init_pool ())return (unsigned long )__kfence_pool; addr = (unsigned long )__kfence_pool; - pages =virt_to_page (__kfence_pool); + start_pfn =PHYS_PFN (virt_to_phys (__kfence_pool));/* * Set up object pages: they must have PGTY_slab set to avoid freeing @@ -613,11 +612,12 @@ static unsigned long kfence_init_pool(void)* enters __slab_free() slow-path. */ for (i =0 ; i <KFENCE_POOL_SIZE /PAGE_SIZE ; i++) { -struct slab *slab =page_slab (nth_page (pages, i)); +struct slab *slab;if (!i || (i %2 ))continue ; + slab =page_slab (pfn_to_page (start_pfn + i));__folio_set_slab (slab_folio (slab));#ifdef CONFIG_MEMCG slab->obj_exts = (unsigned long)&kfence_metadata_init[i / 2 - 1].obj_exts |@@ -665,10 +665,12 @@ static unsigned long kfence_init_pool(void) reset_slab:for (i =0 ; i <KFENCE_POOL_SIZE /PAGE_SIZE ; i++) { -struct slab *slab =page_slab (nth_page (pages, i)); +struct slab *slab;if (!i || (i %2 ))continue ; + + slab =page_slab (pfn_to_page (start_pfn + i));#ifdef CONFIG_MEMCG slab->obj_exts =0 ;#endif --2.50.1
--
You received this message because you are subscribed to the Google Groups "kasan-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/kasan-dev/20250827220141.262669-35-david%40redhat.com.
Re: [PATCH v1 02/36] arm64: Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandQuoted 7 lines · David Hildenbrand
Now handled by the core automatically once
SPARSEMEM_VMEMMAP_ENABLEis selected.Reviewed-by Mike Rapoport (Microsoft) <[email protected]>Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Re: [PATCH v1 01/36] mm: stop making SPARSEMEM_VMEMMAP user-selectable
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
In an ideal world, we wouldn't have to deal with SPARSEMEM without
SPARSEMEM_VMEMMAP, but in particular for 32bitSPARSEMEM_VMEMMAPis considered too costly and consequently not supported.However, if an architecture does support SPARSEMEM with
SPARSEMEM_VMEMMAP, let's forbid the user to disable VMEMMAP: just like we already do for arm64, s390 and x86.
Quoted 7 lines
So if
SPARSEMEM_VMEMMAPis supported, don't allow to use SPARSEMEM withoutSPARSEMEM_VMEMMAP.This implies that the option to not use
SPARSEMEM_VMEMMAPwill now be gone for loongarch, powerpc, riscv and sparc. All architectures only enableSPARSEMEM_VMEMMAPwith 64bit support, so there should not really be a big downside to using the VMEMMAP (quite the contrary).
Nice!
And I see SPARSEMEM_VMEMMAP_ENABLE is selected by the arches which support it, as you say 64-bit (or in other words - modern :)
Quoted 5 lines
This is a preparation for not supporting
(1) folio sizes that exceed a single memory section
(2) CMA allocations of non-contiguous page ranges
Nice. This should simplify things... :)
Quoted 5 lines
in SPARSEMEM without
SPARSEMEM_VMEMMAPconfigs, whereby we want to limit possible impact as much as possible (e.g., gigantic hugetlb page allocations suddenly fails).
Quoted 16 lines
Acked-by Zi Yan <[email protected]>Acked-by SeongJae Park <[email protected]>Cc Huacai Chen <[email protected]>Cc WANG Xuerui <[email protected]>Cc Madhavan Srinivasan <[email protected]>Cc Michael Ellerman <[email protected]>Cc Nicholas Piggin <[email protected]>Cc Christophe Leroy <[email protected]>Cc Paul Walmsley <[email protected]>Cc Palmer Dabbelt <[email protected]>Cc Albert Ou <[email protected]>Cc Alexandre Ghiti <[email protected]>Cc "David S. Miller" <[email protected]>Cc Andreas Larsson <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 22 lines
--- mm/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)mm/Kconfig +1
-3@@ -439,9 +439,8 @@ config SPARSEMEM_VMEMMAP_ENABLE bool config SPARSEMEM_VMEMMAP - bool "Sparse Memory virtual memmap" + def_bool y depends on SPARSEMEM && SPARSEMEM_VMEMMAP_ENABLE - default y help SPARSEMEM_VMEMMAP uses a virtually mapped memmap to optimise pfn_to_page and page_to_pfn operations. This is the most --2.50.1
Re: [PATCH v1 02/36] arm64: Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandQuoted 2 lines · David Hildenbrand
Now handled by the core automatically once
SPARSEMEM_VMEMMAP_ENABLEis selected.
Do you plan to do this for other cases then I guess? Or was this an outlier? I guess I will see :)
Quoted 5 lines
Reviewed-by Mike Rapoport (Microsoft) <[email protected]>Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 19 lines
--- arch/arm64/Kconfig | 1 - 1 file changed, 1 deletion(-)arch/arm64/Kconfig +0
-2@@ -1570,7 +1570,6 @@ source "kernel/Kconfig.hz" config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_VMEMMAP_ENABLE - select SPARSEMEM_VMEMMAP config HW_PERF_EVENTS def_bool y --2.50.1
Re: [PATCH v1 03/36] s390/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandQuoted 2 lines · David Hildenbrand
Now handled by the core automatically once
SPARSEMEM_VMEMMAP_ENABLEis selected.
Ah yes there are other cases :)
Quoted 8 lines
Reviewed-by Mike Rapoport (Microsoft) <[email protected]>Cc Heiko Carstens <[email protected]>Cc Vasily Gorbik <[email protected]>Cc Alexander Gordeev <[email protected]>Cc Christian Borntraeger <[email protected]>Cc Sven Schnelle <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 19 lines
--- arch/s390/Kconfig | 1 - 1 file changed, 1 deletion(-)arch/s390/Kconfig +0
-2@@ -710,7 +710,6 @@ menu "Memory setup" config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_VMEMMAP_ENABLE - select SPARSEMEM_VMEMMAP config ARCH_SPARSEMEM_DEFAULT def_bool y --2.50.1
Re: [PATCH v1 04/36] x86/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandQuoted 9 lines · David Hildenbrand
Now handled by the core automatically once
SPARSEMEM_VMEMMAP_ENABLEis selected.Reviewed-by Mike Rapoport (Microsoft) <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Ingo Molnar <[email protected]>Cc Borislav Petkov <[email protected]>Cc Dave Hansen <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 19 lines
--- arch/x86/Kconfig | 1 - 1 file changed, 1 deletion(-)arch/x86/Kconfig +0
-2@@ -1552,7 +1552,6 @@ config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_STATIC if X86_32 select SPARSEMEM_VMEMMAP_ENABLE if X86_64 - select SPARSEMEM_VMEMMAP if X86_64 config ARCH_SPARSEMEM_DEFAULT def_bool X86_64 || (NUMA && X86_32) --2.50.1
Re: [PATCH v1 05/36] wireguard: selftests: remove CONFIG_SPARSEMEM_VMEMMAP=y from qemu kernel config
In reply to David HildenbrandQuoted 9 lines · David Hildenbrand
It's no longer user-selectable (and the default was already "y"), so let's just drop it.
It was never really relevant to the wireguard selftests either way.
Cc "Jason A. Donenfeld" <[email protected]>Cc Shuah Khan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 19 lines
--- tools/testing/selftests/wireguard/qemu/kernel.config | 1 - 1 file changed, 1 deletion(-)tools/testing/selftests/wireguard/qemu/kernel.config +0
-2@@ -48,7 +48,6 @@ CONFIG_JUMP_LABEL=y CONFIG_FUTEX=y CONFIG_SHMEM=y CONFIG_SLUB=y -CONFIG_SPARSEMEM_VMEMMAP=y CONFIG_SMP=y CONFIG_SCHED_SMT=y CONFIG_SCHED_MC=y --2.50.1
Patchwork
CI✓ i915.CI.BAT: success for series starting with [v1,01/36] mm: stop making SPARSEMEM_VMEMMAP user-selectable
In reply to David Hildenbrand== Series Details ==
== Series Details ==
Series: series starting with [v1,01/36] mm: stop making SPARSEMEM_VMEMMAP user-selectable
URL : https://patchwork.freedesktop.org/series/153593/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_17081 -> Patchwork_153593v1
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/index.html
Participating hosts (44 -> 43)
------------------------------
Missing (1): fi-snb-2520m
Known issues
------------
Here are the changes found in Patchwork_153593v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_huc_copy@huc-copy:
- fi-glk-j4005: NOTRUN -> [SKIP][1] ([i915#2190])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/fi-glk-j4005/igt@[email protected]
* igt@i915_selftest@live:
- bat-mtlp-8: [PASS][2] -> [DMESG-FAIL][3] ([i915#12061]) +1 other test dmesg-fail
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/bat-mtlp-8/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/bat-mtlp-8/igt@[email protected]
* igt@i915_selftest@live@workarounds:
- bat-mtlp-6: [PASS][4] -> [DMESG-FAIL][5] ([i915#12061]) +1 other test dmesg-fail
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/bat-mtlp-6/igt@i915_selftest@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/bat-mtlp-6/igt@i915_selftest@[email protected]
- bat-arls-6: [PASS][6] -> [DMESG-FAIL][7] ([i915#12061]) +1 other test dmesg-fail
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/bat-arls-6/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/bat-arls-6/igt@i915_selftest@[email protected]
* igt@intel_hwmon@hwmon-read:
- fi-glk-j4005: NOTRUN -> [SKIP][8] +6 other tests skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/fi-glk-j4005/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@workarounds:
- bat-dg2-9: [DMESG-FAIL][9] ([i915#12061]) -> [PASS][10] +1 other test pass
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/bat-dg2-9/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/bat-dg2-9/igt@i915_selftest@[email protected]
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#2190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2190
Build changes
-------------
* Linux: CI_DRM_17081 -> Patchwork_153593v1
CI-20190529: 20190529
CI_DRM_17081: 12bdbc7687846f438afff8bfdc89873b3cd95945 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8512: 8512
Patchwork_153593v1: 12bdbc7687846f438afff8bfdc89873b3cd95945 @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/index.html
Re: [PATCH v1 06/36] mm/page_alloc: reject unreasonable folio/compound page sizes in alloc_contig_range_noprof()
In reply to David HildenbrandQuoted 9 lines · David Hildenbrand
Let's reject them early, which in turn makes
folio_alloc_gigantic()reject them properly.To avoid converting from order to
nr_pages, let's just addMAX_FOLIO_ORDERand calculateMAX_FOLIO_NR_PAGESbased on that.Reviewed-by Zi Yan <[email protected]>Acked-by SeongJae Park <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Some nits, but overall LGTM so:
Quoted 11 lines
--- include/linux/mm.h | 6 ++++-- mm/page_alloc.c | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-)include/linux/mm.h +0
-0@@ -2055,11 +2055,13 @@ static inline long folio_nr_pages(const struct folio *folio)
include/linux/mm.h static inline long folio_nr_pages(const struct folio *folio) · line 2063
Quoted 10 lines
include/linux/mm.h +3
-2/* Only hugetlbfs can allocate folios larger than MAX_ORDER */ #ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE -#define MAX_FOLIO_NR_PAGES (1UL << PUD_ORDER) +#define MAX_FOLIO_ORDER PUD_ORDER#else -#define MAX_FOLIO_NR_PAGES MAX_ORDER_NR_PAGES +#define MAX_FOLIO_ORDER MAX_PAGE_ORDER#endif +#define MAX_FOLIO_NR_PAGES (1UL << MAX_FOLIO_ORDER)
BIT()?
Quoted 17 lines
include/linux/mm.h +1
-0+/* * compound_nr() returns the number of pages in this potentially compound * page. compound_nr() can be called on a tail page, and is defined to mm/page_alloc.c +1
-0@@ -6833,6 +6833,7 @@ static int __alloc_contig_verify_gfp_mask(gfp_t gfp_mask, gfp_t *gfp_cc_mask)int alloc_contig_range_noprof (unsigned long start,unsigned long end,acr_flags_t alloc_flags,gfp_t gfp_mask) { +const unsigned int order =ilog2 (end - start);unsigned long outer_start, outer_end;int ret =0 ;
mm/page_alloc.c int alloc_contig_range_noprof(unsigned long start, unsigned long end, · line 6855
Quoted 5 lines
mm/page_alloc.c +2
-0@@ -6850,6 +6851,9 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end, PB_ISOLATE_MODE_CMA_ALLOC :PB_ISOLATE_MODE_OTHER ; +if (WARN_ON_ONCE ((gfp_mask & __GFP_COMP) && order >MAX_FOLIO_ORDER )) +return -EINVAL ;
Possibly not worth it for a one off, but be nice to have this as a helper function, like:
static bool is_valid_order(gfp_t gfp_mask, unsigned int order)
{
return !(gfp_mask & __GFP_COMP) || order <= MAX_FOLIO_ORDER;
}Then makes this:
if (WARN_ON_ONCE(!is_valid_order(gfp_mask, order))) return -EINVAL;
Kinda self-documenting!
Quoted 15 lines
mm/page_alloc.c +1
-2+ gfp_mask =current_gfp_context (gfp_mask);if (__alloc_contig_verify_gfp_mask (gfp_mask, (gfp_t *)&cc.gfp_mask))return -EINVAL ;@@ -6947,7 +6951,6 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end,free_contig_range (end, outer_end - end); }else if (start == outer_start && end == outer_end &&is_power_of_2 (end - start)) {struct page *head =pfn_to_page (start); -int order =ilog2 (end - start);check_new_pages (head, order);prep_new_page (head, order, gfp_mask,0 ); --2.50.1
Re: [PATCH v1 07/36] mm/memremap: reject unreasonable folio/compound page sizes in memremap_pages()
In reply to David HildenbrandQuoted 7 lines · David Hildenbrand
Let's reject unreasonable folio sizes early, where we can still fail. We'll add sanity checks to prepare_compound_head/prepare_compound_page next.
Is there a way to configure a system such that unreasonable folio sizes would be possible? It would already be rather questionable.
Quoted 6 lines
If so, we'd probably want to bail out earlier, where we can avoid a WARN and just report a proper error message that indicates where something went wrong such that we messed up.
Acked-by SeongJae Park <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 21 lines
--- mm/memremap.c | 3 +++ 1 file changed, 3 insertions(+)mm/memremap.c +3
-1@@ -275,6 +275,9 @@ void *memremap_pages(struct dev_pagemap *pgmap, int nid)if (WARN_ONCE (!nr_range,"nr_range must be specified\n" ))return ERR_PTR (-EINVAL ); +if (WARN_ONCE (pgmap->vmemmap_shift >MAX_FOLIO_ORDER , +"requested folio size unsupported\n" )) +return ERR_PTR (-EINVAL );switch (pgmap->type) {case MEMORY_DEVICE_PRIVATE : --2.50.1
Re: [PATCH v1 08/36] mm/hugetlb: check for unreasonable folio sizes when registering hstate
In reply to David HildenbrandQuoted 11 lines · David Hildenbrand
Let's check that no hstate that corresponds to an unreasonable folio size is registered by an architecture. If we were to succeed registering, we could later try allocating an unsupported gigantic folio size.
Further, let's add a
BUILD_BUG_ON()for checking thatHUGETLB_PAGE_ORDERis sane at build time. AsHUGETLB_PAGE_ORDERis dynamic on powerpc, we have to use aBUILD_BUG_ON_INVALID()to make it compile.No existing kernel configuration should be able to trigger this check:
either SPARSEMEM withoutSPARSEMEM_VMEMMAPcannot be configured or gigantic folios will not exceed a memory section (the case on sparse).
I am guessing it's implicit that MAX_FOLIO_ORDER <= section size?
Quoted 2 lines
Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 27 lines
--- mm/hugetlb.c | 2 ++ 1 file changed, 2 insertions(+)mm/hugetlb.c +2
-1@@ -4657,6 +4657,7 @@ static int __init hugetlb_init(void) BUILD_BUG_ON(sizeof_field(struct page, private) * BITS_PER_BYTE < __NR_HPAGEFLAGS); +BUILD_BUG_ON_INVALID (HUGETLB_PAGE_ORDER >MAX_FOLIO_ORDER );if (!hugepages_supported ()) {if (hugetlb_max_hstate || default_hstate_max_huge_pages)@@ -4740,6 +4741,7 @@ void __init hugetlb_add_hstate(unsigned int order) }BUG_ON (hugetlb_max_hstate >=HUGE_MAX_HSTATE );BUG_ON (order <order_base_2 (__NR_USED_SUBPAGE)); +WARN_ON (order >MAX_FOLIO_ORDER ); h = &hstates[hugetlb_max_hstate++];__mutex_init (&h->resize_lock,"resize mutex" , &h->resize_key); h->order = order; --2.50.1
Re: [PATCH v1 09/36] mm/mm_init: make memmap_init_compound() look more like prep_compound_page()
In reply to David HildenbrandQuoted 6 lines · David Hildenbrand
Grepping for "
prep_compound_page" leaves on clueless how devdax gets its compound pages initialized.Let's add a comment that might help finding this open-coded
prep_compound_page()initialization more easily.
Quoted 6 lines
Further, let's be less smart about the ordering of initialization and just perform the
prep_compound_head()call after all tail pages were
initialized: just likeprep_compound_page()does.No need for a comment to describe the initialization order: again, just like
prep_compound_page().
Wow this is great, thank you for putting a quality comment for this and thinking of this :)
We have too much 'special case you just have to know' stuff sitting around, so this kind of thing is always great to see.
Quoted 3 lines
Reviewed-by Mike Rapoport (Microsoft) <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 41 lines
--- mm/mm_init.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)mm/mm_init.c +7
-9@@ -1091,6 +1091,12 @@ static void __ref memmap_init_compound(struct page *head,unsigned long pfn, end_pfn = head_pfn + nr_pages;unsigned int order = pgmap->vmemmap_shift; +/* +* We have to initialize the pages, including setting up page links. +* prep_compound_page() does not take care of that, so instead we +* open-code prep_compound_page() so we can take care of initializing +* the pages in the same go. +*/ __SetPageHead (head);for (pfn = head_pfn +1 ; pfn < end_pfn; pfn++) {struct page *page =pfn_to_page (pfn);@@ -1098,15 +1104,8 @@ static void __ref memmap_init_compound(struct page *head,__init_zone_device_page (page, pfn, zone_idx, nid, pgmap);prep_compound_tail (head, pfn - head_pfn);set_page_count (page,0 ); - -/* -* The first tail page stores important compound page info. -* Call prep_compound_head() after the first tail page has -* been initialized, to not have the data overwritten. -*/ -if (pfn == head_pfn +1 ) -prep_compound_head (head, order); } +prep_compound_head (head, order); } void __ref memmap_init_zone_device(struct zone *zone, --2.50.1
Re: [PATCH v1 10/36] mm: sanity-check maximum folio size in folio_set_order()
In reply to David HildenbrandQuoted 5 lines · David Hildenbrand
Let's sanity-check in
folio_set_order()whether we would be trying to create a folio with an order that would make it exceedMAX_FOLIO_ORDER.This will enable the check whenever a folio/compound page is initialized through
prepare_compound_head()/prepare_compound_page().
NIT: with CONFIG_DEBUG_VM set :)
Quoted 3 lines
Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM (apart from nit below), so:
mm/internal.h static inline void folio_set_order(struct folio *folio, unsigned int order) · line 758
Quoted 13 lines
--- mm/internal.h | 1 + 1 file changed, 1 insertion(+)mm/internal.h +1
-0@@ -755,6 +755,7 @@ static inline void folio_set_order(struct folio *folio, unsigned int order) {if (WARN_ON_ONCE (!order || !folio_test_large (folio)))return ; +VM_WARN_ON_ONCE (order >MAX_FOLIO_ORDER );
Given we have 'full-fat' WARN_ON*()'s above, maybe worth making this one too?
Quoted 6 lines
mm/internal.h +0
-1folio->_flags_1 = (folio->_flags_1 & ~0xffUL ) | order;#ifdef NR_PAGES_IN_LARGE_FOLIO --2.50.1
Re: [PATCH v1 11/36] mm: limit folio/compound page sizes in problematic kernel configs
In reply to David HildenbrandQuoted 15 lines · David Hildenbrand
Let's limit the maximum folio size in problematic kernel config where the memmap is allocated per memory section (SPARSEMEM without
SPARSEMEM_VMEMMAP) to a single memory section.Currently, only a single architectures supports
ARCH_HAS_GIGANTIC_PAGEbut notSPARSEMEM_VMEMMAP: sh.Fortunately, the biggest hugetlb size sh supports is 64 MiB (
HUGETLB_PAGE_SIZE_64MB) and the section size is at least 64 MiB (SECTION_SIZE_BITS== 26), so their use case is not degraded.As folios and memory sections are naturally aligned to their order-2 size in memory, consequently a single folio can no longer span multiple memory sections on these problematic kernel configs.
Quoted 6 lines
nth_page()is no longer required when operating within a single compound page / folio.Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Realy great comments, like this!
I wonder if we could have this be part of the first patch where you fiddle with MAX_FOLIO_ORDER etc. but not a big deal.
Anyway LGTM, so:
Quoted 19 lines
--- include/linux/mm.h | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-)include/linux/mm.h +3
-4@@ -2053,11 +2053,25 @@ static inline long folio_nr_pages(const struct folio *folio)return folio_large_nr_pages (folio); } -/* Only hugetlbfs can allocate folios larger than MAX_ORDER */ -#ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE -#define MAX_FOLIO_ORDER PUD_ORDER -#else +#if !defined(CONFIG_ARCH_HAS_GIGANTIC_PAGE ) +/* +* We don't expect any folios that exceed buddy sizes (and consequently
include/linux/mm.h static inline long folio_nr_pages(const struct folio *folio) · line 2068
Quoted 10 lines
include/linux/mm.h +9
-0+* memory sections). +*/ #define MAX_FOLIO_ORDER MAX_PAGE_ORDER +#elif defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +/* +* Only pages within a single memory section are guaranteed to be +* contiguous. By limiting folios to a single memory section, all folio +* pages are guaranteed to be contiguous. +*/ +#define MAX_FOLIO_ORDER PFN_SECTION_SHIFT
Hmmm, was this implicit before somehow? I mean surely by the fact as you say that physical contiguity would not otherwise be guaranteed :))
include/linux/mm.h static inline long folio_nr_pages(const struct folio *folio) · line 2073
Quoted 5 lines
include/linux/mm.h +5
-0+#else +/* +* There is no real limit on the folio size. We limit them to the maximum we +* currently expect (e.g., hugetlb, dax). +*/
This is nice.
Quoted 7 lines
include/linux/mm.h +1
-1+#define MAX_FOLIO_ORDER PUD_ORDER#endif #define MAX_FOLIO_NR_PAGES (1UL << MAX_FOLIO_ORDER) --2.50.1
Re: [PATCH v1 12/36] mm: simplify folio_page() and folio_page_idx()
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
Now that a single folio/compound page can no longer span memory sections in problematic kernel configurations, we can stop using
nth_page().While at it, turn both macros into static inline functions and add kernel doc for
folio_page_idx().Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 26 lines
--- include/linux/mm.h | 16 ++++++++++++++-- include/linux/page-flags.h | 5 ++++- 2 files changed, 18 insertions(+), 3 deletions(-)include/linux/mm.h +2
-2@@ -210,10 +210,8 @@ extern unsigned long sysctl_admin_reserve_kbytes;#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP )#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n)) -#define folio_page_idx (folio, p) (page_to_pfn(p) - folio_pfn(folio))#else #define nth_page (page,n) ((page) + (n)) -#define folio_page_idx (folio, p) ((p) - &(folio)->page)#endif /* to align the pointer to the (next) page boundary */ @@ -225,6 +223,20 @@ extern unsigned long sysctl_admin_reserve_kbytes;/* test whether an address (unsigned long or pointer) is aligned to PAGE_SIZE */ #define PAGE_ALIGNED (addr) IS_ALIGNED((unsigned long)(addr), PAGE_SIZE) +/** +* folio_page_idx - Return the number of a page in a folio.
include/linux/mm.h extern unsigned long sysctl_admin_reserve_kbytes; · line 237
Quoted 10 lines
include/linux/mm.h +10
-0+* @folio: The folio. +* @page: The folio page. +* +* This function expects that the page is actually part of the folio. +* The returned number is relative to the start of the folio. +*/ +static inline unsigned long folio_page_idx (const struct folio *folio, +const struct page *page) +{ +return page - &folio->page;
Ahh now I see why we did all this stuff with regard to the sparse things before :) very nice.
Quoted 24 lines
include/linux/mm.h +2
-0+} +static inline struct folio *lru_to_folio (struct list_head *head) { return list_entry((head)->prev, struct folio, lru);include/linux/page-flags.h +4
-2@@ -316,7 +316,10 @@ static __always_inline unsigned long _compound_head(const struct page *page)* check that the page number lies within @folio; the caller is presumed * to have a reference to the page. */ -#define folio_page (folio, n) nth_page(&(folio)->page, n) +static inline struct page *folio_page (struct folio *folio,unsigned long n) +{ +return &folio->page + n; +}3 static __always_inline int PageTail(const struct page *page) { --2.50.1
Re: [PATCH v1 13/36] mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
In reply to David HildenbrandQuoted 4 lines · David Hildenbrand
We can now safely iterate over all pages in a folio, so no need for the
pfn_to_page().Also, as we already force the refcount in
__init_single_page()to 1,
Mega huge nit (ignore if you want), but maybe worth saying 'via init_page_count()'.
Quoted 3 lines
we can just set the refcount to 0 and avoid
page_ref_freeze()+VM_BUG_ON. Likely, in the future, we would just want to tell__init_single_page()to which value to initialize the refcount.
Right yes :)
Quoted 4 lines
Further, adjust the comments to highlight that we are dealing with an open-coded
prep_compound_page()variant, and add another comment explaining why we really need the__init_single_page()only on the tail pages.
Ah nice another 'anchor' to grep for!
Quoted 8 lines
Note that the current code was likely problematic, but we never ran into
it:prep_compound_tail()would have been called with an offset that might exceed a memory section, andprep_compound_tail()would have simply added that offset to the page pointer -- which would not have done the right thing on sparsemem without vmemmap.Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 54 lines
--- mm/hugetlb.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)mm/hugetlb.c +12
-9@@ -3237,17 +3237,18 @@ static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, {enum zone_type zone =zone_idx (folio_zone (folio));int nid =folio_nid (folio); +struct page *page =folio_page (folio, start_page_number);unsigned long head_pfn =folio_pfn (folio);unsigned long pfn, end_pfn = head_pfn + end_page_number; -int ret; - -for (pfn = head_pfn + start_page_number; pfn < end_pfn; pfn++) { -struct page *page =pfn_to_page (pfn); +/* +* We mark all tail pages with memblock_reserved_mark_noinit(), +* so these pages are completely uninitialized. +*/ +for (pfn = head_pfn + start_page_number; pfn < end_pfn; page++, pfn++) {__init_single_page (page, pfn, zone, nid);prep_compound_tail ((struct page *)folio, pfn - head_pfn); - ret =page_ref_freeze (page,1 ); -VM_BUG_ON (!ret); +set_page_count (page,0 ); } }@@ -3257,12 +3258,15 @@ static void __init hugetlb_folio_init_vmemmap(struct folio *folio, {int ret; -/* Prepare folio head */ +/* +* This is an open-coded prep_compound_page() whereby we avoid +* walking pages twice by initializing/preparing+freezing them in the +* same go. +*/ __folio_clear_reserved (folio);__folio_set_head (folio); ret =folio_ref_freeze (folio,1 );VM_BUG_ON (!ret); -/* Initialize the necessary tail struct pages */ hugetlb_folio_init_tail_vmemmap (folio,1 , nr_pages);prep_compound_head ((struct page *)folio,huge_page_order (h)); } --2.50.1
Re: [PATCH v1 14/36] mm/mm/percpu-km: drop nth_page() usage within single allocation
In reply to David HildenbrandQuoted 5 lines · David Hildenbrand
We're allocating a higher-order page from the buddy. For these pages (that are guaranteed to not exceed a single memory section) there is no need to use
nth_page().Signed-off-by David Hildenbrand <[email protected]>
Oh hello! Now it all comes together :)
nth_tag():
LGTM, so:
Quoted 20 lines
--- mm/percpu-km.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/percpu-km.c +1
-2@@ -69,7 +69,7 @@ static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp) }for (i =0 ; i < nr_pages; i++) -pcpu_set_page_chunk (nth_page (pages, i), chunk); +pcpu_set_page_chunk (pages + i, chunk); chunk->data = pages; chunk->base_addr =page_address (pages); --2.50.1
Re: [PATCH v1 15/36] fs: hugetlbfs: remove nth_page() usage within folio in adjust_range_hwpoison()
In reply to David HildenbrandQuoted 2 lines · David Hildenbrand
The
nth_page()is not really required anymore, so let's remove it. While at it, cleanup and simplify the code a bit.
Hm Not sure which bit is the cleanup? Was there meant to be more here or?
Quoted 2 lines
Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 9 lines
--- fs/hugetlbfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/hugetlbfs/inode.c +0
-0
fs/hugetlbfs/inode.c static size_t adjust_range_hwpoison(struct folio *folio, size_t offset, · line 220
Quoted 5 lines
fs/hugetlbfs/inode.c +1
-1@@ -217,7 +217,7 @@ static size_t adjust_range_hwpoison(struct folio *folio, size_t offset,break ; offset += n;if (offset ==PAGE_SIZE ) { - page =nth_page (page,1 ); + page++;
LOL at that diff. Great!
Quoted 6 lines
fs/hugetlbfs/inode.c +0
-1offset =0 ; } } --2.50.1
Re: [PATCH v1 16/36] fs: hugetlbfs: cleanup folio in adjust_range_hwpoison()
In reply to David HildenbrandQuoted 1 line · David Hildenbrand
Let's cleanup and simplify the function a bit.
Ah I guess you separated this out from the previous patch? :)
I feel like it might be worth talking about the implementation here in the commit message as it took me a while to figure this out.
Quoted 2 lines
Signed-off-by David Hildenbrand <[email protected]>
This original implementation is SO GROSS.
God this hurts my mind
n = min(bytes, (size_t)PAGE_SIZE - offset);
So either it'll be remaining bytes in page or we're only spanning one page first time round
Then we
res += n; bytes -= n;
So bytes comes to end of page if spanning multiple
Then offset if spanning multiple pages will be PAGE_SIZE -offset + offset (!!!) therefore PAGE_SIZE And we move to the next page and reset offset to 0:
offset += n;
if (offset == PAGE_SIZE) {
page = nth_page(page, 1);
offset = 0;
}Then from then on n = min(bytes, PAGE_SIZE) (!!!!!!)
So res = remaining safe bytes in first page + num other pages OR bytes if we don't span more than 1.
Lord above.
Also semantics of 'if bytes == 0, then check first page anyway' which you do capture.
OK think I have convinced myself this is right, so hopefully no deeply subtle off-by-one issues here :P
Anyway, LGTM, so:
Quoted 27 lines
--- fs/hugetlbfs/inode.c | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-)fs/hugetlbfs/inode.c +5
-10@@ -198,31 +198,20 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,static size_t adjust_range_hwpoison (struct folio *folio,size_t offset,size_t bytes) { -struct page *page; -size_t n =0 ; -size_t res =0 ; - -/* First page to start the loop. */ - page =folio_page (folio, offset /PAGE_SIZE ); - offset %=PAGE_SIZE ; -while (1 ) { -if (is_raw_hwpoison_page_in_hugepage (page)) -break ; +struct page *page =folio_page (folio, offset /PAGE_SIZE ); +size_t safe_bytes; + +if (is_raw_hwpoison_page_in_hugepage (page)) +return 0 ;
fs/hugetlbfs/inode.c hugetlb_get_unmapped_area(struct file *file, unsigned long addr, · line 210
Quoted 10 lines
fs/hugetlbfs/inode.c +4
-5+/* Safe to read the remaining bytes in this page. */ + safe_bytes =PAGE_SIZE - (offset %PAGE_SIZE ); + page++; -/* Safe to read n bytes without touching HWPOISON subpage. */ - n =min (bytes, (size_t )PAGE_SIZE - offset); - res += n; - bytes -= n; -if (!bytes || !n) +for (; safe_bytes < bytes; safe_bytes +=PAGE_SIZE , page++)
OK this is quite subtle - so if safe_bytes == bytes, this means we've confirmed that all requested bytes are safe.
So offset=0, bytes = 4096 would fail this (as safe_bytes == 4096).
Maybe worth putting something like:
/* * Now we check page-by-page in the folio to see if any bytes we don't * yet know to be safe are contained within posioned pages or not. */
Above the loop. Or something like this.
fs/hugetlbfs/inode.c hugetlb_get_unmapped_area(struct file *file, unsigned long addr, · line 214
Quoted 11 lines
fs/hugetlbfs/inode.c +2
-7+if (is_raw_hwpoison_page_in_hugepage (page))break ; - offset += n; -if (offset ==PAGE_SIZE ) { - page++; - offset =0 ; - } - } -return res; +return min (safe_bytes, bytes);
Yeah given above analysis this seems correct.
You must have torn your hair out over this :)
Quoted 6 lines
fs/hugetlbfs/inode.c +0
-1}/* -- 2.50.1
Re: [PATCH v1 17/36] mm/pagewalk: drop nth_page() usage within folio in folio_walk_start()
In reply to David HildenbrandQuoted 4 lines · David Hildenbrand
It's no longer required to use
nth_page()within a folio, so let's just drop thenth_page()infolio_walk_start().Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 9 lines
--- mm/pagewalk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/pagewalk.c +0
-0
mm/pagewalk.c struct folio *folio_walk_start(struct folio_walk *fw, · line 1007
Quoted 5 lines
mm/pagewalk.c +1
-1@@ -1004,7 +1004,7 @@ struct folio *folio_walk_start(struct folio_walk *fw, found:if (expose_page)/* Note: Offset from the mapped page, not the folio start. */ - fw->page =nth_page (page, (addr & (entry_size -1 )) >>PAGE_SHIFT ); + fw->page = page + ((addr & (entry_size -1 )) >>PAGE_SHIFT );
Be nice to clean this horrid one liner up a bit also but that's out of scope here :)
Quoted 6 lines
mm/pagewalk.c +0
-1else fw->page =NULL ; fw->ptl = ptl; --2.50.1
Re: [PATCH v1 18/36] mm/gup: drop nth_page() usage within folio when recording subpages
In reply to David HildenbrandQuoted 4 lines · David Hildenbrand
nth_page()is no longer required when iterating over pages within a single folio, so let's just drop it when recording subpages.Signed-off-by David Hildenbrand <[email protected]>
This looks correct to me, so notwithtsanding suggestion below, LGTM and:
Quoted 10 lines
--- mm/gup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)mm/gup.c +0
-0@@ -488,12 +488,11 @@ static int record_subpages(struct page *page, unsigned long sz, unsigned long addr, unsigned long end,
mm/gup.c static int record_subpages(struct page *page, unsigned long sz, · line 495
Quoted 10 lines
mm/gup.c +2
-3struct page **pages) { -struct page *start_page;int nr; - start_page =nth_page (page, (addr & (sz -1 )) >>PAGE_SHIFT ); + page += (addr & (sz -1 )) >>PAGE_SHIFT ;for (nr =0 ; addr != end; nr++, addr +=PAGE_SIZE ) - pages[nr] =nth_page (start_page, nr); + pages[nr] = page++;
This is really nice, but I wonder if (while we're here) we can't be even more clear as to what's going on here, e.g.:
static int record_subpages(struct page *page, unsigned long sz,
unsigned long addr, unsigned long end, struct page **pages)
{
size_t offset_in_folio = (addr & (sz - 1)) >> PAGE_SHIFT;
struct page *subpage = page + offset_in_folio;
for (; addr != end; addr += PAGE_SIZE)
*pages++ = subpage++;
return nr;
}Or some variant of that with the masking stuff self-documented.
Quoted 13 lines
mm/gup.c +1
-2return nr; }@@ -1512,7 +1511,7 @@ static long __get_user_pages(struct mm_struct *mm, }for (j =0 ; j < page_increm; j++) { - subpage =nth_page (page, j); + subpage = page + j; pages[i + j] = subpage;flush_anon_page (vma, subpage, start + j *PAGE_SIZE );flush_dcache_page (subpage); --
Quoted 2 lines
2.50.1
Cheers, Lorenzo
Re: [PATCH v1 19/36] io_uring/zcrx: remove nth_page() usage within folio
In reply to David HildenbrandQuoted 9 lines · David Hildenbrand
Within a folio/compound page,
nth_page()is no longer required. Given that we call folio_test_partial_kmap()+kmap_local_page(), the code would already be problematic if the pages would span multiple folios.So let's just assume that all src pages belong to a single folio/compound page and can be iterated ordinarily. The dst page is currently always a single page, so we're not actually iterating anything.
Quoted 4 lines
Reviewed-by Pavel Begunkov <[email protected]>Cc Jens Axboe <[email protected]>Cc Pavel Begunkov <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
On basis of src pages being within the same folio, LGTM, so:
Quoted 23 lines
--- io_uring/zcrx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)io_uring/zcrx.c +2
-3@@ -975,9 +975,9 @@ static ssize_t io_copy_page(struct io_copy_cache *cc, struct page *src_page,if (folio_test_partial_kmap (page_folio (dst_page)) ||folio_test_partial_kmap (page_folio (src_page))) { - dst_page =nth_page (dst_page, dst_offset /PAGE_SIZE ); + dst_page += dst_offset /PAGE_SIZE ; dst_offset =offset_in_page (dst_offset); - src_page =nth_page (src_page, src_offset /PAGE_SIZE ); + src_page += src_offset /PAGE_SIZE ; src_offset =offset_in_page (src_offset); n =min (PAGE_SIZE - src_offset,PAGE_SIZE - dst_offset); n =min (n, len); --2.50.1
Re: [PATCH v1 20/36] mips: mm: convert __flush_dcache_pages() to __flush_dcache_folio_pages()
In reply to David HildenbrandQuoted 18 lines · David Hildenbrand
Let's make it clearer that we are operating within a single folio by providing both the folio and the page.
This implies that for
flush_dcache_folio()we'll now avoid one morepage->foliolookup, and that we can safely drop the "nth_page" usage.Cc Thomas Bogendoerfer <[email protected]>Signed-off-by David Hildenbrand <[email protected]>--- arch/mips/include/asm/cacheflush.h | 11 +++++++---- arch/mips/mm/cache.c | 8 ++++---- 2 files changed, 11 insertions(+), 8 deletions(-)arch/mips/include/asm/cacheflush.h +0
-0
arch/mips/include/asm/cacheflush.h extern void (*flush_cache_mm)(struct mm_struct *mm); · line 53
Quoted 5 lines
arch/mips/include/asm/cacheflush.h +1
-1@@ -50,13 +50,14 @@ extern void (*flush_cache_mm)(struct mm_struct *mm);extern void (*flush_cache_range)(struct vm_area_struct *vma,unsigned long start,unsigned long end);extern void (*flush_cache_page)(struct vm_area_struct *vma,unsigned long page,unsigned long pfn); -extern void __flush_dcache_pages (struct page *page,unsigned int nr); +extern void __flush_dcache_folio_pages (struct folio *folio,struct page *page,unsigned int nr);
NIT: Be good to drop the extern.
Quoted 12 lines
arch/mips/include/asm/cacheflush.h +2
-1#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1static inline void flush_dcache_folio (struct folio *folio) {if (cpu_has_dc_aliases) -__flush_dcache_pages (&folio->page,folio_nr_pages (folio)); +__flush_dcache_folio_pages (folio,folio_page (folio,0 ), +folio_nr_pages (folio));else if (!cpu_has_ic_fills_f_dc)folio_set_dcache_dirty (folio); }
arch/mips/include/asm/cacheflush.h static inline void flush_dcache_folio(struct folio *folio) · line 71
Quoted 8 lines
arch/mips/include/asm/cacheflush.h +3
-1@@ -64,10 +65,12 @@ static inline void flush_dcache_folio(struct folio *folio)static inline void flush_dcache_page (struct page *page) { +struct folio *folio =page_folio (page); +if (cpu_has_dc_aliases) -__flush_dcache_pages (page,1 ); +__flush_dcache_folio_pages (folio, page,folio_nr_pages (folio));
Hmmm, shouldn't this be 1 not folio_nr_pages()? Seems that the original implementation only flushed a single page even if contained within a larger folio?
Quoted 40 lines
arch/mips/include/asm/cacheflush.h +1
-1else if (!cpu_has_ic_fills_f_dc) -folio_set_dcache_dirty (page_folio (page)); +folio_set_dcache_dirty (folio); }#define flush_dcache_mmap_lock (mapping) do { } while (0)arch/mips/mm/cache.c +4
-5@@ -99,9 +99,9 @@ SYSCALL_DEFINE3(cacheflush, unsigned long, addr, unsigned long, bytes,return 0 ; } -void __flush_dcache_pages (struct page *page,unsigned int nr) +void __flush_dcache_folio_pages (struct folio *folio,struct page *page, +unsigned int nr) { -struct folio *folio =page_folio (page);struct address_space *mapping =folio_flush_mapping (folio);unsigned long addr;unsigned int i;@@ -117,12 +117,12 @@ void __flush_dcache_pages(struct page *page, unsigned int nr)* get faulted into the tlb (and thus flushed) anyways. */ for (i =0 ; i < nr; i++) { - addr = (unsigned long )kmap_local_page (nth_page (page, i)); + addr = (unsigned long )kmap_local_page (page + i);flush_data_cache_page (addr);kunmap_local ((void *)addr); } } -EXPORT_SYMBOL (__flush_dcache_pages); +EXPORT_SYMBOL (__flush_dcache_folio_pages);void __flush_anon_page (struct page *page,unsigned long vmaddr) { --2.50.1
Re: [PATCH v1 21/36] mm/cma: refuse handing out non-contiguous page ranges
In reply to David HildenbrandQuoted 7 lines · David Hildenbrand
Let's disallow handing out PFN ranges with non-contiguous pages, so we can remove the nth-page usage in
__cma_alloc(), and so any callers don't have to worry about that either when wanting to blindly iterate pages.This is really only a problem in configs with SPARSEMEM but without
SPARSEMEM_VMEMMAP, and only when we would cross memory sections in some cases.
I'm guessing this is something that we don't need to worry about in reality?
Quoted 8 lines
Will this cause harm? Probably not, because it's mostly 32bit that does not support
SPARSEMEM_VMEMMAP. If this ever becomes a problem we could look into allocating the memmap for the memory sections spanned by a single CMA region in one go from memblock.Reviewed-by Alexandru Elisei <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM other than refactoring point below.
CMA stuff looks fine afaict after staring at it for a while, on proviso that handing out ranges within the same section is always going to be the case.
Anyway overall,
LGTM, so:
Quoted 146 lines
--- include/linux/mm.h | 6 ++++++ mm/cma.c | 39 ++++++++++++++++++++++++--------------- mm/util.c | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 15 deletions(-)include/linux/mm.h +6
-0@@ -209,9 +209,15 @@ extern unsigned long sysctl_user_reserve_kbytes;extern unsigned long sysctl_admin_reserve_kbytes;#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +bool page_range_contiguous (const struct page *page,unsigned long nr_pages);#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n))#else #define nth_page (page,n) ((page) + (n)) +static inline bool page_range_contiguous (const struct page *page, +unsigned long nr_pages) +{ +return true; +}#endif /* to align the pointer to the (next) page boundary */ mm/cma.c +24
-15@@ -780,10 +780,8 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr, unsigned long count, unsigned int align, struct page **pagep, gfp_t gfp) { - unsigned long mask, offset; -unsigned long pfn =-1 ; -unsigned long start =0 ; unsigned long bitmap_maxno, bitmap_no, bitmap_count; +unsigned long start, pfn, mask, offset;int ret = -EBUSY ;struct page *page =NULL ;@@ -795,7 +793,7 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,if (bitmap_count > bitmap_maxno) goto out; -for (;;) { +for (start =0 ; ; start = bitmap_no + mask +1 ) {spin_lock_irq (&cma->lock);/* * If the request is larger than the available number @@ -812,6 +810,22 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,spin_unlock_irq (&cma->lock);break ; } + + pfn = cmr->base_pfn + (bitmap_no << cma->order_per_bit); + page =pfn_to_page (pfn); + +/* +* Do not hand out page ranges that are not contiguous, so +* callers can just iterate the pages without having to worry +* about these corner cases. +*/ +if (!page_range_contiguous (page, count)) { +spin_unlock_irq (&cma->lock); +pr_warn_ratelimited ("%s: %s: skipping incompatible area [0x%lx-0x%lx]" , + __func__, cma->name, pfn, pfn + count -1 ); +continue ; + } +bitmap_set (cmr->bitmap, bitmap_no, bitmap_count); cma->available_count -= count;/* @@ -821,29 +835,24 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,*/ spin_unlock_irq (&cma->lock); - pfn = cmr->base_pfn + (bitmap_no << cma->order_per_bit);mutex_lock (&cma->alloc_mutex); ret =alloc_contig_range (pfn, pfn + count,ACR_FLAGS_CMA , gfp);mutex_unlock (&cma->alloc_mutex); -if (ret ==0 ) { - page =pfn_to_page (pfn); +if (!ret)break ; - }cma_clear_bitmap (cma, cmr, pfn, count);if (ret != -EBUSY )break ;pr_debug ("%s(): memory range at pfn 0x%lx %p is busy, retrying\n" , - __func__, pfn,pfn_to_page (pfn)); + __func__, pfn, page); -trace_cma_alloc_busy_retry (cma->name, pfn,pfn_to_page (pfn), - count, align); -/* try again with a bit different memory target */ - start = bitmap_no + mask +1 ; +trace_cma_alloc_busy_retry (cma->name, pfn, page, count, align); } out: - *pagep = page; +if (!ret) + *pagep = page;return ret; }@@ -882,7 +891,7 @@ static struct page *__cma_alloc(struct cma *cma, unsigned long count,*/ if (page) {for (i =0 ; i < count; i++) -page_kasan_tag_reset (nth_page (page, i)); +page_kasan_tag_reset (page + i); }if (ret && !(gfp & __GFP_NOWARN)) {mm/util.c +20
-0@@ -1280,4 +1280,37 @@ unsigned int folio_pte_batch(struct folio *folio, pte_t *ptep, pte_t pte, {return folio_pte_batch_flags (folio,NULL , ptep, &pte, max_nr,0 ); } + +#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +/** +* page_range_contiguous - test whether the page range is contiguous +* @page: the start of the page range. +* @nr_pages: the number of pages in the range. +* +* Test whether the page range is contiguous, such that they can be iterated +* naively, corresponding to iterating a contiguous PFN range. +* +* This function should primarily only be used for debug checks, or when +* working with page ranges that are not naturally contiguous (e.g., pages +* within a folio are). +* +* Returns true if contiguous, otherwise false. +*/ +bool page_range_contiguous (const struct page *page,unsigned long nr_pages) +{ +const unsigned long start_pfn =page_to_pfn (page); +const unsigned long end_pfn = start_pfn + nr_pages;
mm/util.c unsigned int folio_pte_batch(struct folio *folio, pte_t *ptep, pte_t pte, · line 1312
Quoted 10 lines
mm/util.c +10
-0+unsigned long pfn; + +/* +* The memmap is allocated per memory section. We need to check +* each involved memory section once. +*/ +for (pfn =ALIGN (start_pfn,PAGES_PER_SECTION ); + pfn < end_pfn; pfn +=PAGES_PER_SECTION ) +if (unlikely (page + (pfn - start_pfn) !=pfn_to_page (pfn))) +return false;
I find this pretty confusing, my test for this is how many times I have to read the code to understand what it's doing :)
So we have something like:
(pfn of page)
start_pfn pfn = align UP
| |
v v
| section | <----------------->
pfn - start_pfn
Then check page + (pfn - start_pfn) == pfn_to_page(pfn)
And loop such that:
(pfn of page)
start_pfn pfn
| |
v v
| section | section | <------------------------------------------>
pfn - start_pfn
Again check page + (pfn - start_pfn) == pfn_to_page(pfn)
And so on.
So the logic looks good, but it's just... that took me a hot second to parse :)
I think a few simple fixups
bool page_range_contiguous(const struct page *page, unsigned long nr_pages)
{
const unsigned long start_pfn = page_to_pfn(page);
const unsigned long end_pfn = start_pfn + nr_pages;
/* The PFN of the start of the next section. */
unsigned long pfn = ALIGN(start_pfn, PAGES_PER_SECTION);
/* The page we'd expected to see if the range were contiguous. */
struct page *expected = page + (pfn - start_pfn);
/*
* The memmap is allocated per memory section. We need to check
* each involved memory section once.
*/
for (; pfn < end_pfn; pfn += PAGES_PER_SECTION, expected += PAGES_PER_SECTION)
if (unlikely(expected != pfn_to_page(pfn)))
return false;
return true;
}Quoted 7 lines
mm/util.c +3
-1+return true; +} +#endif #endif /* CONFIG_MMU */ --2.50.1
Re: [PATCH v1 22/36] dma-remap: drop nth_page() in dma_common_contiguous_remap()
In reply to David HildenbrandQuoted 11 lines · David Hildenbrand
dma_common_contiguous_remap()is used to remap an "allocated contiguous region". Within a single allocation, there is no need to usenth_page()anymore.Neither the buddy, nor hugetlb, nor CMA will hand out problematic page ranges.
Acked-by Marek Szyprowski <[email protected]>Cc Marek Szyprowski <[email protected]>Cc Robin Murphy <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Nice!
LGTM, so:
Quoted 20 lines
--- kernel/dma/remap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/dma/remap.c +1
-2@@ -49,7 +49,7 @@ void *dma_common_contiguous_remap(struct page *page, size_t size,if (!pages)return NULL ;for (i =0 ; i < count; i++) - pages[i] =nth_page (page, i); + pages[i] = page++; vaddr =vmap (pages, count,VM_DMA_COHERENT , prot);kvfree (pages); --2.50.1
Re: [PATCH v1 23/36] scatterlist: disallow non-contigous page ranges in a single SG entry
In reply to David HildenbrandQuoted 9 lines · David Hildenbrand
The expectation is that there is currently no user that would pass in non-contigous page ranges: no allocator, not even VMA, will hand these out.
The only problematic part would be if someone would provide a range obtained directly from memblock, or manually merge problematic ranges. If we find such cases, we should fix them to create separate SG entries.
Quoted 6 lines
Let's check in
sg_set_page()that this is really the case. No need to check insg_set_folio(), as pages in a folio are guaranteed to be contiguous. Assg_set_page()gets inlined into modules, we have to export thepage_range_contiguous()helper -- useEXPORT_SYMBOL, there is nothing special about this helper such that we would want to enforce GPL-only modules.
Ah you mention this here (I wrote end of this first :)
Quoted 5 lines
We can now drop the
nth_page()usage insg_page_iter_page().Acked-by Marek Szyprowski <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
All LGTM, so:
Quoted 10 lines
--- include/linux/scatterlist.h | 3 ++- mm/util.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)include/linux/scatterlist.h +0
-0
include/linux/scatterlist.h static inline void sg_assign_page(struct scatterlist *sg, struct page *page) · line 161
Quoted 4 lines
include/linux/scatterlist.h +1
-0@@ -158,6 +158,7 @@ static inline void sg_assign_page(struct scatterlist *sg, struct page *page)static inline void sg_set_page (struct scatterlist *sg,struct page *page,unsigned int len,unsigned int offset) { +VM_WARN_ON_ONCE (!page_range_contiguous (page,ALIGN (len + offset,PAGE_SIZE ) /PAGE_SIZE ));
This is pretty horrible as one statement, but I guess we can't really do better, I had a quick look around for some helper that could work but nothing is clearly suitable.
So this should be fine.
Quoted 17 lines
include/linux/scatterlist.h +1
-1sg_assign_page (sg, page); sg->offset = offset; sg->length = len;@@ -600,7 +601,7 @@ void __sg_page_iter_start(struct sg_page_iter *piter,*/ static inline struct page *sg_page_iter_page (struct sg_page_iter *piter) { -return nth_page (sg_page (piter->sg), piter->sg_pgoffset); +return sg_page (piter->sg) + piter->sg_pgoffset; }/** mm/util.c +0
-0
mm/util.c bool page_range_contiguous(const struct page *page, unsigned long nr_pages) · line 1315
Quoted 4 lines
mm/util.c +1
-0@@ -1312,5 +1312,6 @@ bool page_range_contiguous(const struct page *page, unsigned long nr_pages)return false;return true; } +EXPORT_SYMBOL (page_range_contiguous);
Kinda sad that we're doing this as EXPORT_SYMBOL() rather than EXPORT_SYMBOL_GPL() :( but I guess necessary to stay consistent...
Quoted 5 lines
mm/util.c +0
-1#endif #endif /* CONFIG_MMU */ --2.50.1
Re: [PATCH v1 24/36] ata: libata-eh: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 6 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Cc Damien Le Moal <[email protected]>Cc Niklas Cassel <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 38 lines
--- drivers/ata/libata-sff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/ata/libata-sff.c +3
-4@@ -614,7 +614,7 @@ static void ata_pio_sector(struct ata_queued_cmd *qc) offset = qc->cursg->offset + qc->cursg_ofs;/* get the current page and offset */ - page =nth_page (page, (offset >>PAGE_SHIFT )); + page += offset >>PAGE_SHIFT ; offset %=PAGE_SIZE ;/* don't overrun current sg */ @@ -631,7 +631,7 @@ static void ata_pio_sector(struct ata_queued_cmd *qc)unsigned int split_len =PAGE_SIZE - offset;ata_pio_xfer (qc, page, offset, split_len); -ata_pio_xfer (qc,nth_page (page,1 ),0 , count - split_len); +ata_pio_xfer (qc, page +1 ,0 , count - split_len); }else {ata_pio_xfer (qc, page, offset, count); }@@ -751,7 +751,7 @@ static int __atapi_pio_bytes(struct ata_queued_cmd *qc, unsigned int bytes) offset = sg->offset + qc->cursg_ofs;/* get the current page and offset */ - page =nth_page (page, (offset >>PAGE_SHIFT )); + page += offset >>PAGE_SHIFT ; offset %=PAGE_SIZE ;/* don't overrun current sg */ --2.50.1
Re: [PATCH v1 25/36] drm/i915/gem: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 10 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc David Airlie <[email protected]>Cc Simona Vetter <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 20 lines
--- drivers/gpu/drm/i915/gem/i915_gem_pages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/gem/i915_gem_pages.c +1
-2@@ -779,7 +779,7 @@ __i915_gem_object_get_page(struct drm_i915_gem_object *obj, pgoff_t n)GEM_BUG_ON (!i915_gem_object_has_struct_page (obj)); sg =i915_gem_object_get_sg (obj, n, &offset); -return nth_page (sg_page (sg), offset); +return sg_page (sg) + offset; }/* Like i915_gem_object_get_page(), but mark the returned page dirty */ --2.50.1
Re: [PATCH v1 26/36] mspro_block: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Acked-by Ulf Hansson <[email protected]>Cc Maxim Levitsky <[email protected]>Cc Alex Dubov <[email protected]>Cc Ulf Hansson <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 21 lines
--- drivers/memstick/core/mspro_block.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/memstick/core/mspro_block.c +1
-3@@ -560,8 +560,7 @@ static int h_mspro_block_transfer_data(struct memstick_dev *card, t_offset += msb->current_page * msb->page_size;sg_set_page (&t_sg, -nth_page (sg_page (&(msb->req_sg[msb->current_seg])), - t_offset >>PAGE_SHIFT ), +sg_page (&(msb->req_sg[msb->current_seg])) + (t_offset >>PAGE_SHIFT ), msb->page_size,offset_in_page (t_offset)); memstick_init_req_sg(*mrq, msb->data_dir == READ --2.50.1
Re: [PATCH v1 27/36] memstick: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Acked-by Ulf Hansson <[email protected]>Cc Maxim Levitsky <[email protected]>Cc Alex Dubov <[email protected]>Cc Ulf Hansson <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 36 lines
--- drivers/memstick/host/jmb38x_ms.c | 3 +-- drivers/memstick/host/tifm_ms.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)drivers/memstick/host/jmb38x_ms.c +1
-2@@ -317,8 +317,7 @@ static int jmb38x_ms_transfer_data(struct jmb38x_ms_host *host)unsigned int p_off;if (host->req->long_data) { - pg =nth_page (sg_page (&host->req->sg), - off >>PAGE_SHIFT ); + pg =sg_page (&host->req->sg) + (off >>PAGE_SHIFT ); p_off =offset_in_page (off); p_cnt =PAGE_SIZE - p_off; p_cnt =min (p_cnt, length);drivers/memstick/host/tifm_ms.c +1
-3@@ -201,8 +201,7 @@ static unsigned int tifm_ms_transfer_data(struct tifm_ms *host)unsigned int p_off;if (host->req->long_data) { - pg =nth_page (sg_page (&host->req->sg), - off >>PAGE_SHIFT ); + pg =sg_page (&host->req->sg) + (off >>PAGE_SHIFT ); p_off =offset_in_page (off); p_cnt =PAGE_SIZE - p_off; p_cnt =min (p_cnt, length); --2.50.1
Re: [PATCH v1 28/36] mmc: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 9 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Acked-by Ulf Hansson <[email protected]>Cc Alex Dubov <[email protected]>Cc Ulf Hansson <[email protected]>Cc Jesper Nilsson <[email protected]>Cc Lars Persson <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 52 lines
--- drivers/mmc/host/tifm_sd.c | 4 ++-- drivers/mmc/host/usdhi6rol0.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)drivers/mmc/host/tifm_sd.c +2
-2@@ -191,7 +191,7 @@ static void tifm_sd_transfer_data(struct tifm_sd *host) } off = sg[host->sg_pos].offset + host->block_pos; - pg =nth_page (sg_page (&sg[host->sg_pos]), off >>PAGE_SHIFT ); + pg =sg_page (&sg[host->sg_pos]) + (off >>PAGE_SHIFT ); p_off =offset_in_page (off); p_cnt =PAGE_SIZE - p_off; p_cnt =min (p_cnt, cnt);@@ -240,7 +240,7 @@ static void tifm_sd_bounce_block(struct tifm_sd *host, struct mmc_data *r_data) } off = sg[host->sg_pos].offset + host->block_pos; - pg =nth_page (sg_page (&sg[host->sg_pos]), off >>PAGE_SHIFT ); + pg =sg_page (&sg[host->sg_pos]) + (off >>PAGE_SHIFT ); p_off =offset_in_page (off); p_cnt =PAGE_SIZE - p_off; p_cnt =min (p_cnt, cnt);drivers/mmc/host/usdhi6rol0.c +2
-3@@ -323,7 +323,7 @@ static void usdhi6_blk_bounce(struct usdhi6_host *host, host->head_pg.page = host->pg.page; host->head_pg.mapped = host->pg.mapped; - host->pg.page =nth_page (host->pg.page,1 ); + host->pg.page = host->pg.page +1 ; host->pg.mapped =kmap (host->pg.page); host->blk_page = host->bounce_buf;@@ -503,7 +503,7 @@ static void usdhi6_sg_advance(struct usdhi6_host *host)/* We cannot get here after crossing a page border */ /* Next page in the same SG */ - host->pg.page =nth_page (sg_page (host->sg), host->page_idx); + host->pg.page =sg_page (host->sg) + host->page_idx; host->pg.mapped =kmap (host->pg.page); host->blk_page = host->pg.mapped; --2.50.1
Re: [PATCH v1 29/36] scsi: scsi_lib: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 7 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Reviewed-by Bart Van Assche <[email protected]>Cc "James E.J. Bottomley" <[email protected]>Cc "Martin K. Petersen" <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
drivers/scsi/scsi_lib.c void *scsi_kmap_atomic_sg(struct scatterlist *sgl, int sg_count, · line 3151
Quoted 13 lines
--- drivers/scsi/scsi_lib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/scsi/scsi_lib.c +0
-1@@ -3148,8 +3148,7 @@ void *scsi_kmap_atomic_sg(struct scatterlist *sgl, int sg_count,/* Offset starting from the beginning of first page in this sg-entry */ *offset = *offset - len_complete + sg->offset; -/* Assumption: contiguous pages can be accessed as "page + i" */
Nice to drop this :)
Quoted 8 lines
drivers/scsi/scsi_lib.c +1
-2- page =nth_page (sg_page (sg), (*offset >>PAGE_SHIFT )); + page =sg_page (sg) + (*offset >>PAGE_SHIFT ); *offset &= ~PAGE_MASK ;/* Bytes in this sg-entry from *offset to the end of the page */ --2.50.1
Re: [PATCH v1 30/36] scsi: sg: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Reviewed-by Bart Van Assche <[email protected]>Cc Doug Gilbert <[email protected]>Cc "James E.J. Bottomley" <[email protected]>Cc "Martin K. Petersen" <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 21 lines
--- drivers/scsi/sg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/scsi/sg.c +1
-3@@ -1235,8 +1235,7 @@ sg_vma_fault(struct vm_fault *vmf) len = vma->vm_end - sa; len = (len < length) ? len : length;if (offset < len) { -struct page *page =nth_page (rsv_schp->pages[k], - offset >>PAGE_SHIFT ); +struct page *page = rsv_schp->pages[k] + (offset >>PAGE_SHIFT );get_page (page);/* increment page count */ vmf->page = page;return 0 ;/* success */ --2.50.1
Re: [PATCH v1 31/36] vfio/pci: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 10 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Cc Brett Creeley <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc Yishai Hadas <[email protected]>Cc Shameer Kolothum <[email protected]>Cc Kevin Tian <[email protected]>Cc Alex Williamson <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 36 lines
--- drivers/vfio/pci/pds/lm.c | 3 +-- drivers/vfio/pci/virtio/migrate.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)drivers/vfio/pci/pds/lm.c +1
-2@@ -151,8 +151,7 @@ static struct page *pds_vfio_get_file_page(struct pds_vfio_lm_file *lm_file, lm_file->last_offset_sg = sg; lm_file->sg_last_entry += i; lm_file->last_offset = cur_offset; -return nth_page (sg_page (sg), - (offset - cur_offset) /PAGE_SIZE ); +return sg_page (sg) + (offset - cur_offset) /PAGE_SIZE ; } cur_offset += sg->length; }drivers/vfio/pci/virtio/migrate.c +1
-3@@ -53,8 +53,7 @@ virtiovf_get_migration_page(struct virtiovf_data_buffer *buf, buf->last_offset_sg = sg; buf->sg_last_entry += i; buf->last_offset = cur_offset; -return nth_page (sg_page (sg), - (offset - cur_offset) /PAGE_SIZE ); +return sg_page (sg) + (offset - cur_offset) /PAGE_SIZE ; } cur_offset += sg->length; } --2.50.1
Re: [PATCH v1 32/36] crypto: remove nth_page() usage within SG entry
In reply to David HildenbrandQuoted 6 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Cc Herbert Xu <[email protected]>Cc "David S. Miller" <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
LGTM, so:
Quoted 57 lines
--- crypto/ahash.c | 4 ++-- crypto/scompress.c | 8 ++++---- include/crypto/scatterwalk.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-)crypto/ahash.c +2
-2@@ -88,7 +88,7 @@ static int hash_walk_new_entry(struct crypto_hash_walk *walk) sg = walk->sg; walk->offset = sg->offset; - walk->pg =nth_page (sg_page (walk->sg), (walk->offset >>PAGE_SHIFT )); + walk->pg =sg_page (walk->sg) + (walk->offset >>PAGE_SHIFT ); walk->offset =offset_in_page (walk->offset); walk->entrylen = sg->length;@@ -226,7 +226,7 @@ int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc)if (!IS_ENABLED (CONFIG_HIGHMEM ))return crypto_shash_digest (desc, data, nbytes, req->result); - page =nth_page (page, offset >>PAGE_SHIFT ); + page += offset >>PAGE_SHIFT ; offset =offset_in_page (offset);if (nbytes > (unsigned int )PAGE_SIZE - offset)crypto/scompress.c +3
-3@@ -198,7 +198,7 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir) }else return -ENOSYS ; - dpage =nth_page (dpage, doff /PAGE_SIZE ); + dpage += doff /PAGE_SIZE ; doff =offset_in_page (doff); n = (dlen -1 ) /PAGE_SIZE ;@@ -220,12 +220,12 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir) }else break ; - spage =nth_page (spage, soff /PAGE_SIZE ); + spage = spage + soff /PAGE_SIZE ; soff =offset_in_page (soff); n = (slen -1 ) /PAGE_SIZE ; n += (offset_in_page (slen -1 ) + soff) /PAGE_SIZE ; -if (PageHighMem (nth_page (spage, n)) && +if (PageHighMem (spage + n) &&size_add (soff, slen) >PAGE_SIZE )break ; src =kmap_local_page (spage) + soff;
crypto/scompress.c static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir) · line 273
Quoted 5 lines
crypto/scompress.c +1
-1@@ -270,7 +270,7 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir)if (dlen <=PAGE_SIZE )break ; dlen -=PAGE_SIZE ; - dpage =nth_page (dpage,1 ); + dpage++;
Can't help but chuckle when I see this simplification each time, really nice! :)
Quoted 28 lines
crypto/scompress.c +0
-0} }include/crypto/scatterwalk.h +2
-3@@ -159,7 +159,7 @@ static inline void scatterwalk_map(struct scatter_walk *walk)if (IS_ENABLED (CONFIG_HIGHMEM )) {struct page *page; - page =nth_page (base_page, offset >>PAGE_SHIFT ); + page = base_page + (offset >>PAGE_SHIFT ); offset =offset_in_page (offset); addr =kmap_local_page (page) + offset; }else {@@ -259,7 +259,7 @@ static inline void scatterwalk_done_dst(struct scatter_walk *walk, end += (offset_in_page (offset) +offset_in_page (nbytes) +PAGE_SIZE -1 ) >>PAGE_SHIFT ;for (i = start; i < end; i++) -flush_dcache_page (nth_page (base_page, i)); +flush_dcache_page (base_page + i); }scatterwalk_advance (walk, nbytes); } --2.50.1
Re: [PATCH v1 33/36] mm/gup: drop nth_page() usage in unpin_user_page_range_dirty_lock()
In reply to David HildenbrandQuoted 7 lines · David Hildenbrand
There is the concern that
unpin_user_page_range_dirty_lock()might do some weird merging of PFN ranges -- either now or in the future -- such that PFN range is contiguous but the page range might not be.Let's sanity-check for that and drop the
nth_page()usage.Signed-off-by David Hildenbrand <[email protected]>
Seems one user uses SG and the other is IOMMU and in each instance you'd expect physical contiguity (maybe Jason G. or somebody else more familiar with these uses can also chime in).
Anyway, on that basis, LGTM (though 1 small nit below), so:
Quoted 18 lines
--- mm/gup.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)mm/gup.c +1
-1@@ -237,7 +237,7 @@ void folio_add_pin(struct folio *folio)static inline struct folio *gup_folio_range_next (struct page *start,unsigned long npages,unsigned long i,unsigned int *ntails) { -struct page *next =nth_page (start, i); +struct page *next = start + i;struct folio *folio =page_folio (next);unsigned int nr =1 ;
mm/gup.c EXPORT_SYMBOL(unpin_user_pages_dirty_lock); · line 345
Quoted 4 lines
mm/gup.c +1
-0@@ -342,6 +342,9 @@ EXPORT_SYMBOL(unpin_user_pages_dirty_lock);* "gup-pinned page range" refers to a range of pages that has had one of the * pin_user_pages() variants called on that page. * +* The page range must be truly contiguous: the page range corresponds
NIT: maybe 'physically contiguous'?
Quoted 17 lines
mm/gup.c +4
-1+* to a contiguous PFN range and all pages can be iterated naturally. +* * For the page ranges defined by [page .. page+npages], make that range (or * its head pages, if a compound page) dirty, if @make_dirty is true, and if the * page range was previously listed as clean. @@ -359,6 +362,8 @@ void unpin_user_page_range_dirty_lock(struct page *page, unsigned long npages,struct folio *folio;unsigned int nr; +VM_WARN_ON_ONCE (!page_range_contiguous (page, npages)); +for (i =0 ; i < npages; i += nr) { folio =gup_folio_range_next (page, npages, i, &nr);if (make_dirty && !folio_test_dirty (folio)) { --2.50.1
Re: [PATCH v1 34/36] kfence: drop nth_page() usage
In reply to David HildenbrandQuoted 6 lines · David Hildenbrand
We want to get rid of
nth_page(), and kfence init code is the last user.Unfortunately, we might actually walk a PFN range where the pages are not contiguous, because we might be allocating an area from memblock that could span memory sections in problematic kernel configs (SPARSEMEM without
SPARSEMEM_VMEMMAP).
Sad.
Quoted 4 lines
We could check whether the page range is contiguous
usingpage_range_contiguous()and failing kfence init, or making kfence incompatible these problemtic kernel configs.
Sounds iffy though.
Quoted 2 lines
Let's keep it simple and simply use
pfn_to_page()by iterating PFNs.
Yes.
Quoted 5 lines
Cc Alexander Potapenko <[email protected]>Cc Marco Elver <[email protected]>Cc Dmitry Vyukov <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Stared at this and can't see anything wrong, so - LGTM and:
Quoted 57 lines
--- mm/kfence/core.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)mm/kfence/core.c +7
-6@@ -594,15 +594,14 @@ static void rcu_guarded_free(struct rcu_head *h)*/ static unsigned long kfence_init_pool (void ) { -unsigned long addr; -struct page *pages; +unsigned long addr, start_pfn;int i;if (!arch_kfence_init_pool ())return (unsigned long )__kfence_pool; addr = (unsigned long )__kfence_pool; - pages =virt_to_page (__kfence_pool); + start_pfn =PHYS_PFN (virt_to_phys (__kfence_pool));/* * Set up object pages: they must have PGTY_slab set to avoid freeing @@ -613,11 +612,12 @@ static unsigned long kfence_init_pool(void)* enters __slab_free() slow-path. */ for (i =0 ; i <KFENCE_POOL_SIZE /PAGE_SIZE ; i++) { -struct slab *slab =page_slab (nth_page (pages, i)); +struct slab *slab;if (!i || (i %2 ))continue ; + slab =page_slab (pfn_to_page (start_pfn + i));__folio_set_slab (slab_folio (slab));#ifdef CONFIG_MEMCG slab->obj_exts = (unsigned long)&kfence_metadata_init[i / 2 - 1].obj_exts |@@ -665,10 +665,12 @@ static unsigned long kfence_init_pool(void) reset_slab:for (i =0 ; i <KFENCE_POOL_SIZE /PAGE_SIZE ; i++) { -struct slab *slab =page_slab (nth_page (pages, i)); +struct slab *slab;if (!i || (i %2 ))continue ; + + slab =page_slab (pfn_to_page (start_pfn + i));#ifdef CONFIG_MEMCG slab->obj_exts =0 ;#endif --2.50.1
Re: [PATCH v1 35/36] block: update comment of "struct bio_vec" regarding nth_page()
In reply to David HildenbrandQuoted 6 lines · David Hildenbrand
Ever since commit
858c708d9efb("block: move thebi_sizeupdate out of__bio_try_merge_page"),page_is_mergeable()no longer exists, and the logic inbvec_try_merge_page()is now a simple page pointer comparison.Signed-off-by David Hildenbrand <[email protected]>
Nice! :)
LGTM, so:
Quoted 25 lines
--- include/linux/bvec.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)include/linux/bvec.h +2
-6@@ -22,11 +22,8 @@ struct page;* @bv_len: Number of bytes in the address range. * @bv_offset: Start of the address range relative to the start of @bv_page. * -* The following holds for a bvec if n * PAGE_SIZE < bv_offset + bv_len: -* -* nth_page(@bv_page, n) == @bv_page + n -* -* This holds because page_is_mergeable() checks the above property. +* All pages within a bio_vec starting from @bv_page are contiguous and +* can simply be iterated (see bvec_advance()). */ struct bio_vec {struct page *bv_page; --2.50.1
Quoted 3 lines · David Hildenbrand
Now that all users are gone, let's remove it.
Signed-off-by David Hildenbrand <[email protected]>
HAPPY DAYYS!!!!
Happy to have reached this bit, great work! :)
LGTM, so:
Quoted 34 lines
--- include/linux/mm.h | 2 -- tools/testing/scatterlist/linux/mm.h | 1 - 2 files changed, 3 deletions(-)include/linux/mm.h +0
-2@@ -210,9 +210,7 @@ extern unsigned long sysctl_admin_reserve_kbytes;#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP )bool page_range_contiguous (const struct page *page,unsigned long nr_pages); -#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n))#else -#define nth_page (page,n) ((page) + (n))static inline bool page_range_contiguous (const struct page *page,unsigned long nr_pages) {tools/testing/scatterlist/linux/mm.h +0
-2@@ -51,7 +51,6 @@ static inline unsigned long page_to_phys(struct page *page)#define page_to_pfn (page) ((unsigned long)(page) / PAGE_SIZE)#define pfn_to_page (pfn) (void *)((pfn) * PAGE_SIZE) -#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n))#define __min (t1, t2, min1, min2, x, y) ({ \ t1 min1 = (x); \ --2.50.1
Re: [PATCH v1 31/36] vfio/pci: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 34 lines · On Thu, 28 Aug 2025 00:01:35 +0200 David Hildenbrand <[email protected]> wrote:
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Cc Brett Creeley <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc Yishai Hadas <[email protected]>Cc Shameer Kolothum <[email protected]>Cc Kevin Tian <[email protected]>Cc Alex Williamson <[email protected]>Signed-off-by David Hildenbrand <[email protected]>--- drivers/vfio/pci/pds/lm.c | 3 +-- drivers/vfio/pci/virtio/migrate.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)drivers/vfio/pci/pds/lm.c +1
-2@@ -151,8 +151,7 @@ static struct page *pds_vfio_get_file_page(struct pds_vfio_lm_file *lm_file, lm_file->last_offset_sg = sg; lm_file->sg_last_entry += i; lm_file->last_offset = cur_offset; -return nth_page (sg_page (sg), - (offset - cur_offset) /PAGE_SIZE ); +return sg_page (sg) + (offset - cur_offset) /PAGE_SIZE ; } cur_offset += sg->length; }drivers/vfio/pci/virtio/migrate.c +0
-0
drivers/vfio/pci/virtio/migrate.c virtiovf_get_migration_page(struct virtiovf_data_buffer *buf, · line 59
Quoted 9 lines
drivers/vfio/pci/virtio/migrate.c +1
-2@@ -53,8 +53,7 @@ virtiovf_get_migration_page(struct virtiovf_data_buffer *buf, buf->last_offset_sg = sg; buf->sg_last_entry += i; buf->last_offset = cur_offset; -return nth_page (sg_page (sg), - (offset - cur_offset) /PAGE_SIZE ); +return sg_page (sg) + (offset - cur_offset) /PAGE_SIZE ; } cur_offset += sg->length; }
Patchwork
CI✗ i915.CI.Full: failure for mm: remove nth_page()
In reply to David Hildenbrand== Series Details ==
== Series Details ==
Series: mm: remove nth_page()
URL : https://patchwork.freedesktop.org/series/153593/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_17081_full -> Patchwork_153593v1_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_153593v1_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_153593v1_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 (11 -> 11)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_153593v1_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_workarounds@basic-read-context:
- shard-dg2-9: NOTRUN -> [ABORT][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-hdmi-a1:
- shard-tglu: [PASS][2] -> [DMESG-FAIL][3]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-tglu-6/igt@kms_flip@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-10/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-hdmi-a1:
- shard-tglu: [PASS][4] -> [ABORT][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-tglu-6/igt@kms_flip@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-10/igt@kms_flip@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_17081_full and Patchwork_153593v1_full:
### New IGT tests (36) ###
* igt@kms_flip@4-tiled-64bpp-rotate-180:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@4-tiled-addfb:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@blob-prop-core:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@ctm-green-to-red:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@cursor-rapid-movement-max-size:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@cursorb-vs-flipa-atomic-transitions:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@empty-lease:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@fbc-1p-primscrn-pri-shrfb-draw-render:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@fbcpsr-1p-offscren-pri-indfb-draw-blt:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@fbcpsr-2p-primscrn-indfb-plflip-blt:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@fbcpsr-rgb565-draw-mmap-wc:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@fbcpsr-tiling-y:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@flip-32bpp-yftile-to-32bpp-yftileccs-downscaling:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@flip-64bpp-ytile-to-32bpp-ytile-upscaling:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@gt-error-state-capture:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@i2c:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@invalid-oa-metric-set-id:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@invalid-query-zero-handles:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@invalid-wait-bad-flags:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@memory-info-idle:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@primary-4-tiled-reflect-x-180:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@psr-1p-primscrn-cur-indfb-draw-mmap-gtt:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@psr-1p-primscrn-pri-indfb-draw-render:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@psr-rgb101010-draw-mmap-cpu:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@psr2:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@query-busy:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@query-topology-known-pci-ids:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@rc6-disable:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@secure-non-root:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@semaphore-noskip:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@single-wait-signaled:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@sliced:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@syncobj-invalid-flags:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@test_dup:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@waitboost:
- Statuses :
- Exec time: [None] s
* igt@kms_flip@write-bad-handle:
- Statuses :
- Exec time: [None] s
Known issues
------------
Here are the changes found in Patchwork_153593v1_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@api_intel_bb@object-reloc-purge-cache:
- shard-dg2: NOTRUN -> [SKIP][6] ([i915#8411])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@device_reset@unbind-cold-reset-rebind:
- shard-tglu: NOTRUN -> [SKIP][7] ([i915#11078])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@fbdev@eof:
- shard-rkl: [PASS][8] -> [SKIP][9] ([i915#14544] / [i915#2582]) +1 other test skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@gem_basic@multigpu-create-close:
- shard-dg2: NOTRUN -> [SKIP][10] ([i915#7697])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@gem_ccs@suspend-resume@linear-compressed-compfmt0-lmem0-lmem0:
- shard-dg2: NOTRUN -> [INCOMPLETE][11] ([i915#12392] / [i915#13356])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-4/igt@gem_ccs@[email protected]
* igt@gem_ctx_freq@sysfs@gt0:
- shard-dg2: [PASS][12] -> [FAIL][13] ([i915#9561]) +1 other test fail
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-7/igt@gem_ctx_freq@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-1/igt@gem_ctx_freq@[email protected]
* igt@gem_exec_balancer@bonded-false-hang:
- shard-dg2: NOTRUN -> [SKIP][14] ([i915#4812])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@gem_exec_balancer@parallel:
- shard-tglu-1: NOTRUN -> [SKIP][15] ([i915#4525])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@gem_exec_balancer@parallel-keep-submit-fence:
- shard-tglu: NOTRUN -> [SKIP][16] ([i915#4525])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@gem_exec_flush@basic-uc-set-default:
- shard-dg2: NOTRUN -> [SKIP][17] ([i915#3539])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@gem_exec_flush@basic-wb-set-default:
- shard-dg2: NOTRUN -> [SKIP][18] ([i915#3539] / [i915#4852])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@gem_exec_reloc@basic-cpu-read:
- shard-dg2-9: NOTRUN -> [SKIP][19] ([i915#3281]) +4 other tests skip
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@gem_exec_reloc@basic-wc-cpu:
- shard-dg2: NOTRUN -> [SKIP][20] ([i915#3281]) +2 other tests skip
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@gem_exec_schedule@preempt-queue-contexts:
- shard-dg2-9: NOTRUN -> [SKIP][21] ([i915#4537] / [i915#4812])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@gem_exec_suspend@basic-s0:
- shard-dg1: [PASS][22] -> [DMESG-WARN][23] ([i915#4423]) +2 other tests dmesg-warn
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg1-19/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg1-12/igt@[email protected]
* igt@gem_fenced_exec_thrash@no-spare-fences-busy-interruptible:
- shard-dg2-9: NOTRUN -> [SKIP][24] ([i915#4860])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@gem_lmem_swapping@massive:
- shard-glk: NOTRUN -> [SKIP][25] ([i915#4613])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-glk6/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random:
- shard-tglu: NOTRUN -> [SKIP][26] ([i915#4613]) +1 other test skip
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-verify:
- shard-tglu-1: NOTRUN -> [SKIP][27] ([i915#4613]) +1 other test skip
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@gem_madvise@dontneed-before-exec:
- shard-dg2-9: NOTRUN -> [SKIP][28] ([i915#3282]) +1 other test skip
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@gem_mmap_gtt@cpuset-medium-copy:
- shard-dg2-9: NOTRUN -> [SKIP][29] ([i915#4077])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@gem_mmap_wc@bad-size:
- shard-dg2-9: NOTRUN -> [SKIP][30] ([i915#4083])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@gem_mmap_wc@copy:
- shard-dg2: NOTRUN -> [SKIP][31] ([i915#4083]) +2 other tests skip
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@gem_pwrite@basic-exhaustion:
- shard-tglu-1: NOTRUN -> [WARN][32] ([i915#2658])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@gem_pxp@create-regular-context-1:
- shard-dg2-9: NOTRUN -> [SKIP][33] ([i915#4270])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@gem_pxp@hw-rejects-pxp-buffer:
- shard-tglu: NOTRUN -> [SKIP][34] ([i915#13398])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@gem_pxp@protected-raw-src-copy-not-readible:
- shard-rkl: [PASS][35] -> [TIMEOUT][36] ([i915#12917] / [i915#12964]) +2 other tests timeout
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@gem_pxp@verify-pxp-stale-buf-execution:
- shard-dg2: NOTRUN -> [SKIP][37] ([i915#4270])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@gem_readwrite@read-write:
- shard-dg2: NOTRUN -> [SKIP][38] ([i915#3282]) +2 other tests skip
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@gem_render_copy@y-tiled-mc-ccs-to-yf-tiled-ccs:
- shard-dg2-9: NOTRUN -> [SKIP][39] ([i915#5190] / [i915#8428]) +2 other tests skip
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@gem_render_copy@yf-tiled-ccs-to-x-tiled:
- shard-dg2: NOTRUN -> [SKIP][40] ([i915#5190] / [i915#8428])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@gem_tiled_wb:
- shard-dg2: NOTRUN -> [SKIP][41] ([i915#4077]) +3 other tests skip
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@gem_tiled_wb.html
* igt@gem_userptr_blits@coherency-sync:
- shard-dg2-9: NOTRUN -> [SKIP][42] ([i915#3297])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy:
- shard-dg2-9: NOTRUN -> [SKIP][43] ([i915#3297] / [i915#4880])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@gen9_exec_parse@bb-large:
- shard-tglu-1: NOTRUN -> [SKIP][44] ([i915#2527] / [i915#2856]) +1 other test skip
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@gen9_exec_parse@bb-start-cmd:
- shard-tglu: NOTRUN -> [SKIP][45] ([i915#2527] / [i915#2856]) +2 other tests skip
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@i915_drm_fdinfo@busy-idle-check-all@ccs0:
- shard-dg2-9: NOTRUN -> [SKIP][46] ([i915#11527]) +7 other tests skip
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@i915_drm_fdinfo@[email protected]
* igt@i915_drm_fdinfo@busy-idle@vecs0:
- shard-dg2: NOTRUN -> [SKIP][47] ([i915#14073]) +7 other tests skip
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@i915_drm_fdinfo@[email protected]
* igt@i915_drm_fdinfo@virtual-busy-all:
- shard-dg2-9: NOTRUN -> [SKIP][48] ([i915#14118])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@i915_module_load@reload-no-display:
- shard-dg2: [PASS][49] -> [DMESG-WARN][50] ([i915#13029] / [i915#14545])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-8/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-5/igt@[email protected]
* igt@i915_module_load@resize-bar:
- shard-dg2: [PASS][51] -> [DMESG-WARN][52] ([i915#14545])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-8/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-5/igt@[email protected]
- shard-tglu-1: NOTRUN -> [SKIP][53] ([i915#6412])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@i915_pm_freq_mult@media-freq@gt0:
- shard-tglu: NOTRUN -> [SKIP][54] ([i915#6590]) +1 other test skip
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@i915_pm_freq_mult@[email protected]
* igt@i915_pm_rpm@reg-read-ioctl:
- shard-dg1: [PASS][55] -> [DMESG-WARN][56] ([i915#4391] / [i915#4423])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg1-15/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg1-17/igt@[email protected]
* igt@i915_pm_rpm@system-suspend:
- shard-glk: [PASS][57] -> [INCOMPLETE][58] ([i915#13356])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-glk1/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-glk8/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- shard-dg2-9: NOTRUN -> [SKIP][59] ([i915#11681] / [i915#6621])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@i915_pm_rps@thresholds:
- shard-dg2: NOTRUN -> [SKIP][60] ([i915#11681])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@i915_query@query-topology-coherent-slice-mask:
- shard-dg2: NOTRUN -> [SKIP][61] ([i915#6188])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_addfb_basic@invalid-smem-bo-on-discrete:
- shard-tglu: NOTRUN -> [SKIP][62] ([i915#12454] / [i915#12712])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels:
- shard-glk: NOTRUN -> [SKIP][63] ([i915#1769])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-glk6/igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels.html
- shard-dg2-9: NOTRUN -> [SKIP][64] ([i915#1769] / [i915#3555])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@kms_atomic_transition@plane-all-modeset-transition-fencing-internal-panels.html
* igt@kms_big_fb@4-tiled-addfb-size-offset-overflow:
- shard-tglu: NOTRUN -> [SKIP][65] ([i915#5286]) +3 other tests skip
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-async-flip:
- shard-tglu-1: NOTRUN -> [SKIP][66] ([i915#5286]) +3 other tests skip
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-async-flip.html
* igt@kms_big_fb@linear-16bpp-rotate-90:
- shard-rkl: NOTRUN -> [SKIP][67] ([i915#3638])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-180:
- shard-dg2: NOTRUN -> [SKIP][68] ([i915#4538] / [i915#5190]) +2 other tests skip
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180:
- shard-dg2-9: NOTRUN -> [SKIP][69] ([i915#4538] / [i915#5190]) +2 other tests skip
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_ccs@bad-aux-stride-4-tiled-mtl-mc-ccs:
- shard-dg2-9: NOTRUN -> [SKIP][70] ([i915#10307] / [i915#6095]) +14 other tests skip
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_ccs@bad-aux-stride-y-tiled-gen12-rc-ccs@pipe-d-hdmi-a-1:
- shard-dg2: NOTRUN -> [SKIP][71] ([i915#10307] / [i915#10434] / [i915#6095])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-4/igt@kms_ccs@[email protected]
* igt@kms_ccs@bad-rotation-90-4-tiled-mtl-rc-ccs-cc@pipe-b-hdmi-a-4:
- shard-dg1: NOTRUN -> [SKIP][72] ([i915#6095]) +143 other tests skip
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg1-16/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-primary-basic-4-tiled-bmg-ccs:
- shard-dg2-9: NOTRUN -> [SKIP][73] ([i915#12313])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_ccs@crc-primary-basic-4-tiled-lnl-ccs:
- shard-tglu: NOTRUN -> [SKIP][74] ([i915#12313])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_ccs@crc-primary-rotation-180-4-tiled-mtl-rc-ccs@pipe-b-hdmi-a-2:
- shard-rkl: NOTRUN -> [SKIP][75] ([i915#6095]) +44 other tests skip
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs:
- shard-dg2: NOTRUN -> [SKIP][76] ([i915#12805])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-lnl-ccs:
- shard-tglu: NOTRUN -> [SKIP][77] ([i915#12805])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-4-tiled-mtl-rc-ccs-cc@pipe-c-hdmi-a-1:
- shard-tglu-1: NOTRUN -> [SKIP][78] ([i915#6095]) +44 other tests skip
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-primary-suspend-y-tiled-gen12-rc-ccs-cc@pipe-a-hdmi-a-2:
- shard-rkl: NOTRUN -> [INCOMPLETE][79] ([i915#12796])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-primary-suspend-yf-tiled-ccs@pipe-d-hdmi-a-3:
- shard-dg2: NOTRUN -> [SKIP][80] ([i915#6095]) +7 other tests skip
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-3/igt@kms_ccs@[email protected]
* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-mtl-mc-ccs@pipe-a-hdmi-a-3:
- shard-dg2: NOTRUN -> [SKIP][81] ([i915#10307] / [i915#6095]) +73 other tests skip
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-3/igt@kms_ccs@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-dg2-mc-ccs@pipe-c-hdmi-a-2:
- shard-rkl: NOTRUN -> [SKIP][82] ([i915#14098] / [i915#6095]) +38 other tests skip
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@kms_ccs@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-mtl-rc-ccs-cc:
- shard-tglu: NOTRUN -> [SKIP][83] ([i915#6095]) +39 other tests skip
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@[email protected]
* igt@kms_ccs@random-ccs-data-y-tiled-gen12-rc-ccs@pipe-a-hdmi-a-1:
- shard-glk: NOTRUN -> [SKIP][84] +86 other tests skip
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-glk5/igt@kms_ccs@[email protected]
* igt@kms_cdclk@mode-transition-all-outputs:
- shard-tglu: NOTRUN -> [SKIP][85] ([i915#3742])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_chamelium_audio@hdmi-audio:
- shard-dg2-9: NOTRUN -> [SKIP][86] ([i915#11151] / [i915#7828]) +2 other tests skip
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_chamelium_edid@hdmi-mode-timings:
- shard-rkl: NOTRUN -> [SKIP][87] ([i915#11151] / [i915#7828])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@kms_chamelium_frames@hdmi-crc-nonplanar-formats:
- shard-tglu: NOTRUN -> [SKIP][88] ([i915#11151] / [i915#7828]) +6 other tests skip
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@[email protected]
* igt@kms_chamelium_hpd@dp-hpd-storm-disable:
- shard-tglu-1: NOTRUN -> [SKIP][89] ([i915#11151] / [i915#7828]) +2 other tests skip
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_chamelium_hpd@hdmi-hpd-after-suspend:
- shard-dg2: NOTRUN -> [SKIP][90] ([i915#11151] / [i915#7828]) +3 other tests skip
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_color@ctm-0-25:
- shard-rkl: [PASS][91] -> [SKIP][92] ([i915#12655] / [i915#14544]) +2 other tests skip
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_color@deep-color:
- shard-dg2-9: NOTRUN -> [SKIP][93] ([i915#12655] / [i915#3555])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_content_protection@atomic-dpms:
- shard-tglu: NOTRUN -> [SKIP][94] ([i915#6944] / [i915#7116] / [i915#7118] / [i915#9424])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_content_protection@dp-mst-type-1:
- shard-tglu: NOTRUN -> [SKIP][95] ([i915#3116] / [i915#3299])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@[email protected]
* igt@kms_content_protection@lic-type-0:
- shard-dg2-9: NOTRUN -> [SKIP][96] ([i915#9424])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_content_protection@lic-type-1:
- shard-tglu-1: NOTRUN -> [SKIP][97] ([i915#6944] / [i915#9424])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-32x10:
- shard-dg2: NOTRUN -> [SKIP][98] ([i915#3555])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-512x512:
- shard-tglu: NOTRUN -> [SKIP][99] ([i915#13049])
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_cursor_crc@cursor-onscreen-256x85@pipe-a-hdmi-a-2:
- shard-rkl: NOTRUN -> [FAIL][100] ([i915#13566]) +4 other tests fail
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@kms_cursor_crc@[email protected]
* igt@kms_cursor_crc@cursor-random-512x170:
- shard-dg2-9: NOTRUN -> [SKIP][101] ([i915#13049])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_cursor_crc@cursor-rapid-movement-512x512:
- shard-dg2: NOTRUN -> [SKIP][102] ([i915#13049])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_cursor_crc@cursor-sliding-512x170:
- shard-tglu-1: NOTRUN -> [SKIP][103] ([i915#13049])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-atomic:
- shard-dg2-9: NOTRUN -> [SKIP][104] ([i915#13046] / [i915#5354]) +2 other tests skip
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- shard-rkl: NOTRUN -> [SKIP][105] ([i915#4103])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@kms_cursor_legacy@basic-flip-after-cursor-atomic:
- shard-rkl: [PASS][106] -> [SKIP][107] ([i915#11190] / [i915#14544])
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipb-toggle:
- shard-dg2: NOTRUN -> [SKIP][108] ([i915#13046] / [i915#5354]) +1 other test skip
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_cursor_legacy@modeset-atomic-cursor-hotspot:
- shard-tglu-1: NOTRUN -> [SKIP][109] ([i915#9067])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
- shard-dg2-9: NOTRUN -> [SKIP][110] ([i915#9067])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions:
- shard-dg2-9: NOTRUN -> [SKIP][111] ([i915#4103] / [i915#4213])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions.html
* igt@kms_cursor_legacy@short-busy-flip-before-cursor-toggle:
- shard-dg2: NOTRUN -> [SKIP][112] ([i915#4103] / [i915#4213])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_dither@fb-8bpc-vs-panel-6bpc:
- shard-tglu: NOTRUN -> [SKIP][113] ([i915#1769] / [i915#3555] / [i915#3804])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@[email protected]
* igt@kms_dither@fb-8bpc-vs-panel-6bpc@pipe-a-hdmi-a-1:
- shard-tglu: NOTRUN -> [SKIP][114] ([i915#3804])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@kms_dither@[email protected]
* igt@kms_dither@fb-8bpc-vs-panel-8bpc:
- shard-dg2: [PASS][115] -> [SKIP][116] ([i915#3555])
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-11/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-3/igt@[email protected]
* igt@kms_dp_link_training@non-uhbr-sst:
- shard-rkl: NOTRUN -> [SKIP][117] ([i915#13749])
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@kms_dp_link_training@uhbr-sst:
- shard-tglu: NOTRUN -> [SKIP][118] ([i915#13748])
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_dp_linktrain_fallback@dsc-fallback:
- shard-tglu-1: NOTRUN -> [SKIP][119] ([i915#13707])
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_dsc@dsc-fractional-bpp-with-bpc:
- shard-tglu-1: NOTRUN -> [SKIP][120] ([i915#3840])
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_dsc@dsc-with-bpc-formats:
- shard-tglu: NOTRUN -> [SKIP][121] ([i915#3555] / [i915#3840]) +1 other test skip
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_dsc@dsc-with-output-formats-with-bpc:
- shard-tglu-1: NOTRUN -> [SKIP][122] ([i915#3840] / [i915#9053])
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-glk: NOTRUN -> [INCOMPLETE][123] ([i915#9878])
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-glk1/igt@[email protected]
* igt@kms_flip@2x-flip-vs-dpms:
- shard-tglu: NOTRUN -> [SKIP][124] ([i915#3637] / [i915#9934]) +2 other tests skip
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_flip@2x-flip-vs-dpms-on-nop:
- shard-dg2: NOTRUN -> [SKIP][125] ([i915#9934]) +2 other tests skip
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_flip@2x-flip-vs-wf_vblank:
- shard-dg2-9: NOTRUN -> [SKIP][126] ([i915#9934]) +1 other test skip
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@kms_flip@2x-flip-vs-wf_vblank.html
* igt@kms_flip@2x-modeset-vs-vblank-race:
- shard-tglu-1: NOTRUN -> [SKIP][127] ([i915#3637] / [i915#9934]) +2 other tests skip
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_flip@dpms-off-confusion-interruptible@a-hdmi-a1:
- shard-rkl: NOTRUN -> [DMESG-WARN][128] ([i915#12964]) +5 other tests dmesg-warn
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-7/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-absolute-wf_vblank-interruptible:
- shard-rkl: [PASS][129] -> [SKIP][130] ([i915#14544] / [i915#3637]) +4 other tests skip
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@kms_flip@flip-vs-absolute-wf_vblank-interruptible.html
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_flip@flip-vs-absolute-wf_vblank-interruptible.html
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-tglu: [PASS][131] -> [ABORT][132] ([i915#14627])
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-tglu-6/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-10/igt@[email protected]
* igt@kms_flip@wf_vblank-ts-check-interruptible:
- shard-glk10: NOTRUN -> [SKIP][133] +162 other tests skip
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-glk10/igt@kms_flip@wf_vblank-ts-check-interruptible.html
* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling:
- shard-tglu: NOTRUN -> [SKIP][134] ([i915#2672] / [i915#3555]) +2 other tests skip
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-upscaling.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-upscaling:
- shard-tglu-1: NOTRUN -> [SKIP][135] ([i915#2587] / [i915#2672] / [i915#3555])
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-upscaling.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling:
- shard-dg2: NOTRUN -> [SKIP][136] ([i915#2672] / [i915#3555] / [i915#5190])
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling.html
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-valid-mode:
- shard-dg2: NOTRUN -> [SKIP][137] ([i915#2672])
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling@pipe-a-valid-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tile-downscaling@pipe-a-valid-mode:
- shard-tglu: NOTRUN -> [SKIP][138] ([i915#2587] / [i915#2672]) +2 other tests skip
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-32bpp-4tile-downscaling@pipe-a-valid-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-linear-to-16bpp-linear-downscaling:
- shard-rkl: [PASS][139] -> [SKIP][140] ([i915#14544] / [i915#3555]) +3 other tests skip
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@kms_flip_scaled_crc@flip-64bpp-linear-to-16bpp-linear-downscaling.html
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_flip_scaled_crc@flip-64bpp-linear-to-16bpp-linear-downscaling.html
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling:
- shard-dg2-9: NOTRUN -> [SKIP][141] ([i915#2672] / [i915#3555])
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling.html
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode:
- shard-dg2-9: NOTRUN -> [SKIP][142] ([i915#2672])
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling:
- shard-tglu-1: NOTRUN -> [SKIP][143] ([i915#2672] / [i915#3555]) +1 other test skip
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling.html
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling@pipe-a-valid-mode:
- shard-rkl: NOTRUN -> [SKIP][144] ([i915#2672]) +3 other tests skip
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling@pipe-a-valid-mode.html
- shard-tglu-1: NOTRUN -> [SKIP][145] ([i915#2587] / [i915#2672]) +2 other tests skip
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling@pipe-a-valid-mode.html
* igt@kms_flip_tiling@flip-change-tiling:
- shard-rkl: [PASS][146] -> [DMESG-WARN][147] ([i915#12917] / [i915#12964])
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_force_connector_basic@prune-stale-modes:
- shard-dg1: [PASS][148] -> [ABORT][149] ([i915#4423])
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg1-15/igt@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg1-17/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-mmap-gtt:
- shard-dg2: NOTRUN -> [SKIP][150] ([i915#8708]) +2 other tests skip
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-mmap-gtt.html
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-gtt:
- shard-rkl: [PASS][151] -> [SKIP][152] ([i915#14544] / [i915#1849] / [i915#5354]) +9 other tests skip
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-gtt.html
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-gtt.html
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen:
- shard-dg2: [PASS][153] -> [FAIL][154] ([i915#6880])
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-1/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-move:
- shard-tglu: NOTRUN -> [SKIP][155] +54 other tests skip
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-mmap-gtt:
- shard-dg2-9: NOTRUN -> [SKIP][156] ([i915#8708]) +5 other tests skip
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-mmap-gtt.html
* igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-blt:
- shard-tglu-1: NOTRUN -> [SKIP][157] +40 other tests skip
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-tiling-linear:
- shard-dg2-9: NOTRUN -> [SKIP][158] ([i915#3458]) +5 other tests skip
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-draw-mmap-cpu:
- shard-dg2-9: NOTRUN -> [SKIP][159] ([i915#5354]) +5 other tests skip
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-draw-mmap-cpu.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-blt:
- shard-rkl: NOTRUN -> [SKIP][160] ([i915#1825]) +1 other test skip
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-shrfb-pgflip-blt:
- shard-dg2: NOTRUN -> [SKIP][161] ([i915#5354]) +5 other tests skip
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-indfb-scaledprimary:
- shard-dg2: NOTRUN -> [SKIP][162] ([i915#3458]) +4 other tests skip
[162]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_hdr@brightness-with-hdr:
- shard-dg2-9: NOTRUN -> [SKIP][163] ([i915#12713])
[163]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_hdr@invalid-metadata-sizes:
- shard-tglu-1: NOTRUN -> [SKIP][164] ([i915#3555] / [i915#8228]) +1 other test skip
[164]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_hdr@static-swap:
- shard-dg2: [PASS][165] -> [SKIP][166] ([i915#3555] / [i915#8228]) +1 other test skip
[165]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-11/igt@[email protected]
[166]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-3/igt@[email protected]
* igt@kms_invalid_mode@zero-vdisplay:
- shard-rkl: [PASS][167] -> [SKIP][168] ([i915#14544] / [i915#3555] / [i915#8826]) +1 other test skip
[167]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[168]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_joiner@basic-max-non-joiner:
- shard-tglu: NOTRUN -> [SKIP][169] ([i915#13688])
[169]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_joiner@basic-ultra-joiner:
- shard-tglu: NOTRUN -> [SKIP][170] ([i915#12339])
[170]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_pipe_b_c_ivb@pipe-b-double-modeset-then-modeset-pipe-c:
- shard-dg2-9: NOTRUN -> [SKIP][171] +1 other test skip
[171]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc:
- shard-glk10: NOTRUN -> [SKIP][172] ([i915#11190])
[172]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-glk10/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc:
- shard-rkl: [PASS][173] -> [INCOMPLETE][174] ([i915#12964] / [i915#13476]) +1 other test incomplete
[173]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[174]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_plane@pixel-format-source-clamping:
- shard-rkl: [PASS][175] -> [SKIP][176] ([i915#14544] / [i915#8825])
[175]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[176]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_plane_alpha_blend@constant-alpha-max:
- shard-rkl: [PASS][177] -> [SKIP][178] ([i915#14544] / [i915#7294]) +1 other test skip
[177]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[178]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_plane_multiple@2x-tiling-yf:
- shard-tglu: NOTRUN -> [SKIP][179] ([i915#13958]) +1 other test skip
[179]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_plane_scaling@intel-max-src-size:
- shard-dg2: [PASS][180] -> [SKIP][181] ([i915#6953] / [i915#9423])
[180]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-11/igt@[email protected]
[181]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-3/igt@[email protected]
* igt@kms_plane_scaling@plane-downscale-factor-0-5-with-rotation@pipe-d:
- shard-tglu-1: NOTRUN -> [SKIP][182] ([i915#12247]) +4 other tests skip
[182]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@plane-scaler-unity-scaling-with-rotation@pipe-c:
- shard-tglu: NOTRUN -> [SKIP][183] ([i915#12247]) +4 other tests skip
[183]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@plane-scaler-with-clipping-clamping-pixel-formats:
- shard-rkl: [PASS][184] -> [SKIP][185] ([i915#14544] / [i915#3555] / [i915#8152])
[184]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@kms_plane_scaling@plane-scaler-with-clipping-clamping-pixel-formats.html
[185]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_plane_scaling@plane-scaler-with-clipping-clamping-pixel-formats.html
* igt@kms_plane_scaling@plane-scaler-with-clipping-clamping-pixel-formats@pipe-b:
- shard-rkl: [PASS][186] -> [SKIP][187] ([i915#12247] / [i915#14544] / [i915#8152]) +4 other tests skip
[186]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@kms_plane_scaling@[email protected]
[187]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@plane-upscale-factor-0-25-with-pixel-format:
- shard-rkl: [PASS][188] -> [SKIP][189] ([i915#14544] / [i915#8152])
[188]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@kms_plane_scaling@plane-upscale-factor-0-25-with-pixel-format.html
[189]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_plane_scaling@plane-upscale-factor-0-25-with-pixel-format.html
* igt@kms_plane_scaling@plane-upscale-factor-0-25-with-rotation@pipe-c:
- shard-rkl: NOTRUN -> [SKIP][190] ([i915#12247]) +1 other test skip
[190]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5:
- shard-rkl: [PASS][191] -> [SKIP][192] ([i915#12247] / [i915#14544] / [i915#6953] / [i915#8152])
[191]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5.html
[192]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5.html
* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5@pipe-a:
- shard-rkl: [PASS][193] -> [SKIP][194] ([i915#12247] / [i915#14544]) +3 other tests skip
[193]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@kms_plane_scaling@[email protected]
[194]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_plane_scaling@[email protected]
* igt@kms_pm_dc@dc6-dpms:
- shard-dg2-9: NOTRUN -> [SKIP][195] ([i915#14104])
[195]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_pm_rpm@dpms-lpsp:
- shard-rkl: [PASS][196] -> [SKIP][197] ([i915#9519])
[196]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[197]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_pm_rpm@dpms-non-lpsp:
- shard-dg2: [PASS][198] -> [SKIP][199] ([i915#9519])
[198]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-3/igt@[email protected]
[199]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-4/igt@[email protected]
* igt@kms_pm_rpm@modeset-lpsp:
- shard-rkl: [PASS][200] -> [SKIP][201] ([i915#14544] / [i915#9519])
[200]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[201]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_pm_rpm@modeset-lpsp-stress-no-wait:
- shard-dg2-9: NOTRUN -> [SKIP][202] ([i915#9519])
[202]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_pm_rpm@modeset-non-lpsp:
- shard-tglu-1: NOTRUN -> [SKIP][203] ([i915#9519])
[203]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_pm_rpm@pm-caching:
- shard-rkl: [PASS][204] -> [DMESG-WARN][205] ([i915#12964]) +11 other tests dmesg-warn
[204]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[205]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_prime@basic-modeset-hybrid:
- shard-tglu: NOTRUN -> [SKIP][206] ([i915#6524])
[206]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@[email protected]
* igt@kms_properties@plane-properties-atomic:
- shard-rkl: [PASS][207] -> [SKIP][208] ([i915#11521] / [i915#14544])
[207]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[208]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_psr2_sf@fbc-psr2-overlay-primary-update-sf-dmg-area:
- shard-dg2: NOTRUN -> [SKIP][209] ([i915#11520]) +1 other test skip
[209]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-fully-sf:
- shard-tglu-1: NOTRUN -> [SKIP][210] ([i915#11520]) +3 other tests skip
[210]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-fully-sf.html
* igt@kms_psr2_sf@psr2-cursor-plane-move-continuous-exceed-sf:
- shard-glk10: NOTRUN -> [SKIP][211] ([i915#11520]) +3 other tests skip
[211]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-glk10/igt@[email protected]
* igt@kms_psr2_sf@psr2-overlay-plane-move-continuous-exceed-fully-sf:
- shard-tglu: NOTRUN -> [SKIP][212] ([i915#11520]) +5 other tests skip
[212]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@kms_psr2_sf@psr2-overlay-plane-move-continuous-exceed-fully-sf.html
* igt@kms_psr2_sf@psr2-overlay-primary-update-sf-dmg-area:
- shard-glk: NOTRUN -> [SKIP][213] ([i915#11520]) +2 other tests skip
[213]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-glk6/igt@[email protected]
- shard-dg2-9: NOTRUN -> [SKIP][214] ([i915#11520]) +1 other test skip
[214]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_psr2_su@frontbuffer-xrgb8888:
- shard-tglu: NOTRUN -> [SKIP][215] ([i915#9683])
[215]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@[email protected]
* igt@kms_psr2_su@page_flip-p010:
- shard-tglu-1: NOTRUN -> [SKIP][216] ([i915#9683])
[216]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@kms_psr2_su@page_flip-p010.html
* igt@kms_psr@fbc-pr-sprite-plane-onoff:
- shard-rkl: NOTRUN -> [SKIP][217] ([i915#1072] / [i915#9732]) +2 other tests skip
[217]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@kms_psr@fbc-psr-primary-mmap-cpu:
- shard-dg2-9: NOTRUN -> [SKIP][218] ([i915#1072] / [i915#9732]) +5 other tests skip
[218]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_psr@fbc-psr2-no-drrs:
- shard-dg2: NOTRUN -> [SKIP][219] ([i915#1072] / [i915#9732]) +5 other tests skip
[219]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_psr@pr-cursor-mmap-cpu:
- shard-tglu-1: NOTRUN -> [SKIP][220] ([i915#9732]) +8 other tests skip
[220]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_psr@pr-dpms:
- shard-tglu: NOTRUN -> [SKIP][221] ([i915#9732]) +13 other tests skip
[221]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@[email protected]
* igt@kms_rotation_crc@primary-rotation-90:
- shard-dg2-9: NOTRUN -> [SKIP][222] ([i915#12755])
[222]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-180:
- shard-dg2-9: NOTRUN -> [SKIP][223] ([i915#5190])
[223]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_scaling_modes@scaling-mode-none:
- shard-rkl: NOTRUN -> [SKIP][224] ([i915#3555])
[224]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@kms_selftest@drm_framebuffer:
- shard-tglu: NOTRUN -> [ABORT][225] ([i915#13179]) +1 other test abort
[225]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@kms_selftest@drm_framebuffer.html
* igt@kms_setmode@basic-clone-single-crtc:
- shard-tglu: NOTRUN -> [SKIP][226] ([i915#3555]) +1 other test skip
[226]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_setmode@basic@pipe-a-hdmi-a-1:
- shard-rkl: [PASS][227] -> [FAIL][228] ([i915#5465]) +2 other tests fail
[227]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-2/igt@kms_setmode@[email protected]
[228]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-7/igt@kms_setmode@[email protected]
* igt@kms_setmode@basic@pipe-b-edp-1:
- shard-mtlp: [PASS][229] -> [FAIL][230] ([i915#5465]) +2 other tests fail
[229]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-mtlp-6/igt@kms_setmode@[email protected]
[230]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-mtlp-8/igt@kms_setmode@[email protected]
* igt@kms_vblank@wait-forked-busy-hang:
- shard-rkl: [PASS][231] -> [SKIP][232] ([i915#14544]) +40 other tests skip
[231]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[232]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_vrr@max-min:
- shard-tglu: NOTRUN -> [SKIP][233] ([i915#9906])
[233]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@[email protected]
* igt@kms_vrr@negative-basic:
- shard-tglu: NOTRUN -> [SKIP][234] ([i915#3555] / [i915#9906])
[234]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@[email protected]
* igt@kms_vrr@seamless-rr-switch-vrr:
- shard-dg2-9: NOTRUN -> [SKIP][235] ([i915#9906])
[235]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@kms_writeback@writeback-check-output:
- shard-dg2: NOTRUN -> [SKIP][236] ([i915#2437])
[236]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_writeback@writeback-fb-id-xrgb2101010:
- shard-dg2: NOTRUN -> [SKIP][237] ([i915#2437] / [i915#9412])
[237]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@kms_writeback@writeback-invalid-parameters:
- shard-tglu-1: NOTRUN -> [SKIP][238] ([i915#2437])
[238]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@kms_writeback@writeback-pixel-formats:
- shard-tglu-1: NOTRUN -> [SKIP][239] ([i915#2437] / [i915#9412])
[239]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@[email protected]
* igt@perf@gen12-group-concurrent-oa-buffer-read:
- shard-tglu: [PASS][240] -> [FAIL][241] ([i915#10538])
[240]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-tglu-9/igt@[email protected]
[241]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-3/igt@[email protected]
* igt@perf_pmu@event-wait@rcs0:
- shard-dg2: NOTRUN -> [SKIP][242] +3 other tests skip
[242]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@perf_pmu@[email protected]
* igt@perf_pmu@rc6@other-idle-gt0:
- shard-tglu: NOTRUN -> [SKIP][243] ([i915#8516])
[243]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-7/igt@perf_pmu@[email protected]
* igt@prime_vgem@basic-fence-read:
- shard-dg2-9: NOTRUN -> [SKIP][244] ([i915#3291] / [i915#3708])
[244]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@prime_vgem@fence-flip-hang:
- shard-dg2: NOTRUN -> [SKIP][245] ([i915#3708])
[245]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
* igt@sriov_basic@bind-unbind-vf@vf-4:
- shard-tglu: NOTRUN -> [FAIL][246] ([i915#12910]) +9 other tests fail
[246]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-6/igt@sriov_basic@[email protected]
* igt@sriov_basic@enable-vfs-autoprobe-on@numvfs-7:
- shard-tglu-1: NOTRUN -> [FAIL][247] ([i915#12910]) +9 other tests fail
[247]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-1/igt@sriov_basic@[email protected]
* igt@sriov_basic@enable-vfs-bind-unbind-each:
- shard-dg2-9: NOTRUN -> [SKIP][248] ([i915#9917])
[248]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-9/igt@[email protected]
* igt@sriov_basic@enable-vfs-bind-unbind-each-numvfs-all:
- shard-dg2: NOTRUN -> [SKIP][249] ([i915#9917])
[249]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-11/igt@[email protected]
#### Possible fixes ####
* igt@gem_ccs@suspend-resume@linear-compressed-compfmt0-smem-lmem0:
- shard-dg2: [INCOMPLETE][250] ([i915#13356]) -> [PASS][251]
[250]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-3/igt@gem_ccs@[email protected]
[251]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-4/igt@gem_ccs@[email protected]
* igt@gem_ctx_isolation@preservation-s3:
- shard-rkl: [INCOMPLETE][252] ([i915#12353]) -> [PASS][253] +1 other test pass
[252]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-3/igt@[email protected]
[253]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@gem_exec_endless@dispatch@rcs0:
- shard-tglu: [TIMEOUT][254] ([i915#3778]) -> [PASS][255] +1 other test pass
[254]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-tglu-6/igt@gem_exec_endless@[email protected]
[255]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-10/igt@gem_exec_endless@[email protected]
* igt@gem_exec_schedule@wide:
- shard-rkl: [DMESG-WARN][256] ([i915#12964]) -> [PASS][257] +2 other tests pass
[256]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-2/igt@[email protected]
[257]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@gem_pxp@verify-pxp-stale-buf-optout-execution:
- shard-rkl: [TIMEOUT][258] ([i915#12917] / [i915#12964]) -> [PASS][259]
[258]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-2/igt@[email protected]
[259]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@i915_module_load@reload-no-display:
- shard-snb: [DMESG-WARN][260] ([i915#14545]) -> [PASS][261]
[260]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-snb7/igt@[email protected]
[261]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-snb1/igt@[email protected]
* igt@i915_pm_rps@reset:
- shard-snb: [INCOMPLETE][262] ([i915#13729] / [i915#13821]) -> [PASS][263]
[262]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-snb1/igt@[email protected]
[263]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-snb7/igt@[email protected]
* igt@i915_pm_rps@waitboost:
- shard-tglu: [FAIL][264] ([i915#8346]) -> [PASS][265]
[264]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-tglu-6/igt@[email protected]
[265]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-10/igt@[email protected]
* igt@i915_suspend@basic-s2idle-without-i915:
- shard-rkl: [DMESG-WARN][266] ([i915#12917] / [i915#12964]) -> [PASS][267]
[266]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[267]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-hflip:
- shard-mtlp: [FAIL][268] ([i915#5138]) -> [PASS][269]
[268]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-mtlp-2/igt@[email protected]
[269]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-mtlp-2/igt@[email protected]
* igt@kms_color@ctm-green-to-red:
- shard-rkl: [SKIP][270] ([i915#12655] / [i915#14544]) -> [PASS][271]
[270]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[271]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_cursor_crc@cursor-onscreen-256x256:
- shard-rkl: [SKIP][272] ([i915#14544]) -> [PASS][273] +40 other tests pass
[272]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[273]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_cursor_crc@cursor-onscreen-64x21@pipe-a-hdmi-a-1:
- shard-tglu: [FAIL][274] ([i915#13566]) -> [PASS][275] +1 other test pass
[274]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-tglu-8/igt@kms_cursor_crc@[email protected]
[275]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-tglu-2/igt@kms_cursor_crc@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-toggle:
- shard-rkl: [FAIL][276] ([i915#2346]) -> [PASS][277]
[276]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-5/igt@[email protected]
[277]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_cursor_legacy@forked-move:
- shard-dg1: [DMESG-WARN][278] ([i915#4423]) -> [PASS][279] +1 other test pass
[278]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg1-14/igt@[email protected]
[279]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg1-18/igt@[email protected]
* igt@kms_flip@2x-blocking-absolute-wf_vblank:
- shard-glk: [SKIP][280] -> [PASS][281] +4 other tests pass
[280]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-glk8/igt@kms_flip@2x-blocking-absolute-wf_vblank.html
[281]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-glk5/igt@kms_flip@2x-blocking-absolute-wf_vblank.html
* igt@kms_flip@2x-flip-vs-suspend@ab-vga1-hdmi-a1:
- shard-snb: [TIMEOUT][282] ([i915#14033]) -> [PASS][283] +1 other test pass
[282]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-snb6/igt@kms_flip@[email protected]
[283]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-snb7/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-rkl: [SKIP][284] ([i915#14544] / [i915#3637]) -> [PASS][285] +5 other tests pass
[284]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[285]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-upscaling:
- shard-rkl: [SKIP][286] ([i915#14544] / [i915#3555]) -> [PASS][287] +1 other test pass
[286]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-upscaling.html
[287]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-upscaling.html
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-cpu:
- shard-rkl: [SKIP][288] ([i915#14544] / [i915#1849] / [i915#5354]) -> [PASS][289] +5 other tests pass
[288]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-cpu.html
[289]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-cpu.html
* igt@kms_hdmi_inject@inject-audio:
- shard-snb: [SKIP][290] -> [PASS][291]
[290]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-snb7/igt@[email protected]
[291]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-snb1/igt@[email protected]
* igt@kms_invalid_mode@bad-hsync-start:
- shard-rkl: [SKIP][292] ([i915#14544] / [i915#3555] / [i915#8826]) -> [PASS][293] +1 other test pass
[292]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[293]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-frame-sequence:
- shard-rkl: [SKIP][294] ([i915#11190] / [i915#14544]) -> [PASS][295]
[294]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[295]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_plane@planar-pixel-format-settings:
- shard-rkl: [SKIP][296] ([i915#14544] / [i915#9581]) -> [PASS][297]
[296]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[297]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_plane@plane-position-hole:
- shard-rkl: [SKIP][298] ([i915#14544] / [i915#8825]) -> [PASS][299]
[298]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[299]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_plane_alpha_blend@alpha-opaque-fb:
- shard-rkl: [SKIP][300] ([i915#14544] / [i915#7294]) -> [PASS][301]
[300]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[301]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_plane_scaling@plane-scaler-unity-scaling-with-pixel-format@pipe-a:
- shard-rkl: [SKIP][302] ([i915#12247] / [i915#14544]) -> [PASS][303] +3 other tests pass
[302]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_plane_scaling@[email protected]
[303]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@plane-upscale-factor-0-25-with-modifiers:
- shard-rkl: [SKIP][304] ([i915#14544] / [i915#8152]) -> [PASS][305] +2 other tests pass
[304]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[305]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_plane_scaling@plane-upscale-factor-0-25-with-modifiers@pipe-b:
- shard-rkl: [SKIP][306] ([i915#12247] / [i915#14544] / [i915#8152]) -> [PASS][307] +4 other tests pass
[306]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_plane_scaling@[email protected]
[307]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@kms_plane_scaling@[email protected]
* igt@kms_pm_rpm@dpms-mode-unset-lpsp:
- shard-rkl: [SKIP][308] ([i915#9519]) -> [PASS][309]
[308]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[309]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-7/igt@[email protected]
* igt@kms_pm_rpm@fences:
- shard-rkl: [SKIP][310] ([i915#14544] / [i915#1849]) -> [PASS][311]
[310]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[311]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_pm_rpm@modeset-lpsp-stress-no-wait:
- shard-rkl: [SKIP][312] ([i915#14544] / [i915#9519]) -> [PASS][313]
[312]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[313]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_properties@plane-properties-legacy:
- shard-rkl: [SKIP][314] ([i915#11521] / [i915#14544]) -> [PASS][315]
[314]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[315]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_universal_plane@cursor-fb-leak:
- shard-dg2: [FAIL][316] ([i915#9196]) -> [PASS][317] +1 other test pass
[316]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-1/igt@[email protected]
[317]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-6/igt@[email protected]
#### Warnings ####
* igt@api_intel_bb@blit-reloc-purge-cache:
- shard-rkl: [SKIP][318] ([i915#14544] / [i915#8411]) -> [SKIP][319] ([i915#8411]) +1 other test skip
[318]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[319]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@gem_ccs@block-copy-compressed:
- shard-rkl: [SKIP][320] ([i915#14544] / [i915#3555] / [i915#9323]) -> [SKIP][321] ([i915#3555] / [i915#9323])
[320]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[321]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@gem_ctx_sseu@mmap-args:
- shard-rkl: [SKIP][322] ([i915#280]) -> [SKIP][323] ([i915#14544] / [i915#280])
[322]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[323]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@gem_exec_balancer@parallel:
- shard-rkl: [SKIP][324] ([i915#14544] / [i915#4525]) -> [SKIP][325] ([i915#4525])
[324]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[325]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@gem_exec_balancer@parallel-ordering:
- shard-rkl: [SKIP][326] ([i915#4525]) -> [SKIP][327] ([i915#14544] / [i915#4525])
[326]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[327]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@gem_exec_reloc@basic-gtt-cpu-active:
- shard-rkl: [SKIP][328] ([i915#3281]) -> [SKIP][329] ([i915#14544] / [i915#3281]) +9 other tests skip
[328]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[329]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@gem_exec_reloc@basic-write-read:
- shard-rkl: [SKIP][330] ([i915#14544] / [i915#3281]) -> [SKIP][331] ([i915#3281]) +5 other tests skip
[330]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[331]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@gem_lmem_evict@dontneed-evict-race:
- shard-rkl: [SKIP][332] ([i915#14544] / [i915#4613] / [i915#7582]) -> [SKIP][333] ([i915#4613] / [i915#7582])
[332]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[333]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@gem_lmem_swapping@parallel-random-verify:
- shard-rkl: [SKIP][334] ([i915#14544] / [i915#4613]) -> [SKIP][335] ([i915#4613]) +2 other tests skip
[334]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[335]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@gem_lmem_swapping@random-engines:
- shard-rkl: [SKIP][336] ([i915#4613]) -> [SKIP][337] ([i915#14544] / [i915#4613]) +1 other test skip
[336]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[337]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@gem_partial_pwrite_pread@reads-snoop:
- shard-rkl: [SKIP][338] ([i915#3282]) -> [SKIP][339] ([i915#14544] / [i915#3282]) +2 other tests skip
[338]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[339]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@gem_pxp@dmabuf-shared-protected-dst-is-context-refcounted:
- shard-rkl: [SKIP][340] ([i915#14544] / [i915#4270]) -> [TIMEOUT][341] ([i915#12964])
[340]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[341]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@gem_pxp@hw-rejects-pxp-context:
- shard-rkl: [TIMEOUT][342] ([i915#12917] / [i915#12964]) -> [SKIP][343] ([i915#13717])
[342]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[343]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@[email protected]
* igt@gem_readwrite@write-bad-handle:
- shard-rkl: [SKIP][344] ([i915#14544] / [i915#3282]) -> [SKIP][345] ([i915#3282]) +3 other tests skip
[344]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[345]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@gen9_exec_parse@batch-without-end:
- shard-rkl: [SKIP][346] ([i915#14544] / [i915#2527]) -> [SKIP][347] ([i915#2527]) +2 other tests skip
[346]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[347]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@gen9_exec_parse@bb-start-param:
- shard-rkl: [SKIP][348] ([i915#2527]) -> [SKIP][349] ([i915#14544] / [i915#2527]) +2 other tests skip
[348]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[349]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@i915_module_load@resize-bar:
- shard-rkl: [SKIP][350] ([i915#6412]) -> [SKIP][351] ([i915#14544] / [i915#6412])
[350]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[351]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@i915_pm_freq_api@freq-basic-api:
- shard-rkl: [SKIP][352] ([i915#14544] / [i915#8399]) -> [SKIP][353] ([i915#8399])
[352]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[353]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@i915_pm_sseu@full-enable:
- shard-rkl: [SKIP][354] ([i915#4387]) -> [SKIP][355] ([i915#14544] / [i915#4387])
[354]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[355]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@i915_query@test-query-geometry-subslices:
- shard-rkl: [SKIP][356] ([i915#5723]) -> [SKIP][357] ([i915#14544] / [i915#5723])
[356]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[357]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_async_flips@invalid-async-flip-atomic:
- shard-rkl: [DMESG-WARN][358] ([i915#12964]) -> [SKIP][359] ([i915#14544])
[358]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[359]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_atomic@plane-primary-overlay-mutable-zpos:
- shard-rkl: [SKIP][360] ([i915#9531]) -> [SKIP][361] ([i915#14544])
[360]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[361]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_atomic_transition@plane-all-modeset-transition-internal-panels:
- shard-rkl: [SKIP][362] ([i915#1769] / [i915#3555]) -> [SKIP][363] ([i915#14544])
[362]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@kms_atomic_transition@plane-all-modeset-transition-internal-panels.html
[363]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_atomic_transition@plane-all-modeset-transition-internal-panels.html
* igt@kms_big_fb@4-tiled-addfb:
- shard-rkl: [SKIP][364] ([i915#14544]) -> [SKIP][365] ([i915#5286]) +5 other tests skip
[364]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[365]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180:
- shard-rkl: [SKIP][366] ([i915#5286]) -> [SKIP][367] ([i915#14544]) +3 other tests skip
[366]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[367]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@linear-8bpp-rotate-270:
- shard-rkl: [SKIP][368] ([i915#3638]) -> [SKIP][369] ([i915#14544]) +2 other tests skip
[368]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[369]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@yf-tiled-16bpp-rotate-180:
- shard-rkl: [SKIP][370] ([i915#14544]) -> [SKIP][371] +16 other tests skip
[370]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[371]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_ccs@crc-primary-rotation-180-4-tiled-dg2-mc-ccs:
- shard-rkl: [SKIP][372] ([i915#14544]) -> [SKIP][373] ([i915#14098] / [i915#6095]) +12 other tests skip
[372]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[373]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_ccs@crc-primary-rotation-180-y-tiled-ccs:
- shard-rkl: [SKIP][374] ([i915#14098] / [i915#6095]) -> [SKIP][375] ([i915#14544]) +9 other tests skip
[374]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[375]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_ccs@crc-primary-suspend-y-tiled-gen12-rc-ccs-cc:
- shard-rkl: [SKIP][376] ([i915#14544]) -> [INCOMPLETE][377] ([i915#12796])
[376]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[377]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_ccs@missing-ccs-buffer-y-tiled-gen12-mc-ccs@pipe-b-hdmi-a-2:
- shard-rkl: [SKIP][378] ([i915#6095]) -> [SKIP][379] ([i915#14098] / [i915#6095]) +2 other tests skip
[378]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@kms_ccs@[email protected]
[379]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@kms_ccs@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-dg2-mc-ccs@pipe-b-hdmi-a-2:
- shard-rkl: [SKIP][380] ([i915#14098] / [i915#6095]) -> [SKIP][381] ([i915#6095]) +1 other test skip
[380]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-3/igt@kms_ccs@[email protected]
[381]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-8/igt@kms_ccs@[email protected]
* igt@kms_ccs@random-ccs-data-4-tiled-lnl-ccs:
- shard-rkl: [SKIP][382] ([i915#12313]) -> [SKIP][383] ([i915#14544])
[382]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[383]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_cdclk@mode-transition:
- shard-rkl: [SKIP][384] ([i915#3742]) -> [SKIP][385] ([i915#14544] / [i915#3742])
[384]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[385]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_chamelium_frames@hdmi-crc-fast:
- shard-rkl: [SKIP][386] ([i915#11151] / [i915#14544] / [i915#7828]) -> [SKIP][387] ([i915#11151] / [i915#7828]) +4 other tests skip
[386]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[387]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_chamelium_frames@hdmi-frame-dump:
- shard-rkl: [SKIP][388] ([i915#11151] / [i915#7828]) -> [SKIP][389] ([i915#11151] / [i915#14544] / [i915#7828]) +4 other tests skip
[388]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[389]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_content_protection@atomic:
- shard-dg2: [FAIL][390] ([i915#7173]) -> [SKIP][391] ([i915#7118] / [i915#9424])
[390]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-11/igt@[email protected]
[391]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-8/igt@[email protected]
* igt@kms_content_protection@dp-mst-lic-type-1:
- shard-rkl: [SKIP][392] ([i915#3116]) -> [SKIP][393] ([i915#14544])
[392]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[393]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_content_protection@dp-mst-type-0:
- shard-rkl: [SKIP][394] ([i915#14544]) -> [SKIP][395] ([i915#3116])
[394]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[395]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_content_protection@lic-type-1:
- shard-rkl: [SKIP][396] ([i915#9424]) -> [SKIP][397] ([i915#14544])
[396]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[397]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@cursor-random-256x85:
- shard-rkl: [SKIP][398] ([i915#14544]) -> [DMESG-FAIL][399] ([i915#12964])
[398]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[399]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_cursor_crc@cursor-random-32x10:
- shard-rkl: [SKIP][400] ([i915#14544]) -> [SKIP][401] ([i915#3555]) +1 other test skip
[400]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[401]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_cursor_crc@cursor-random-512x512:
- shard-rkl: [SKIP][402] ([i915#13049]) -> [SKIP][403] ([i915#14544]) +1 other test skip
[402]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[403]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@cursor-sliding-512x170:
- shard-rkl: [SKIP][404] ([i915#14544]) -> [SKIP][405] ([i915#13049])
[404]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[405]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-varying-size:
- shard-rkl: [SKIP][406] ([i915#14544]) -> [SKIP][407] ([i915#4103])
[406]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-varying-size.html
[407]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-varying-size.html
* igt@kms_cursor_legacy@cursorb-vs-flipb-varying-size:
- shard-rkl: [SKIP][408] -> [SKIP][409] ([i915#14544]) +12 other tests skip
[408]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[409]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_legacy@modeset-atomic-cursor-hotspot:
- shard-rkl: [SKIP][410] ([i915#14544]) -> [SKIP][411] ([i915#9067])
[410]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[411]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_dirtyfb@psr-dirtyfb-ioctl:
- shard-rkl: [SKIP][412] ([i915#9723]) -> [SKIP][413] ([i915#14544])
[412]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[413]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_dp_link_training@uhbr-mst:
- shard-rkl: [SKIP][414] ([i915#14544]) -> [SKIP][415] ([i915#13748])
[414]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[415]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_dp_linktrain_fallback@dsc-fallback:
- shard-rkl: [SKIP][416] ([i915#14544]) -> [SKIP][417] ([i915#13707])
[416]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[417]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_dsc@dsc-basic:
- shard-rkl: [SKIP][418] ([i915#11190] / [i915#14544]) -> [SKIP][419] ([i915#3555] / [i915#3840])
[418]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[419]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_dsc@dsc-fractional-bpp-with-bpc:
- shard-rkl: [SKIP][420] ([i915#3840]) -> [SKIP][421] ([i915#14544])
[420]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[421]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_dsc@dsc-with-output-formats-with-bpc:
- shard-rkl: [SKIP][422] ([i915#3840] / [i915#9053]) -> [SKIP][423] ([i915#14544])
[422]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[423]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-rkl: [SKIP][424] ([i915#14544] / [i915#14561]) -> [INCOMPLETE][425] ([i915#9878])
[424]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[425]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_feature_discovery@display-2x:
- shard-rkl: [SKIP][426] ([i915#1839]) -> [SKIP][427] ([i915#14544] / [i915#1839])
[426]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[427]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_feature_discovery@psr1:
- shard-rkl: [SKIP][428] ([i915#14544] / [i915#658]) -> [SKIP][429] ([i915#658]) +1 other test skip
[428]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[429]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_flip@2x-flip-vs-panning:
- shard-rkl: [SKIP][430] ([i915#9934]) -> [SKIP][431] ([i915#14544] / [i915#9934]) +5 other tests skip
[430]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[431]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_flip@2x-plain-flip:
- shard-rkl: [SKIP][432] ([i915#14544] / [i915#9934]) -> [SKIP][433] ([i915#9934]) +5 other tests skip
[432]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[433]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_flip@absolute-wf_vblank-interruptible:
- shard-rkl: [SKIP][434] ([i915#14544] / [i915#3637]) -> [DMESG-WARN][435] ([i915#12917] / [i915#12964])
[434]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_flip@absolute-wf_vblank-interruptible.html
[435]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@kms_flip@absolute-wf_vblank-interruptible.html
* igt@kms_flip@plain-flip-ts-check-interruptible:
- shard-rkl: [DMESG-WARN][436] ([i915#12964]) -> [SKIP][437] ([i915#14544] / [i915#3637])
[436]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[437]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling:
- shard-rkl: [SKIP][438] ([i915#2672] / [i915#3555]) -> [SKIP][439] ([i915#14544] / [i915#3555]) +1 other test skip
[438]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling.html
[439]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs-downscaling.html
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling:
- shard-rkl: [SKIP][440] ([i915#14544] / [i915#3555]) -> [SKIP][441] ([i915#2672] / [i915#3555]) +3 other tests skip
[440]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling.html
[441]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-32bpp-yftile-upscaling.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-mmap-cpu:
- shard-dg1: [SKIP][442] -> [SKIP][443] ([i915#4423])
[442]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg1-14/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-mmap-cpu.html
[443]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg1-18/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-mmap-cpu.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-msflip-blt:
- shard-dg1: [SKIP][444] ([i915#4423]) -> [SKIP][445]
[444]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg1-18/igt@[email protected]
[445]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg1-12/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite:
- shard-dg2: [SKIP][446] ([i915#3458]) -> [SKIP][447] ([i915#10433] / [i915#3458])
[446]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-3/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite.html
[447]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-4/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-blt:
- shard-dg2: [SKIP][448] ([i915#10433] / [i915#3458]) -> [SKIP][449] ([i915#3458]) +2 other tests skip
[448]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg2-4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-blt.html
[449]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg2-3/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-rte:
- shard-rkl: [SKIP][450] ([i915#3023]) -> [SKIP][451] ([i915#14544] / [i915#1849] / [i915#5354]) +15 other tests skip
[450]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[451]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-mmap-wc:
- shard-rkl: [SKIP][452] ([i915#14544] / [i915#1849] / [i915#5354]) -> [SKIP][453] ([i915#1825]) +24 other tests skip
[452]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-mmap-wc.html
[453]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-pri-shrfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-shrfb-fliptrack-mmap-gtt:
- shard-rkl: [SKIP][454] ([i915#14544] / [i915#1849] / [i915#5354]) -> [SKIP][455]
[454]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[455]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-mmap-wc:
- shard-rkl: [SKIP][456] ([i915#14544] / [i915#1849] / [i915#5354]) -> [SKIP][457] ([i915#3023]) +19 other tests skip
[456]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[457]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-indfb-pgflip-blt:
- shard-dg1: [SKIP][458] ([i915#3458] / [i915#4423]) -> [SKIP][459] ([i915#3458])
[458]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg1-18/igt@[email protected]
[459]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg1-12/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-indfb-msflip-blt:
- shard-rkl: [SKIP][460] ([i915#1825]) -> [SKIP][461] ([i915#14544] / [i915#1849] / [i915#5354]) +21 other tests skip
[460]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[461]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_hdr@bpc-switch-dpms:
- shard-rkl: [SKIP][462] ([i915#3555] / [i915#8228]) -> [SKIP][463] ([i915#14544])
[462]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[463]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_hdr@invalid-metadata-sizes:
- shard-rkl: [SKIP][464] ([i915#14544]) -> [SKIP][465] ([i915#3555] / [i915#8228]) +1 other test skip
[464]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[465]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_joiner@basic-force-big-joiner:
- shard-rkl: [SKIP][466] ([i915#12388]) -> [SKIP][467] ([i915#12388] / [i915#14544])
[466]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[467]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_joiner@invalid-modeset-big-joiner:
- shard-rkl: [SKIP][468] ([i915#10656]) -> [SKIP][469] ([i915#10656] / [i915#14544])
[468]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[469]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_joiner@invalid-modeset-force-big-joiner:
- shard-rkl: [SKIP][470] ([i915#12388] / [i915#14544]) -> [SKIP][471] ([i915#12388])
[470]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[471]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
- shard-rkl: [SKIP][472] ([i915#14544] / [i915#4070] / [i915#4816]) -> [SKIP][473] ([i915#4070] / [i915#4816])
[472]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[473]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_plane_lowres@tiling-4:
- shard-rkl: [SKIP][474] ([i915#3555]) -> [SKIP][475] ([i915#14544]) +1 other test skip
[474]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[475]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_plane_scaling@plane-downscale-factor-0-5-with-rotation@pipe-a:
- shard-rkl: [SKIP][476] ([i915#12247]) -> [SKIP][477] ([i915#12247] / [i915#14544])
[476]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@kms_plane_scaling@[email protected]
[477]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@plane-downscale-factor-0-5-with-rotation@pipe-b:
- shard-rkl: [SKIP][478] ([i915#12247]) -> [SKIP][479] ([i915#12247] / [i915#14544] / [i915#8152]) +1 other test skip
[478]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@kms_plane_scaling@[email protected]
[479]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@plane-upscale-20x20-with-rotation@pipe-a:
- shard-rkl: [SKIP][480] ([i915#12247] / [i915#14544]) -> [SKIP][481] ([i915#12247])
[480]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_plane_scaling@[email protected]
[481]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@kms_plane_scaling@[email protected]
* igt@kms_plane_scaling@plane-upscale-20x20-with-rotation@pipe-b:
- shard-rkl: [SKIP][482] ([i915#12247] / [i915#14544] / [i915#8152]) -> [SKIP][483] ([i915#12247]) +1 other test skip
[482]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_plane_scaling@[email protected]
[483]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@kms_plane_scaling@[email protected]
* igt@kms_pm_backlight@brightness-with-dpms:
- shard-rkl: [SKIP][484] ([i915#12343]) -> [SKIP][485] ([i915#12343] / [i915#14544])
[484]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[485]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_pm_lpsp@screens-disabled:
- shard-rkl: [SKIP][486] ([i915#8430]) -> [SKIP][487] ([i915#14544] / [i915#8430])
[486]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[487]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_pm_rpm@modeset-lpsp-stress:
- shard-dg1: [SKIP][488] ([i915#4423] / [i915#9519]) -> [SKIP][489] ([i915#9519])
[488]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg1-18/igt@[email protected]
[489]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg1-12/igt@[email protected]
* igt@kms_pm_rpm@modeset-non-lpsp:
- shard-rkl: [SKIP][490] ([i915#9519]) -> [SKIP][491] ([i915#14544] / [i915#9519]) +1 other test skip
[490]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[491]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_psr2_sf@pr-overlay-plane-update-continuous-sf:
- shard-dg1: [SKIP][492] ([i915#11520]) -> [SKIP][493] ([i915#11520] / [i915#4423])
[492]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-dg1-15/igt@[email protected]
[493]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-dg1-17/igt@[email protected]
* igt@kms_psr2_sf@psr2-overlay-plane-update-continuous-sf:
- shard-rkl: [SKIP][494] ([i915#11520]) -> [SKIP][495] ([i915#11520] / [i915#14544]) +5 other tests skip
[494]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[495]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_psr2_sf@psr2-overlay-plane-update-sf-dmg-area:
- shard-rkl: [SKIP][496] ([i915#11520] / [i915#14544]) -> [SKIP][497] ([i915#11520]) +6 other tests skip
[496]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[497]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_psr2_su@page_flip-nv12:
- shard-rkl: [SKIP][498] ([i915#9683]) -> [SKIP][499] ([i915#14544] / [i915#9683])
[498]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@kms_psr2_su@page_flip-nv12.html
[499]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@kms_psr2_su@page_flip-nv12.html
* igt@kms_psr2_su@page_flip-p010:
- shard-rkl: [SKIP][500] ([i915#14544] / [i915#9683]) -> [SKIP][501] ([i915#9683])
[500]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@kms_psr2_su@page_flip-p010.html
[501]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@kms_psr2_su@page_flip-p010.html
* igt@kms_psr@pr-cursor-mmap-cpu:
- shard-rkl: [SKIP][502] ([i915#1072] / [i915#14544] / [i915#9732]) -> [SKIP][503] ([i915#1072] / [i915#9732]) +14 other tests skip
[502]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[503]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_psr@psr-cursor-mmap-cpu:
- shard-rkl: [SKIP][504] ([i915#1072] / [i915#9732]) -> [SKIP][505] ([i915#1072] / [i915#14544] / [i915#9732]) +13 other tests skip
[504]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-7/igt@[email protected]
[505]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
- shard-rkl: [SKIP][506] ([i915#14544] / [i915#9685]) -> [SKIP][507] ([i915#9685])
[506]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[507]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_rotation_crc@primary-4-tiled-reflect-x-180:
- shard-rkl: [SKIP][508] ([i915#14544]) -> [SKIP][509] ([i915#5289])
[508]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[509]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-270:
- shard-rkl: [SKIP][510] ([i915#5289]) -> [SKIP][511] ([i915#14544]) +1 other test skip
[510]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-8/igt@[email protected]
[511]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@kms_setmode@invalid-clone-single-crtc:
- shard-rkl: [SKIP][512] ([i915#14544] / [i915#3555]) -> [SKIP][513] ([i915#3555])
[512]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[513]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-rkl: [SKIP][514] ([i915#14544]) -> [SKIP][515] ([i915#8623])
[514]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[515]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_vrr@lobf:
- shard-rkl: [SKIP][516] ([i915#14544]) -> [SKIP][517] ([i915#11920])
[516]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[517]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
* igt@kms_writeback@writeback-invalid-parameters:
- shard-rkl: [SKIP][518] ([i915#14544] / [i915#2437]) -> [SKIP][519] ([i915#2437])
[518]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[519]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@kms_writeback@writeback-pixel-formats:
- shard-rkl: [SKIP][520] ([i915#2437] / [i915#9412]) -> [SKIP][521] ([i915#14544] / [i915#2437] / [i915#9412])
[520]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-4/igt@[email protected]
[521]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-6/igt@[email protected]
* igt@perf_pmu@rc6-all-gts:
- shard-rkl: [SKIP][522] ([i915#14544] / [i915#8516]) -> [SKIP][523] ([i915#8516])
[522]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[523]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-3/igt@[email protected]
* igt@prime_vgem@coherency-gtt:
- shard-rkl: [SKIP][524] ([i915#14544] / [i915#3708]) -> [SKIP][525] ([i915#3708]) +1 other test skip
[524]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[525]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-4/igt@[email protected]
* igt@sriov_basic@enable-vfs-autoprobe-off:
- shard-rkl: [SKIP][526] ([i915#14544] / [i915#9917]) -> [SKIP][527] ([i915#9917]) +1 other test skip
[526]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17081/shard-rkl-6/igt@[email protected]
[527]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/shard-rkl-5/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#10307]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10307
[i915#10433]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10433
[i915#10434]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10434
[i915#10538]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10538
[i915#10656]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10656
[i915#1072]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1072
[i915#11078]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11078
[i915#11151]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11151
[i915#11190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11190
[i915#11520]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11520
[i915#11521]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11521
[i915#11527]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11527
[i915#11681]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11681
[i915#11920]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11920
[i915#12247]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12247
[i915#12313]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12313
[i915#12339]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12339
[i915#12343]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12343
[i915#12353]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12353
[i915#12388]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12388
[i915#12392]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12392
[i915#12454]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12454
[i915#12655]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12655
[i915#12712]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12712
[i915#12713]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12713
[i915#12755]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12755
[i915#12796]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12796
[i915#12805]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12805
[i915#12910]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12910
[i915#12917]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12917
[i915#12964]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12964
[i915#13029]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13029
[i915#13046]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13046
[i915#13049]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13049
[i915#13179]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13179
[i915#13356]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13356
[i915#13398]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13398
[i915#13476]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13476
[i915#13566]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13566
[i915#13688]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13688
[i915#13707]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13707
[i915#13717]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13717
[i915#13729]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13729
[i915#13748]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13748
[i915#13749]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13749
[i915#13821]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13821
[i915#13958]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13958
[i915#14033]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14033
[i915#14073]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14073
[i915#14098]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14098
[i915#14104]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14104
[i915#14118]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14118
[i915#14544]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14544
[i915#14545]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14545
[i915#14561]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14561
[i915#14627]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14627
[i915#14712]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14712
[i915#1769]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1769
[i915#1825]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1839
[i915#1849]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1849
[i915#2346]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2346
[i915#2437]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2527
[i915#2582]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2672
[i915#280]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/280
[i915#2856]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2856
[i915#3023]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3023
[i915#3116]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3116
[i915#3281]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3291
[i915#3297]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3299
[i915#3458]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3458
[i915#3539]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3539
[i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3638
[i915#3708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3708
[i915#3742]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3742
[i915#3778]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3778
[i915#3804]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3804
[i915#3840]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3840
[i915#4070]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4077
[i915#4083]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4103
[i915#4213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4213
[i915#4270]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4270
[i915#4387]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4387
[i915#4391]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4391
[i915#4423]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4423
[i915#4525]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4525
[i915#4537]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4537
[i915#4538]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4538
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#4812]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4812
[i915#4816]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4816
[i915#4852]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4852
[i915#4860]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4860
[i915#4880]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4880
[i915#5138]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5138
[i915#5190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5190
[i915#5286]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5286
[i915#5289]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5289
[i915#5354]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5354
[i915#5465]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5465
[i915#5723]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5723
[i915#6095]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6095
[i915#6188]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6188
[i915#6412]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6412
[i915#6524]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/658
[i915#6590]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6590
[i915#6621]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6621
[i915#6880]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6880
[i915#6944]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6944
[i915#6953]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6953
[i915#7116]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7118
[i915#7173]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7173
[i915#7294]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7294
[i915#7582]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7582
[i915#7697]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7697
[i915#7828]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7828
[i915#8152]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8152
[i915#8228]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8228
[i915#8346]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8346
[i915#8399]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8399
[i915#8411]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8411
[i915#8428]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8428
[i915#8430]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8430
[i915#8516]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8516
[i915#8623]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8623
[i915#8708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8708
[i915#8825]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8825
[i915#8826]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8826
[i915#9053]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9053
[i915#9067]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9067
[i915#9196]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9196
[i915#9323]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9323
[i915#9412]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9412
[i915#9423]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9423
[i915#9424]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9424
[i915#9519]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9519
[i915#9531]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9531
[i915#9561]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9561
[i915#9581]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9581
[i915#9683]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9683
[i915#9685]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9685
[i915#9723]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9723
[i915#9732]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9732
[i915#9878]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9878
[i915#9906]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9906
[i915#9917]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9917
[i915#9934]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9934
Build changes
-------------
* Linux: CI_DRM_17081 -> Patchwork_153593v1
CI-20190529: 20190529
CI_DRM_17081: 12bdbc7687846f438afff8bfdc89873b3cd95945 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8512: 8512
Patchwork_153593v1: 12bdbc7687846f438afff8bfdc89873b3cd95945 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_153593v1/index.html
Re: [PATCH v1 31/36] vfio/pci: drop nth_page() usage within SG entry
In reply to David HildenbrandQuoted 37 lines · David Hildenbrand
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Cc Brett Creeley <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc Yishai Hadas <[email protected]>Cc Shameer Kolothum <[email protected]>Cc Kevin Tian <[email protected]>Cc Alex Williamson <[email protected]>Signed-off-by David Hildenbrand <[email protected]>--- drivers/vfio/pci/pds/lm.c | 3 +-- drivers/vfio/pci/virtio/migrate.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)drivers/vfio/pci/pds/lm.c +1
-2@@ -151,8 +151,7 @@ static struct page *pds_vfio_get_file_page(struct pds_vfio_lm_file *lm_file, lm_file->last_offset_sg = sg; lm_file->sg_last_entry += i; lm_file->last_offset = cur_offset; -return nth_page (sg_page (sg), - (offset - cur_offset) /PAGE_SIZE ); +return sg_page (sg) + (offset - cur_offset) /PAGE_SIZE ; } cur_offset += sg->length; }drivers/vfio/pci/virtio/migrate.c +0
-0
drivers/vfio/pci/virtio/migrate.c virtiovf_get_migration_page(struct virtiovf_data_buffer *buf, · line 59
Quoted 9 lines
drivers/vfio/pci/virtio/migrate.c +1
-2@@ -53,8 +53,7 @@ virtiovf_get_migration_page(struct virtiovf_data_buffer *buf, buf->last_offset_sg = sg; buf->sg_last_entry += i; buf->last_offset = cur_offset; -return nth_page (sg_page (sg), - (offset - cur_offset) /PAGE_SIZE ); +return sg_page (sg) + (offset - cur_offset) /PAGE_SIZE ; } cur_offset += sg->length; }
LGTM. Thanks.
Quoted 3 lines
--
2.50.1
Re: [PATCH v1 20/36] mips: mm: convert __flush_dcache_pages() to __flush_dcache_folio_pages()
In reply to Lorenzo StoakesQuoted 14 lines · Lorenzo Stoakes
Quoted 13 lines · David Hildenbrand
Let's make it clearer that we are operating within a single folio by providing both the folio and the page.
This implies that for
flush_dcache_folio()we'll now avoid one morepage->foliolookup, and that we can safely drop the "nth_page" usage.Cc Thomas Bogendoerfer <[email protected]>Signed-off-by David Hildenbrand <[email protected]>--- arch/mips/include/asm/cacheflush.h | 11 +++++++---- arch/mips/mm/cache.c | 8 ++++---- 2 files changed, 11 insertions(+), 8 deletions(-)
Quoted 12 lines
arch/mips/include/asm/cacheflush.h extern void (*flush_cache_mm)(struct mm_struct *mm); · line 53
Quoted 10 lines
arch/mips/include/asm/cacheflush.h +1
-1@@ -50,13 +50,14 @@ extern void (*flush_cache_mm)(struct mm_struct *mm);extern void (*flush_cache_range)(struct vm_area_struct *vma,unsigned long start,unsigned long end);extern void (*flush_cache_page)(struct vm_area_struct *vma,unsigned long page,unsigned long pfn); -extern void __flush_dcache_pages (struct page *page,unsigned int nr); +extern void __flush_dcache_folio_pages (struct folio *folio,struct page *page,unsigned int nr);NIT: Be good to drop the extern.
I think I'll leave the one in, though, someone should clean up all of them in one go.
Just imagine how the other functions would think about the new guy showing off here. :)
Quoted 14 lines
Quoted 14 lines
arch/mips/include/asm/cacheflush.h +2
-1#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1static inline void flush_dcache_folio (struct folio *folio) {if (cpu_has_dc_aliases) -__flush_dcache_pages (&folio->page,folio_nr_pages (folio)); +__flush_dcache_folio_pages (folio,folio_page (folio,0 ), +folio_nr_pages (folio));else if (!cpu_has_ic_fills_f_dc)folio_set_dcache_dirty (folio); }@@ -64,10 +65,12 @@ static inline void flush_dcache_folio(struct folio *folio)
Quoted 11 lines
arch/mips/include/asm/cacheflush.h static inline void flush_dcache_folio(struct folio *folio) · line 71
Quoted 7 lines
arch/mips/include/asm/cacheflush.h +3
-1static inline void flush_dcache_page (struct page *page) { +struct folio *folio =page_folio (page); +if (cpu_has_dc_aliases) -__flush_dcache_pages (page,1 ); +__flush_dcache_folio_pages (folio, page,folio_nr_pages (folio));Hmmm, shouldn't this be 1 not
folio_nr_pages()? Seems that the original implementation only flushed a single page even if contained within a larger folio?
Yes, reworked it 3 times and messed it up during the last rework. Thanks!
Signature · 3 lines
Cheers David / dhildenb
Damien Le Moal
maintainerRe: [PATCH v1 24/36] ata: libata-eh: drop nth_page() usage within SG entry
In reply to Lorenzo StoakesQuoted 11 lines · Lorenzo Stoakes
Quoted 6 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Cc Damien Le Moal <[email protected]>Cc Niklas Cassel <[email protected]>Signed-off-by David Hildenbrand <[email protected]>LGTM, so:
Reviewed-by Lorenzo Stoakes <[email protected]>
Just noticed this:
s/libata-eh/libata-sff
in the commit title please.
Signature · 2 lines
Damien Le Moal Western Digital Research
Re: [PATCH v1 01/36] mm: stop making SPARSEMEM_VMEMMAP user-selectable
In reply to David HildenbrandQuoted 25 lines · David Hildenbrand
In an ideal world, we wouldn't have to deal with SPARSEMEM without
SPARSEMEM_VMEMMAP, but in particular for 32bitSPARSEMEM_VMEMMAPis considered too costly and consequently not supported.However, if an architecture does support SPARSEMEM with
SPARSEMEM_VMEMMAP, let's forbid the user to disable VMEMMAP: just like we already do for arm64, s390 and x86.So if
SPARSEMEM_VMEMMAPis supported, don't allow to use SPARSEMEM withoutSPARSEMEM_VMEMMAP.This implies that the option to not use
SPARSEMEM_VMEMMAPwill now be gone for loongarch, powerpc, riscv and sparc. All architectures only enableSPARSEMEM_VMEMMAPwith 64bit support, so there should not really be a big downside to using the VMEMMAP (quite the contrary).This is a preparation for not supporting
(1) folio sizes that exceed a single memory section
(2) CMA allocations of non-contiguous page rangesin SPARSEMEM without
SPARSEMEM_VMEMMAPconfigs, whereby we want to limit possible impact as much as possible (e.g., gigantic hugetlb page allocations suddenly fails).
Quoted 16 lines
Acked-by Zi Yan <[email protected]>Acked-by SeongJae Park <[email protected]>Cc Huacai Chen <[email protected]>Cc WANG Xuerui <[email protected]>Cc Madhavan Srinivasan <[email protected]>Cc Michael Ellerman <[email protected]>Cc Nicholas Piggin <[email protected]>Cc Christophe Leroy <[email protected]>Cc Paul Walmsley <[email protected]>Cc Palmer Dabbelt <[email protected]>Cc Albert Ou <[email protected]>Cc Alexandre Ghiti <[email protected]>Cc "David S. Miller" <[email protected]>Cc Andreas Larsson <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 23 lines
--- mm/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)mm/Kconfig +1
-2@@ -439,9 +439,8 @@ config SPARSEMEM_VMEMMAP_ENABLE bool config SPARSEMEM_VMEMMAP - bool "Sparse Memory virtual memmap" + def_bool y depends on SPARSEMEM && SPARSEMEM_VMEMMAP_ENABLE - default y help SPARSEMEM_VMEMMAP uses a virtually mapped memmap to optimise pfn_to_page and page_to_pfn operations. This is the mostSignature · 1 line
2.50.1
Re: [PATCH v1 02/36] arm64: Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandQuoted 7 lines · David Hildenbrand
Now handled by the core automatically once
SPARSEMEM_VMEMMAP_ENABLEis selected.Reviewed-by Mike Rapoport (Microsoft) <[email protected]>Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 19 lines
--- arch/arm64/Kconfig | 1 - 1 file changed, 1 deletion(-)arch/arm64/Kconfig +0
-1@@ -1570,7 +1570,6 @@ source "kernel/Kconfig.hz" config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_VMEMMAP_ENABLE - select SPARSEMEM_VMEMMAP config HW_PERF_EVENTS def_bool ySignature · 1 line
2.50.1
Re: [PATCH v1 03/36] s390/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandQuoted 10 lines · David Hildenbrand
Now handled by the core automatically once
SPARSEMEM_VMEMMAP_ENABLEis selected.Reviewed-by Mike Rapoport (Microsoft) <[email protected]>Cc Heiko Carstens <[email protected]>Cc Vasily Gorbik <[email protected]>Cc Alexander Gordeev <[email protected]>Cc Christian Borntraeger <[email protected]>Cc Sven Schnelle <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
I have a little fear of the Cc's that may come with this one, but..
Quoted 19 lines
--- arch/s390/Kconfig | 1 - 1 file changed, 1 deletion(-)arch/s390/Kconfig +0
-1@@ -710,7 +710,6 @@ menu "Memory setup" config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_VMEMMAP_ENABLE - select SPARSEMEM_VMEMMAP config ARCH_SPARSEMEM_DEFAULT def_bool ySignature · 1 line
2.50.1
Re: [PATCH v1 04/36] x86/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
In reply to David HildenbrandQuoted 9 lines · David Hildenbrand
Now handled by the core automatically once
SPARSEMEM_VMEMMAP_ENABLEis selected.Reviewed-by Mike Rapoport (Microsoft) <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Ingo Molnar <[email protected]>Cc Borislav Petkov <[email protected]>Cc Dave Hansen <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 19 lines
--- arch/x86/Kconfig | 1 - 1 file changed, 1 deletion(-)arch/x86/Kconfig +0
-1@@ -1552,7 +1552,6 @@ config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_STATIC if X86_32 select SPARSEMEM_VMEMMAP_ENABLE if X86_64 - select SPARSEMEM_VMEMMAP if X86_64 config ARCH_SPARSEMEM_DEFAULT def_bool X86_64 || (NUMA && X86_32)Signature · 1 line
2.50.1
Re: [PATCH v1 05/36] wireguard: selftests: remove CONFIG_SPARSEMEM_VMEMMAP=y from qemu kernel config
In reply to David HildenbrandQuoted 9 lines · David Hildenbrand
It's no longer user-selectable (and the default was already "y"), so let's just drop it.
It was never really relevant to the wireguard selftests either way.
Cc "Jason A. Donenfeld" <[email protected]>Cc Shuah Khan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 20 lines
--- tools/testing/selftests/wireguard/qemu/kernel.config | 1 - 1 file changed, 1 deletion(-)tools/testing/selftests/wireguard/qemu/kernel.config +0
-1@@ -48,7 +48,6 @@ CONFIG_JUMP_LABEL=y CONFIG_FUTEX=y CONFIG_SHMEM=y CONFIG_SLUB=y -CONFIG_SPARSEMEM_VMEMMAP=y CONFIG_SMP=y CONFIG_SCHED_SMT=y CONFIG_SCHED_MC=ySignature · 1 line
2.50.1
Re: [PATCH v1 06/36] mm/page_alloc: reject unreasonable folio/compound page sizes in alloc_contig_range_noprof()
In reply to David HildenbrandQuoted 9 lines · David Hildenbrand
Let's reject them early, which in turn makes
folio_alloc_gigantic()reject them properly.To avoid converting from order to
nr_pages, let's just addMAX_FOLIO_ORDERand calculateMAX_FOLIO_NR_PAGESbased on that.Reviewed-by Zi Yan <[email protected]>Acked-by SeongJae Park <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Nit below, but..
Quoted 48 lines
--- include/linux/mm.h | 6 ++++-- mm/page_alloc.c | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-)include/linux/mm.h +4
-2@@ -2055,11 +2055,13 @@ static inline long folio_nr_pages(const struct folio *folio)/* Only hugetlbfs can allocate folios larger than MAX_ORDER */ #ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE -#define MAX_FOLIO_NR_PAGES (1UL << PUD_ORDER) +#define MAX_FOLIO_ORDER PUD_ORDER#else -#define MAX_FOLIO_NR_PAGES MAX_ORDER_NR_PAGES +#define MAX_FOLIO_ORDER MAX_PAGE_ORDER#endif +#define MAX_FOLIO_NR_PAGES (1UL << MAX_FOLIO_ORDER) +/* * compound_nr() returns the number of pages in this potentially compound * page. compound_nr() can be called on a tail page, and is defined to mm/page_alloc.c +4
-0@@ -6833,6 +6833,7 @@ static int __alloc_contig_verify_gfp_mask(gfp_t gfp_mask, gfp_t *gfp_cc_mask)int alloc_contig_range_noprof (unsigned long start,unsigned long end,acr_flags_t alloc_flags,gfp_t gfp_mask) { +const unsigned int order =ilog2 (end - start);unsigned long outer_start, outer_end;int ret =0 ;@@ -6850,6 +6851,9 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end, PB_ISOLATE_MODE_CMA_ALLOC :PB_ISOLATE_MODE_OTHER ; +if (WARN_ON_ONCE ((gfp_mask & __GFP_COMP) && order >MAX_FOLIO_ORDER )) +return -EINVAL ; + gfp_mask =current_gfp_context (gfp_mask);if (__alloc_contig_verify_gfp_mask (gfp_mask, (gfp_t *)&cc.gfp_mask))return -EINVAL ;
mm/page_alloc.c int alloc_contig_range_noprof(unsigned long start, unsigned long end, · line 6950
Quoted 4 lines
mm/page_alloc.c +0
-1@@ -6947,7 +6951,6 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end,free_contig_range (end, outer_end - end); }else if (start == outer_start && end == outer_end &&is_power_of_2 (end - start)) {struct page *head =pfn_to_page (start); -int order =ilog2 (end - start);
You have changed this from an int to a const unsigned int, which is totally fine but it was left out of the change log. Probably not really worth mentioning but curious why the change to unsigned here?
Quoted 6 lines
mm/page_alloc.c +0
-0check_new_pages (head, order);prep_new_page (head, order, gfp_mask,0 );Signature · 1 line
2.50.1
Re: [PATCH v1 07/36] mm/memremap: reject unreasonable folio/compound page sizes in memremap_pages()
In reply to David HildenbrandQuoted 7 lines · David Hildenbrand
Let's reject unreasonable folio sizes early, where we can still fail. We'll add sanity checks to prepare_compound_head/prepare_compound_page next.
Is there a way to configure a system such that unreasonable folio sizes would be possible? It would already be rather questionable.
Quoted 6 lines
If so, we'd probably want to bail out earlier, where we can avoid a WARN and just report a proper error message that indicates where something went wrong such that we messed up.
Acked-by SeongJae Park <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 21 lines
--- mm/memremap.c | 3 +++ 1 file changed, 3 insertions(+)mm/memremap.c +3
-0@@ -275,6 +275,9 @@ void *memremap_pages(struct dev_pagemap *pgmap, int nid)if (WARN_ONCE (!nr_range,"nr_range must be specified\n" ))return ERR_PTR (-EINVAL ); +if (WARN_ONCE (pgmap->vmemmap_shift >MAX_FOLIO_ORDER , +"requested folio size unsupported\n" )) +return ERR_PTR (-EINVAL );switch (pgmap->type) {case MEMORY_DEVICE_PRIVATE :Signature · 1 line
2.50.1
Re: [PATCH v1 08/36] mm/hugetlb: check for unreasonable folio sizes when registering hstate
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
Let's check that no hstate that corresponds to an unreasonable folio size is registered by an architecture. If we were to succeed registering, we could later try allocating an unsupported gigantic folio size.
Further, let's add a
BUILD_BUG_ON()for checking thatHUGETLB_PAGE_ORDERis sane at build time. AsHUGETLB_PAGE_ORDERis dynamic on powerpc, we have to use aBUILD_BUG_ON_INVALID()to make it compile.
Quoted 5 lines
No existing kernel configuration should be able to trigger this check:
either SPARSEMEM withoutSPARSEMEM_VMEMMAPcannot be configured or gigantic folios will not exceed a memory section (the case on sparse).Signed-off-by David Hildenbrand <[email protected]>
Quoted 28 lines
--- mm/hugetlb.c | 2 ++ 1 file changed, 2 insertions(+)mm/hugetlb.c +2
-0@@ -4657,6 +4657,7 @@ static int __init hugetlb_init(void) BUILD_BUG_ON(sizeof_field(struct page, private) * BITS_PER_BYTE < __NR_HPAGEFLAGS); +BUILD_BUG_ON_INVALID (HUGETLB_PAGE_ORDER >MAX_FOLIO_ORDER );if (!hugepages_supported ()) {if (hugetlb_max_hstate || default_hstate_max_huge_pages)@@ -4740,6 +4741,7 @@ void __init hugetlb_add_hstate(unsigned int order) }BUG_ON (hugetlb_max_hstate >=HUGE_MAX_HSTATE );BUG_ON (order <order_base_2 (__NR_USED_SUBPAGE)); +WARN_ON (order >MAX_FOLIO_ORDER ); h = &hstates[hugetlb_max_hstate++];__mutex_init (&h->resize_lock,"resize mutex" , &h->resize_key); h->order = order;Signature · 1 line
2.50.1
Re: [PATCH v1 09/36] mm/mm_init: make memmap_init_compound() look more like prep_compound_page()
In reply to David HildenbrandQuoted 5 lines · David Hildenbrand
Grepping for "
prep_compound_page" leaves on clueless how devdax gets its compound pages initialized.Let's add a comment that might help finding this open-coded
prep_compound_page()initialization more easily.
Thanks for the comment here.
Quoted 10 lines
Further, let's be less smart about the ordering of initialization and just perform the
prep_compound_head()call after all tail pages were
initialized: just likeprep_compound_page()does.No need for a comment to describe the initialization order: again, just like
prep_compound_page().Reviewed-by Mike Rapoport (Microsoft) <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 41 lines
--- mm/mm_init.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)mm/mm_init.c +7
-8@@ -1091,6 +1091,12 @@ static void __ref memmap_init_compound(struct page *head,unsigned long pfn, end_pfn = head_pfn + nr_pages;unsigned int order = pgmap->vmemmap_shift; +/* +* We have to initialize the pages, including setting up page links. +* prep_compound_page() does not take care of that, so instead we +* open-code prep_compound_page() so we can take care of initializing +* the pages in the same go. +*/ __SetPageHead (head);for (pfn = head_pfn +1 ; pfn < end_pfn; pfn++) {struct page *page =pfn_to_page (pfn);@@ -1098,15 +1104,8 @@ static void __ref memmap_init_compound(struct page *head,__init_zone_device_page (page, pfn, zone_idx, nid, pgmap);prep_compound_tail (head, pfn - head_pfn);set_page_count (page,0 ); - -/* -* The first tail page stores important compound page info. -* Call prep_compound_head() after the first tail page has -* been initialized, to not have the data overwritten. -*/ -if (pfn == head_pfn +1 ) -prep_compound_head (head, order); } +prep_compound_head (head, order); } void __ref memmap_init_zone_device(struct zone *zone,Signature · 1 line
2.50.1
Re: [PATCH v1 06/36] mm/page_alloc: reject unreasonable folio/compound page sizes in alloc_contig_range_noprof()
In reply to Liam R. HowlettQuoted 56 lines · Liam R. Howlett
Quoted 9 lines · David Hildenbrand
Let's reject them early, which in turn makes
folio_alloc_gigantic()reject them properly.To avoid converting from order to
nr_pages, let's just addMAX_FOLIO_ORDERand calculateMAX_FOLIO_NR_PAGESbased on that.Reviewed-by Zi Yan <[email protected]>Acked-by SeongJae Park <[email protected]>Signed-off-by David Hildenbrand <[email protected]>Nit below, but..
Reviewed-by Liam R. Howlett <[email protected]>Quoted 41 lines
--- include/linux/mm.h | 6 ++++-- mm/page_alloc.c | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-)include/linux/mm.h +4
-2@@ -2055,11 +2055,13 @@ static inline long folio_nr_pages(const struct folio *folio)/* Only hugetlbfs can allocate folios larger than MAX_ORDER */ #ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE -#define MAX_FOLIO_NR_PAGES (1UL << PUD_ORDER) +#define MAX_FOLIO_ORDER PUD_ORDER#else -#define MAX_FOLIO_NR_PAGES MAX_ORDER_NR_PAGES +#define MAX_FOLIO_ORDER MAX_PAGE_ORDER#endif +#define MAX_FOLIO_NR_PAGES (1UL << MAX_FOLIO_ORDER) +/* * compound_nr() returns the number of pages in this potentially compound * page. compound_nr() can be called on a tail page, and is defined to mm/page_alloc.c +1
-0@@ -6833,6 +6833,7 @@ static int __alloc_contig_verify_gfp_mask(gfp_t gfp_mask, gfp_t *gfp_cc_mask)int alloc_contig_range_noprof (unsigned long start,unsigned long end,acr_flags_t alloc_flags,gfp_t gfp_mask) { +const unsigned int order =ilog2 (end - start);unsigned long outer_start, outer_end;int ret =0 ;@@ -6850,6 +6851,9 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end, PB_ISOLATE_MODE_CMA_ALLOC :PB_ISOLATE_MODE_OTHER ;
Quoted 14 lines
mm/page_alloc.c int alloc_contig_range_noprof(unsigned long start, unsigned long end, · line 6950
Quoted 11 lines
mm/page_alloc.c +3
-1+if (WARN_ON_ONCE ((gfp_mask & __GFP_COMP) && order >MAX_FOLIO_ORDER )) +return -EINVAL ; + gfp_mask =current_gfp_context (gfp_mask);if (__alloc_contig_verify_gfp_mask (gfp_mask, (gfp_t *)&cc.gfp_mask))return -EINVAL ;@@ -6947,7 +6951,6 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end,free_contig_range (end, outer_end - end); }else if (start == outer_start && end == outer_end &&is_power_of_2 (end - start)) {struct page *head =pfn_to_page (start); -int order =ilog2 (end - start);You have changed this from an int to a const unsigned int, which is totally fine but it was left out of the change log.
Considered to trivial to document, but I can add a sentence about that.
Quoted 2 lines
Probably not really
worth mentioning but curious why the change to unsigned here?
orders are always unsigned, like folio_order().
Thanks!
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 06/36] mm/page_alloc: reject unreasonable folio/compound page sizes in alloc_contig_range_noprof()
In reply to Lorenzo StoakesQuoted 35 lines · Lorenzo Stoakes
Quoted 9 lines · David Hildenbrand
Let's reject them early, which in turn makes
folio_alloc_gigantic()reject them properly.To avoid converting from order to
nr_pages, let's just addMAX_FOLIO_ORDERand calculateMAX_FOLIO_NR_PAGESbased on that.Reviewed-by Zi Yan <[email protected]>Acked-by SeongJae Park <[email protected]>Signed-off-by David Hildenbrand <[email protected]>Some nits, but overall LGTM so:
Reviewed-by Lorenzo Stoakes <[email protected]>Quoted 20 lines
--- include/linux/mm.h | 6 ++++-- mm/page_alloc.c | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-)include/linux/mm.h +2
-2@@ -2055,11 +2055,13 @@ static inline long folio_nr_pages(const struct folio *folio)/* Only hugetlbfs can allocate folios larger than MAX_ORDER */ #ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE -#define MAX_FOLIO_NR_PAGES (1UL << PUD_ORDER) +#define MAX_FOLIO_ORDER PUD_ORDER#else -#define MAX_FOLIO_NR_PAGES MAX_ORDER_NR_PAGES +#define MAX_FOLIO_ORDER MAX_PAGE_ORDER#endif
Quoted 3 lines
include/linux/mm.h static inline long folio_nr_pages(const struct folio *folio) · line 2063
Quoted 1 line
include/linux/mm.h +1
-0+#define MAX_FOLIO_NR_PAGES (1UL << MAX_FOLIO_ORDER)
BIT()?
I don't think we want to use BIT whenever we convert from order -> folio -- which is why we also don't do that in other code.
BIT() is nice in the context of flags and bitmaps, but not really in the context of converting orders to pages.
One could argue that maybe one would want a order_to_pages() helper (that could use BIT() internally), but I am certainly not someone that would suggest that at this point ... :)
Quoted 31 lines
Quoted 18 lines
include/linux/mm.h +1
-0+/* * compound_nr() returns the number of pages in this potentially compound * page. compound_nr() can be called on a tail page, and is defined to mm/page_alloc.c +1
-0@@ -6833,6 +6833,7 @@ static int __alloc_contig_verify_gfp_mask(gfp_t gfp_mask, gfp_t *gfp_cc_mask)int alloc_contig_range_noprof (unsigned long start,unsigned long end,acr_flags_t alloc_flags,gfp_t gfp_mask) { +const unsigned int order =ilog2 (end - start);unsigned long outer_start, outer_end;int ret =0 ;mm/page_alloc.c int alloc_contig_range_noprof(unsigned long start, unsigned long end, · line 6855
Quoted 5 lines
mm/page_alloc.c +2
-0@@ -6850,6 +6851,9 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end, PB_ISOLATE_MODE_CMA_ALLOC :PB_ISOLATE_MODE_OTHER ; +if (WARN_ON_ONCE ((gfp_mask & __GFP_COMP) && order >MAX_FOLIO_ORDER )) +return -EINVAL ;Possibly not worth it for a one off, but be nice to have this as a helper function, like:
static bool
is_valid_order(gfp_t gfp_mask, unsigned int order){ return !(gfp_mask & __GFP_COMP) || order <= MAX_FOLIO_ORDER; }
Quoted 6 lines
Then makes this:
if (WARN_ON_ONCE(!is_valid_order(gfp_mask, order))) return -EINVAL;Kinda self-documenting!
I don't like it -- especially forwarding __GFP_COMP.
is_valid_folio_order() to wrap the order check? Also not sure.
So I'll leave it as is I think.
Thanks for all the review!
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 08/36] mm/hugetlb: check for unreasonable folio sizes when registering hstate
In reply to Lorenzo StoakesQuoted 9 lines · Lorenzo Stoakes
Quoted 8 lines · David Hildenbrand
Let's check that no hstate that corresponds to an unreasonable folio size is registered by an architecture. If we were to succeed registering, we could later try allocating an unsupported gigantic folio size.
Further, let's add a
BUILD_BUG_ON()for checking thatHUGETLB_PAGE_ORDERis sane at build time. AsHUGETLB_PAGE_ORDERis dynamic on powerpc, we have to use aBUILD_BUG_ON_INVALID()to make it compile.
Quoted 5 lines
Quoted 3 lines
No existing kernel configuration should be able to trigger this check:
either SPARSEMEM withoutSPARSEMEM_VMEMMAPcannot be configured or gigantic folios will not exceed a memory section (the case on sparse).I am guessing it's implicit that
MAX_FOLIO_ORDER<= section size?
Yes, we have a build-time bug that somewhere.
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 10/36] mm: sanity-check maximum folio size in folio_set_order()
In reply to Lorenzo StoakesQuoted 8 lines · Lorenzo Stoakes
Quoted 5 lines · David Hildenbrand
Let's sanity-check in
folio_set_order()whether we would be trying to create a folio with an order that would make it exceedMAX_FOLIO_ORDER.This will enable the check whenever a folio/compound page is initialized through
prepare_compound_head()/prepare_compound_page().NIT: with
CONFIG_DEBUG_VMset :)
Yes, will add that.
Quoted 13 lines
Quoted 4 lines
Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>LGTM (apart from nit below), so:
Reviewed-by Lorenzo Stoakes <[email protected]>Quoted 4 lines
--- mm/internal.h | 1 + 1 file changed, 1 insertion(+)
Quoted 11 lines
mm/internal.h static inline void folio_set_order(struct folio *folio, unsigned int order) · line 758
Quoted 9 lines
mm/internal.h +1
-0@@ -755,6 +755,7 @@ static inline void folio_set_order(struct folio *folio, unsigned int order) {if (WARN_ON_ONCE (!order || !folio_test_large (folio)))return ; +VM_WARN_ON_ONCE (order >MAX_FOLIO_ORDER );Given we have 'full-fat' WARN_ON*()'s above, maybe worth making this one too?
The idea is that if you reach this point here, previous such checks I added failed. So this is the safety net, and for that VM_WARN_ON_ONCE() is sufficient.
I think we should rather convert the WARN_ON_ONCE to VM_WARN_ON_ONCE() at some point, because no sane code should ever trigger that.
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 11/36] mm: limit folio/compound page sizes in problematic kernel configs
In reply to Lorenzo StoakesQuoted 19 lines · Lorenzo Stoakes
Quoted 18 lines · David Hildenbrand
Let's limit the maximum folio size in problematic kernel config where the memmap is allocated per memory section (SPARSEMEM without
SPARSEMEM_VMEMMAP) to a single memory section.Currently, only a single architectures supports
ARCH_HAS_GIGANTIC_PAGEbut notSPARSEMEM_VMEMMAP: sh.Fortunately, the biggest hugetlb size sh supports is 64 MiB (
HUGETLB_PAGE_SIZE_64MB) and the section size is at least 64 MiB (SECTION_SIZE_BITS== 26), so their use case is not degraded.As folios and memory sections are naturally aligned to their order-2 size in memory, consequently a single folio can no longer span multiple memory sections on these problematic kernel configs.
nth_page()is no longer required when operating within a single compound page / folio.
Quoted 8 lines
Quoted 3 lines
Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>Realy great comments, like this!
I wonder if we could have this be part of the first patch where you fiddle with
MAX_FOLIO_ORDERetc. but not a big deal.
I think it belongs into this patch where we actually impose the restrictions.
[...]
Quoted 9 lines
include/linux/mm.h static inline long folio_nr_pages(const struct folio *folio) · line 2068
Quoted 6 lines
include/linux/mm.h +6
-0+/* +* Only pages within a single memory section are guaranteed to be +* contiguous. By limiting folios to a single memory section, all folio +* pages are guaranteed to be contiguous. +*/ +#define MAX_FOLIO_ORDER PFN_SECTION_SHIFTHmmm, was this implicit before somehow? I mean surely by the fact as you say that physical contiguity would not otherwise be guaranteed :))
Well, my patches until this point made sure that any attempt to use a larger folio would fail in a way that we could spot now if there is any offender.
That is why before this change, nth_page() was required within a folio.
Hope that clarifies it, thanks!
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 13/36] mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
In reply to Lorenzo StoakesQuoted 8 lines · Lorenzo Stoakes
Quoted 4 lines · David Hildenbrand
We can now safely iterate over all pages in a folio, so no need for the
pfn_to_page().Also, as we already force the refcount in
__init_single_page()to 1,Mega huge nit (ignore if you want), but maybe worth saying 'via
init_page_count()'.
Will add, thanks!
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 13/36] mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
In reply to Mike RapoportQuoted 21 lines · Mike Rapoport
Quoted 20 lines · David Hildenbrand
Quoted 18 lines · Mike Rapoport
Quoted 9 lines · David Hildenbrand
Quoted 6 lines · Mike Rapoport
mm/hugetlb.c static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, · line 3246
Quoted 3 lines · David Hildenbrand
mm/hugetlb.c +3
-0+/* +* We mark all tail pages with memblock_reserved_mark_noinit(), +* so these pages are completely uninitialized. ^ not? ;-)Can you elaborate?
Oh, sorry, I misread "uninitialized".
Still, I'd phrase it as/* * We marked all tail pages with memblock_reserved_mark_noinit(), * so we must initialize them here. */
Quoted 6 lines
Quoted 1 line
I prefer what I currently have, but thanks for the review.
No strong feelings, feel free to add
Reviewed-by Mike Rapoport (Microsoft) <[email protected]>
I now have
"As we marked all tail pages with memblock_reserved_mark_noinit(), we must initialize them ourselves here."
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 15/36] fs: hugetlbfs: remove nth_page() usage within folio in adjust_range_hwpoison()
In reply to Lorenzo StoakesQuoted 5 lines · Lorenzo Stoakes
Quoted 2 lines · David Hildenbrand
The
nth_page()is not really required anymore, so let's remove it. While at it, cleanup and simplify the code a bit.Hm Not sure which bit is the cleanup? Was there meant to be more here or?
Thanks, leftover from the pre-split of this patch!
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 11/36] mm: limit folio/compound page sizes in problematic kernel configs
In reply to David HildenbrandQuoted 24 lines · David Hildenbrand
Quoted 23 lines · Lorenzo Stoakes
Quoted 21 lines · David Hildenbrand
Let's limit the maximum folio size in problematic kernel config where the memmap is allocated per memory section (SPARSEMEM without
SPARSEMEM_VMEMMAP) to a single memory section.Currently, only a single architectures supports
ARCH_HAS_GIGANTIC_PAGEbut notSPARSEMEM_VMEMMAP: sh.Fortunately, the biggest hugetlb size sh supports is 64 MiB (
HUGETLB_PAGE_SIZE_64MB) and the section size is at least 64 MiB (SECTION_SIZE_BITS== 26), so their use case is not degraded.As folios and memory sections are naturally aligned to their order-2 size in memory, consequently a single folio can no longer span multiple memory sections on these problematic kernel configs.
nth_page()is no longer required when operating within a single compound page / folio.Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 7 lines
Quoted 4 lines
Realy great comments, like this!
I wonder if we could have this be part of the first patch where you fiddle with
MAX_FOLIO_ORDERetc. but not a big deal.I think it belongs into this patch where we actually impose the restrictions.
Sure it's not a big deal.
Quoted 13 lines
[...]
Quoted 9 lines
include/linux/mm.h static inline long folio_nr_pages(const struct folio *folio) · line 2068
Quoted 6 lines
include/linux/mm.h +6
-0+/* +* Only pages within a single memory section are guaranteed to be +* contiguous. By limiting folios to a single memory section, all folio +* pages are guaranteed to be contiguous. +*/ +#define MAX_FOLIO_ORDER PFN_SECTION_SHIFTHmmm, was this implicit before somehow? I mean surely by the fact as you say that physical contiguity would not otherwise be guaranteed :))
Quoted 2 lines
Well, my patches until this point made sure that any attempt to use a larger folio would fail in a way that we could spot now if there is any offender.
Ack yeah.
Quoted 4 lines
That is why before this change,
nth_page()was required within a folio.Hope that clarifies it, thanks!
Yes thanks! :)
Quoted 6 lines
--
CheersDavid / dhildenb
Cheers, Lorenzo
Re: [PATCH v1 13/36] mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
In reply to David HildenbrandQuoted 11 lines · David Hildenbrand
Quoted 8 lines · Lorenzo Stoakes
Quoted 4 lines · David Hildenbrand
We can now safely iterate over all pages in a folio, so no need for the
pfn_to_page().Also, as we already force the refcount in
__init_single_page()to 1,Mega huge nit (ignore if you want), but maybe worth saying 'via
init_page_count()'.Will add, thanks!
Thanks!
Quoted 7 lines
--
CheersDavid / dhildenb
Re: [PATCH v1 15/36] fs: hugetlbfs: remove nth_page() usage within folio in adjust_range_hwpoison()
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
Quoted 5 lines · Lorenzo Stoakes
Quoted 2 lines · David Hildenbrand
The
nth_page()is not really required anymore, so let's remove it. While at it, cleanup and simplify the code a bit.Hm Not sure which bit is the cleanup? Was there meant to be more here or?
Thanks, leftover from the pre-split of this patch!
Thanks! :)
(Am replying even on 'not really needing a reply' like this so I know which stuff I replied to :P)
Quoted 7 lines
--
CheersDavid / dhildenb
Cheers, Lorenzo
Re: [PATCH v1 10/36] mm: sanity-check maximum folio size in folio_set_order()
In reply to David HildenbrandQuoted 11 lines · David Hildenbrand
Quoted 8 lines · Lorenzo Stoakes
Quoted 5 lines · David Hildenbrand
Let's sanity-check in
folio_set_order()whether we would be trying to create a folio with an order that would make it exceedMAX_FOLIO_ORDER.This will enable the check whenever a folio/compound page is initialized through
prepare_compound_head()/prepare_compound_page().NIT: with
CONFIG_DEBUG_VMset :)Yes, will add that.
Thanks!
Quoted 26 lines
Quoted 14 lines
Quoted 5 lines
Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>LGTM (apart from nit below), so:
Reviewed-by Lorenzo Stoakes <[email protected]>Quoted 4 lines
--- mm/internal.h | 1 + 1 file changed, 1 insertion(+)Quoted 11 lines
mm/internal.h static inline void folio_set_order(struct folio *folio, unsigned int order) · line 758
Quoted 9 lines
mm/internal.h +1
-0@@ -755,6 +755,7 @@ static inline void folio_set_order(struct folio *folio, unsigned int order) {if (WARN_ON_ONCE (!order || !folio_test_large (folio)))return ; +VM_WARN_ON_ONCE (order >MAX_FOLIO_ORDER );Given we have 'full-fat' WARN_ON*()'s above, maybe worth making this one too?
Quoted 6 lines
The idea is that if you reach this point here, previous such checks I added failed. So this is the safety net, and for that
VM_WARN_ON_ONCE()is sufficient.I think we should rather convert the
WARN_ON_ONCEtoVM_WARN_ON_ONCE()at some point, because no sane code should ever trigger that.
Ack, ok. I don't think vital for this series though!
Quoted 6 lines
--
CheersDavid / dhildenb
Cheers, Lorenzo
Re: [PATCH v1 08/36] mm/hugetlb: check for unreasonable folio sizes when registering hstate
In reply to David HildenbrandQuoted 10 lines · David Hildenbrand
Quoted 9 lines · Lorenzo Stoakes
Quoted 8 lines · David Hildenbrand
Let's check that no hstate that corresponds to an unreasonable folio size is registered by an architecture. If we were to succeed registering, we could later try allocating an unsupported gigantic folio size.
Further, let's add a
BUILD_BUG_ON()for checking thatHUGETLB_PAGE_ORDERis sane at build time. AsHUGETLB_PAGE_ORDERis dynamic on powerpc, we have to use aBUILD_BUG_ON_INVALID()to make it compile.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
No existing kernel configuration should be able to trigger this check:
either SPARSEMEM withoutSPARSEMEM_VMEMMAPcannot be configured or gigantic folios will not exceed a memory section (the case on sparse).I am guessing it's implicit that
MAX_FOLIO_ORDER<= section size?Yes, we have a build-time bug that somewhere.
OK cool thanks!
Quoted 6 lines
--
CheersDavid / dhildenb
Cheers, Lorenzo
Re: [PATCH v1 06/36] mm/page_alloc: reject unreasonable folio/compound page sizes in alloc_contig_range_noprof()
In reply to David HildenbrandQuoted 36 lines · David Hildenbrand
Quoted 35 lines · Lorenzo Stoakes
Quoted 9 lines · David Hildenbrand
Let's reject them early, which in turn makes
folio_alloc_gigantic()reject them properly.To avoid converting from order to
nr_pages, let's just addMAX_FOLIO_ORDERand calculateMAX_FOLIO_NR_PAGESbased on that.Reviewed-by Zi Yan <[email protected]>Acked-by SeongJae Park <[email protected]>Signed-off-by David Hildenbrand <[email protected]>Some nits, but overall LGTM so:
Reviewed-by Lorenzo Stoakes <[email protected]>Quoted 20 lines
--- include/linux/mm.h | 6 ++++-- mm/page_alloc.c | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-)include/linux/mm.h +2
-2@@ -2055,11 +2055,13 @@ static inline long folio_nr_pages(const struct folio *folio)/* Only hugetlbfs can allocate folios larger than MAX_ORDER */ #ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE -#define MAX_FOLIO_NR_PAGES (1UL << PUD_ORDER) +#define MAX_FOLIO_ORDER PUD_ORDER#else -#define MAX_FOLIO_NR_PAGES MAX_ORDER_NR_PAGES +#define MAX_FOLIO_ORDER MAX_PAGE_ORDER#endif
Quoted 6 lines
Quoted 3 lines
include/linux/mm.h static inline long folio_nr_pages(const struct folio *folio) · line 2063
Quoted 1 line
include/linux/mm.h +1
-0+#define MAX_FOLIO_NR_PAGES (1UL << MAX_FOLIO_ORDER)
BIT()?I don't think we want to use BIT whenever we convert from order -> folio -- which is why we also don't do that in other code.
It seems a bit arbitrary, like we open-code this (at risk of making a mistake) in some places but not others.
Quoted 3 lines
BIT()is nice in the context of flags and bitmaps, but not really in the context of converting orders to pages.
It's nice for setting a specific bit :)
Quoted 4 lines
One could argue that maybe one would want a
order_to_pages()helper (that could useBIT()internally), but I am certainly not someone that would suggest that at this point ... :)
I mean maybe.
Anyway as I said none of this is massively important, the open-coding here is correct, just seems silly.
Quoted 13 lines
Quoted 13 lines
mm/page_alloc.c static int __alloc_contig_verify_gfp_mask(gfp_t gfp_mask, gfp_t *gfp_cc_mask) · line 6834
Quoted 13 lines
include/linux/mm.h +1
-0+/* * compound_nr() returns the number of pages in this potentially compound * page. compound_nr() can be called on a tail page, and is defined to mm/page_alloc.c +0
-0@@ -6833,6 +6833,7 @@ static int __alloc_contig_verify_gfp_mask(gfp_t gfp_mask, gfp_t *gfp_cc_mask)int alloc_contig_range_noprof (unsigned long start,unsigned long end,acr_flags_t alloc_flags,gfp_t gfp_mask)
Funny btw th
Quoted 21 lines
Quoted 21 lines
mm/page_alloc.c int alloc_contig_range_noprof(unsigned long start, unsigned long end, · line 6855
Quoted 11 lines
mm/page_alloc.c +3
-0{ +const unsigned int order =ilog2 (end - start);unsigned long outer_start, outer_end;int ret =0 ;@@ -6850,6 +6851,9 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end, PB_ISOLATE_MODE_CMA_ALLOC :PB_ISOLATE_MODE_OTHER ; +if (WARN_ON_ONCE ((gfp_mask & __GFP_COMP) && order >MAX_FOLIO_ORDER )) +return -EINVAL ;Possibly not worth it for a one off, but be nice to have this as a helper function, like:
static bool
is_valid_order(gfp_t gfp_mask, unsigned int order){ return !(gfp_mask & __GFP_COMP) || order <= MAX_FOLIO_ORDER; }Then makes this:
Quoted 8 lines
Quoted 4 lines
if (WARN_ON_ONCE(!is_valid_order(gfp_mask, order))) return -EINVAL;Kinda self-documenting!
I don't like it -- especially forwarding
__GFP_COMP.
is_valid_folio_order()to wrap the order check? Also not sure.
OK, it's not a big deal.
Can we have a comment explaining this though? As people might be confused as to why we check this here and not elsewhere.
Quoted 2 lines
So I'll leave it as is I think.
Right fine.
Quoted 8 lines
Thanks for all the review!
--
CheersDavid / dhildenb
Re: [PATCH v1 20/36] mips: mm: convert __flush_dcache_pages() to __flush_dcache_folio_pages()
In reply to David HildenbrandQuoted 28 lines · David Hildenbrand
Quoted 14 lines · Lorenzo Stoakes
Quoted 13 lines · David Hildenbrand
Let's make it clearer that we are operating within a single folio by providing both the folio and the page.
This implies that for
flush_dcache_folio()we'll now avoid one morepage->foliolookup, and that we can safely drop the "nth_page" usage.Cc Thomas Bogendoerfer <[email protected]>Signed-off-by David Hildenbrand <[email protected]>--- arch/mips/include/asm/cacheflush.h | 11 +++++++---- arch/mips/mm/cache.c | 8 ++++---- 2 files changed, 11 insertions(+), 8 deletions(-)Quoted 12 lines
arch/mips/include/asm/cacheflush.h extern void (*flush_cache_mm)(struct mm_struct *mm); · line 53
Quoted 10 lines
arch/mips/include/asm/cacheflush.h +1
-1@@ -50,13 +50,14 @@ extern void (*flush_cache_mm)(struct mm_struct *mm);extern void (*flush_cache_range)(struct vm_area_struct *vma,unsigned long start,unsigned long end);extern void (*flush_cache_page)(struct vm_area_struct *vma,unsigned long page,unsigned long pfn); -extern void __flush_dcache_pages (struct page *page,unsigned int nr); +extern void __flush_dcache_folio_pages (struct folio *folio,struct page *page,unsigned int nr);NIT: Be good to drop the extern.
Quoted 2 lines
I think I'll leave the one in, though, someone should clean up all of them in one go.
This is how we always clean these up though, buuut to be fair that's in mm.
Quoted 3 lines
Just imagine how the other functions would think about the new guy showing off here. :)
;)
Quoted 27 lines
Quoted 15 lines
Quoted 15 lines
arch/mips/include/asm/cacheflush.h +2
-1#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1static inline void flush_dcache_folio (struct folio *folio) {if (cpu_has_dc_aliases) -__flush_dcache_pages (&folio->page,folio_nr_pages (folio)); +__flush_dcache_folio_pages (folio,folio_page (folio,0 ), +folio_nr_pages (folio));else if (!cpu_has_ic_fills_f_dc)folio_set_dcache_dirty (folio); }@@ -64,10 +65,12 @@ static inline void flush_dcache_folio(struct folio *folio)Quoted 11 lines
arch/mips/include/asm/cacheflush.h static inline void flush_dcache_folio(struct folio *folio) · line 71
Quoted 7 lines
arch/mips/include/asm/cacheflush.h +3
-1static inline void flush_dcache_page (struct page *page) { +struct folio *folio =page_folio (page); +if (cpu_has_dc_aliases) -__flush_dcache_pages (page,1 ); +__flush_dcache_folio_pages (folio, page,folio_nr_pages (folio));Hmmm, shouldn't this be 1 not
folio_nr_pages()? Seems that the original implementation only flushed a single page even if contained within a larger folio?
Quoted 1 line
Yes, reworked it 3 times and messed it up during the last rework. Thanks!
Woot I found an actual bug :P
Yeah it's fiddly so understandable. :)
Quoted 6 lines
--
CheersDavid / dhildenb
Cheers, Lorenzo
Re: [PATCH v1 06/36] mm/page_alloc: reject unreasonable folio/compound page sizes in alloc_contig_range_noprof()
In reply to Lorenzo StoakesQuoted 3 lines
It seems a bit arbitrary, like we open-code this (at risk of making a mistake) in some places but not others.
[...]
Quoted 9 lines
Quoted 4 lines
One could argue that maybe one would want a
order_to_pages()helper (that could useBIT()internally), but I am certainly not someone that would suggest that at this point ... :)I mean maybe.
Anyway as I said none of this is massively important, the open-coding here is correct, just seems silly.
Maybe we really want a ORDER_PAGES() and PAGES_ORDER().
But I mean, we also have PHYS_PFN() PFN_PHYS() and see how many "<< PAGE_SIZE" etc we are using all over the place.
Quoted 43 lines
Quoted 14 lines
Quoted 14 lines
Quoted 12 lines
include/linux/mm.h +1
-0+/* * compound_nr() returns the number of pages in this potentially compound * page. compound_nr() can be called on a tail page, and is defined to mm/page_alloc.c +0
-0mm/page_alloc.c static int __alloc_contig_verify_gfp_mask(gfp_t gfp_mask, gfp_t *gfp_cc_mask) · line 6834
Quoted 2 lines
mm/page_alloc.c +0
-0@@ -6833,6 +6833,7 @@ static int __alloc_contig_verify_gfp_mask(gfp_t gfp_mask, gfp_t *gfp_cc_mask)int alloc_contig_range_noprof (unsigned long start,unsigned long end,acr_flags_t alloc_flags,gfp_t gfp_mask)Funny btw th
Quoted 26 lines
Quoted 25 lines
mm/page_alloc.c int alloc_contig_range_noprof(unsigned long start, unsigned long end, · line 6855
Quoted 11 lines
mm/page_alloc.c +3
-0{ +const unsigned int order =ilog2 (end - start);unsigned long outer_start, outer_end;int ret =0 ;@@ -6850,6 +6851,9 @@ int alloc_contig_range_noprof(unsigned long start, unsigned long end, PB_ISOLATE_MODE_CMA_ALLOC :PB_ISOLATE_MODE_OTHER ; +if (WARN_ON_ONCE ((gfp_mask & __GFP_COMP) && order >MAX_FOLIO_ORDER )) +return -EINVAL ;Possibly not worth it for a one off, but be nice to have this as a helper function, like:
static bool
is_valid_order(gfp_t gfp_mask, unsigned int order){ return !(gfp_mask & __GFP_COMP) || order <= MAX_FOLIO_ORDER; }Then makes this:
if (WARN_ON_ONCE(!is_valid_order(gfp_mask, order))) return -EINVAL;Kinda self-documenting!
Quoted 8 lines
Quoted 3 lines
I don't like it -- especially forwarding
__GFP_COMP.
is_valid_folio_order()to wrap the order check? Also not sure.OK, it's not a big deal.
Can we have a comment explaining this though? As people might be confused as to why we check this here and not elsewhere.
I can add a comment.
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 16/36] fs: hugetlbfs: cleanup folio in adjust_range_hwpoison()
In reply to Lorenzo StoakesQuoted 6 lines
Lord above.
Also semantics of 'if bytes == 0, then check first page anyway' which you do capture.
Yeah, I think bytes == 0 would not make any sense, though. Staring briefly at the single caller, that seems to be the case (bytes != 0).
Quoted 51 lines
OK think I have convinced myself this is right, so hopefully no deeply subtle off-by-one issues here :P
Anyway, LGTM, so:
Reviewed-by Lorenzo Stoakes <[email protected]>Quoted 27 lines
--- fs/hugetlbfs/inode.c | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-)fs/hugetlbfs/inode.c +5
-10@@ -198,31 +198,20 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,static size_t adjust_range_hwpoison (struct folio *folio,size_t offset,size_t bytes) { -struct page *page; -size_t n =0 ; -size_t res =0 ; - -/* First page to start the loop. */ - page =folio_page (folio, offset /PAGE_SIZE ); - offset %=PAGE_SIZE ; -while (1 ) { -if (is_raw_hwpoison_page_in_hugepage (page)) -break ; +struct page *page =folio_page (folio, offset /PAGE_SIZE ); +size_t safe_bytes; + +if (is_raw_hwpoison_page_in_hugepage (page)) +return 0 ;fs/hugetlbfs/inode.c hugetlb_get_unmapped_area(struct file *file, unsigned long addr, · line 210
Quoted 10 lines
fs/hugetlbfs/inode.c +4
-5+/* Safe to read the remaining bytes in this page. */ + safe_bytes =PAGE_SIZE - (offset %PAGE_SIZE ); + page++; -/* Safe to read n bytes without touching HWPOISON subpage. */ - n =min (bytes, (size_t )PAGE_SIZE - offset); - res += n; - bytes -= n; -if (!bytes || !n) +for (; safe_bytes < bytes; safe_bytes +=PAGE_SIZE , page++)OK this is quite subtle - so if
safe_bytes== bytes, this means we've confirmed that all requested bytes are safe.So offset=0, bytes = 4096 would fail this (as
safe_bytes== 4096).
Quoted 8 lines
Maybe worth putting something like:
/* * Now we check page-by-page in the folio to see if any bytes we don't * yet know to be safe are contained within posioned pages or not. */Above the loop. Or something like this.
"Check each remaining page as long as we are not done yet."
Quoted 10 lines
Quoted 10 lines
fs/hugetlbfs/inode.c +1
-6+if (is_raw_hwpoison_page_in_hugepage (page))break ; - offset += n; -if (offset ==PAGE_SIZE ) { - page++; - offset =0 ; - } - }
Quoted 6 lines
fs/hugetlbfs/inode.c hugetlb_get_unmapped_area(struct file *file, unsigned long addr, · line 214
Quoted 2 lines
fs/hugetlbfs/inode.c +1
-1-return res; +return min (safe_bytes, bytes);Yeah given above analysis this seems correct.
You must have torn your hair out over this :)
I could resist the urge to clean that up, yes.
I'll also drop the "The implementation borrows the iteration logic from copy_page_to_iter*." part, because I suspect this comment no longer makes sense.
Thanks!
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 18/36] mm/gup: drop nth_page() usage within folio when recording subpages
In reply to Lorenzo StoakesQuoted 48 lines · Lorenzo Stoakes
Quoted 4 lines · David Hildenbrand
nth_page()is no longer required when iterating over pages within a single folio, so let's just drop it when recording subpages.Signed-off-by David Hildenbrand <[email protected]>This looks correct to me, so notwithtsanding suggestion below, LGTM and:
Reviewed-by Lorenzo Stoakes <[email protected]>Quoted 10 lines
--- mm/gup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)mm/gup.c +0
-0@@ -488,12 +488,11 @@ static int record_subpages(struct page *page, unsigned long sz, unsigned long addr, unsigned long end,mm/gup.c static int record_subpages(struct page *page, unsigned long sz, · line 495
Quoted 10 lines
mm/gup.c +2
-3struct page **pages) { -struct page *start_page;int nr; - start_page =nth_page (page, (addr & (sz -1 )) >>PAGE_SHIFT ); + page += (addr & (sz -1 )) >>PAGE_SHIFT ;for (nr =0 ; addr != end; nr++, addr +=PAGE_SIZE ) - pages[nr] =nth_page (start_page, nr); + pages[nr] = page++;This is really nice, but I wonder if (while we're here) we can't be even more clear as to what's going on here, e.g.:
static int record_subpages(struct page *page, unsigned long sz,
unsigned long addr, unsigned long end, struct page **pages){ size_t offset_in_folio = (addr & (sz - 1)) >> PAGE_SHIFT; struct page *subpage = page + offset_in_folio; for (; addr != end; addr += PAGE_SIZE) *pages++ = subpage++; return nr; }
Quoted 1 line
Or some variant of that with the masking stuff self-documented.
What about the following cleanup on top:
mm/gup.c +8 -17
@@ -484,19 +484,6 @@ static inline void mm_set_has_pinned_flag(struct mm_struct *mm)#ifdef CONFIG_MMU #ifdef CONFIG_HAVE_GUP_FAST -static int record_subpages (struct page *page,unsigned long sz, -unsigned long addr,unsigned long end, -struct page **pages) -{ -int nr; - - page += (addr & (sz -1 )) >>PAGE_SHIFT ; -for (nr =0 ; addr != end; nr++, addr +=PAGE_SIZE ) - pages[nr] = page++; - -return nr; -} -/** * try_grab_folio_fast() - Attempt to get or pin a folio in fast path. * @page: pointer to page to be grabbed
@@ -2963,8 +2950,8 @@ static int gup_fast_pmd_leaf(pmd_t orig, pmd_t *pmdp, unsigned long addr,if (pmd_special (orig))return 0 ; - page =pmd_page (orig); - refs =record_subpages (page,PMD_SIZE , addr, end, pages + *nr); + refs = (end - addr) >>PAGE_SHIFT ; + page =pmd_page (orig) + ((addr & ~PMD_MASK ) >>PAGE_SHIFT ); folio =try_grab_folio_fast (page, refs, flags);if (!folio)
@@ -2985,6 +2972,8 @@ static int gup_fast_pmd_leaf(pmd_t orig, pmd_t *pmdp, unsigned long addr, } *nr += refs; +for (; refs; refs--) + *(pages++) = page++;folio_set_referenced (folio);return 1 ; }
@@ -3003,8 +2992,8 @@ static int gup_fast_pud_leaf(pud_t orig, pud_t *pudp, unsigned long addr,if (pud_special (orig))return 0 ; - page =pud_page (orig); - refs =record_subpages (page,PUD_SIZE , addr, end, pages + *nr); + refs = (end - addr) >>PAGE_SHIFT ; + page =pud_page (orig) + ((addr & ~PUD_MASK ) >>PAGE_SHIFT ); folio =try_grab_folio_fast (page, refs, flags);if (!folio)
@@ -3026,6 +3015,8 @@ static int gup_fast_pud_leaf(pud_t orig, pud_t *pudp, unsigned long addr, } *nr += refs; +for (; refs; refs--) + *(pages++) = page++;folio_set_referenced (folio);return 1 ; }
The nice thing is that we only record pages in the array if they actually passed our tests.
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 20/36] mips: mm: convert __flush_dcache_pages() to __flush_dcache_folio_pages()
In reply to Lorenzo StoakesQuoted 29 lines · Lorenzo Stoakes
Quoted 28 lines · David Hildenbrand
Quoted 26 lines · Lorenzo Stoakes
Quoted 18 lines · David Hildenbrand
Let's make it clearer that we are operating within a single folio by providing both the folio and the page.
This implies that for
flush_dcache_folio()we'll now avoid one morepage->foliolookup, and that we can safely drop the "nth_page" usage.Cc Thomas Bogendoerfer <[email protected]>Signed-off-by David Hildenbrand <[email protected]>--- arch/mips/include/asm/cacheflush.h | 11 +++++++---- arch/mips/mm/cache.c | 8 ++++---- 2 files changed, 11 insertions(+), 8 deletions(-)arch/mips/include/asm/cacheflush.h +0
-0arch/mips/include/asm/cacheflush.h extern void (*flush_cache_mm)(struct mm_struct *mm); · line 53
Quoted 5 lines
arch/mips/include/asm/cacheflush.h +1
-1@@ -50,13 +50,14 @@ extern void (*flush_cache_mm)(struct mm_struct *mm);extern void (*flush_cache_range)(struct vm_area_struct *vma,unsigned long start,unsigned long end);extern void (*flush_cache_page)(struct vm_area_struct *vma,unsigned long page,unsigned long pfn); -extern void __flush_dcache_pages (struct page *page,unsigned int nr); +extern void __flush_dcache_folio_pages (struct folio *folio,struct page *page,unsigned int nr);NIT: Be good to drop the extern.
Quoted 5 lines
Quoted 2 lines
I think I'll leave the one in, though, someone should clean up all of them in one go.
This is how we always clean these up though, buuut to be fair that's in mm.
Well, okay, I'll make all the other functions jealous and blame it on you! :P
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 10/36] mm: sanity-check maximum folio size in folio_set_order()
In reply to David HildenbrandQuoted 8 lines · David Hildenbrand
Let's sanity-check in
folio_set_order()whether we would be trying to create a folio with an order that would make it exceedMAX_FOLIO_ORDER.This will enable the check whenever a folio/compound page is initialized through
prepare_compound_head()/prepare_compound_page().Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 20 lines
--- mm/internal.h | 1 + 1 file changed, 1 insertion(+)mm/internal.h +1
-0@@ -755,6 +755,7 @@ static inline void folio_set_order(struct folio *folio, unsigned int order) {if (WARN_ON_ONCE (!order || !folio_test_large (folio)))return ; +VM_WARN_ON_ONCE (order >MAX_FOLIO_ORDER ); folio->_flags_1 = (folio->_flags_1 & ~0xffUL ) | order;#ifdef NR_PAGES_IN_LARGE_FOLIO Signature · 1 line
2.50.1
Re: [PATCH v1 11/36] mm: limit folio/compound page sizes in problematic kernel configs
In reply to David HildenbrandQuoted 15 lines · David Hildenbrand
Let's limit the maximum folio size in problematic kernel config where the memmap is allocated per memory section (SPARSEMEM without
SPARSEMEM_VMEMMAP) to a single memory section.Currently, only a single architectures supports
ARCH_HAS_GIGANTIC_PAGEbut notSPARSEMEM_VMEMMAP: sh.Fortunately, the biggest hugetlb size sh supports is 64 MiB (
HUGETLB_PAGE_SIZE_64MB) and the section size is at least 64 MiB (SECTION_SIZE_BITS== 26), so their use case is not degraded.As folios and memory sections are naturally aligned to their order-2 size in memory, consequently a single folio can no longer span multiple memory sections on these problematic kernel configs.
Quoted 6 lines
nth_page()is no longer required when operating within a single compound page / folio.Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 41 lines
--- include/linux/mm.h | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-)include/linux/mm.h +18
-4@@ -2053,11 +2053,25 @@ static inline long folio_nr_pages(const struct folio *folio)return folio_large_nr_pages (folio); } -/* Only hugetlbfs can allocate folios larger than MAX_ORDER */ -#ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE -#define MAX_FOLIO_ORDER PUD_ORDER -#else +#if !defined(CONFIG_ARCH_HAS_GIGANTIC_PAGE ) +/* +* We don't expect any folios that exceed buddy sizes (and consequently +* memory sections). +*/ #define MAX_FOLIO_ORDER MAX_PAGE_ORDER +#elif defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +/* +* Only pages within a single memory section are guaranteed to be +* contiguous. By limiting folios to a single memory section, all folio +* pages are guaranteed to be contiguous. +*/ +#define MAX_FOLIO_ORDER PFN_SECTION_SHIFT +#else +/* +* There is no real limit on the folio size. We limit them to the maximum we +* currently expect (e.g., hugetlb, dax). +*/ +#define MAX_FOLIO_ORDER PUD_ORDER#endif #define MAX_FOLIO_NR_PAGES (1UL << MAX_FOLIO_ORDER)Signature · 1 line
2.50.1
Re: [PATCH v1 21/36] mm/cma: refuse handing out non-contiguous page ranges
In reply to Lorenzo StoakesQuoted 11 lines · Lorenzo Stoakes
Quoted 7 lines · David Hildenbrand
Let's disallow handing out PFN ranges with non-contiguous pages, so we can remove the nth-page usage in
__cma_alloc(), and so any callers don't have to worry about that either when wanting to blindly iterate pages.This is really only a problem in configs with SPARSEMEM but without
SPARSEMEM_VMEMMAP, and only when we would cross memory sections in some cases.I'm guessing this is something that we don't need to worry about in reality?
That my theory yes.
Quoted 224 lines
Quoted 9 lines
Will this cause harm? Probably not, because it's mostly 32bit that does not support
SPARSEMEM_VMEMMAP. If this ever becomes a problem we could look into allocating the memmap for the memory sections spanned by a single CMA region in one go from memblock.Reviewed-by Alexandru Elisei <[email protected]>Signed-off-by David Hildenbrand <[email protected]>LGTM other than refactoring point below.
CMA stuff looks fine afaict after staring at it for a while, on proviso that handing out ranges within the same section is always going to be the case.
Anyway overall,
LGTM, so:
Reviewed-by Lorenzo Stoakes <[email protected]>Quoted 146 lines
--- include/linux/mm.h | 6 ++++++ mm/cma.c | 39 ++++++++++++++++++++++++--------------- mm/util.c | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 15 deletions(-)include/linux/mm.h +6
-0@@ -209,9 +209,15 @@ extern unsigned long sysctl_user_reserve_kbytes;extern unsigned long sysctl_admin_reserve_kbytes;#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +bool page_range_contiguous (const struct page *page,unsigned long nr_pages);#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n))#else #define nth_page (page,n) ((page) + (n)) +static inline bool page_range_contiguous (const struct page *page, +unsigned long nr_pages) +{ +return true; +}#endif /* to align the pointer to the (next) page boundary */ mm/cma.c +24
-15@@ -780,10 +780,8 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr, unsigned long count, unsigned int align, struct page **pagep, gfp_t gfp) { - unsigned long mask, offset; -unsigned long pfn =-1 ; -unsigned long start =0 ; unsigned long bitmap_maxno, bitmap_no, bitmap_count; +unsigned long start, pfn, mask, offset;int ret = -EBUSY ;struct page *page =NULL ;@@ -795,7 +793,7 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,if (bitmap_count > bitmap_maxno) goto out; -for (;;) { +for (start =0 ; ; start = bitmap_no + mask +1 ) {spin_lock_irq (&cma->lock);/* * If the request is larger than the available number @@ -812,6 +810,22 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,spin_unlock_irq (&cma->lock);break ; } + + pfn = cmr->base_pfn + (bitmap_no << cma->order_per_bit); + page =pfn_to_page (pfn); + +/* +* Do not hand out page ranges that are not contiguous, so +* callers can just iterate the pages without having to worry +* about these corner cases. +*/ +if (!page_range_contiguous (page, count)) { +spin_unlock_irq (&cma->lock); +pr_warn_ratelimited ("%s: %s: skipping incompatible area [0x%lx-0x%lx]" , + __func__, cma->name, pfn, pfn + count -1 ); +continue ; + } +bitmap_set (cmr->bitmap, bitmap_no, bitmap_count); cma->available_count -= count;/* @@ -821,29 +835,24 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,*/ spin_unlock_irq (&cma->lock); - pfn = cmr->base_pfn + (bitmap_no << cma->order_per_bit);mutex_lock (&cma->alloc_mutex); ret =alloc_contig_range (pfn, pfn + count,ACR_FLAGS_CMA , gfp);mutex_unlock (&cma->alloc_mutex); -if (ret ==0 ) { - page =pfn_to_page (pfn); +if (!ret)break ; - }cma_clear_bitmap (cma, cmr, pfn, count);if (ret != -EBUSY )break ;pr_debug ("%s(): memory range at pfn 0x%lx %p is busy, retrying\n" , - __func__, pfn,pfn_to_page (pfn)); + __func__, pfn, page); -trace_cma_alloc_busy_retry (cma->name, pfn,pfn_to_page (pfn), - count, align); -/* try again with a bit different memory target */ - start = bitmap_no + mask +1 ; +trace_cma_alloc_busy_retry (cma->name, pfn, page, count, align); } out: - *pagep = page; +if (!ret) + *pagep = page;return ret; }@@ -882,7 +891,7 @@ static struct page *__cma_alloc(struct cma *cma, unsigned long count,*/ if (page) {for (i =0 ; i < count; i++) -page_kasan_tag_reset (nth_page (page, i)); +page_kasan_tag_reset (page + i); }if (ret && !(gfp & __GFP_NOWARN)) {mm/util.c +20
-0@@ -1280,4 +1280,37 @@ unsigned int folio_pte_batch(struct folio *folio, pte_t *ptep, pte_t pte, {return folio_pte_batch_flags (folio,NULL , ptep, &pte, max_nr,0 ); } + +#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +/** +* page_range_contiguous - test whether the page range is contiguous +* @page: the start of the page range. +* @nr_pages: the number of pages in the range. +* +* Test whether the page range is contiguous, such that they can be iterated +* naively, corresponding to iterating a contiguous PFN range. +* +* This function should primarily only be used for debug checks, or when +* working with page ranges that are not naturally contiguous (e.g., pages +* within a folio are). +* +* Returns true if contiguous, otherwise false. +*/ +bool page_range_contiguous (const struct page *page,unsigned long nr_pages) +{ +const unsigned long start_pfn =page_to_pfn (page); +const unsigned long end_pfn = start_pfn + nr_pages;mm/util.c unsigned int folio_pte_batch(struct folio *folio, pte_t *ptep, pte_t pte, · line 1312
Quoted 10 lines
mm/util.c +10
-0+unsigned long pfn; + +/* +* The memmap is allocated per memory section. We need to check +* each involved memory section once. +*/ +for (pfn =ALIGN (start_pfn,PAGES_PER_SECTION ); + pfn < end_pfn; pfn +=PAGES_PER_SECTION ) +if (unlikely (page + (pfn - start_pfn) !=pfn_to_page (pfn))) +return false;I find this pretty confusing, my test for this is how many times I have to read the code to understand what it's doing :)
So we have something like:
(pfn of page)
start_pfnpfn = align UP
| |
v v
| section |
<----------------->
pfn -start_pfnThen check page + (pfn -
start_pfn) ==pfn_to_page(pfn)And loop such that:
(pfn of page)
start_pfnpfn
| |
v v
| section | section |
<------------------------------------------>
pfn -start_pfnAgain check page + (pfn -
start_pfn) ==pfn_to_page(pfn)And so on.
So the logic looks good, but it's just... that took me a hot second to parse :)
I think a few simple fixups
bool
page_range_contiguous(const struct page *page, unsigned long nr_pages){ const unsigned long start_pfn = page_to_pfn(page); const unsigned long end_pfn = start_pfn + nr_pages; /* The PFN of the start of the next section. */ unsigned long pfn = ALIGN(start_pfn, PAGES_PER_SECTION); /* The page we'd expected to see if the range were contiguous. */ struct page *expected = page + (pfn - start_pfn); /*
Quoted 9 lines
* The memmap is allocated per memory section. We need to check * each involved memory section once. */ for (; pfn < end_pfn; pfn += PAGES_PER_SECTION, expected += PAGES_PER_SECTION) if (unlikely(expected != pfn_to_page(pfn))) return false; return true; }
Hm, I prefer my variant, especially where the pfn is calculated in the for loop. Likely a matter of personal taste.
But I can see why skipping the first section might be a surprise when not having the semantics of ALIGN() in the cache.
So I'll add the following on top:
mm/util.c +4 -2
@@ -1303,8 +1303,10 @@ bool page_range_contiguous(const struct page *page, unsigned long nr_pages)unsigned long pfn;/* -* The memmap is allocated per memory section. We need to check -* each involved memory section once. +* The memmap is allocated per memory section, so no need to check +* within the first section. However, we need to check each other +* spanned memory section once, making sure the first page in a +* section could similarly be reached by just iterating pages. */ for (pfn =ALIGN (start_pfn,PAGES_PER_SECTION ); pfn < end_pfn; pfn +=PAGES_PER_SECTION )
Thanks!
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 24/36] ata: libata-eh: drop nth_page() usage within SG entry
In reply to Damien Le MoalQuoted 11 lines · Damien Le Moal
Quoted 10 lines · Lorenzo Stoakes
Quoted 6 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Cc Damien Le Moal <[email protected]>Cc Niklas Cassel <[email protected]>Signed-off-by David Hildenbrand <[email protected]>LGTM, so:
Quoted 8 lines
Quoted 1 line
Reviewed-by Lorenzo Stoakes <[email protected]>Just noticed this:
s/libata-eh/libata-sff
in the commit title please.
Sure, I think some quick git-log search mislead me.
Thanks!
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 33/36] mm/gup: drop nth_page() usage in unpin_user_page_range_dirty_lock()
In reply to Lorenzo StoakesQuoted 5 lines · Lorenzo Stoakes
Quoted 4 lines · David Hildenbrand
There is the concern that
unpin_user_page_range_dirty_lock()might do some weird merging of PFN ranges -- either now or in the future -- such that PFN range is contiguous but the page range might not be.
Quoted 7 lines
Quoted 3 lines
Let's sanity-check for that and drop the
nth_page()usage.Signed-off-by David Hildenbrand <[email protected]>Seems one user uses SG and the other is IOMMU and in each instance you'd expect physical contiguity (maybe Jason G. or somebody else more familiar with these uses can also chime in).
Right, and I added the sanity-check so we can identify and fix any such wrong merging of ranges.
Thanks!
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 12/36] mm: simplify folio_page() and folio_page_idx()
In reply to David HildenbrandQuoted 2 lines · David Hildenbrand
Now that a single folio/compound page can no longer span memory sections in problematic kernel configurations, we can stop using
nth_page().
..but only in a subset of nth_page uses, considering mm.h still has the define.
Quoted 6 lines
While at it, turn both macros into static inline functions and add kernel doc for
folio_page_idx().Reviewed-by Zi Yan <[email protected]>Signed-off-by David Hildenbrand <[email protected]>
Quoted 61 lines
--- include/linux/mm.h | 16 ++++++++++++++-- include/linux/page-flags.h | 5 ++++- 2 files changed, 18 insertions(+), 3 deletions(-)include/linux/mm.h +14
-2@@ -210,10 +210,8 @@ extern unsigned long sysctl_admin_reserve_kbytes;#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP )#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n)) -#define folio_page_idx (folio, p) (page_to_pfn(p) - folio_pfn(folio))#else #define nth_page (page,n) ((page) + (n)) -#define folio_page_idx (folio, p) ((p) - &(folio)->page)#endif /* to align the pointer to the (next) page boundary */ @@ -225,6 +223,20 @@ extern unsigned long sysctl_admin_reserve_kbytes;/* test whether an address (unsigned long or pointer) is aligned to PAGE_SIZE */ #define PAGE_ALIGNED (addr) IS_ALIGNED((unsigned long)(addr), PAGE_SIZE) +/** +* folio_page_idx - Return the number of a page in a folio. +* @folio: The folio. +* @page: The folio page. +* +* This function expects that the page is actually part of the folio. +* The returned number is relative to the start of the folio. +*/ +static inline unsigned long folio_page_idx (const struct folio *folio, +const struct page *page) +{ +return page - &folio->page; +} +static inline struct folio *lru_to_folio (struct list_head *head) { return list_entry((head)->prev, struct folio, lru);include/linux/page-flags.h +4
-1@@ -316,7 +316,10 @@ static __always_inline unsigned long _compound_head(const struct page *page)* check that the page number lies within @folio; the caller is presumed * to have a reference to the page. */ -#define folio_page (folio, n) nth_page(&(folio)->page, n) +static inline struct page *folio_page (struct folio *folio,unsigned long n) +{ +return &folio->page + n; +} static __always_inline int PageTail(const struct page *page) {Signature · 1 line
2.50.1
Quoted 8 lines · Lorenzo Stoakes
Quoted 3 lines · David Hildenbrand
Now that all users are gone, let's remove it.
Signed-off-by David Hildenbrand <[email protected]>HAPPY DAYYS!!!!
Happy to have reached this bit, great work! :)
I was just as happy when I made it to the end of this series :)
Thanks for all the review!!
Signature · 3 lines
Cheers David / dhildenb
Re: [PATCH v1 21/36] mm/cma: refuse handing out non-contiguous page ranges
In reply to David HildenbrandQuoted 6 lines · David Hildenbrand
Quoted 5 lines · Lorenzo Stoakes
Quoted 4 lines · David Hildenbrand
Let's disallow handing out PFN ranges with non-contiguous pages, so we can remove the nth-page usage in
__cma_alloc(), and so any callers don't have to worry about that either when wanting to blindly iterate pages.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
This is really only a problem in configs with SPARSEMEM but without
SPARSEMEM_VMEMMAP, and only when we would cross memory sections in some cases.I'm guessing this is something that we don't need to worry about in reality?
That my theory yes.
Let's hope correct haha, but seems reasonable.
Quoted 235 lines
Quoted 225 lines
Quoted 10 lines
Will this cause harm? Probably not, because it's mostly 32bit that does not support
SPARSEMEM_VMEMMAP. If this ever becomes a problem we could look into allocating the memmap for the memory sections spanned by a single CMA region in one go from memblock.Reviewed-by Alexandru Elisei <[email protected]>Signed-off-by David Hildenbrand <[email protected]>LGTM other than refactoring point below.
CMA stuff looks fine afaict after staring at it for a while, on proviso that handing out ranges within the same section is always going to be the case.
Anyway overall,
LGTM, so:
Reviewed-by Lorenzo Stoakes <[email protected]>Quoted 146 lines
--- include/linux/mm.h | 6 ++++++ mm/cma.c | 39 ++++++++++++++++++++++++--------------- mm/util.c | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 15 deletions(-)include/linux/mm.h +6
-0@@ -209,9 +209,15 @@ extern unsigned long sysctl_user_reserve_kbytes;extern unsigned long sysctl_admin_reserve_kbytes;#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +bool page_range_contiguous (const struct page *page,unsigned long nr_pages);#define nth_page (page,n) pfn_to_page(page_to_pfn((page)) + (n))#else #define nth_page (page,n) ((page) + (n)) +static inline bool page_range_contiguous (const struct page *page, +unsigned long nr_pages) +{ +return true; +}#endif /* to align the pointer to the (next) page boundary */ mm/cma.c +24
-15@@ -780,10 +780,8 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr, unsigned long count, unsigned int align, struct page **pagep, gfp_t gfp) { - unsigned long mask, offset; -unsigned long pfn =-1 ; -unsigned long start =0 ; unsigned long bitmap_maxno, bitmap_no, bitmap_count; +unsigned long start, pfn, mask, offset;int ret = -EBUSY ;struct page *page =NULL ;@@ -795,7 +793,7 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,if (bitmap_count > bitmap_maxno) goto out; -for (;;) { +for (start =0 ; ; start = bitmap_no + mask +1 ) {spin_lock_irq (&cma->lock);/* * If the request is larger than the available number @@ -812,6 +810,22 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,spin_unlock_irq (&cma->lock);break ; } + + pfn = cmr->base_pfn + (bitmap_no << cma->order_per_bit); + page =pfn_to_page (pfn); + +/* +* Do not hand out page ranges that are not contiguous, so +* callers can just iterate the pages without having to worry +* about these corner cases. +*/ +if (!page_range_contiguous (page, count)) { +spin_unlock_irq (&cma->lock); +pr_warn_ratelimited ("%s: %s: skipping incompatible area [0x%lx-0x%lx]" , + __func__, cma->name, pfn, pfn + count -1 ); +continue ; + } +bitmap_set (cmr->bitmap, bitmap_no, bitmap_count); cma->available_count -= count;/* @@ -821,29 +835,24 @@ static int cma_range_alloc(struct cma *cma, struct cma_memrange *cmr,*/ spin_unlock_irq (&cma->lock); - pfn = cmr->base_pfn + (bitmap_no << cma->order_per_bit);mutex_lock (&cma->alloc_mutex); ret =alloc_contig_range (pfn, pfn + count,ACR_FLAGS_CMA , gfp);mutex_unlock (&cma->alloc_mutex); -if (ret ==0 ) { - page =pfn_to_page (pfn); +if (!ret)break ; - }cma_clear_bitmap (cma, cmr, pfn, count);if (ret != -EBUSY )break ;pr_debug ("%s(): memory range at pfn 0x%lx %p is busy, retrying\n" , - __func__, pfn,pfn_to_page (pfn)); + __func__, pfn, page); -trace_cma_alloc_busy_retry (cma->name, pfn,pfn_to_page (pfn), - count, align); -/* try again with a bit different memory target */ - start = bitmap_no + mask +1 ; +trace_cma_alloc_busy_retry (cma->name, pfn, page, count, align); } out: - *pagep = page; +if (!ret) + *pagep = page;return ret; }@@ -882,7 +891,7 @@ static struct page *__cma_alloc(struct cma *cma, unsigned long count,*/ if (page) {for (i =0 ; i < count; i++) -page_kasan_tag_reset (nth_page (page, i)); +page_kasan_tag_reset (page + i); }if (ret && !(gfp & __GFP_NOWARN)) {mm/util.c +20
-0@@ -1280,4 +1280,37 @@ unsigned int folio_pte_batch(struct folio *folio, pte_t *ptep, pte_t pte, {return folio_pte_batch_flags (folio,NULL , ptep, &pte, max_nr,0 ); } + +#if defined(CONFIG_SPARSEMEM ) && !defined(CONFIG_SPARSEMEM_VMEMMAP ) +/** +* page_range_contiguous - test whether the page range is contiguous +* @page: the start of the page range. +* @nr_pages: the number of pages in the range. +* +* Test whether the page range is contiguous, such that they can be iterated +* naively, corresponding to iterating a contiguous PFN range. +* +* This function should primarily only be used for debug checks, or when +* working with page ranges that are not naturally contiguous (e.g., pages +* within a folio are). +* +* Returns true if contiguous, otherwise false. +*/ +bool page_range_contiguous (const struct page *page,unsigned long nr_pages) +{ +const unsigned long start_pfn =page_to_pfn (page); +const unsigned long end_pfn = start_pfn + nr_pages;mm/util.c unsigned int folio_pte_batch(struct folio *folio, pte_t *ptep, pte_t pte, · line 1312
Quoted 10 lines
mm/util.c +10
-0+unsigned long pfn; + +/* +* The memmap is allocated per memory section. We need to check +* each involved memory section once. +*/ +for (pfn =ALIGN (start_pfn,PAGES_PER_SECTION ); + pfn < end_pfn; pfn +=PAGES_PER_SECTION ) +if (unlikely (page + (pfn - start_pfn) !=pfn_to_page (pfn))) +return false;I find this pretty confusing, my test for this is how many times I have to read the code to understand what it's doing :)
So we have something like:
(pfn of page)
start_pfnpfn = align UP
| |
v v
| section |
<----------------->
pfn -start_pfnThen check page + (pfn -
start_pfn) ==pfn_to_page(pfn)And loop such that:
(pfn of page)
start_pfnpfn
| |
v v
| section | section |
<------------------------------------------>
pfn -start_pfnAgain check page + (pfn -
start_pfn) ==pfn_to_page(pfn)And so on.
So the logic looks good, but it's just... that took me a hot second to parse :)
I think a few simple fixups
bool
page_range_contiguous(const struct page *page, unsigned long nr_pages){ const unsigned long start_pfn = page_to_pfn(page); const unsigned long end_pfn = start_pfn + nr_pages; /* The PFN of the start of the next section. */ unsigned long pfn = ALIGN(start_pfn, PAGES_PER_SECTION); /* The page we'd expected to see if the range were contiguous. */ struct page *expected = page + (pfn - start_pfn); /*Quoted 9 lines
* The memmap is allocated per memory section. We need to check * each involved memory section once. */ for (; pfn < end_pfn; pfn += PAGES_PER_SECTION, expected += PAGES_PER_SECTION) if (unlikely(expected != pfn_to_page(pfn))) return false; return true; }
Quoted 2 lines
Hm, I prefer my variant, especially where the pfn is calculated in the for loop. Likely a matter of personal taste.
Sure this is always a factor in code :)
Quoted 3 lines
But I can see why skipping the first section might be a surprise when not having the semantics of
ALIGN()in the cache.
Yup!
Quoted 9 lines
So I'll add the following on top:
mm/util.c +0
-0@@ -1303,8 +1303,10 @@ bool page_range_contiguous(const struct page *page, unsigned long nr_pages)unsigned long pfn;
mm/util.c bool page_range_contiguous(const struct page *page, unsigned long nr_pages) · line 1311
Quoted 10 lines
mm/util.c +4
-2/* -* The memmap is allocated per memory section. We need to check -* each involved memory section once. +* The memmap is allocated per memory section, so no need to check +* within the first section. However, we need to check each other +* spanned memory section once, making sure the first page in a +* section could similarly be reached by just iterating pages. */ for (pfn =ALIGN (start_pfn,PAGES_PER_SECTION ); pfn < end_pfn; pfn +=PAGES_PER_SECTION )
Cool this helps clarify things, that'll do fine!
Quoted 9 lines
Thanks!
--
CheersDavid / dhildenb
Cheers, Lorenzo
Re: [PATCH v1 20/36] mips: mm: convert __flush_dcache_pages() to __flush_dcache_folio_pages()
In reply to David HildenbrandQuoted 30 lines · David Hildenbrand
Quoted 29 lines · Lorenzo Stoakes
Quoted 28 lines · David Hildenbrand
Quoted 26 lines · Lorenzo Stoakes
Quoted 18 lines · David Hildenbrand
Let's make it clearer that we are operating within a single folio by providing both the folio and the page.
This implies that for
flush_dcache_folio()we'll now avoid one morepage->foliolookup, and that we can safely drop the "nth_page" usage.Cc Thomas Bogendoerfer <[email protected]>Signed-off-by David Hildenbrand <[email protected]>--- arch/mips/include/asm/cacheflush.h | 11 +++++++---- arch/mips/mm/cache.c | 8 ++++---- 2 files changed, 11 insertions(+), 8 deletions(-)arch/mips/include/asm/cacheflush.h +0
-0arch/mips/include/asm/cacheflush.h extern void (*flush_cache_mm)(struct mm_struct *mm); · line 53
Quoted 5 lines
arch/mips/include/asm/cacheflush.h +1
-1@@ -50,13 +50,14 @@ extern void (*flush_cache_mm)(struct mm_struct *mm);extern void (*flush_cache_range)(struct vm_area_struct *vma,unsigned long start,unsigned long end);extern void (*flush_cache_page)(struct vm_area_struct *vma,unsigned long page,unsigned long pfn); -extern void __flush_dcache_pages (struct page *page,unsigned int nr); +extern void __flush_dcache_folio_pages (struct folio *folio,struct page *page,unsigned int nr);NIT: Be good to drop the extern.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
I think I'll leave the one in, though, someone should clean up all of them in one go.
This is how we always clean these up though, buuut to be fair that's in mm.
Well, okay, I'll make all the other functions jealous and blame it on you! :P
;)
Quoted 6 lines
--
CheersDavid / dhildenb
Re: [PATCH v1 13/36] mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
In reply to David HildenbrandQuoted 12 lines · David Hildenbrand
We can now safely iterate over all pages in a folio, so no need for the
pfn_to_page().Also, as we already force the refcount in
__init_single_page()to 1, we can just set the refcount to 0 and avoidpage_ref_freeze()+VM_BUG_ON. Likely, in the future, we would just want to tell__init_single_page()to which value to initialize the refcount.Further, adjust the comments to highlight that we are dealing with an open-coded
prep_compound_page()variant, and add another comment explaining why we really need the__init_single_page()only on the tail pages.
Quoted 7 lines
Note that the current code was likely problematic, but we never ran into
it:prep_compound_tail()would have been called with an offset that might exceed a memory section, andprep_compound_tail()would have simply added that offset to the page pointer -- which would not have done the right thing on sparsemem without vmemmap.Signed-off-by David Hildenbrand <[email protected]>
Quoted 54 lines
--- mm/hugetlb.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)mm/hugetlb.c +12
-8@@ -3237,17 +3237,18 @@ static void __init hugetlb_folio_init_tail_vmemmap(struct folio *folio, {enum zone_type zone =zone_idx (folio_zone (folio));int nid =folio_nid (folio); +struct page *page =folio_page (folio, start_page_number);unsigned long head_pfn =folio_pfn (folio);unsigned long pfn, end_pfn = head_pfn + end_page_number; -int ret; - -for (pfn = head_pfn + start_page_number; pfn < end_pfn; pfn++) { -struct page *page =pfn_to_page (pfn); +/* +* We mark all tail pages with memblock_reserved_mark_noinit(), +* so these pages are completely uninitialized. +*/ +for (pfn = head_pfn + start_page_number; pfn < end_pfn; page++, pfn++) {__init_single_page (page, pfn, zone, nid);prep_compound_tail ((struct page *)folio, pfn - head_pfn); - ret =page_ref_freeze (page,1 ); -VM_BUG_ON (!ret); +set_page_count (page,0 ); } }@@ -3257,12 +3258,15 @@ static void __init hugetlb_folio_init_vmemmap(struct folio *folio, {int ret; -/* Prepare folio head */ +/* +* This is an open-coded prep_compound_page() whereby we avoid +* walking pages twice by initializing/preparing+freezing them in the +* same go. +*/ __folio_clear_reserved (folio);__folio_set_head (folio); ret =folio_ref_freeze (folio,1 );VM_BUG_ON (!ret); -/* Initialize the necessary tail struct pages */ hugetlb_folio_init_tail_vmemmap (folio,1 , nr_pages);prep_compound_head ((struct page *)folio,huge_page_order (h)); }Signature · 1 line
2.50.1
Re: [PATCH v1 14/36] mm/mm/percpu-km: drop nth_page() usage within single allocation
In reply to David HildenbrandQuoted 5 lines · David Hildenbrand
We're allocating a higher-order page from the buddy. For these pages (that are guaranteed to not exceed a single memory section) there is no need to use
nth_page().Signed-off-by David Hildenbrand <[email protected]>
Quoted 20 lines
--- mm/percpu-km.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/percpu-km.c +1
-1@@ -69,7 +69,7 @@ static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp) }for (i =0 ; i < nr_pages; i++) -pcpu_set_page_chunk (nth_page (pages, i), chunk); +pcpu_set_page_chunk (pages + i, chunk); chunk->data = pages; chunk->base_addr =page_address (pages);Signature · 1 line
2.50.1
Re: [PATCH v1 17/36] mm/pagewalk: drop nth_page() usage within folio in folio_walk_start()
In reply to David HildenbrandQuoted 4 lines · David Hildenbrand
It's no longer required to use
nth_page()within a folio, so let's just drop thenth_page()infolio_walk_start().Signed-off-by David Hildenbrand <[email protected]>
Quoted 20 lines
--- mm/pagewalk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/pagewalk.c +1
-1@@ -1004,7 +1004,7 @@ struct folio *folio_walk_start(struct folio_walk *fw, found:if (expose_page)/* Note: Offset from the mapped page, not the folio start. */ - fw->page =nth_page (page, (addr & (entry_size -1 )) >>PAGE_SHIFT ); + fw->page = page + ((addr & (entry_size -1 )) >>PAGE_SHIFT );else fw->page =NULL ; fw->ptl = ptl;Signature · 1 line
2.50.1
Re: [PATCH v1 18/36] mm/gup: drop nth_page() usage within folio when recording subpages
In reply to David HildenbrandQuoted 78 lines · David Hildenbrand
Quoted 48 lines · Lorenzo Stoakes
Quoted 4 lines · David Hildenbrand
nth_page()is no longer required when iterating over pages within a single folio, so let's just drop it when recording subpages.Signed-off-by David Hildenbrand <[email protected]>This looks correct to me, so notwithtsanding suggestion below, LGTM and:
Reviewed-by Lorenzo Stoakes <[email protected]>Quoted 10 lines
--- mm/gup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)mm/gup.c +0
-0@@ -488,12 +488,11 @@ static int record_subpages(struct page *page, unsigned long sz, unsigned long addr, unsigned long end,mm/gup.c static int record_subpages(struct page *page, unsigned long sz, · line 495
Quoted 10 lines
mm/gup.c +2
-3struct page **pages) { -struct page *start_page;int nr; - start_page =nth_page (page, (addr & (sz -1 )) >>PAGE_SHIFT ); + page += (addr & (sz -1 )) >>PAGE_SHIFT ;for (nr =0 ; addr != end; nr++, addr +=PAGE_SIZE ) - pages[nr] =nth_page (start_page, nr); + pages[nr] = page++;This is really nice, but I wonder if (while we're here) we can't be even more clear as to what's going on here, e.g.:
static int record_subpages(struct page *page, unsigned long sz,
unsigned long addr, unsigned long end, struct page **pages){ size_t offset_in_folio = (addr & (sz - 1)) >> PAGE_SHIFT; struct page *subpage = page + offset_in_folio; for (; addr != end; addr += PAGE_SIZE) *pages++ = subpage++; return nr; }Quoted 1 line
Or some variant of that with the masking stuff self-documented.
What about the following cleanup on top:
mm/gup.c +0
-13@@ -484,19 +484,6 @@ static inline void mm_set_has_pinned_flag(struct mm_struct *mm)#ifdef CONFIG_MMU #ifdef CONFIG_HAVE_GUP_FAST -static int record_subpages (struct page *page,unsigned long sz, -unsigned long addr,unsigned long end, -struct page **pages) -{ -int nr; - - page += (addr & (sz -1 )) >>PAGE_SHIFT ; -for (nr =0 ; addr != end; nr++, addr +=PAGE_SIZE ) - pages[nr] = page++; - -return nr; -} -/** * try_grab_folio_fast() - Attempt to get or pin a folio in fast path. * @page: pointer to page to be grabbed
mm/gup.c static int gup_fast_pmd_leaf(pmd_t orig, pmd_t *pmdp, unsigned long addr, · line 2953
Quoted 6 lines
mm/gup.c +2
-2@@ -2963,8 +2950,8 @@ static int gup_fast_pmd_leaf(pmd_t orig, pmd_t *pmdp, unsigned long addr,if (pmd_special (orig))return 0 ; - page =pmd_page (orig); - refs =record_subpages (page,PMD_SIZE , addr, end, pages + *nr); + refs = (end - addr) >>PAGE_SHIFT ; + page =pmd_page (orig) + ((addr & ~PMD_MASK ) >>PAGE_SHIFT );
Ah I see we use page_folio() in try_grab_folio_fast() so this being within PMD is ok.
Quoted 29 lines
mm/gup.c +6
-2folio =try_grab_folio_fast (page, refs, flags);if (!folio)@@ -2985,6 +2972,8 @@ static int gup_fast_pmd_leaf(pmd_t orig, pmd_t *pmdp, unsigned long addr, } *nr += refs; +for (; refs; refs--) + *(pages++) = page++;folio_set_referenced (folio);return 1 ; }@@ -3003,8 +2992,8 @@ static int gup_fast_pud_leaf(pud_t orig, pud_t *pudp, unsigned long addr,if (pud_special (orig))return 0 ; - page =pud_page (orig); - refs =record_subpages (page,PUD_SIZE , addr, end, pages + *nr); + refs = (end - addr) >>PAGE_SHIFT ; + page =pud_page (orig) + ((addr & ~PUD_MASK ) >>PAGE_SHIFT ); folio =try_grab_folio_fast (page, refs, flags);if (!folio)@@ -3026,6 +3015,8 @@ static int gup_fast_pud_leaf(pud_t orig, pud_t *pudp, unsigned long addr, } *nr += refs; +for (; refs; refs--) + *(pages++) = page++;folio_set_referenced (folio);return 1 ; }
Quoted 1 line
The nice thing is that we only record pages in the array if they actually passed our tests.
Yeah that's nice actually.
This is fine (not the meme :P)
So yes let's do this!
Quoted 7 lines
--
CheersDavid / dhildenb
Cheers, Lorenzo
Patchwork
CI✗ Fi.CI.BUILD: failure for mm: remove nth_page() (rev3)
In reply to David Hildenbrand== Series Details ==
== Series Details ==
Series: mm: remove nth_page() (rev3)
URL : https://patchwork.freedesktop.org/series/153593/
State : failure
== Summary ==
Error: patch https://patchwork.freedesktop.org/api/1.0/series/153593/revisions/3/mbox/ not applied
Applying: mm: stop making SPARSEMEM_VMEMMAP user-selectable
Applying: arm64: Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
Applying: s390/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
Applying: x86/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
Applying: wireguard: selftests: remove CONFIG_SPARSEMEM_VMEMMAP=y from qemu kernel config
Applying: mm/page_alloc: reject unreasonable folio/compound page sizes in alloc_contig_range_noprof()
Applying: mm/memremap: reject unreasonable folio/compound page sizes in memremap_pages()
Applying: mm/hugetlb: check for unreasonable folio sizes when registering hstate
Applying: mm/mm_init: make memmap_init_compound() look more like prep_compound_page()
Applying: mm: sanity-check maximum folio size in folio_set_order()
Applying: mm: limit folio/compound page sizes in problematic kernel configs
Applying: mm: simplify folio_page() and folio_page_idx()
Applying: mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
Applying: mm/mm/percpu-km: drop nth_page() usage within single allocation
Applying: fs: hugetlbfs: remove nth_page() usage within folio in adjust_range_hwpoison()
Applying: fs: hugetlbfs: cleanup folio in adjust_range_hwpoison()
Applying: mm/pagewalk: drop nth_page() usage within folio in folio_walk_start()
Applying: mm/gup: drop nth_page() usage within folio when recording subpages
error: sha1 information is lacking or useless (mm/gup.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0018 mm/gup: drop nth_page() usage within folio when recording subpages When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Build failed, no error log produced
Re: [PATCH v1 32/36] crypto: remove nth_page() usage within SG entry
In reply to David HildenbrandQuoted 11 lines · David Hildenbrand
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.Cc Herbert Xu <[email protected]>Cc "David S. Miller" <[email protected]>Signed-off-by David Hildenbrand <[email protected]>--- crypto/ahash.c | 4 ++-- crypto/scompress.c | 8 ++++---- include/crypto/scatterwalk.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-)
Thanks,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Re: [PATCH v1 29/36] scsi: scsi_lib: drop nth_page() usage within SG entry
In reply to David HildenbrandDavid,
Quoted 2 lines
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.
Signature · 1 line
Martin K. Petersen
Re: [PATCH v1 30/36] scsi: sg: drop nth_page() usage within SG entry
In reply to David HildenbrandDavid,
Quoted 2 lines
It's no longer required to use
nth_page()when iterating pages within a single SG entry, so let's drop thenth_page()usage.
Signature · 1 line
Martin K. Petersen
Re: [PATCH v1 18/36] mm/gup: drop nth_page() usage within folio when recording subpages
In reply to Lorenzo StoakesQuoted 7 lines
Quoted 3 lines
The nice thing is that we only record pages in the array if they actually passed our tests.
Yeah that's nice actually.
This is fine (not the meme :P)
:D
Quoted 2 lines
So yes let's do this!
That leaves us with the following on top of this patch:
From 4533c6e3590cab0c53e81045624d5949e0ad9015 Mon Sep 17 00:00:00 2001
From: David Hildenbrand <[email protected]>
Date: Fri, 29 Aug 2025 15:41:45 +0200
Subject: [PATCH] mm/gup: remove record_subpages()
We can just cleanup the code by calculating the #refs earlier, so we can just inline what remains of record_subpages().
Calculate the number of references/pages ahead of times, and record them only once all our tests passed.
--- mm/gup.c | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-)
mm/gup.c +8 -17
@@ -484,19 +484,6 @@ static inline void mm_set_has_pinned_flag(struct mm_struct *mm)#ifdef CONFIG_MMU #ifdef CONFIG_HAVE_GUP_FAST -static int record_subpages (struct page *page,unsigned long sz, -unsigned long addr,unsigned long end, -struct page **pages) -{ -int nr; - - page += (addr & (sz -1 )) >>PAGE_SHIFT ; -for (nr =0 ; addr != end; nr++, addr +=PAGE_SIZE ) - pages[nr] = page++; - -return nr; -} -/** * try_grab_folio_fast() - Attempt to get or pin a folio in fast path. * @page: pointer to page to be grabbed
@@ -2963,8 +2950,8 @@ static int gup_fast_pmd_leaf(pmd_t orig, pmd_t *pmdp, unsigned long addr,if (pmd_special (orig))return 0 ; - page =pmd_page (orig); - refs =record_subpages (page,PMD_SIZE , addr, end, pages + *nr); + refs = (end - addr) >>PAGE_SHIFT ; + page =pmd_page (orig) + ((addr & ~PMD_MASK ) >>PAGE_SHIFT ); folio =try_grab_folio_fast (page, refs, flags);if (!folio)
@@ -2985,6 +2972,8 @@ static int gup_fast_pmd_leaf(pmd_t orig, pmd_t *pmdp, unsigned long addr, } *nr += refs; +for (; refs; refs--) + *(pages++) = page++;folio_set_referenced (folio);return 1 ; }
@@ -3003,8 +2992,8 @@ static int gup_fast_pud_leaf(pud_t orig, pud_t *pudp, unsigned long addr,if (pud_special (orig))return 0 ; - page =pud_page (orig); - refs =record_subpages (page,PUD_SIZE , addr, end, pages + *nr); + refs = (end - addr) >>PAGE_SHIFT ; + page =pud_page (orig) + ((addr & ~PUD_MASK ) >>PAGE_SHIFT ); folio =try_grab_folio_fast (page, refs, flags);if (!folio)
@@ -3026,6 +3015,8 @@ static int gup_fast_pud_leaf(pud_t orig, pud_t *pudp, unsigned long addr, } *nr += refs; +for (; refs; refs--) + *(pages++) = page++;folio_set_referenced (folio);return 1 ; }
Signature · 7 lines
2.50.1 -- Cheers David / dhildenb
Patchwork
CI✗ Fi.CI.BUILD: failure for mm: remove nth_page() (rev4)
In reply to David Hildenbrand== Series Details ==
== Series Details ==
Series: mm: remove nth_page() (rev4)
URL : https://patchwork.freedesktop.org/series/153593/
State : failure
== Summary ==
Error: patch https://patchwork.freedesktop.org/api/1.0/series/153593/revisions/4/mbox/ not applied
Applying: mm: stop making SPARSEMEM_VMEMMAP user-selectable
Applying: arm64: Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
Applying: s390/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
Applying: x86/Kconfig: drop superfluous "select SPARSEMEM_VMEMMAP"
Applying: wireguard: selftests: remove CONFIG_SPARSEMEM_VMEMMAP=y from qemu kernel config
Applying: mm/page_alloc: reject unreasonable folio/compound page sizes in alloc_contig_range_noprof()
Applying: mm/memremap: reject unreasonable folio/compound page sizes in memremap_pages()
Applying: mm/hugetlb: check for unreasonable folio sizes when registering hstate
Applying: mm/mm_init: make memmap_init_compound() look more like prep_compound_page()
Applying: mm: sanity-check maximum folio size in folio_set_order()
Applying: mm: limit folio/compound page sizes in problematic kernel configs
Applying: mm: simplify folio_page() and folio_page_idx()
Applying: mm/hugetlb: cleanup hugetlb_folio_init_tail_vmemmap()
Applying: mm/mm/percpu-km: drop nth_page() usage within single allocation
Applying: fs: hugetlbfs: remove nth_page() usage within folio in adjust_range_hwpoison()
Applying: fs: hugetlbfs: cleanup folio in adjust_range_hwpoison()
Applying: mm/pagewalk: drop nth_page() usage within folio in folio_walk_start()
Applying: mm/gup: drop nth_page() usage within folio when recording subpages
error: sha1 information is lacking or useless (mm/gup.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0018 mm/gup: drop nth_page() usage within folio when recording subpages When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Build failed, no error log produced