Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp272844rdh; Mon, 18 Dec 2023 20:23:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHM2RhdQDgo3jwKmfK7BJaUF/bS+gz+8EnoFfj/JyzzWc7uwgB7BiY6U5h+Qx91ibcTPwyl X-Received: by 2002:a05:6512:31d2:b0:50b:f0a2:25dd with SMTP id j18-20020a05651231d200b0050bf0a225ddmr10000314lfe.3.1702959794256; Mon, 18 Dec 2023 20:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702959794; cv=none; d=google.com; s=arc-20160816; b=VxrGqaHPgHuh+7j2PoUsozedWGCD+4XucxAxbPmz2qojVlgQkYYLy0XM+rkOyouAcm j0+fTDZJIinUXtQtJwBj0rnhJhSjCVGIUCJN/8SobR0DC/Th495MQ7sFm/m0oBXjaNde v4moPCeiOA1WvNZWvt2v6a4mAQt93JVhR+EPD69H9KgiYRvRSf8sqhZMFc7X0XQBTqey kTTID/cMZ2IihBRYom90qs5pUKB/wd32ZR3GZ31q/jnx9ftEwODUFUij0hmretPyMVQF fzjQmjeKhNdMlX8Md2OoNEDT+/iRLdQbiGdpgx1aYcUOVIDyGQnpxtZCT88hs7ZqbPA6 njYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pSC4nKvcx9wgSUCfIeR/qDiblWSiv8CzXpO0PMvrzdQ=; fh=bwOTmuPm4Qwa90FsyEJN8f+rOpKaop2vGXMZlgN+vfc=; b=032gGQPAveAEi44OcBP2rvDAWYJZ/iviDgzEooh5FIcZDlNcbaFeI1GHHyeiKO1uoQ ToCFR2UYxuhESmDvBi+GlYdFYl3aq2x0X4AvnJPrhsxQQPjQREsrpf3bBgLhKuAYMCef 8cwshTCPidHKiSpLir41KbV08P39H8CVs1h0Wuwq5HH01sanqBozYqNl76wL0XIGEwJl DX+wk79hvQN4/KuFVM1lcZVSY/o98e7xE9U7jtl4C624Hj2WA9mz2w0DvzeWS5d5K86Z gOGqqK2N9NBqqVEsKphYo5bs37dF77sCaKt2HOetgmb+JLkLSQZLRn9c5+Iv8uaZnDh0 U3YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QhRV1KcG; spf=pass (google.com: domain of linux-kernel+bounces-4670-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4670-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 c25-20020a17090603d900b00a23700b9b40si518810eja.1004.2023.12.18.20.23.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 20:23:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4670-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=QhRV1KcG; spf=pass (google.com: domain of linux-kernel+bounces-4670-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4670-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 01A571F24CE5 for ; Tue, 19 Dec 2023 04:23:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A5DA5380; Tue, 19 Dec 2023 04:22:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QhRV1KcG" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 2083963AC; Tue, 19 Dec 2023 04:22:33 +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=1702959755; x=1734495755; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7FWm7knnCNk3XzYwemNuQu99HK/VR/XFfS7auE+Dgc0=; b=QhRV1KcGmCI9IYvbG0OqXp+kv02p89KuldJRRQH5xpGbWEzWp6ekTnGj EkiRHgmDeKxPD+4WuzFjvfYpQQ9191o1d9+mhCb94KV9OwaTcw9bjT7KQ T34wCsz6uuKkAX6ircDM3ocbhG4gq9bizRX+sQSMJtr++f4EEj3Pv7w8f cLT6cpRFm7QI4NQAcVXx7ef3HHf/jmOg3lZ8jSfjDjxc09cdoR4Ez/V4Y rOun/zW3y4JKPzUeZQJ+Cn6X+mHDtfz1JAhTiZzL0N0ys5FZ+OSVHqmpg Y07lN/08q1TIdgWGkkZXDQC8E/ABIgzVTzytqlEM2JmBCKmMmt/fl6O6S A==; X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="2455982" X-IronPort-AV: E=Sophos;i="6.04,287,1695711600"; d="scan'208";a="2455982" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 20:22:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="919503108" X-IronPort-AV: E=Sophos;i="6.04,287,1695711600"; d="scan'208";a="919503108" Received: from mnichels-mobl1.amr.corp.intel.com (HELO rjingar-desk5.intel.com) ([10.212.29.225]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 20:22:30 -0800 From: rjingar To: irenic.rajneesh@gmail.com, david.e.box@intel.com, hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: rajvi.jingar@linux.intel.com Subject: [PATCH 4/8] platform/x86/intel/pmc: Add PSON residency counter for Alder Lake Date: Mon, 18 Dec 2023 20:22:12 -0800 Message-Id: <20231219042216.2592029-4-rajvi.jingar@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231219042216.2592029-1-rajvi.jingar@linux.intel.com> References: <20231219042216.2592029-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-Transfer-Encoding: 8bit From: Rajvi Jingar Add PSON register offsets for Alder Lake PCH that provides an access to PSON residency counter. Signed-off-by: Rajvi Jingar --- drivers/platform/x86/intel/pmc/adl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/platform/x86/intel/pmc/adl.c b/drivers/platform/x86/intel/pmc/adl.c index 64c492391ede..882f2d5d8937 100644 --- a/drivers/platform/x86/intel/pmc/adl.c +++ b/drivers/platform/x86/intel/pmc/adl.c @@ -307,6 +307,8 @@ const struct pmc_reg_map adl_reg_map = { .lpm_sts = adl_lpm_maps, .lpm_status_offset = ADL_LPM_STATUS_OFFSET, .lpm_live_status_offset = ADL_LPM_LIVE_STATUS_OFFSET, + .pson_residency_offset = TGL_PSON_RESIDENCY_OFFSET, + .pson_residency_counter_step = TGL_PSON_RES_COUNTER_STEP, }; int adl_core_init(struct pmc_dev *pmcdev) -- 2.34.1