Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2764007rwr; Fri, 21 Apr 2023 13:47:35 -0700 (PDT) X-Google-Smtp-Source: AKy350bnwej8mRR5CzooECduuPsfzgePLbPHi4OBYAdkBigA5+rMRnteigYNwp23RuoJYGOdIc9B X-Received: by 2002:a17:90a:354:b0:23d:1bef:8594 with SMTP id 20-20020a17090a035400b0023d1bef8594mr5838650pjf.1.1682110055653; Fri, 21 Apr 2023 13:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682110055; cv=none; d=google.com; s=arc-20160816; b=wVuWawm6/x4ZJERxId/cqya704uFguicxamkz+90G+g2+X/PnbkQKmWKQrU7EYjIjy pf6eMXz9+McZriScszO1JUNVFzp95rX631LvLPmSBTWt99RuFsVFQOklnDSwBaaSZzyD Y5cjKY0W6qyRWVsNauMpABajhRoLwMk9duIsWwH5Lg2m5LuBRd+ZDJ+yXeuEdJSpV1Ur yFo9uQjTl3Tq38nkhotHe/FMBal3D16cchw36FPcdeRNW7304OlRf8xrkJ12lPufrs5b VkXpDqjjalVSlrxNF8J7yTKGLD08VYjCgPf6sUV+sIeeJsXEuzPZyDlnahNIcQAWl1cr ilHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=JI7ghwB60oMagdu7Y4eAitqD3tX1oyMmnXoP24a20tM=; b=WzoKQEWTszVG5DiCzc/ybGteOIGWrMwUrsn+23GoFvRsTJe5mexb3ppto8P5q4QCPc L2o/Oi2bkmXGhI0Jor+rwqMza2vKIazoiuvWiVvg6CV84DU3l16AdCYWFwix4UJX72w9 AlnQwfN4RRxUoZwBwK4GLUmzPYJ7M5PQ6sLB/bcJXcVkMxov8WzsAFhlAUIB8vTQzURD GaeWGDhZufWZ3fN/iziYssgVk9nsbaX8tQhbSE0PgB6f6FzghMrgEkNThwTQA4Wl8oC+ AdfGBsTcwKGCzp4bzzynYSnLwdKYpiBtFqyEepMsSGgjnzlaAbsQNiflukfVKxNhVazG Axxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0kLRQ1gf; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=ZsX6s4nM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce21-20020a17090aff1500b00246bdd45f1csi5399309pjb.33.2023.04.21.13.47.24; Fri, 21 Apr 2023 13:47:35 -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=@linutronix.de header.s=2020 header.b=0kLRQ1gf; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=ZsX6s4nM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232640AbjDUU2V (ORCPT + 99 others); Fri, 21 Apr 2023 16:28:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbjDUU2T (ORCPT ); Fri, 21 Apr 2023 16:28:19 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3C101730 for ; Fri, 21 Apr 2023 13:28:18 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1682108896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JI7ghwB60oMagdu7Y4eAitqD3tX1oyMmnXoP24a20tM=; b=0kLRQ1gf1Sdu2o1z8yEDN0c6EOY8Ae/lP/X2jXYKehyoWBCmWbZXfIgScKNTzJY7i56k2c xSEXiIgIGf9o4PhnuxcZObn5v/CbaEnfu/PlUrxhu1rOtf2QaPqvGGJ3PISTLqMzYc74OB 6T54mn+wgtUbBUywAVteIj6F7wc3Z6E1+EiRjOMEoBr/Ofqwvo8lZ1Hsfzq4JDWhI3B7GA oDBeGRpvbhkG0/SQOwszR4h4S6D1kZHdGReRn80HcSSSPiQefrAF/G7nTHISSHwKtVplDe zeIGUMjyiJnt3WWgRfJLGbyqzXWW/3arxUEMe1SwA+YJbnIo5MCBqS8OOyOAxw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1682108896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JI7ghwB60oMagdu7Y4eAitqD3tX1oyMmnXoP24a20tM=; b=ZsX6s4nMtJICTg8yewqdPARIQF02Q8zdfT+NRGplgu/YRrHnuWlQJ0BvABK0ULUW4lI6FA XgpvRAK884bH4WBg== To: Frederic Weisbecker Cc: Huacai Chen , WANG Xuerui , Peter Zijlstra , "Rafael J. Wysocki" , Anna-Maria Behnsen , LKML Subject: Re: Loongson (and other $ARCHs?) idle VS timer enqueue In-Reply-To: References: <87leil2r7v.ffs@tglx> Date: Fri, 21 Apr 2023 22:28:15 +0200 Message-ID: <87pm7x0ylc.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain 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_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Apr 21 2023 at 18:55, Frederic Weisbecker wrote: > On Fri, Apr 21, 2023 at 05:24:36PM +0200, Thomas Gleixner wrote: >> It's far from trivial because you'd need correlation between the >> interrupt entry and the enter to and return from arch_cpu_idle(). >> >> I fear manual inspection is the main tool here :( > > I thought so :) > > I'm already halfway through the architectures, then will come the cpuidle drivers... For objtool covered architectures you might come up with some annotation which allows objtool to yell, when it discovers a local_irq_enable() or such at the wrong place. Thanks, tglx