Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1598221rdb; Wed, 31 Jan 2024 03:45:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4hnNdt0DNVBLAVYIeUtxivbYyLb7Mxet6EOkk0TC4ShWufNXZY+a1t7wssgpOFDGxs8J4 X-Received: by 2002:a17:902:ea05:b0:1d8:e9bf:9570 with SMTP id s5-20020a170902ea0500b001d8e9bf9570mr991500plg.98.1706701507930; Wed, 31 Jan 2024 03:45:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706701507; cv=pass; d=google.com; s=arc-20160816; b=kJMqyXQqh0+11Kg/Av2IZfXNRfO1BiH7yfZupRn6l05Ldpegae+bE+EHXiB9i9WJ1G OwOn1DF9v/P887Sy1Jj96+ZAYeDZKp2IdDCxxDetRs92yL0QR+mltw69WGVWr0IMChcb iczDdRjFIgnFOl4yAEJezKSDdyuf3Xy+vfwjjWOSnKPdmc9rEOvy2cUXSjJ/EgWeHDSI dTFVD8mW0Sv/wtYC9o2dB80pbmKaTQvmzC0oR1uDAx3QMtN3V4TajBJaed6qtB4tgei5 V+tKuJbODNKmK0t7j6G1zuIruhjZVc21J/YCmv7fZyBKU6iF9Y4aZWY/N+dUcxd6eFT2 Sz4A== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=r4s2ojfYUUwSVBFIvbUoxboM7xtshcIt4Haq9IJxFSI=; fh=6rT2kfYYxI4dL+Qgr/H4QBMpsYpyAPvT/7Ss8ixkRPo=; b=f0en7ISaIn5hXyb9eBhFdhFmttfNey6vdcWcJrq2JiI/qhFDl4/1g7I8b03Pz8tPIq +R2C1KcCU12Z+eHfUwkRnyL3M9VeDaTBG/KGMiWa+iPTUuB+X9khJlvq2ScGHbIWjnpg 1m2Zmg7nX0IPgBbEVR8UiG2uo+sXUQuQkK8O/E9JA+bUEJweaaBI9Q7/WEoqI374pPFt KEcbLE+aThKQZdjmQUVxV4efwzExjPI3ZzoL6ww+2MqMFHVVMY2uozQP54BahvSZv7Mc 8hSaYjEzx8fucUKdwOID6/g9CmSXyLDx6xXYVWpL8AvC67oPfU9+1u3szA9PoaSMKUgN XofA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OW3J+uem; 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-46366-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46366-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; AJvYcCV6cYORXu2TtiUxP0cp6bUzeCC+o4e83g9d5SE5FgtXxqZj4biNBDTwX2KJF0OD6Iz1NkFdmeUs0ae77wyoziYGvJ7vG1mX0LAseWfvPA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j13-20020a170903024d00b001d5e9f5a6c8si9726018plh.215.2024.01.31.03.45.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 03:45:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46366-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=OW3J+uem; 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-46366-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46366-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 19563296A79 for ; Wed, 31 Jan 2024 11:38:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC18378676; Wed, 31 Jan 2024 11:37:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OW3J+uem" 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 886657AE61; Wed, 31 Jan 2024 11:37:25 +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=1706701049; cv=none; b=nXS2o0x/qjl3LgrhxJUfOcxDnEYoV8i0IZseyKtc05zeCBcyNh1GKRgyxxvRhGoIyPDL5uQMXQms2Nt3xSxW0QJvkXs5metwYApRQ3qfU3s+ak/qNzMDB3eM+FTVYbl4UEPFCxHyN23SCv5VjxQdoblIOMpV+0xEG0bGxpQnku0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706701049; c=relaxed/simple; bh=2+l/sdKWhGevWKdnh5NkECeIK7BiXrdRRKl9YlUqCeg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=U60I88q896u6/p9VVA+cxBoTh5lrzQGHt6i2igv8B8JlL58jY7jrj3fv6xiuDjN6qKGXwBplhifwjcFe6kh0ajDHyDYOf7UvZzSokhG9PwxuH7PoFBfcR6ER5UNE90259NNwAzxkJnHuB8NfQylZurlEKjAABmUAHu9u4ApVkEk= 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=OW3J+uem; 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=1706701045; x=1738237045; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2+l/sdKWhGevWKdnh5NkECeIK7BiXrdRRKl9YlUqCeg=; b=OW3J+uemmLhseFk4VmIbZMVOPHPExPASR6Y9L8nVAZLQlqkkKabxqalz 39crVt1R3wY3AH7i12QfRLMG5pF/ovRA+Ua2lhd1rPhMFsP9myAei+a91 oyp/4YGNLI9X9xpmOAZxBR7RU/chFwErgICRx9tC3mMfCJvlzfSs6HHlH +0bpi6nBYL03qvz3LvTxKLu7etSmoYpxONvlBJcyHQWpqxji5y2hafBnd D6drxuqgvcR7vM/znH8/QgZpVVGyeF0n6PyL0IBZEJ25VHoYyCpPhviCD DHi6sS1iC1xD8xLbJHJB3+cyF3gIzRIaLN+pVATEZYKEMzzkxebKPRaN/ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="3441602" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="3441602" 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:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="788542465" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="788542465" 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:21 -0800 From: Zhang Rui To: rafael.j.wysocki@intel.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 0/6] powercap: intel_rapl: Fixes and new platform enabling Date: Wed, 31 Jan 2024 19:37:07 +0800 Message-Id: <20240131113713.74779-1-rui.zhang@intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Patch 1/6 fixes a real bug when MMIO RAPL driver is probed on platforms that are not listed in current CPU model list. IMO, it should be considered as stable material. Patch 2/6 fixes a potential racing issue, but I have not reproduced it yet. Patch 3/6 ~ 4/6 fix a problem that TPMI RAPL driver probes disabled System (Psys) RAPL Domains. Patch 5/6 and 6/6 are two simple CPU model updates to support MSR RAPL on Arrowlake and Lunarlake platforms. thanks, rui ---------------------------------------------------------------- Sumeet Pawnikar (1): powercap: intel_rapl: add support for Arrow Lake Zhang Rui (5): powercap: intel_rapl: Fix a NULL pointer reference bug powercap: intel_rapl: Fix locking for TPMI RAPL powercap: intel_rapl_tpmi: Fix a register bug powercap: intel_rapl_tpmi: Fix System Domain probing powercap: intel_rapl: Add support for LNL-M paltform drivers/powercap/intel_rapl_common.c | 36 ++++++++++++++++++++-- drivers/powercap/intel_rapl_msr.c | 8 ++--- drivers/powercap/intel_rapl_tpmi.c | 15 +++++++++ .../intel/int340x_thermal/processor_thermal_rapl.c | 8 ++--- include/linux/intel_rapl.h | 6 ++++ 5 files changed, 62 insertions(+), 11 deletions(-)