Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3141624rdb; Wed, 13 Sep 2023 03:30:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHz0RrhUu5PDFJF/ATqrsB7uYHrBYJnXfGs2jJmoSvKRDOSrDtvmULX3oWAXCcDoMPD3fpo X-Received: by 2002:a05:6358:8a0:b0:13c:fc85:6f0b with SMTP id m32-20020a05635808a000b0013cfc856f0bmr2210649rwj.11.1694601003120; Wed, 13 Sep 2023 03:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694601003; cv=none; d=google.com; s=arc-20160816; b=AozaQgviliEF3b+eVoMJ1yS8AUhTkz5v/VtLADAHyrDb0GKoVhT0IFG2lNrck/zPIW 8u+pIFeyJgU7uuCg23ZFV+7vm2zUJHOdCHgzITRDt7d86x4gp1imLCsvKm1EklTh5Y1s NkMpTdlzp3VCYNLxiJd/qsAmPZlMZ3rFqI0cskCca842yC56mJX0v3FpV6UOFO7zEufJ zPRekxcWjRZdKcOsltdjbvppSSXjZblWlY9D2CvfXNu/BuqbxQNaTxv18pMgXLMMaoFS vFHfrdKxWH0VPy/IyD9diAnyvgvMhG+oRZQN5rlnnTf82hR4oD253B1o/szjsEhxzcji EcBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jhuxfaOelCSAUHmKBpNGkZv6UPFV24XhQkp/z4tAWck=; fh=ZyXUptytQD6aWpXgK9Gc/wleHZeHfo7eeP+Rdaxrco0=; b=Fev6DWyzdp6py0BPoD1HoBYTt4V0/eXmKsgtQFX2drryusJl1Z5zu7FZdeT7sqJM6C FqsTTAiAP1W0yUgg2SFgVeVrHP4QkGLxa4V2iIZJNcUDS8dAYsf7wO6k+rrYrc/wBlJm MNgYAQtDKKN90/schKD1YWC8ajT+A/ka378K+Tm3lEMAvq3sKLDoGo6xj9Pp8bhVZ7RS OANVdKcQZz0O76eUUPh2Ux312CaYl2kgrmZhK7EXWZSUDDPH/mw5swzuMm/lzSdgY2l2 R2+F1QU4XPz55bXpERvZStVPy5Gr0zuuTT78fOox/70aYJv90FugQCgKsQGmYbLkqH0h hfew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JZwOIE7V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id i126-20020a639d84000000b00563de4bf5absi10044183pgd.543.2023.09.13.03.29.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 03:30:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JZwOIE7V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 23AF880FF022; Wed, 13 Sep 2023 03:27:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236362AbjIMK1c (ORCPT + 99 others); Wed, 13 Sep 2023 06:27:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235450AbjIMK1b (ORCPT ); Wed, 13 Sep 2023 06:27:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 979A11989; Wed, 13 Sep 2023 03:27:27 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84B55C433C8; Wed, 13 Sep 2023 10:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694600847; bh=V3lpNZExinvJ7sElkKRa9XZCuf6kPmAXcMMplgPNDl4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JZwOIE7VN94u2rpU7L20jZRmjtCK8CdeOqVWc8kTw9OveDj2Ni0wV0l2u1+Gi9B1v pkd0YNIQ56+eiw0NfY+/EWbBPVaUS/ltH+it5KYmv8eLEpQHY0Bxgp0m4gSndrPK6W MycPUViihGLMhB08gSDO6X0B02kbl9P8bfKqm/nnt57qkYxMT4C1nLrcHZDhURqLRy Pi4YhqvIFF4JwThNvXtw2dfk5W2euzxx06/4Z2GzjO2n/4ry67CIfscUeXP+2gH8Gw z/SA/EN03SJHjBLxFayozzs2kEdrvC3DtXQdxjU8NKUQ+5n7cQPGjQlmgL4/h8N2QW EnozEduJy+yxg== Date: Wed, 13 Sep 2023 11:27:21 +0100 From: Will Deacon To: Sudeep Holla Cc: Oza Pawandeep , catalin.marinas@arm.com, rafael@kernel.org, lenb@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH v5] cpuidle, ACPI: Evaluate LPI arch_flags for broadcast timer Message-ID: <20230913102721.GB12021@willie-the-truck> References: <20230912172933.3561144-1-quic_poza@quicinc.com> <20230913083908.dfanwizomj5i536k@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230913083908.dfanwizomj5i536k@bogus> User-Agent: Mutt/1.10.1 (2018-07-13) 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 (morse.vger.email [0.0.0.0]); Wed, 13 Sep 2023 03:27:35 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 morse.vger.email On Wed, Sep 13, 2023 at 09:43:01AM +0100, Sudeep Holla wrote: > On Tue, Sep 12, 2023 at 10:29:33AM -0700, Oza Pawandeep wrote: > > Arm? Functional Fixed Hardware Specification defines LPI states, > > which provide an architectural context loss flags field that can > > be used to describe the context that might be lost when an LPI > > state is entered. > > > > - Core context Lost > > - General purpose registers. > > - Floating point and SIMD registers. > > - System registers, include the System register based > > - generic timer for the core. > > - Debug register in the core power domain. > > - PMU registers in the core power domain. > > - Trace register in the core power domain. > > - Trace context loss > > - GICR > > - GICD > > > > Qualcomm's custom CPUs preserves the architectural state, > > including keeping the power domain for local timers active. > > when core is power gated, the local timers are sufficient to > > wake the core up without needing broadcast timer. > > > > The patch fixes the evaluation of cpuidle arch_flags, and moves only to > > broadcast timer if core context lost is defined in ACPI LPI. > > > > Reviewed-by: Sudeep Holla > > IIRC, Rafael had acked this, perhaps missing the tag ? > Also just add a note to Will/Catalin that Rafael has acked and prefer to > take it via arm64 tree. Is this a fix? If so, please can I have a "Fixes:" tag (and does it need to go into stable?) Will