From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4896EE77188 for ; Mon, 13 Jan 2025 00:55:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE23C6B0085; Sun, 12 Jan 2025 19:55:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B9BE96B0088; Sun, 12 Jan 2025 19:55:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A0B0B6B0089; Sun, 12 Jan 2025 19:55:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 837516B0085 for ; Sun, 12 Jan 2025 19:55:21 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 21F5DC1AD9 for ; Mon, 13 Jan 2025 00:55:21 +0000 (UTC) X-FDA: 83000610042.03.8EB4951 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by imf22.hostedemail.com (Postfix) with ESMTP id 2EC57C0004 for ; Mon, 13 Jan 2025 00:55:18 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="PEQGOP/P"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf22.hostedemail.com: domain of 21cnbao@gmail.com designates 209.85.216.48 as permitted sender) smtp.mailfrom=21cnbao@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736729719; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=DftPL8326UAsz4FZjKeYPUXF6bE+WvYDND7zuo6rld8=; b=qfKMpeNSphLAsKRd2/d5jVivhn+hn2H/p1X459ZsBpbJmpXXygMV8u/w/ViYvULaba7wn0 9wK5NNg18bICjwT9Q1gdPFrtkUm5rbCBAGNaD56aIKs37SPKGPO2c8tqdRYmGZrvi1ZxON i72gNq/66EBBQFrH8GJCeY5PEAnNddU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736729719; a=rsa-sha256; cv=none; b=PvMxoiVm3ydUUCeMLw6qIUHYDTAV55PcU44xb/dLicLjJ0O2Kg0UIzMxUSPclCWcP5VoPz RejzhXCaTk9Go6/Y/GTsGqs1iSEii022QdlqIRnDl1CC88UpbL+qxcUOkh2JJK7WhhFuUI WPzGZZXvxnICmqkMP1SwxJT78riRxwU= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="PEQGOP/P"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf22.hostedemail.com: domain of 21cnbao@gmail.com designates 209.85.216.48 as permitted sender) smtp.mailfrom=21cnbao@gmail.com Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2ef28f07dbaso4997958a91.2 for ; Sun, 12 Jan 2025 16:55:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736729718; x=1737334518; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DftPL8326UAsz4FZjKeYPUXF6bE+WvYDND7zuo6rld8=; b=PEQGOP/PH9l519MHcWz+aP7mCKf1sFCNoBfvulfPgLps7/u7npjp5G7Q63O5M/L6DA pmdQ/vxlOa9JI/x2zlvLp+i0Eo4LGM2CnL05q9uXvhC2HqpZ/fwEc6d1zvUzM+E4cXF6 n7cV+HCax6rXMgwa6qwjS92lTe2551BMxS+Ikdt10QP9YjhkARFDuG3n9oe/QhWN6s9i V8hvRt9tiQCG3q3YK8KU4s1tK/YkL0ogS0XbuSgeoP97DiXDbWknbBkdiFATHcZTBjmn 6Rej2WOx8VxuDY8XwRjQ3QGm/NYpvyDdYtulIUpfdxR7r6xciGiLCH9yk9z4jYDiC+aj Ekpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736729718; x=1737334518; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DftPL8326UAsz4FZjKeYPUXF6bE+WvYDND7zuo6rld8=; b=UoCFpYcW4XQ5eKePuZkL6eWxZ62dwTLxpUQppNYLknrXdeRwGzRVqumA8Z5qf0b/8P y5+Fz6WShPuUPuVvqM04qqMDUG5yuGmbEJT4ePH0Kh06vS1k8Umr2vX7Lo6E5f7M25z2 5fwMNmpOrgLakApZGdvsLrhGtMQ//Z9ygeN3BA8TsriTjsbEKsU5chEz8HnrVHBunTKQ 6Ub7yfr1xa/qVChbP+olGnGZOW0aaaVMDjDSYrc4eUSHX9NTyoH/iWfDs63HODzZA1ag wY0Er0VU6zRzjfm66ZcqHPqF6MLzsUvZ1C1HwprDVavpqPXpSe+3tMm1BXLP9AiG0NJ2 lJTQ== X-Forwarded-Encrypted: i=1; AJvYcCVGNQgf4I2+ysDlfrliLGkj7dm2Kj1sGmNIQ0BOjTnUpbZkFkOJFSjdT/qbLoflb+7bWAORFkumZg==@kvack.org X-Gm-Message-State: AOJu0YyAbFCzkYPdw1vwQ7kIri33ttH30yKJpPTtPUXC9opdfkrzrTCZ UyIgrrgDXEaAjJFghRBpxnHFMNIDBq2qZAkmZ4OM70jWpEH17ojf X-Gm-Gg: ASbGncujb8O60xP9G13w/Hy7qIvWsK1zs7tJKxOE7mmDaF2mbXHoTAynd2Z/tAAKgna 5aJj2VWBtNhfvvw4lFshjn7E+Kk/kMPkpZfWzgcH0JQtusXNxOtVforJ6wKtt28155euDWJVl6s b9O7bHZBnte6+nTScutCEGQ8um5+DQTchtZfV07uUKdxcGNZmavzQ3xt8+fKv6uJR/fUoI6HOSa 5Fp3uL1OyEXzjJs2+0bMhJkpOgvPgzgMSGs3T8mSF0tNqzsgZm1cG68XP+PmpNe1fTKHvFdk25D mtQ= X-Google-Smtp-Source: AGHT+IHJb4rm8dh2mYTH8DrjYzBNHLloKyhUrkK2np0t5gjJsH2XzcUI/ZXVpWr7Siu7WH20wTT76Q== X-Received: by 2002:a17:90a:da88:b0:2ee:f80c:6889 with SMTP id 98e67ed59e1d1-2f548f3fdfbmr21532944a91.33.1736729717704; Sun, 12 Jan 2025 16:55:17 -0800 (PST) Received: from Barrys-MBP.hub ([2407:7000:af65:8200:39b5:3f0b:acf3:9158]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f5593d08a8sm7315585a91.9.2025.01.12.16.55.07 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 12 Jan 2025 16:55:17 -0800 (PST) From: Barry Song <21cnbao@gmail.com> To: lkp@intel.com Cc: 21cnbao@gmail.com, akpm@linux-foundation.org, anshuman.khandual@arm.com, baolin.wang@linux.alibaba.com, bp@alien8.de, catalin.marinas@arm.com, chrisl@kernel.org, dave.hansen@linux.intel.com, david@redhat.com, gshan@redhat.com, hpa@zytor.com, ioworker0@gmail.com, kasong@tencent.com, kirill.shutemov@linux.intel.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mark.rutland@arm.com, mingo@redhat.com, oe-kbuild-all@lists.linux.dev, ryan.roberts@arm.com, shahuang@redhat.com, tglx@linutronix.de, v-songbaohua@oppo.com, wangkefeng.wang@huawei.com, will@kernel.org, x86@kernel.org, ying.huang@intel.com, yosryahmed@google.com, zhengtangquan@oppo.com Subject: Re: [PATCH 2/3] mm: Support tlbbatch flush for a range of PTEs Date: Mon, 13 Jan 2025 13:55:04 +1300 Message-Id: <20250113005504.2271-1-21cnbao@gmail.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <202501061535.zx9E486H-lkp@intel.com> References: <202501061535.zx9E486H-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Stat-Signature: bmf6sf6rmb7c3neqbg9ncndtmjmmm9xk X-Rspamd-Queue-Id: 2EC57C0004 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1736729718-321150 X-HE-Meta: U2FsdGVkX1+6mH0gFz9JwmUJu1UE5l0D4GX1da1d8Yg999B01UDye2iXwLoUHnk/TnsaTo1tMF4aKcvarhg9IXX9TM6kjAoJmbx+PfVoxmJw7/6Z8ND+Rv9r4lGk3APR5hytwgjHhHMLr/X/bzjORcsgIT9/msiNT1nZsPemk/Ioq4JrCW3P9XL/6snSibVHgHO7FUyYA+bdK1wkO8JvX7rm+n2a/240+i5yOJJB97XxvGGCowmBomq9qb2iisZib1j+tGAKHl9NHUpQ7ryh53yHmaJbxaMoUVNsKnq5EO71S4uJ4ge3Rgsl+3IDDOUypwW7Z+qGWl/6DC/G+1ew/fW5bHvJf0ebqkqDq7mOvIM1TXOZ0hHZDIJHZWXPi9SY4QmnDCzO6tGrT8J8EmcWUbB8O88b8nE8pKLyaF/+65Vf6ywpe7p0IKT00TPb4fQ/VsSMO9Av7sKWRP8xzIxvxfSu7A6DKLBSTFJhMM0KFW81pA10IZo40tHXYcSI1mu2pCgkYC3w2555zEz0FSNIn8uhYpZRuBH5CQop3ES6ylEhyELETOwbq5dRYfHMLrJOfZT8/nF+L21Cm8gdAvxQ9csukZZYWFVGOKcTurnxRJ9UAFUQHIk2aab+GlwxURTPIo7hglVOwU4ZOW+52twcP6GKSB6USu4vRDS1RLopdJXb1T4MY0uWVNxPvyYz6cvmbXWVw+k3NXvvc45GuyPuiO051kejVIVAU4VtpAr+J+Ru/9qCCPReeqtF0IoscDWvZBtNYeLwRcah/pHoEaDDQykahxZ20KicSsSBR69PONPH11IGiSkmlp7iZ2PwlHCC3inPZBGG/zmDRYLPwi05XlzgEZ4cYRDDOFOHrWN2KwAqqjErPW4wZ/dsgXutFN7IayIej7nLL2Og1PC1SYUIUaJcy+YedV8NdMvqSy0w2VYlWpx1GhWib2ZqrktDtifmBrXg4EPr1pKuzHZoz0z n+uSWbU2 TjaWx+j8NypwRA+UeecJgzVho4Df/bsOqMUN5U/ETcEbvS60LufPY6aSKbk8WMrne3/f8R9Pt2R1lZfppV7Lfi9KwT159dNKtX3cBp40hkW57tsxSYDLifYA+g1AIhfsP8qVZ89qOqkk1wp+hqrh4ZAuEKcyrMxtxZP3BqQlIl/ykuDdNbMmTp4DY9QAJhoThoEnauepJbo6Kp51ux+AZP/IMqpJOAgGVHDbUOUWH2pW/CGzoPLt4F4CTUBqyLlruN7yUoIx57dynmxW6F4d5X099GV94OorIje0tw3XGvzuWzGBoqWezp02EZNiWPgWm+vMk1+YxlcOPujsQ/Ku+GJZ2qCx8Oyq1J8gJ4o1ouFirzT11rg5qcyyokpW/Vk9mtAiu02vE0jViTOgkoxqBXJvQp76309YTCsHMHscSh2xZfLU+OitXKOW+qcWh94Lgbpa22Kcp9KIT+bsyqStYMGRbsfhXG3NCoicAtWnAOx/HWFpmgsZqJzRWps64IbOf+Y8cQJqIc7Y81CUkS5wo6f0iZEHcfagSWvbYeoECrAhN4gc= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Mon, Jan 6, 2025 at 9:23 PM kernel test robot wrote: > > Hi Barry, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on akpm-mm/mm-everything] > > url: https://github.com/intel-lab-lkp/linux/commits/Barry-Song/mm-set-folio-swapbacked-iff-folios-are-dirty-in-try_to_unmap_one/20250106-112638 > base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything > patch link: https://lore.kernel.org/r/20250106031711.82855-3-21cnbao%40gmail.com > patch subject: [PATCH 2/3] mm: Support tlbbatch flush for a range of PTEs > config: i386-buildonly-randconfig-002-20250106 (https://download.01.org/0day-ci/archive/20250106/202501061535.zx9E486H-lkp@intel.com/config) > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250106/202501061535.zx9E486H-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 > | Closes: https://lore.kernel.org/oe-kbuild-all/202501061535.zx9E486H-lkp@intel.com/ Sorry. My bad, does the below fix the build? diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h index cda35f53f544..4b62a6329b8f 100644 --- a/arch/x86/include/asm/tlbflush.h +++ b/arch/x86/include/asm/tlbflush.h @@ -280,7 +280,7 @@ static inline u64 inc_mm_tlb_gen(struct mm_struct *mm) static inline void arch_tlbbatch_add_pending(struct arch_tlbflush_unmap_batch *batch, struct mm_struct *mm, unsigned long uaddr, - unsignd long size) + unsigned long size) { inc_mm_tlb_gen(mm); cpumask_or(&batch->cpumask, &batch->cpumask, mm_cpumask(mm)); > > All errors (new ones prefixed by >>): > > In file included from arch/x86/include/asm/uaccess.h:17, > from include/linux/uaccess.h:12, > from include/linux/sched/task.h:13, > from include/linux/sched/signal.h:9, > from include/linux/rcuwait.h:6, > from include/linux/percpu-rwsem.h:7, > from include/linux/fs.h:33, > from include/linux/cgroup.h:17, > from include/linux/memcontrol.h:13, > from include/linux/swap.h:9, > from include/linux/suspend.h:5, > from arch/x86/kernel/asm-offsets.c:14: > >> arch/x86/include/asm/tlbflush.h:283:46: error: unknown type name 'unsignd'; did you mean 'unsigned'? > 283 | unsignd long size) > | ^~~~~~~ > | unsigned > make[3]: *** [scripts/Makefile.build:102: arch/x86/kernel/asm-offsets.s] Error 1 shuffle=998720002 > make[3]: Target 'prepare' not remade because of errors. > make[2]: *** [Makefile:1263: prepare0] Error 2 shuffle=998720002 > make[2]: Target 'prepare' not remade because of errors. > make[1]: *** [Makefile:251: __sub-make] Error 2 shuffle=998720002 > make[1]: Target 'prepare' not remade because of errors. > make: *** [Makefile:251: __sub-make] Error 2 shuffle=998720002 > make: Target 'prepare' not remade because of errors. > > > vim +283 arch/x86/include/asm/tlbflush.h > > 279 > 280 static inline void arch_tlbbatch_add_pending(struct arch_tlbflush_unmap_batch *batch, > 281 struct mm_struct *mm, > 282 unsigned long uaddr, > > 283 unsignd long size) > 284 { > 285 inc_mm_tlb_gen(mm); > 286 cpumask_or(&batch->cpumask, &batch->cpumask, mm_cpumask(mm)); > 287 mmu_notifier_arch_invalidate_secondary_tlbs(mm, 0, -1UL); > 288 } > 289 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki