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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED9C3C7618E for ; Fri, 21 Apr 2023 20:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232976AbjDUU2V (ORCPT ); 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 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