Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3672791rdg; Wed, 18 Oct 2023 02:36:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPtB2A+WTVeg//4WOWZjvn7cZ7uSaPdD+JFYoRGMRiVLsTyMGjGcUuYOlx0WpfHUXoB6B9 X-Received: by 2002:a17:903:32ca:b0:1c7:7c2c:f828 with SMTP id i10-20020a17090332ca00b001c77c2cf828mr7502138plr.8.1697621818497; Wed, 18 Oct 2023 02:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697621818; cv=none; d=google.com; s=arc-20160816; b=giY1rc3VRF85xKDUXSrfsIVV/DGUBigrNC+78PQqR3sJg2c1c4kKZFc/CpGEqZ88D2 J5GjpeCpkOEVrgK+AzrWaEGW4aDFwKfZSCAlfilnOCMVnBN1xFKLFAlzqPvl7X0ViOcQ jE6M1vKhRZnrrCWjRpP5QewA3Pg3Ctc7dFbLqs1rNG6NtgcypDFXWKkU/E/C0qMOpyKv gKv5JiwIBY2kUF+qBdMEqMQV0sFsEvm/2gpAk+LEzLFpu2csi1RnLVfGyVEhbaZtNwMR ZOmsiXobFRGgl3JGFy+PjuVaeLK6qNDHWvCfoUfIahoadwxfoTyq9NtDES9+ru/Z4VRK r6XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=b+I1N4vatnEKpyhu1DlJjugj4SwEjYD9FG5+70FYUCw=; fh=qbSLpETmqHPtiL1wkSyFZPdNaWIPvevps4hFKc90rog=; b=0dO6djIV03iSx8kzSoE3TmH30ah1hkI/UNCg0UKv/x4owNnGqA59nIou1aARe0fZhe iOBCNfdFR7iCRPU5tUP6SKSX9PEsH1TKq9k0pWXE1b/Rhm2s2tS5lL3M8L3WK2YRMbHx hv6zY5OUmbA5z3ohc78RpbPce/zwjMsMt0VJrSWLIP9l2i/LEl/ys/IsXZEOP5YXuw8r SMRjpLPOtq1dsdT15yiF/ULa5+k2ktTd9CF70YrjFtx4/CffHqIGKJw27I/gbrLvhkIo diAwNqGWyj62Z3SzRkp348r7MpwG+GQtr/S4s9i++vBFzQIvYR4UAciCs4UnXe5oP+Kq HpbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id o17-20020a170902779100b001ca1b6f296fsi2200864pll.239.2023.10.18.02.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 02:36:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C78028022719; Wed, 18 Oct 2023 02:36:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbjJRJgr (ORCPT + 99 others); Wed, 18 Oct 2023 05:36:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbjJRJgm (ORCPT ); Wed, 18 Oct 2023 05:36:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B0129D for ; Wed, 18 Oct 2023 02:36:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82AC6C433C7; Wed, 18 Oct 2023 09:36:37 +0000 (UTC) Date: Wed, 18 Oct 2023 10:36:35 +0100 From: Catalin Marinas To: Ryan Roberts Cc: kernel test robot , Will Deacon , Steven Price , Peter Collingbourne , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64/mm: Hoist synchronization out of set_ptes() loop Message-ID: References: <20231005140730.2191134-1-ryan.roberts@arm.com> <202310140531.BQQwt3NQ-lkp@intel.com> <1634d3e0-ac13-4f08-97e3-9b04a9202431@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1634d3e0-ac13-4f08-97e3-9b04a9202431@arm.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 02:36:55 -0700 (PDT) On Wed, Oct 18, 2023 at 09:21:02AM +0100, Ryan Roberts wrote: > On 17/10/2023 13:57, Catalin Marinas wrote: > > On Tue, Oct 17, 2023 at 08:36:43AM +0100, Ryan Roberts wrote: > >> On 16/10/2023 18:54, Catalin Marinas wrote: > >>> On Sat, Oct 14, 2023 at 05:15:51AM +0800, kernel test robot wrote: > >>>> kernel test robot noticed the following build warnings: > >>>> > >>>> [auto build test WARNING on arm64/for-next/core] > >>>> [also build test WARNING on arm-perf/for-next/perf arm/for-next kvmarm/next soc/for-next linus/master v6.6-rc5 next-20231013] > >>>> [cannot apply to arm/fixes] > >>>> [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/Ryan-Roberts/arm64-mm-Hoist-synchronization-out-of-set_ptes-loop/20231005-231636 > >>>> base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core > >>>> patch link: https://lore.kernel.org/r/20231005140730.2191134-1-ryan.roberts%40arm.com > >>>> patch subject: [PATCH v2] arm64/mm: Hoist synchronization out of set_ptes() loop > >>>> config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20231014/202310140531.BQQwt3NQ-lkp@intel.com/config) > >>>> compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > >>>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231014/202310140531.BQQwt3NQ-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/202310140531.BQQwt3NQ-lkp@intel.com/ > >>>> > >>>> All warnings (new ones prefixed by >>): > >>>> > >>>> In file included from net/ipv4/route.c:66: > >>>> In file included from include/linux/mm.h:29: > >>>> In file included from include/linux/pgtable.h:6: > >>>>>> arch/arm64/include/asm/pgtable.h:344:65: warning: parameter 'addr' set but not used [-Wunused-but-set-parameter] > >>>> 344 | static inline void set_ptes(struct mm_struct *mm, unsigned long addr, > >>>> | ^ > >>>> 1 warning generated. > >>> > >>> Thanks for the report. I think something like below will do (I'll test > >>> and commit as a separate patch, it's not something that Ryan's patch > >>> introduces): > >> > >> I was actually just trying to repro this and was planning to send out a v3 of my > >> patch. But if you are happy to handle it as you suggest, then I guess you don't > >> need anything further from me? > > > > If you feel like testing, please give this a go ;) > > Compile tested and observed that warning is gone with your change. Also ran mm > selftests and all looks good. So: > > Tested-by: Ryan Roberts Thanks. I'll push this patch on top of yours. -- Catalin