Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1003442rwe; Thu, 1 Sep 2022 10:50:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Gnun/jRw5+hH7mQN3vjadsYLrVo59xBgigAZpMelNAPFPVjHWlshVyHY2jCd8uNi0CMCd X-Received: by 2002:a05:6402:4303:b0:448:7014:ed8f with SMTP id m3-20020a056402430300b004487014ed8fmr17763102edc.335.1662054646288; Thu, 01 Sep 2022 10:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662054646; cv=none; d=google.com; s=arc-20160816; b=Uu+jO24zE77G62jQemNYadb5wCOVnegUU60+P1HDGxr23YN4hauVrXesM6yjhUWbBE rUMtf83YRI9mVuA0FEtcSypJqHqVda0ElRB3Xapl8n0MQGSZwzlZCmAARP9IL9TwzNOZ w+ildJH3eX/o1fGob3VwTupK1QUPjs9AEDvN4cbbM5CXPxERAztsg0TkZG1OB5onPrAG 1SJGmaTWTE3Sldh5gUUrLh2I0QCGUjbe9DYCKOmtRjozgRVR0udnxSmd2AaImObcL9YJ Y82jNaWQdS6n3bS9rlnuMNaapMK/w5Qd4bejTrMUao/MZPgaUt3NMVE4VceFLDldZtaU YRiw== 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=Qz6LyiM+WST3lg/v4pyFYnIJLNGky04xz76zD9oUeek=; b=xlfQ3DKGFEfc/bScPimOhhFutHZfdgPaGLNHF1+dPwr6O2Ym6OFd9Jsr/rd7BFgBfg 392Dn0CzZ2i7TGJSC3X3NugfOZLEjuXPE/xGxOwu3YyvCx0QWG3kDgw1TXrZbdo0SesL TfXrmxvxTmyLYC0ib6YggR2sTV+tOjJ+8KSMIPdTc3ok7bDI44Cx7wpcFzFb1Rfbk22Y e8k9hcJib4JaFuBphpCbZTYY4NQ/o8/fc/GTna85LcXKGMiE21y//kUYYZ7uZrJHpOLA d5hHHDWzGcjNJVg5tUQ/8jJCMoZUtR+vnFOTdeqNmSeGnOneyKJi+TKaJ7uhldfemaFa xiww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ksVoPni7; 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 gt17-20020a1709072d9100b0073d92f83e06si11583805ejc.887.2022.09.01.10.50.19; Thu, 01 Sep 2022 10:50:46 -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=ksVoPni7; 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 S233151AbiIARcY (ORCPT + 99 others); Thu, 1 Sep 2022 13:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232038AbiIARcW (ORCPT ); Thu, 1 Sep 2022 13:32:22 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5364190833; Thu, 1 Sep 2022 10:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662053541; x=1693589541; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=O9murFNnf7yd+h4pRFCxdy6du3N7zy8u2YJxy89V9Aw=; b=ksVoPni7b+P9nC6E6pno8LdPjqu7gRPDcxitwsrhqSK0tDi9l1HeRd5f kq2FHyrBqy9kwkep5da80kM3IizSJVDuZYrbG9WbmbkGrUwfbwkSRqXJa wKfafAmeQiF05VrUXiyv286RGnv2gD/Vt3q4t+GbkOHdF0otROm9sWbiW 0T6Y5XqBiA27X+27W+aNGUqIFLl9htopTXLLrmhsalzdwarU8yqEGkgse 1ICzw8N014fnsykCW2/lARG/3QPdKW2/2p+SiqUhaKTnn1bshk67R1gsJ UD3CtJE7VhJ1M1FBTct4Itt2Ie/btvYBmqWkOBDWQoXO6PLc/boq2Ki+m Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="297064805" X-IronPort-AV: E=Sophos;i="5.93,281,1654585200"; d="scan'208";a="297064805" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 10:32:20 -0700 X-IronPort-AV: E=Sophos;i="5.93,281,1654585200"; d="scan'208";a="642431191" Received: from gkammela-mobl.amr.corp.intel.com (HELO [10.212.21.24]) ([10.212.21.24]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 10:32:16 -0700 Message-ID: <8d1dec22-72e2-8297-9dbd-6b2904349fda@linux.intel.com> Date: Thu, 1 Sep 2022 10:32:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v1] platform/x86/intel: pmc/core: Add Raptor Lake support to pmc core driver Content-Language: en-US To: Hans de Goede Cc: markgross@kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, irenic.rajneesh@gmail.com, Srinivas Pandruvada , Andy Shevchenko , David Box References: <20220830182001.3693030-1-gayatri.kammela@linux.intel.com> From: "Kammela, Gayatri" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed 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,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 On 9/1/2022 8:47 AM, Hans de Goede wrote: > Hi, > > On 9/1/22 17:43, Hans de Goede wrote: >> Hi, >> >> On 8/30/22 20:20, Gayatri Kammela wrote: >>> Add Raptor Lake client parts (both RPL and RPL_S) support to pmc core >>> driver. Raptor Lake client parts reuse all the Alder Lake PCH IPs. >>> >>> Cc: Srinivas Pandruvada >>> Cc: Andy Shevchenko >>> Cc: David Box >>> Signed-off-by: Gayatri Kammela >> Thank you for your patch, I've applied this patch to my review-hans >> branch: >> https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans > In file included from drivers/platform/x86/intel/pmc/core.c:29: > ./arch/x86/include/asm/cpu_device_id.h:161:46: error: ‘INTEL_FAM6_RAPTORLAKE_S’ undeclared here (not in a function); did you mean ‘INTEL_FAM6_RAPTORLAKE_P’? > 161 | X86_MATCH_VENDOR_FAM_MODEL(INTEL, 6, INTEL_FAM6_##model, data) > | ^~~~~~~~~~~ > ./arch/x86/include/asm/cpu_device_id.h:46:27: note: in definition of macro ‘X86_MATCH_VENDOR_FAM_MODEL_STEPPINGS_FEATURE’ > 46 | .model = _model, \ > | ^~~~~~ > ./arch/x86/include/asm/cpu_device_id.h:129:9: note: in expansion of macro ‘X86_MATCH_VENDOR_FAM_MODEL_FEATURE’ > 129 | X86_MATCH_VENDOR_FAM_MODEL_FEATURE(vendor, family, model, \ > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ./arch/x86/include/asm/cpu_device_id.h:161:9: note: in expansion of macro ‘X86_MATCH_VENDOR_FAM_MODEL’ > 161 | X86_MATCH_VENDOR_FAM_MODEL(INTEL, 6, INTEL_FAM6_##model, data) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/platform/x86/intel/pmc/core.c:1918:9: note: in expansion of macro ‘X86_MATCH_INTEL_FAM6_MODEL’ > 1918 | X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, &adl_reg_map), > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > make[5]: *** [scripts/Makefile.build:249: drivers/platform/x86/intel/pmc/core.o] Error 1 > > And dropped again, please upstream this through the tree which also has the new > INTEL_FAM6_RAPTORLAKE* macros. > > Here is my Acked-by for merging this through another tree: > > Acked-by: Hans de Goede > > Regards, > > Hans Hi Hans! Thank you for your Acked-by! The cpuid patch has been merged in to v6.0-rc3. I am not sure why its complaining about INTEL_FAM6_RAPTORLAKE_S being undeclared. patch - ea902bcc1943f7539200ec464de3f54335588774 : "x86/cpu: Add new Raptor Lake CPU model number". I made sure its built without errors before sending it out. > > > >>> --- >>> drivers/platform/x86/intel/pmc/core.c | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/drivers/platform/x86/intel/pmc/core.c b/drivers/platform/x86/intel/pmc/core.c >>> index a1fe1e0dcf4a..17ec5825d13d 100644 >>> --- a/drivers/platform/x86/intel/pmc/core.c >>> +++ b/drivers/platform/x86/intel/pmc/core.c >>> @@ -1914,6 +1914,8 @@ static const struct x86_cpu_id intel_pmc_core_ids[] = { >>> X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N, &tgl_reg_map), >>> X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, &adl_reg_map), >>> X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, &tgl_reg_map), >>> + X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE, &adl_reg_map), >>> + X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, &adl_reg_map), >>> {} >>> }; >>> >>> >>> base-commit: b90cb1053190353cc30f0fef0ef1f378ccc063c5