Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp50066rdh; Mon, 18 Dec 2023 04:12:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeC4VLX9880EA1ed9N+2APeJQXylwWroyHSUqv/0DvLcUsdl6K59aowqDVqTX6H1S+Ie4O X-Received: by 2002:a05:600c:4f82:b0:40c:4dc5:b2ee with SMTP id n2-20020a05600c4f8200b0040c4dc5b2eemr6035269wmq.149.1702901529212; Mon, 18 Dec 2023 04:12:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702901529; cv=none; d=google.com; s=arc-20160816; b=s29L4qScLrpJ81naMMQ+lMu1u8S13RVxENBqTZJdxs68c3cPql3QMbINwm4ftHtAoD NrQYYfUJeV8mN9r2nvd61z9d1GWP0fu/g7lNDTxHpdhluvOLGyzBP4tc0WTWMpFyJNGm /U/iOTPXZRcnIcopKWXwzPkpDqmZCmcSQOvC6l3jLW0eXoC0XKBdTEIh9pGQANY6f3x0 tc497C+VJt8CWqR/J0AsRDNeewkZNUpeqU5wH2xPDBLQNRO8Eew7s4qOToFzoYxhEtIw KcmChfo5fo87dTyhKXTsz85B3FWXCfamISEo84Vf/dkbtm8kKxUV5L78vPvP2bLQQrxS eELw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=d7hpAbjMnnLH6hvs8PVnMn1a4Br/1esDrFiBhAwAEfY=; fh=GprKv/7BvjdpKpiWVJ8pr27vssvhF+mpv0Ksgw9rWfI=; b=tU6PqWMiDtcHJz/M4mkUEt98qcWgWU9Q+A7XXWdh0dbJiTWoonzZnPBYgu/b2TKOb1 JO3eXQqFK3HCY6nXXUH1KmhbYE/8jaEO83SDzAN/wGVpYFtq1bwDIFTbktsKd/v2o5WK SeOWoKoqAk8yfZ807+6qIf03LwtvMdLkbZZwqf+RgLCl7qfjwhVyRqfNytouEEW6gFux 0pMN4mcnB/YEmlr7iW+KBqTt1rCUSTeXuOzp1SF+vnl9rGsX22iHsmEt8b9Iu5ZBqiUC L1a5LXHJqlCMJadWX6jus1476OVgWOzpRcIY0nSRan2Oe621zE/eeoLAdFFSxg4UYC5r LU5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KH2iKdE3; spf=pass (google.com: domain of linux-kernel+bounces-3542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a19-20020a170906245300b00a23586659e5si779541ejb.484.2023.12.18.04.12.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 04:12:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KH2iKdE3; spf=pass (google.com: domain of linux-kernel+bounces-3542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B96181F20FD8 for ; Mon, 18 Dec 2023 12:12:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8B2251C30; Mon, 18 Dec 2023 12:08:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KH2iKdE3" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D9AE51C36; Mon, 18 Dec 2023 12:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702901321; x=1734437321; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=Fsbhkm0WhCqBZSO9ER+vHQLpTu9zm9tiGz8nMwgYe/w=; b=KH2iKdE3CVcw9eUHoItF7fM9oK6fsAZfJZBu9fQmotkEmjQFK+hA72gH jCNAYUzi7RfjjnjLChvsDInZ6sb418qP57hj5+fQWV7pSr9wmSHYzTX56 jV/QcZ7MeJwDg57XMEtJKLa/x0JIzf+QPNw9kO2oKThrIuO12gs3r+ND3 e5gzDrd1dsTq7XSKwL1/K0elGC4Z/JV3bjyq13ZKRPtDkqzgl3o5EBmUB 8nihh58mrQ2+nvkDDPN1MK7JfewgpI13nXIfBgb7eFJetOT8nxh0B79Nx AgUoA8y0Gp8v6j7ovDLcBfoPT+4cMdjcmqcjmLbrUKLDGTDAsXvkFZYQN Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10927"; a="2324237" X-IronPort-AV: E=Sophos;i="6.04,285,1695711600"; d="scan'208";a="2324237" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 04:08:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10927"; a="775558218" X-IronPort-AV: E=Sophos;i="6.04,285,1695711600"; d="scan'208";a="775558218" Received: from gmarin-mobl1.ger.corp.intel.com ([10.252.34.78]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 04:08:36 -0800 Date: Mon, 18 Dec 2023 14:08:34 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: rjingar cc: irenic.rajneesh@gmail.com, david.e.box@intel.com, Hans de Goede , markgross@kernel.org, platform-driver-x86@vger.kernel.org, LKML Subject: Re: [PATCH 2/2] platform/x86/intel/pmc: Fix in pmc_core_ssram_get_pmc() In-Reply-To: <20231216011702.1976408-1-rajvi.jingar@linux.intel.com> Message-ID: <292ed49e-cb34-7ca8-dbb5-a25857c75ef2@linux.intel.com> References: <20231216011702.1976408-1-rajvi.jingar@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-179285463-1702901318=:2348" 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-179285463-1702901318=:2348 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Fri, 15 Dec 2023, rjingar wrote: > From: Rajvi Jingar > > Passing PMC_IDX_MAIN in pmc_core_pmc_add() adds only primary pmc to pmcdev. > Use pmc_idx instead to add all available pmcs. > > Fixes: a01486dc4bb1 ("platform/x86/intel/pmc: Cleanup SSRAM discovery") > Signed-off-by: Rajvi Jingar > --- > drivers/platform/x86/intel/pmc/core_ssram.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/intel/pmc/core_ssram.c b/drivers/platform/x86/intel/pmc/core_ssram.c > index 3501c7bd6b33..55e54207987c 100644 > --- a/drivers/platform/x86/intel/pmc/core_ssram.c > +++ b/drivers/platform/x86/intel/pmc/core_ssram.c > @@ -287,7 +287,7 @@ pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset) > if (!map) > return -ENODEV; > > - return pmc_core_pmc_add(pmcdev, pwrm_base, map, PMC_IDX_MAIN); > + return pmc_core_pmc_add(pmcdev, pwrm_base, map, pmc_idx); Reviewed-by: Ilpo J?rvinen -- i. --8323329-179285463-1702901318=:2348--