Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7639586rwd; Tue, 20 Jun 2023 04:19:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4daDON1Fb/SlL9AaSMQIxymYeKkQgOydKukFMRvJW/3Q7QMam3fn2MAiupuPONILp9rtJg X-Received: by 2002:a05:6808:1149:b0:3a0:3eca:b8b7 with SMTP id u9-20020a056808114900b003a03ecab8b7mr923102oiu.47.1687259953260; Tue, 20 Jun 2023 04:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687259953; cv=none; d=google.com; s=arc-20160816; b=ZfhH1JRzaDuMS9tZPu7z1W0eCsI13ta5jgScbi1Q0k12o/paigqsnAKW088C0gZ6N3 sAuWuAVtzfNyVqhAAST/Oug1I8tWKkcIH5/1XNgoZPnYBz5xBseIWrejfe0zSBm4po2U njb2Ha2AGrat6fsk0x4ecGsvgu5R+/+XyzL9W0tC7o9IQk8pzCv9lyCJ9uqC7mr+G8JY daiaiIRWQBHbcmS1Hr5o/raEKIxzkkj6giQofadkbWfrZQjNX7MP8UMEVRLR/mncBJdg pM+kWoDKfkb0LjIMd1E0M8+oJrQnPbX92gtA5VDzYpxxU2g0wINJDvAac4WKwiefbt77 iBNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=052e1nKmdQCg7m1wzHj9pJt49WF7dYPUwtoAs0k/Va4=; b=aU3ct+Llw6U2fFN8pVrF9tT62Q6Ys8RNmHyDrZtsKCHuzloh/yY3qdaytTSlYU8kav f8/QC96ku7ts/+j2glLZBHB7Vd32g6F0wD4rZblWzBxdBsoPIZiRnaIqfsvdk5SfVgl5 L6VRzUm/yiXCL3P9kp/WRlxHeKWR24jpdME6Ixn7MAjzpJOvrCSBIXQ7JZZlwhfcYcVT BAtsYoOOE0nFItsnZSaxH/6EpK9hAJJpsPCzc18zcWLX/6zbbnEiJp6EBEeP4WS8PzxG xR8CQatO8dkU2Lczrr+cJ7JjMKGdxXN6vk/yjPoljhUtGiPIu2WmfKNOZZSfcK9ZdmPS Ogjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EFACd9ve; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b0054fbd904b6dsi1436375pgh.500.2023.06.20.04.18.58; Tue, 20 Jun 2023 04:19:13 -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=@redhat.com header.s=mimecast20190719 header.b=EFACd9ve; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232417AbjFTK5A (ORCPT + 99 others); Tue, 20 Jun 2023 06:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232415AbjFTK46 (ORCPT ); Tue, 20 Jun 2023 06:56:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A051E101 for ; Tue, 20 Jun 2023 03:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687258569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=052e1nKmdQCg7m1wzHj9pJt49WF7dYPUwtoAs0k/Va4=; b=EFACd9veddIsTUOpCp+AEAQp1E0LbBtR0fujB4KbQfaHt3RFUhajAbxL1KH+h5nFTyLF7q BNBBON4Z5UVOewc7FC0uQWPPgQknhZojs/jw3FoBTOumnox6DdYmEEyTD7Gkj9KPpoMoZF KAoYrVD7mEmLd/UDYHaSXySA4iJMHVk= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-654-1wFFv15zM9yb1eqKWfTFCA-1; Tue, 20 Jun 2023 06:56:08 -0400 X-MC-Unique: 1wFFv15zM9yb1eqKWfTFCA-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-94a355c9028so334802966b.3 for ; Tue, 20 Jun 2023 03:56:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687258567; x=1689850567; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=052e1nKmdQCg7m1wzHj9pJt49WF7dYPUwtoAs0k/Va4=; b=C3Y1rsd64W1eJypTdtT1rp7ZE9lE0verQ3Rgo5irUf3ZWVsGikjBLNXrSDnOxCPk+/ n7Ih0qULx/wiNqsVCB28G0qPFECc9pYH2Xkuimw+iA1UQjHQzKgg0IDJMWOk5hlEYyUn Xa8TA/DwXyqekvi5a36Ui60n4RK9/EiVMBnvwd2B23rueqOrB9myMVTI5djSls18z438 MsRl6SjMTcV33o3JEHih3yxgXgIQHkG/v4ejWfyrQ6TD5xa756Cq81Xmh1LRUi9N6D9/ xUb3PxcxudkiIKs7WbACKE3hdwPZOGeYj5clzspL2rZrQRgh0Y4yVCK07fcAMd7bYYPa ZChw== X-Gm-Message-State: AC+VfDxtiUd3fuUwPfkcVvmHF0RgAKyFE3IayI8yxEgsDqv7EuhNj7If R152NDNq4BiyQ1ZfA1kytXrZrGobBjvr7doWpcnlwRi4PqGQNNyHBXmed7G3pbqaz1oOHtQRhzn NFVGt0Xc2aSdMaWwGxio6Ax32 X-Received: by 2002:a17:907:3e0a:b0:974:1ef1:81ad with SMTP id hp10-20020a1709073e0a00b009741ef181admr12126274ejc.4.1687258567471; Tue, 20 Jun 2023 03:56:07 -0700 (PDT) X-Received: by 2002:a17:907:3e0a:b0:974:1ef1:81ad with SMTP id hp10-20020a1709073e0a00b009741ef181admr12126263ejc.4.1687258567173; Tue, 20 Jun 2023 03:56:07 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id x12-20020a1709060a4c00b009737b8d47b6sm1140785ejf.203.2023.06.20.03.56.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jun 2023 03:56:06 -0700 (PDT) Message-ID: <99b14625-b760-21c2-61da-755813755971@redhat.com> Date: Tue, 20 Jun 2023 12:56:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 0/8] Add multiple PMCs support in pmc core driver Content-Language: en-US, nl To: Rajvi Jingar , 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 Cc: xi.pardee@intel.com References: <20230613225347.2720665-1-rajvi.jingar@linux.intel.com> From: Hans de Goede In-Reply-To: <20230613225347.2720665-1-rajvi.jingar@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi, On 6/14/23 00:53, Rajvi Jingar wrote: > 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 Thank you for your patch-series, I've applied the series to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > > 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 >