Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2999322rwi; Tue, 1 Nov 2022 14:36:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4u3LcZ9xJkYUmY9CYbIjQXD5ceJ9rJlFDVUpmJyRcF/etdRJIOjHzXjSbmJT6ZEY0YBPzn X-Received: by 2002:a17:907:1c01:b0:78d:eb6e:3807 with SMTP id nc1-20020a1709071c0100b0078deb6e3807mr20519288ejc.481.1667338617028; Tue, 01 Nov 2022 14:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667338617; cv=none; d=google.com; s=arc-20160816; b=rHgq+g5bPPNO1bhs8s77Rou4QT/tWzurl8Nn/pV3CY7HlJGXLOEl9L/D3ncrrPiUNJ HC+XF+Bi8N9gq0qeoWQclZ8bdeLYtwfhX2gErAY7KpuIz0BghPdypfCkVguV5uM1XA13 4FjETiGmeRMMVikYgsAffJb7gf1Hpdo0l4H10dkMMdJhosKOKzuTO87AkP07WCfF+S44 tX/vVyUkndGX8NJu4UgdA/ULG6EVwfbIBwon73CYVI5C63RhstEKz0sRo1Ll+orau/53 VavUrhsVO1Fc74983lMo+05f43DllrAt4I0kn0hKLQWY6EPy2uJl1bFaM5bEvLq94A1+ Xy2A== 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 :user-agent:organization:references:in-reply-to:date:cc:to:reply-to :from:subject:message-id:dkim-signature; bh=1Yf06wD2FuFWs7zKCtGyWBmtI4bG9fqtg8liDUZKx4A=; b=lH4zjQVca72j+l5zMej1gREQdwXeOqIN2sFTcfexbfNCuckVE7LTn8NIYTzHD0zdsv pMiUv0vb7ZwaI3ZpY1NxzlZb7J3/0CHcpaiXj9Jya0Y767mCuIfhM1u6x77b47C9K8fE XaLqiuIQh9Rab1miqhP60fvlyQuoYGS2DblPkK3HkKdBId4h2rhVpYBqtTnybFuL/TMQ XdTzw2kupwiuzEAY/7zcKuiQlzPAEaWo1kEZOUZH4QlhM1xHCLZvVIfvNRrXIiNtBcbN Qlb1O79XQX2nQilxpMXEV7m0ehBPHvXLOP54ROf0h1qB7nQvd50UZF2bcNq/0k54qf+p j1iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jWvXBsMx; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fj4-20020a1709069c8400b0078adad5930esi14211534ejc.255.2022.11.01.14.36.33; Tue, 01 Nov 2022 14:36:57 -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=@intel.com header.s=Intel header.b=jWvXBsMx; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229981AbiKAUa3 (ORCPT + 96 others); Tue, 1 Nov 2022 16:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbiKAUaX (ORCPT ); Tue, 1 Nov 2022 16:30:23 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD1AE1C92C; Tue, 1 Nov 2022 13:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667334622; x=1698870622; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=APQeYjrRT3hLyy+c2ncnyeZeok1od6+0PtsZwGx62ts=; b=jWvXBsMxWvBmNNnAt2/Yd9S4+cKj+OKFdz/6nkba4mwqs2thplT6X48P NbgncmACQsgv45hcwlm3rSvIQ68j8wLnZ8gHgc+YAQ6re6e/soBSPbu7/ O3Hh0wV/s03vI8ooQodfz/WrwalzgXppeStzZyFgXYZyN2uCb2IULq3MV NxHFn2z8Cahkn61iBFEjh2HbVw75/E6//Rk27vZQsWbLV5MJlhCUNxteY ojYOt8G+eq/LYedGjZ9zpNqs2L0u4vnWWFdiEsBmcxFO4M9KWayr2lCyr Oifg/dk929R9v9cdvNuZIxNrxviNZgDGwbLFda2wNqbIeY2pHHNI/j9bq A==; X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="309233501" X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="309233501" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 13:30:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="963255856" X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="963255856" Received: from linux.intel.com ([10.54.29.200]) by fmsmga005.fm.intel.com with ESMTP; 01 Nov 2022 13:30:22 -0700 Received: from ritvikti-mobl.amr.corp.intel.com (unknown [10.212.195.64]) by linux.intel.com (Postfix) with ESMTP id B33A8580AA7; Tue, 1 Nov 2022 13:30:21 -0700 (PDT) Message-ID: Subject: Re: [PATCH v1] platform/x86: intel_pmc_core: promote S0ix failure warn() to WARN() From: "David E. Box" Reply-To: david.e.box@linux.intel.com To: Sven van Ashbrook , "Limonciello, Mario" Cc: Rajat Jain , Rajneesh Bhardwaj , Hans de Goede , LKML , "S-k, Shyam-sundar" , "rrangel@chromium.org" , "platform-driver-x86@vger.kernel.org" , Rafael J Wysocki , David E Box , Mark Gross , "swboyd@chromium.org" Date: Tue, 01 Nov 2022 13:30:21 -0700 In-Reply-To: References: <20221027151908.v1.1.I295e65357f06f162b46ea6fc6c03be37e3978bdc@changeid> <4b7304c0-8dd5-9add-7c84-4e9f0aa9396b@redhat.com> <29e7c8f5-0784-6501-e3fb-f2ab33d3f438@amd.com> Organization: David E. Box Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE 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, 2022-11-01 at 13:24 -0400, Sven van Ashbrook wrote: > On Mon, Oct 31, 2022 at 4:55 PM Limonciello, Mario > wrote: > > I just spun together an RFC series for this idea and while doing it I > > had the same realization. So I left the warning messages in place for > > both drivers. > > > > You can take a look at the series here: > > > > https://lore.kernel.org/platform-driver-x86/20221031204320.22464-1-mario.limonciello@amd.com/T/#m6c7db55c98b8a3ce8c48d451fc01c1d9b0df37fb > > > > We've had some internal discussions within ChromeOS intel big core, > and we believe this is a worthwhile effort, and we are supportive, as > long as our current S0ix fail detection will not break for the > foreseeable future, i.e. as long as the warning message and register > dump stays in place. Which is the case for your RFC. Yeah, I did not see this as a replacement for anything in the pmc drivers. Given the prevalence of S0ix, and that hardware based low power idle support is indicated in the FADT (so part of the standard) it makes sense to have it tracked by the suspend core, particularly when it's being used as a replacement for S3. We don't need to collect any implementation or debug details there. Only detect when it's available, being used for suspend, and being achieved. Maybe residency information as well if available but that's it. Other information is separate and should be contained to the individual drivers which have the detailed platform knowledge. David > > +swboyd@chromium.org who expressed interest in doing something similar for > ARM.