Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1598537rdb; Wed, 31 Jan 2024 03:45:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcb+zvRtIoYulAKK/MlsBxIXrxUvVF5SDBnXUSvvUtDsfbZPsA3FAs6mAp0+jsRGRfOnPu X-Received: by 2002:a17:90b:a0b:b0:295:cec9:2de1 with SMTP id gg11-20020a17090b0a0b00b00295cec92de1mr1106485pjb.4.1706701541808; Wed, 31 Jan 2024 03:45:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706701541; cv=pass; d=google.com; s=arc-20160816; b=jPM54vzdre6qHAuxf7Gl6CNAvuf3iIiMia13SKtUelM+N+xyLQNFE6LMwgX2AnjrbH mNbtB3J4kKINh71fSDvKW744gfZxWdQLs6O9x5kkkpvLgHdwys+CiVC/Qd+4h2i3tqjO sZNK/2jhKPa29XBQEVkIrHWNI5aAw0ge5tCqAcEczmgq9164Z+XtmkqTLKmXlUXoXWNZ KDOtAR4dKl6X1IdmAI9jcdjHejet3VwS/GZAOVEqUEc1cHCK9tJ4GoteZLoaVpuQGUdH BJnpBormUeT01qGk7mk1KohAyJa5n30No9VXRKgm00AbpSXAvSGS6ua5nf0ldkWGn1Jj Idyw== ARC-Message-Signature: i=2; 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=xOR0Uzc/MaOo+91OJ+LOBe455qndQyU5Dk/RZAlzJZg=; fh=9ovDMNCnLQvj9R0H++oiNWrKmzD1tW9zwP985rSmDMs=; b=z+a3bKegsROSzIu1NgJhLg2sdM+nS+RZOmgu+6RTKu5xyhqELyn7wf858kRKwLvC4D ij1cGYPGkBrm5FHOxM5fSRLhckEdkDyppvh2IfyEWg8/mDhM8FAPFWYY8FRNxzE5iiwF x15UWP2Vtp+yuKC2vhcKR0FqTTAD74HqAN+41pj4TK7C+86YaNEOfddjCsYSyFvNTiYS AAla3O+z+h07G6/a53ZqB1KrjJnoJDMXkmji24bb6wWeFCaff3oIlNzSeWRDFx7lA9wp BxGZCHykMMalSe22ci+XRwjeXUk1as4jAKegH26pzNvosHT6UwEN6wVL70LRkGlfv0j3 5o+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IkpR5TKt; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-46369-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46369-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCVXFdQ+KcagD7/CXYhzi+dfimVd/6a8EUlRLRKPZRXjEtX8uD1ONwQiLHNcJkv6MfNrxoK8emAuvIqCokGBi/1T8VSwWzr0mY9oxGiJBw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s6-20020a17090a6e4600b0028db5e93702si1037779pjm.21.2024.01.31.03.45.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 03:45:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46369-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IkpR5TKt; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-46369-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46369-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 568582976F2 for ; Wed, 31 Jan 2024 11:39:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D3BF6D1D2; Wed, 31 Jan 2024 11:37:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IkpR5TKt" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 68FF07B3D1; Wed, 31 Jan 2024 11:37:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706701053; cv=none; b=nyot7oZDQHgpp4KkYKH7y33uoh3HsMFwTjTTA98rVrpNqDrQPJqsMLYyyaMlozYs+MVtAnWTxtvkca/4Ji9l0gYyhvXDEswW71s01e3QjhnTNj/USzon3DAZlrfGjHc3bB0ahE3cmnn0HC+a4bHy7ANemiAhtMXnB1urSp6e6+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706701053; c=relaxed/simple; bh=VbGVsMvlR6qLCq5piw4v45/5b+9I9zsshnAjLePRsqA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OYV8vcANEIixbthTTIdXXWw4B2VoLhTyUeonq06031wL4XLahv/WZwKuu+/QaGPNbOuT203ckDWNTVtcbMob2vg7Cz5hQO0FQ29HlT7Yu35fhyYXq8r1ng6AlmrmDxxdJvkOro3myqvvnYxiz01y38nmiDAMi3IER8OZ/8oizps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=IkpR5TKt; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706701050; x=1738237050; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VbGVsMvlR6qLCq5piw4v45/5b+9I9zsshnAjLePRsqA=; b=IkpR5TKtYFISiqvNHGBdb8CfScpggzwA1JrXKV5e83AofD9N/+Enn76m Izd7jxwpUNnQBn+sYkRhhvXvMiqDmyWkUUiqOgFIWuc/Mpr6IeIwwjjbk vCV5/j8SPl9gf/ocNx1zbuscRBSZEi42wSFbFmngZ5xilnvP3IIgjVq9i bmwB3jKEQEbaP2DxBOFqDY8o90CXSLLYLWdOaajUVQi7mCyxqIwOu5AKc j2NR0kqooHGW8djN7IvLJITkuXcFSh24pKhG0kbhsyxpIcrFllSnMysTy fS4QVsLRFNm/Zes9PklF28qainUlVIhf9O8Q/gKZDgOLAWXUOyVH5MPD5 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="3441637" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="3441637" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2024 03:37:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="788542488" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="788542488" Received: from puhongt-mobl2.ccr.corp.intel.com (HELO rzhang1-mobl7.ccr.corp.intel.com) ([10.255.29.147]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2024 03:37:28 -0800 From: Zhang Rui To: rafael.j.wysocki@intel.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 3/6] powercap: intel_rapl_tpmi: Fix a register bug Date: Wed, 31 Jan 2024 19:37:10 +0800 Message-Id: <20240131113713.74779-4-rui.zhang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240131113713.74779-1-rui.zhang@intel.com> References: <20240131113713.74779-1-rui.zhang@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 Add the missing Domain Info register. This also fixes the bogus definition of the Interrupt register. Neither of these two registers was used previously. Fixes: 9eef7f9da928 ("powercap: intel_rapl: Introduce RAPL TPMI interface driver") Signed-off-by: Zhang Rui --- drivers/powercap/intel_rapl_tpmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/powercap/intel_rapl_tpmi.c b/drivers/powercap/intel_rapl_tpmi.c index 891c90fefd8b..f1c734ac3c34 100644 --- a/drivers/powercap/intel_rapl_tpmi.c +++ b/drivers/powercap/intel_rapl_tpmi.c @@ -40,6 +40,7 @@ enum tpmi_rapl_register { TPMI_RAPL_REG_ENERGY_STATUS, TPMI_RAPL_REG_PERF_STATUS, TPMI_RAPL_REG_POWER_INFO, + TPMI_RAPL_REG_DOMAIN_INFO, TPMI_RAPL_REG_INTERRUPT, TPMI_RAPL_REG_MAX = 15, }; -- 2.34.1