Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26575697rwd; Mon, 3 Jul 2023 11:35:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlG70LcZuf/2X9aPMuJGeInQFOaeljRB/cXqPQIWQYvEIRgZldBdXRHLkANKBgOVYsVF2iNo X-Received: by 2002:a05:6a00:2d06:b0:672:264c:e8cf with SMTP id fa6-20020a056a002d0600b00672264ce8cfmr11907890pfb.7.1688409311870; Mon, 03 Jul 2023 11:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688409311; cv=none; d=google.com; s=arc-20160816; b=f8E83QDXKOoBMrWDSjEKRsohzgao8fI7NSo8JY9NHXRQtem5Y1/Gs5JE1/eomkxJ+N 2nRIx+ix3ZtJOZLbODl1eBOck10Uo+mVjWQL/PQyFsn9dptYSKyNjX7T0Ss2e4OuQ14Y mASJaGg10oD4L3wa8/6rquqfkGxZKf2RKluCkFUr5tHpe4JJa847kdhDx2qEF77hXo7K FULFwRSquitLqJ7ZXTWMorWa73xBQYGLRrPNynVJLqPXFkMPZ3Cp6WsHa85kIY4R8HT1 65wUzOQGordkLLSivFL2kXwZsvAR8niN9/GL7jMKjCZFdWatplnsQ0pezNYfxPQP8FpJ 4FQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=Zk6jWIKfxALkH5YWG9XODZj23fNJc2D4nFUwyOlmNpw=; fh=TJFLcNyeWFCukBQbdn4GeHRW4k/NTcCdkJFTIocyTEY=; b=F2XonpSQOOcwXCMCStbVPoOe5Tnoa0UkicxOM2mYVdO8rQrKJqYNL5b2IhuEKET494 lYgUcwDQX/L2oZ9RZ4pKbTBsd1GVWtHtxc9Gr8ZYMRBBfMS2mJXO6G7JBgL2Clt0XEXF sJ4XPdtZiE1ckw8rdYVhFvZQHMeHC2lFVY4nKbdKuIyevMZ3ezXrrU0r0tQsTGJu3gDO MCzz1s6dtv8x/+QnTK1tJ3Sbuvy+rNHGzNDlVJ2rxE/WxyVr+g/tRg845LSZE/DMHZn8 DACRuzEtrzhN12p2f7PRY8wOVVqI8Sw7YwfvMJxvHs2rvut7zQDYET5xIDhzWZ4xbJCq 93CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=HsuoTLXT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f50-20020a056a000b3200b00670db3b5032si16456386pfu.333.2023.07.03.11.34.56; Mon, 03 Jul 2023 11:35:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=HsuoTLXT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230294AbjGCSLi (ORCPT + 99 others); Mon, 3 Jul 2023 14:11:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230513AbjGCSLc (ORCPT ); Mon, 3 Jul 2023 14:11:32 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 443ABE75 for ; Mon, 3 Jul 2023 11:11:29 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1b80b343178so26763425ad.0 for ; Mon, 03 Jul 2023 11:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1688407888; x=1690999888; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=Zk6jWIKfxALkH5YWG9XODZj23fNJc2D4nFUwyOlmNpw=; b=HsuoTLXTUY3IpeT6bR1dj7J6LGfIS/eQiwYegMg+JPrgQbnJcjJho7BSgm+okN/KNl 7hjS+jJRDiI8EqMjqwECoEAWa4MEB4wmIgzDkFy9V18m9biZitc8gHYdXzHCojUeG+Rj pMHdm+xGC6FN+onR+wygpBsE4U+Tj7x1vRvxQN5qbh0Vt7OPLuI+HBxdoJThfFuDYjR1 5aiumOcYsk+SC74OBOxl1tAdUaphoZ846oi0s1E5x9xWCQoMniZpoTp7H+xqlEt6ef2O rCN5Vu8xIZ5S2ce9iZCoWLlTdZp6b/R61sm7MyxtNZerPu7N11lppbVKoXt+Ee9yZ2o+ VPFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688407888; x=1690999888; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Zk6jWIKfxALkH5YWG9XODZj23fNJc2D4nFUwyOlmNpw=; b=h3LR6YXNYBywUzjrpMIhouK3oFivg7RgaEhQfmjwnmShv58xWYG9yl/3r0rHXbm/kq EllFVdTYO+Wb5tehM/Qq2dVjv/HVU3hVDksi1MgZzKmRDpNn9ORbz9a2A4Ddno6zzAVN 4oONvPW0rt/GdFVdwHyIa57QC0Bf5dXX5TQ9ZzJaYmGF1TuTuC9Vy5MEZkrWNWfCUW+a j/6OOfDQkkdkCrhnr2DLl8ChYr2tGjLE9mYZ78SqMF6WlMY0T0pyroFa3HwR6Hkm3a/w qb7GbJnwlzPh/fj6BdNDEpa9vvy5x0hCCMQjOdX357Jwffp+Xpxuva3QpeOObiBSGco8 IjOg== X-Gm-Message-State: ABy/qLafgjCB4l5CrHAIS6PI/eUMfoLpqg6gQEYquJxgGNFotWSGXqL5 eCP3UAYURS9KODExOFOkfQLmxA== X-Received: by 2002:a17:903:1210:b0:1b5:5192:fa15 with SMTP id l16-20020a170903121000b001b55192fa15mr10334920plh.20.1688407888286; Mon, 03 Jul 2023 11:11:28 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id k16-20020a170902761000b001b3f9a5d4besm15572309pll.255.2023.07.03.11.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:11:27 -0700 (PDT) Date: Mon, 03 Jul 2023 11:11:27 -0700 (PDT) X-Google-Original-Date: Mon, 03 Jul 2023 11:11:25 PDT (-0700) Subject: Re: [mm] 408579cd62: WARNING:suspicious_RCU_usage In-Reply-To: CC: Marc Zyngier , Conor Dooley , apatel@ventanamicro.com, oliver.sang@intel.com, Liam.Howlett@oracle.com, linux-kernel@vger.kernel.org, lkp@lists.01.org, lkp@intel.com From: Palmer Dabbelt To: Linus Torvalds Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 03 Jul 2023 10:46:55 PDT (-0700), Linus Torvalds wrote: > On Mon, 3 Jul 2023 at 10:34, Marc Zyngier wrote: >> >> Comparing with what we do on arm64, a less radical change would be to >> move the IPI init after notify_cpu_starting(), which explicitly >> enables RCU usage. > > Ack, that looks right to me. I don't see anything wrong with it and it's passing my tests, but we've got a handful of ways to boot so it's all a bit messy and I might be messing something. I'm still catching up a bit as I took both days off this weekend. Hopefully just an oversight in a bigger rafactoring, but I'll give it another look. Marc: are you going to send that as a patch?