Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3982115rwb; Mon, 21 Nov 2022 02:08:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf68TEheT28CrKzxGRhXr6xCSiOFH0OfDuZrtryP4Az4d/77JdpjM50pLhhd+4dV3KeFWZCv X-Received: by 2002:a05:6a00:2a9:b0:572:c12a:17f5 with SMTP id q9-20020a056a0002a900b00572c12a17f5mr873810pfs.67.1669025336130; Mon, 21 Nov 2022 02:08:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669025336; cv=none; d=google.com; s=arc-20160816; b=BDAP4aNPmBX7upCVdwEoKKOHSqh6y88d5K+6vw8Uq1n4am8shaax7UIJSZ+xM7eR/i 1Nt3zJ/ehORTJjrO+OUI3RfXpOfvH3oBuMA1TSX8efF47zkii7OkadgsVZo/J8stt1ed /ekNh6VgbWhZIxljlKmsUa+zs3bSz/JIxoHpDSNj2f8qk2Vjx9wPtFakKJuav/k7KV18 HnsVukASRCndBbtMTf5+ZrVee3a71ou7Erb61U5Ix57MI3/pfsdbcn+gCv4lzaIXToTk iHkeUDhQ2h7+LDxzddPjR2jZ7hB05nZpK3s4du/54WCPT9YhbULgtn/YiCQjKXWWgQTo Mdow== 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=su7TSQ7LdZLfUe5cDAl60Bz9Qg3+yC/LHFZinyPivK0=; b=HYiPxUgM7nS81z/ZY3dsPjDmLBWD24b0/YRMOnP0qwYAlOjlbd+y7lv1XKOHjKh1EK NGzzk+kGMmm2x0tf0z47BmKCU1cjNDIr1dNCH9AyIiMW2k8XUMnN0so/iA6JF0AZISNv oirIEmXwXlvhvROI+HRZva+44KtVm9zrPqJk4AShBlU/gB+Ak2umj4Lr7olv6rKrWnSN OeI8Y8qDWrPnKM/tMU1WunfzcBC+jnq3jGdch/AlB3EwT6vkLNENYtmUnrUrFF1esEX0 CSUSt5gsTXxig5KLiYvOtpTRso3KY+y0Y2JETJVKl8fQEgvazl9vRixcj4XY4hjdeIBj rnaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=f4L4ZvJI; 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 s36-20020a056a0017a400b0056bffcfc30csi11538561pfg.249.2022.11.21.02.08.43; Mon, 21 Nov 2022 02:08:56 -0800 (PST) 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=f4L4ZvJI; 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 S230349AbiKUJpi (ORCPT + 91 others); Mon, 21 Nov 2022 04:45:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbiKUJpf (ORCPT ); Mon, 21 Nov 2022 04:45:35 -0500 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 8E5019709A for ; Mon, 21 Nov 2022 01:44:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669023876; 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=su7TSQ7LdZLfUe5cDAl60Bz9Qg3+yC/LHFZinyPivK0=; b=f4L4ZvJIqzUVf1YJcsB2+69BiGh8bCry2nau6Hj1sJ1TM8CCO2pWWhdlyhuFse6q8qefz+ ir3P+noY/bNhvtCKJRYJ73c7KOptpGHQ99BFBkqhuz4bOrQg1hDBRB5lf/3PfXCT2AC6AH SQWIIacG6oskG+z/z3Qnxy7gSbyhmI4= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-300-Kvv1IBTVNaiuhJYY6cAs2Q-1; Mon, 21 Nov 2022 04:44:35 -0500 X-MC-Unique: Kvv1IBTVNaiuhJYY6cAs2Q-1 Received: by mail-ed1-f70.google.com with SMTP id l18-20020a056402255200b004633509768bso6421259edb.12 for ; Mon, 21 Nov 2022 01:44:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=su7TSQ7LdZLfUe5cDAl60Bz9Qg3+yC/LHFZinyPivK0=; b=x4v67oeMbeEwtfiX0V7Rjc1Exlt2TixjgUlDMgOlzBPH9/9gn5AmW+sPvJk5TxSlRu hkJkN36K1/VSm7neiKiXjyJRPiZwPuscrVLAObzK+58SDHqy3JHbgQWdRuorC+BTvU9W lT4BfD+sjoUJ011gKPNs1r7rNq2dXmw9IsSD0EqxoMPt8XqK1aNLgHdde+J/Z8UBe72d +YuAkmabPJcV+yaBPJNTF/dBU7kNN+iHwUaxpHI9EhJLmzXHrKm/3WvVYj7EKYiuAmop 0DlWwYBkyjj53dtQ9OOhcTrj3wnDv6r0lIQtMLbLjc7Y1sCfBAf3l44je6mwrCCeu20l UEqQ== X-Gm-Message-State: ANoB5pnj3G1qe+fpSyQiWAm8+9bZvAqU79sVxhW5byP/v8hOAX4UIAqJ QLaT9l0xwL1gACSunky7ODL7gjFZ/I43FSoKccynk2BH68hk7Sts4dfSRN8AfSWGxMfOb6kqpjn rJ3UykZNglOH1SbjII2gADUzx X-Received: by 2002:a17:906:3fce:b0:7ad:bb54:75d3 with SMTP id k14-20020a1709063fce00b007adbb5475d3mr14418650ejj.484.1669023873843; Mon, 21 Nov 2022 01:44:33 -0800 (PST) X-Received: by 2002:a17:906:3fce:b0:7ad:bb54:75d3 with SMTP id k14-20020a1709063fce00b007adbb5475d3mr14418637ejj.484.1669023873597; Mon, 21 Nov 2022 01:44:33 -0800 (PST) Received: from [10.40.98.142] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id i10-20020aa7c9ca000000b00461a6997c5dsm4990751edt.83.2022.11.21.01.44.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 01:44:33 -0800 (PST) Message-ID: <2a3f8cc5-4c6e-7bb9-5a09-1dc20929271e@redhat.com> Date: Mon, 21 Nov 2022 10:44:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH v1 0/8] Redesign the pmc core driver Content-Language: en-US To: Gayatri Kammela Cc: irenic.rajneesh@gmail.com, markgross@kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, sukumar.ghorai@intel.com, xi.pardee@intel.com, rajvi.jingar@intel.com, Rajvi Jingar , David E Box References: <20221114183257.2067662-1-gayatri.kammela@linux.intel.com> From: Hans de Goede In-Reply-To: <20221114183257.2067662-1-gayatri.kammela@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 11/14/22 19:32, Gayatri Kammela wrote: > This patch series focuses on redesigning the PMC core driver for > maintainability and readability. Moving PCH specific structures and > functions to separate c files, simplifies core.c file and makes it > easier to add new platforms in future. The series includes two > preparatory patches that lays the ground work for the redesign. The > patch series also adds legacy support for Meteor Lake. > > This redesign adds following c files to support different PCHs. There > are no functional changes involved for the already supported platforms. > > spt.c: Sunrise Point PCH supports: Sky Lake, Sky Lake L, Kaby Lake, > Kaby Lake L > cnp.c: Cannon Lake Point PCH supports: Cannon Lake L, Comet Lake, > Comet Lake L > icl.c: Ice Lake PCH supports: Ice Lake L, Ice Lake NNPI, Jasper Lake > tgl.c: Tiger Lake PCH supports: Tiger Lake, Tiger Lake L, Alder Lake L, > Alder Lake N, Rocket Lake, Raptor Lake P, Elkhart Lake > adl.c: Alder Lake PCH supports: Alder Lake, Raptor Lake, Raptor Lake S > mtl.c: Meteor Lake PCH supports: Meteor Lake > > Patch 1: platform/x86: intel/pmc: Replace all the reg_map with init > functions > Patch 2: platform/x86: intel/pmc: Move variable declarations and > definitions to header and core.c > Patch 3: platform/x86: intel/pmc: Relocate Sunrise Point PCH support > Patch 4: platform/x86: intel/pmc: Relocate Cannon Lake Point PCH > support > Patch 5: platform/x86: intel/pmc: Relocate Ice Lake PCH support > Patch 6: platform/x86: intel/pmc: Relocate Tiger Lake PCH support > Patch 7: platform/x86: intel/pmc: Relocate Alder Lake PCH support > Patch 8: platform/x86: intel/pmc: Add Meteor Lake support to pmc core > driver 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 > Gayatri Kammela (4): > platform/x86: intel/pmc: Replace all the reg_map with init functions > platform/x86: intel/pmc: Relocate Tiger Lake PCH support > platform/x86: intel/pmc: Relocate Alder Lake PCH support > platform/x86: intel/pmc/core: Add Meteor Lake support to pmc core > driver > > Rajvi Jingar (1): > platform/x86: intel/pmc: Relocate Sunrise Point PCH support > > Xi Pardee (3): > platform/x86: intel/pmc: Move variable declarations and definitions to > header and core.c > platform/x86: intel/pmc: Relocate Cannon Lake Point PCH support > platform/x86: intel/pmc: Relocate Ice Lake PCH support > > drivers/platform/x86/intel/pmc/Makefile | 3 +- > drivers/platform/x86/intel/pmc/adl.c | 325 ++++++++ > drivers/platform/x86/intel/pmc/cnp.c | 210 +++++ > drivers/platform/x86/intel/pmc/core.c | 994 ++---------------------- > drivers/platform/x86/intel/pmc/core.h | 89 ++- > drivers/platform/x86/intel/pmc/icl.c | 56 ++ > drivers/platform/x86/intel/pmc/mtl.c | 52 ++ > drivers/platform/x86/intel/pmc/spt.c | 140 ++++ > drivers/platform/x86/intel/pmc/tgl.c | 269 +++++++ > 9 files changed, 1183 insertions(+), 955 deletions(-) > create mode 100644 drivers/platform/x86/intel/pmc/adl.c > create mode 100644 drivers/platform/x86/intel/pmc/cnp.c > create mode 100644 drivers/platform/x86/intel/pmc/icl.c > create mode 100644 drivers/platform/x86/intel/pmc/mtl.c > create mode 100644 drivers/platform/x86/intel/pmc/spt.c > create mode 100644 drivers/platform/x86/intel/pmc/tgl.c > > > base-commit: 309e0a6ed6e3fdb4febacc3e91aeb268500b90c6 > > Cc: Xi Pardee > Cc: Rajvi Jingar > Cc: David E Box