Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp365546rdh; Thu, 23 Nov 2023 06:09:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQEi7zjeHNBa/xY7/hK3OPbDHg5nUzxXArvlyMhcEPJUbS+OykAGN2tveGzK/d9g7dKa8P X-Received: by 2002:a17:902:d4ca:b0:1c9:aac5:df30 with SMTP id o10-20020a170902d4ca00b001c9aac5df30mr5459463plg.66.1700748567878; Thu, 23 Nov 2023 06:09:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700748567; cv=none; d=google.com; s=arc-20160816; b=uuu7T77uU/yNZXkfp8olzgLS6ApzJmP14UW4CKN/3/aQMF5kycAl4s3h2iO+peyHxG vTJaDdZqR2wAg6glxhUsueJyJvo6Xyiq/2q3gQEGGnoRl+2McUvIMi4yWgWPwVtnP2iR TyR2QHW8sjjnMD3JzHEEC4oUSBxP1zIyFAWDuEYoKU6K2AXcnz7Go6HhRbQB9v/Q4QTW sto9Dx6LNHGktIaD6iPbEMLpz9Lunagxw/Rk6yR7yUGn0yTXE96jFA5L7IxSe+duVy5r mm0e91KDSYNfKex+LmesVluGvYuObTCw+S3eINM+bt895bHL7zwoap6MjnKwdQ9KK5rw S6VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=N3IaTbjI1CqlD2dS0qhGDIvQ6u6sIWTNUEJB+zCDE1g=; fh=mOqrdtzLxfRdhx+JUcCLIFZwj5ZpRA4B+MTwRGfrWMA=; b=kwjofOIigy/Jm6T2KBYvbIJALCQPMjY+kuFUzdz60KBMJmN1sck8jYuMs6fVj4FYzf 2rIzDVl5zgcG2VCtQ6GQ376WI+Ks7IZ2Ypegw0k0dggyNFuZuS0m2k716DZQM60Qfwy2 GcaMaiFf7y85bELLlBCsoLruidivLd5JqY5I5xRUtXpBzjiKtvINUFdGVhgbAm5vTMHh XoZUwde5MAHwKnGkQR18IKhLeeFEDF9DuhCS60YqaC9ha2bOnpq0J8+wk5xEylELKO+y GkS870bw3ch0OTBTZSqadnG79Y7on5p/cApc0L3XQx0l8HfxsECoIkC8FTIkF9Btt3gz F18w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BSOaDJdd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id x5-20020a170902ec8500b001c6189eaadesi1244828plg.132.2023.11.23.06.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:09:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BSOaDJdd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id EA479827B49C; Thu, 23 Nov 2023 06:08:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345700AbjKWOIW (ORCPT + 99 others); Thu, 23 Nov 2023 09:08:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345693AbjKWOIV (ORCPT ); Thu, 23 Nov 2023 09:08:21 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D231BD; Thu, 23 Nov 2023 06:08:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700748507; x=1732284507; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=umwDKZhXx2hLm7DW386Y1ZZ1CWEgbWF3n/PNhEesmmM=; b=BSOaDJddjAEfZsRpCzksWMDGyhD7fmQq9dUiJJ1X3m41aPXF9bi/SB/Y KGJl3YB2t6lC+H2aRsJ/fEEnafVqkiFovrKKMfHx/wadi6TVQnIxYjGTr PWSZ+ZwPZJAom7jTVNP9MrUOgvhg/A86jDOYu59LEMArQ5O2gZtiMZIik voKtMsgYeHN+xbXtx4a378boGf6nLc87/POR1W9V/X7E2UJzKGC9IHF15 WFY/z9AJewMsrsvcAWCLqQbxK1czcyYk1DMfVk2t9dPcXZV9HjFApAAaU e94mgA5QNuYq4BK+95WZyPssGw56Z82s7g4+n8FjmZzZahKmQM6QsgwYr w==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="377296321" X-IronPort-AV: E=Sophos;i="6.04,221,1695711600"; d="scan'208";a="377296321" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 06:08:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="1098833895" X-IronPort-AV: E=Sophos;i="6.04,221,1695711600"; d="scan'208";a="1098833895" Received: from mstrobel-mobl.ger.corp.intel.com ([10.252.40.70]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 06:08:25 -0800 Date: Thu, 23 Nov 2023 16:08:23 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: "David E. Box" cc: LKML , platform-driver-x86@vger.kernel.org, rajvi.jingar@linux.intel.com Subject: Re: [PATCH V5 16/20] platform/x86/intel/pmc: Display LPM requirements for multiple PMCs In-Reply-To: <20231123040355.82139-17-david.e.box@linux.intel.com> Message-ID: References: <20231123040355.82139-1-david.e.box@linux.intel.com> <20231123040355.82139-17-david.e.box@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-2093636943-1700748506=:1676" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 06:08:35 -0800 (PST) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-2093636943-1700748506=:1676 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Wed, 22 Nov 2023, David E. Box wrote: > From: Rajvi Jingar > > Update the substate_requirements attribute to display the requirements for > all the PMCs on a package. > > Signed-off-by: Rajvi Jingar > Signed-off-by: David E. Box > --- This change looked fine. However, I spent considerable time in figuring out the addition of lpm_req_regs NULL check so it would be nice to mention it in the commit message that since the caller's primary_pmc->lpm_req_regs check no longer covers all pmcs, it has to checked within the loop. It's was far from obvious whether it was a bugfix accidently mixed together with this patch or required by this change itself but I managed to finally convince myself it's the latter. With that noted down for the benefit of the next unfortunate victim who has to read this change from the git history, :-) Reviewed-by: Ilpo J?rvinen -- i. --8323329-2093636943-1700748506=:1676--