Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp278559ioo; Fri, 20 May 2022 22:03:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweb3XwYZKfbFYk03qM4Lyu6dgBlF0kzp4DgS47DWTBCocnQ/doMgXuo2kGcF6CxJOHBv6W X-Received: by 2002:a17:907:97d5:b0:6fe:af07:65a with SMTP id js21-20020a17090797d500b006feaf07065amr5005372ejc.20.1653109384719; Fri, 20 May 2022 22:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653109384; cv=none; d=google.com; s=arc-20160816; b=ObbwYD/YNyzB2Xr9dt6cj4FwU/LTrQbEmCOLXe9IRx63bwJu6BNROGA4nW4SmG8PHQ cgI58YEMLXlOD2CkwfPrCr2evd9t8+6G450gEtjc2snZl4CreFdXpcU3adTuyrGCGpkf MEM3W44iKotBZdAs/EbVMBsnLRvMJVo0tevzQLDi9nmljdp5ggphFyagWk27a0kKG0pc UcnyGo1M1+LczhOeOS6KspZoiCX2yCE1yFjj2uYYg+s1O6l6x4ldrLEddi5ZDDh75F7f viyB7vb+8gculwntIRIXpC+Ub6RrVZxEpOKY5l/tS3ao0CBgD2hEC9qFtM1x5tIW9Ddo Lzmw== 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:dkim-signature; bh=/UnY8wF6M3CMF1JsRlHNZDZ078eBfzfvzVijhgo1o3I=; b=p8hP6HkAEMFMD3ixL5iv4lQsqqOFdddovm1Y7J9jd3BlrvjBxTKWHIFoFkHMJTMwuo rnUNjg4IU7vQzswoKzX8RfZj32dOoUKhrBuVdP1y2FuQXNgqtWZVzjpkL1ZWrQJU+aop 1uCc0pQCjxvf8RYq4D2kF1GxgwL01kBk5Jgr6Z9+Nm7VgujygEthgBW1mHnKvopvOI+q IxnKXDGpSrt3lICY59LKhBGktdvuJoWZQEFz1Vj0NIae8iFO231ep7IiSuMZ6ZmH+ihU LKXpXPlYWw8m4qfE0TlAfZnTzyi9gvF7eLg5D4rMlJJBdcL+2xVVRTVTp+JUxPjf8yj7 72Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=U64FCHhG; 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 q13-20020a170906770d00b006fe815664e1si9205957ejm.431.2022.05.20.22.02.38; Fri, 20 May 2022 22:03:04 -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=@infradead.org header.s=casper.20170209 header.b=U64FCHhG; 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 S239955AbiESOtB (ORCPT + 99 others); Thu, 19 May 2022 10:49:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239945AbiESOs7 (ORCPT ); Thu, 19 May 2022 10:48:59 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 522B9A2049 for ; Thu, 19 May 2022 07:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/UnY8wF6M3CMF1JsRlHNZDZ078eBfzfvzVijhgo1o3I=; b=U64FCHhG54XDTwOs7d9z8oVZ+Q K03767vckgx8TOTtR3YFZsb2H896pMQ+6Jfy4wX1so4ach2iWBpZ18mSNHV8W4Bb/TonRzlbEbCS3 Cqhujl0qkXTuudwvSN964TIzcciVBLu5ADk1nL6whiTmz7UBsVZFXaMuNeU4T1/uoTtPKwDYNt1p9 nvA1LJfO2YPjOHAhasKayobET8vHqp5AhBNpizNoeysyI3fUuV46B+plyDBN2VOzMwZGkgWheZc5p 5jJUiJb3MkFXszVn/HYs3xFjtJ+8jlvt+0JL1KrF7hdCGLkyIdoHI+HR6wHawuXL0IUM8kmeMc+D1 GulcAS7g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nrhRv-00Cnu1-IL; Thu, 19 May 2022 14:48:23 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 478F2980BD3; Thu, 19 May 2022 16:48:21 +0200 (CEST) Date: Thu, 19 May 2022 16:48:21 +0200 From: Peter Zijlstra To: Frederic Weisbecker Cc: LKML , Phil Auld , Alex Belits , Nicolas Saenz Julienne , Xiongfeng Wang , Neeraj Upadhyay , Thomas Gleixner , Yu Liao , Boqun Feng , "Paul E . McKenney" , Marcelo Tosatti , Paul Gortmaker , Uladzislau Rezki , Joel Fernandes Subject: Re: [PATCH 03/21] rcu: Add a note about noinstr VS unsafe eqs functions Message-ID: <20220519144821.GI2578@worktop.programming.kicks-ass.net> References: <20220503100051.2799723-1-frederic@kernel.org> <20220503100051.2799723-4-frederic@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220503100051.2799723-4-frederic@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Tue, May 03, 2022 at 12:00:33PM +0200, Frederic Weisbecker wrote: > Some RCU functions enter or exit into/from RCU idle mode while using > trace-able and lockdep-aware IRQs (un-)masking. This could be easily > solved with using raw versions of local_irq_*() but we would then > lose some precious debugging informations. > > Another possible way to solve this may consist in using rude RCU-tasks > in lockdep and irqsoff tracing. > > In any case and until this get solved, those RCU functions can't get > tagged as noinstr even though they should. No need to speculate on how to solve it; the generic entry code has alternatives that are good. It's just that reworking your architecture isn't trivial.