From: kernel test robot <lkp@intel.com>
To: Alexander Gordeev <agordeev@linux.ibm.com>,
Gerald Schaefer <gerald.schaefer@linux.ibm.com>,
Heiko Carstens <hca@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Claudio Imbrenda <imbrenda@linux.ibm.com>,
Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Muhammad Usama Anjum <usama.anjum@arm.com>,
linux-s390@vger.kernel.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com
Subject: Re: [PATCH v8 11/15] s390: Distinguish hardware and software PTEs
Date: Thu, 8 Oct 2026 18:32:15 +0800 [thread overview]
Message-ID: <202610081806.wcWlNqQf-lkp@intel.com> (raw)
In-Reply-To: <c22ed0a2d9ff0f4fff69a17332a377c460d993dc.1791365932.git.agordeev@linux.ibm.com>
Hi Alexander,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v7.3-rc6]
[cannot apply to akpm-mm/mm-everything s390/features kvms390/next next-20261006]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Alexander-Gordeev/mm-introduce-hw_pte_t-for-PTE-table-storage/20261007-134144
base: linus/master
patch link: https://lore.kernel.org/r/c22ed0a2d9ff0f4fff69a17332a377c460d993dc.1791365932.git.agordeev%40linux.ibm.com
patch subject: [PATCH v8 11/15] s390: Distinguish hardware and software PTEs
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20261008/202610081806.wcWlNqQf-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 80cd965b6323b208519f8ab1d5ee86e4ea9862f4)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261008/202610081806.wcWlNqQf-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610081806.wcWlNqQf-lkp@intel.com/
All errors (new ones prefixed by >>):
>> mm/damon/vaddr.c:303:45: error: incompatible pointer types passing 'pte_t *' to parameter of type 'hw_pte_t *' (aka 'struct __hw_pte_t *') [-Wincompatible-pointer-types]
303 | *entry = huge_ptep_get_and_clear(mm, addr, pte, psize);
| ^~~
arch/s390/include/asm/hugetlb.h:34:40: note: passing argument to parameter 'ptep' here
34 | unsigned long addr, hw_pte_t *ptep,
| ^
mm/damon/vaddr.c:305:28: error: incompatible pointer types passing 'pte_t *' to parameter of type 'hw_pte_t *' (aka 'struct __hw_pte_t *') [-Wincompatible-pointer-types]
305 | set_huge_pte_at(mm, addr, pte, *entry, psize);
| ^~~
arch/s390/include/asm/hugetlb.h:22:18: note: passing argument to parameter 'ptep' here
22 | hw_pte_t *ptep, pte_t pte, unsigned long sz);
| ^
>> mm/damon/vaddr.c:318:40: error: incompatible pointer types passing 'hw_pte_t *' (aka 'struct __hw_pte_t *') to parameter of type 'pte_t *' [-Wincompatible-pointer-types]
318 | referenced = damon_hugetlb_ptep_mkold(pte, mm, vma, addr, &entry);
| ^~~
mm/damon/vaddr.c:296:45: note: passing argument to parameter 'pte' here
296 | static bool damon_hugetlb_ptep_mkold(pte_t *pte, struct mm_struct *mm,
| ^
3 errors generated.
vim +303 mm/damon/vaddr.c
3f49584b262cf8 SeongJae Park 2021-09-07 294
49f4203aae06ba Baolin Wang 2022-01-14 295 #ifdef CONFIG_HUGETLB_PAGE
39c0ceedd54557 SJ Park 2026-09-07 296 static bool damon_hugetlb_ptep_mkold(pte_t *pte, struct mm_struct *mm,
39c0ceedd54557 SJ Park 2026-09-07 297 struct vm_area_struct *vma, unsigned long addr, pte_t *entry)
39c0ceedd54557 SJ Park 2026-09-07 298 {
39c0ceedd54557 SJ Park 2026-09-07 299 unsigned long psize = huge_page_size(hstate_vma(vma));
39c0ceedd54557 SJ Park 2026-09-07 300
39c0ceedd54557 SJ Park 2026-09-07 301 if (!pte_young(*entry))
39c0ceedd54557 SJ Park 2026-09-07 302 return false;
39c0ceedd54557 SJ Park 2026-09-07 @303 *entry = huge_ptep_get_and_clear(mm, addr, pte, psize);
39c0ceedd54557 SJ Park 2026-09-07 304 *entry = pte_mkold(*entry);
39c0ceedd54557 SJ Park 2026-09-07 305 set_huge_pte_at(mm, addr, pte, *entry, psize);
39c0ceedd54557 SJ Park 2026-09-07 306 return true;
39c0ceedd54557 SJ Park 2026-09-07 307 }
39c0ceedd54557 SJ Park 2026-09-07 308
6ecdfd6e16f5f4 Muhammad Usama Anjum 2026-10-07 309 static void damon_hugetlb_mkold(hw_pte_t *pte, struct mm_struct *mm,
49f4203aae06ba Baolin Wang 2022-01-14 310 struct vm_area_struct *vma, unsigned long addr)
49f4203aae06ba Baolin Wang 2022-01-14 311 {
49f4203aae06ba Baolin Wang 2022-01-14 312 bool referenced = false;
e6c0c03245b14d Christophe Leroy 2024-07-02 313 pte_t entry = huge_ptep_get(mm, addr, pte);
6b7cea90c82e10 Kefeng Wang 2022-12-30 314 struct folio *folio = pfn_folio(pte_pfn(entry));
49f4203aae06ba Baolin Wang 2022-01-14 315
6b7cea90c82e10 Kefeng Wang 2022-12-30 316 folio_get(folio);
49f4203aae06ba Baolin Wang 2022-01-14 317
39c0ceedd54557 SJ Park 2026-09-07 @318 referenced = damon_hugetlb_ptep_mkold(pte, mm, vma, addr, &entry);
49f4203aae06ba Baolin Wang 2022-01-14 319 if (mmu_notifier_clear_young(mm, addr,
49f4203aae06ba Baolin Wang 2022-01-14 320 addr + huge_page_size(hstate_vma(vma))))
49f4203aae06ba Baolin Wang 2022-01-14 321 referenced = true;
49f4203aae06ba Baolin Wang 2022-01-14 322
49f4203aae06ba Baolin Wang 2022-01-14 323 if (referenced)
6b7cea90c82e10 Kefeng Wang 2022-12-30 324 folio_set_young(folio);
49f4203aae06ba Baolin Wang 2022-01-14 325
6b7cea90c82e10 Kefeng Wang 2022-12-30 326 folio_set_idle(folio);
6b7cea90c82e10 Kefeng Wang 2022-12-30 327 folio_put(folio);
49f4203aae06ba Baolin Wang 2022-01-14 328 }
49f4203aae06ba Baolin Wang 2022-01-14 329
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-10-08 10:33 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-07 11:41 [PATCH v8 00/15] s390/mm: Batch PTE updates in lazy MMU mode Alexander Gordeev
2026-10-07 11:41 ` [PATCH v8 01/15] mm: introduce hw_pte_t for PTE table storage Alexander Gordeev
2026-10-07 11:55 ` sashiko-bot
2026-10-07 11:41 ` [PATCH v8 02/15] mm: rename pointers to software PTE values as ptentp Alexander Gordeev
2026-10-07 11:54 ` sashiko-bot
2026-10-07 11:41 ` [PATCH v8 03/15] mm: use hw_pte_t for generic PTE table storage Alexander Gordeev
2026-10-07 12:02 ` sashiko-bot
2026-10-07 11:41 ` [PATCH v8 04/15] mm: convert PTE table entries in ptep_get() Alexander Gordeev
2026-10-07 11:55 ` sashiko-bot
2026-10-07 11:41 ` [PATCH v8 05/15] mm: convert PTE table entry to pte Alexander Gordeev
2026-10-07 11:50 ` sashiko-bot
2026-10-07 11:41 ` [PATCH v8 06/15] mm: add hw_pte_val for HW PTE storage Alexander Gordeev
2026-10-07 11:51 ` sashiko-bot
2026-10-07 11:41 ` [PATCH v8 07/15] mm/kasan: use hw_pte_t for the early shadow PTE table Alexander Gordeev
2026-10-07 11:49 ` sashiko-bot
2026-10-07 11:41 ` [PATCH v8 08/15] drm/i915: use hw_pte_t for PTE range callbacks Alexander Gordeev
2026-10-07 11:51 ` sashiko-bot
2026-10-07 11:41 ` [PATCH v8 09/15] xen: " Alexander Gordeev
2026-10-07 11:52 ` sashiko-bot
2026-10-07 11:41 ` [PATCH v8 10/15] s390/mm: Cleanup pXXp_flush_lazy() routines Alexander Gordeev
2026-10-07 11:52 ` sashiko-bot
2026-10-13 13:31 ` Gerald Schaefer
2026-10-13 14:43 ` Heiko Carstens
2026-10-07 11:41 ` [PATCH v8 11/15] s390: Distinguish hardware and software PTEs Alexander Gordeev
2026-10-07 11:57 ` sashiko-bot
2026-10-07 12:01 ` Alexander Gordeev
2026-10-08 10:32 ` kernel test robot [this message]
2026-10-07 11:41 ` [PATCH v8 12/15] mm: Make lazy MMU mode context-aware Alexander Gordeev
2026-10-07 11:53 ` sashiko-bot
2026-10-07 11:41 ` [PATCH v8 13/15] s390/mm: Batch PTE updates in lazy MMU mode Alexander Gordeev
2026-10-07 12:06 ` sashiko-bot
2026-10-08 6:32 ` Alexander Gordeev
2026-10-07 11:41 ` [PATCH v8 14/15] mm/kasan: Introduce helpers for lazy MMU mode sanitizer Alexander Gordeev
2026-10-07 11:56 ` sashiko-bot
2026-10-07 20:24 ` kernel test robot
2026-10-07 20:35 ` kernel test robot
2026-10-08 1:11 ` kernel test robot
2026-10-07 11:41 ` [PATCH v8 15/15] s390/mm: Lazy " Alexander Gordeev
2026-10-07 11:53 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202610081806.wcWlNqQf-lkp@intel.com \
--to=lkp@intel.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gerald.schaefer@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kasan-dev@googlegroups.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-s390@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ryabinin.a.a@gmail.com \
--cc=usama.anjum@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.