Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1888286rwd; Tue, 13 Jun 2023 16:11:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7VtE6BLyHhoNo545ATXLv2LvUxBgZzHEXTOCQhr9ATztGJ6cl61UskHoL17ZrdjQE16OhU X-Received: by 2002:a05:6402:1e92:b0:510:e8dc:f2a7 with SMTP id f18-20020a0564021e9200b00510e8dcf2a7mr10608669edf.7.1686697864132; Tue, 13 Jun 2023 16:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686697864; cv=none; d=google.com; s=arc-20160816; b=kFfyMtcIHcktCzdg1/azAJCsu0g25Vww1E/Xwj7UOciKOSGl4VG0TmbGIz41/ipIa8 43DR4rJOe0cO1tvKBiwwjxgafB7voWUp/gNFUbMg6JLNr8+SaYXSMR+TGtaQZ40+IlYd dCJ2AHvRdHrjF8mUcGlKAn729/qo+csGV3KF7fiK2/76+CGWS2zLJ7Rgd94cQbdbpTp3 vNgRkaDcCtZFN/Bx/Ml6rJAqT93LFGK1qoMNRElreAJX2h+d9rr0dlpkESidQLfo6g7q 51oA0mLL2EJy6GaSvCyfrFq0q8Wwk3N2Q8yXUDeH2T9NiXQ9khwgCAODQCJBQ+aCWAtA jkiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ixmLUxSsHub6ZZrTPH7KROG9fumCzrnDRN6a9Hioy9c=; b=qVdRGGSwMh0EfHSYPL1bxGL7E2UOq7/2FbAks/yXdbY+0SLoDF3Yxx2OGktTbsP9rD rHoummcTeDzl7y3NRo+ux4HD6aEN2g5t49j/OR4rCgQjjHp7PdN/tpgk0oakonb0Afak TsC/amal+7geiXAj2XrzjWPCJUurxFNNVxPxXzvEYSgLe9vdmy4mctoSB+uaYaIRiTdq VhcoMvhqD9hot7/iaqtSHQrOPqw/kivBVTshqeBSCUILAMCUp+JuGr54jHxwtMF0iHOE nbmDEUg3zqYrho6PdbvceYYBhxs8Jx3ohDQPmA8FR9+3P9YVQ4aMD46DAHzgCr+HCSAv dXAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FHyUXFxb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v24-20020a056402185800b0051664cc6c83si7656755edy.130.2023.06.13.16.10.39; Tue, 13 Jun 2023 16:11:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FHyUXFxb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240997AbjFMWvn (ORCPT + 99 others); Tue, 13 Jun 2023 18:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241111AbjFMWvg (ORCPT ); Tue, 13 Jun 2023 18:51:36 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C7581BE7; Tue, 13 Jun 2023 15:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686696695; x=1718232695; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=BwoJZ+qJT0AouLBc/72pTtMNJ2cOhvENSYmAHBDaG1g=; b=FHyUXFxbVwHM/CqaaE3oD0mE4vhf0IxU8mdKbyF6jQhBn8ifqVeEMTcv HaAVgX2S7kUPRfsi+3IQ1KkE6fFdudFo9KftoaUCtYOEWAVjznZWLeAxq PiaRmEXVJY5nv+8fXQvdsrCExQvikfBsE+p9HNEslT9jn9CshR7/136mn cMy5MvAaMnk5gOQ528Y0LbWKTcHPhPa5OFiUnA+ylS6PKDWcD7NDigJ2j 342HufV/CdLWKW1PtUuJ4/rt/TSw/ArBOzYSU9CkWdmcA6fOUFJXHAAim vs+eg8ZgPx+VxOmSM44tJQTvtMZ3/QICxD0OB7F8sElhSOsiAG2nBxkhn g==; X-IronPort-AV: E=McAfee;i="6600,9927,10740"; a="444842172" X-IronPort-AV: E=Sophos;i="6.00,241,1681196400"; d="scan'208";a="444842172" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2023 15:51:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10740"; a="824589627" X-IronPort-AV: E=Sophos;i="6.00,241,1681196400"; d="scan'208";a="824589627" Received: from linux.intel.com ([10.54.29.200]) by fmsmga002.fm.intel.com with ESMTP; 13 Jun 2023 15:51:34 -0700 Received: from rjingar-desk5.amr.corp.intel.com (hciettox-mobl.amr.corp.intel.com [10.212.23.107]) by linux.intel.com (Postfix) with ESMTP id EC34E580BF8; Tue, 13 Jun 2023 15:51:33 -0700 (PDT) From: Rajvi Jingar To: david.e.box@linux.intel.com, ilpo.jarvinen@linux.intel.com, irenic.rajneesh@gmail.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, hdegoede@redhat.com Cc: xi.pardee@intel.com, Rajvi Jingar Subject: [PATCH 0/8] Add multiple PMCs support in pmc core driver Date: Tue, 13 Jun 2023 15:53:39 -0700 Message-Id: <20230613225347.2720665-1-rajvi.jingar@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Newer platforms starting from Meteor Lake can have multiple PMCs. This patch series include changes to enable pmc core driver to support multiple PMCs for newer platforms. It adds devid and register maps to enable IOE-P and IOE-M available on Meteor Lake platform. It also fixes the register maps for SOC-M. Patch includes: platform/x86:intel/pmc: Update maps for Meteor Lake P/M platforms platform/x86:intel/pmc: Combine core_init() and core_configure() platform/x86:intel/pmc: Add support to handle multiple PMCs platform/x86:intel/pmc: Enable debugfs multiple PMC support platform/x86:intel/pmc: Discover PMC devices platform/x86:intel/pmc: Use SSRAM to discover pwrm base address of primary PMC platform/x86:intel/pmc: Add Meteor Lake IOE-P PMC related maps platform/x86:intel/pmc: Add Meteor Lake IOE-M PMC related maps drivers/platform/x86/intel/pmc/Makefile | 4 +- drivers/platform/x86/intel/pmc/adl.c | 16 +- drivers/platform/x86/intel/pmc/cnp.c | 18 +- drivers/platform/x86/intel/pmc/core.c | 470 ++++++---- drivers/platform/x86/intel/pmc/core.h | 125 ++- drivers/platform/x86/intel/pmc/core_ssram.c | 133 +++ drivers/platform/x86/intel/pmc/icl.c | 7 +- drivers/platform/x86/intel/pmc/mtl.c | 954 +++++++++++++++++++- drivers/platform/x86/intel/pmc/spt.c | 7 +- drivers/platform/x86/intel/pmc/tgl.c | 21 +- 10 files changed, 1516 insertions(+), 239 deletions(-) create mode 100644 drivers/platform/x86/intel/pmc/core_ssram.c -- 2.25.1