Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38059685rwd; Wed, 12 Jul 2023 02:21:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFxvhF2m3pCbo5pfk1Sv+YfKXfjdyOhrZIOlSADkTz6mODNuXWUzr3qRorichTEuo7FLr78 X-Received: by 2002:a05:6870:a2d1:b0:1b3:f9f5:8877 with SMTP id w17-20020a056870a2d100b001b3f9f58877mr18360144oak.31.1689153706071; Wed, 12 Jul 2023 02:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689153706; cv=none; d=google.com; s=arc-20160816; b=T3BkGffvbHWvfr05X3WH997yEUICkkqBQ0qRUvZE32a0BNJ3uKIMxEbG2v4Tf1BlEm 4RCxk0LTJGqg94HxMal32SHi4Y3aC7OB2lZBeSMxNvL2bEtM3nL3Vh3cyqMbwfWe+y2x h5BwR8Nq1pnDFsFhPTT8yZSJi9m5Pqy/kBghseLscKGp0vAPnp/gekUnvsj7s3F/RY+Y Z6lQM3Wo0q4/jhHXbZVZgo3MWl/W+QsQalXSu6KRPoLfKsR4/so2NdvBTcDXDmokjCy0 NvY2YZAw5TIQ6+UXIUDpi5f/SErAwxWhrmCFkq9XL4z3BgWUEzR496b+jnsOOa180cke HPrg== 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=0Keu0rY+gipqgw/+O2XoBbwO35AHep9g015KVBZdfX8=; fh=H3d5A4U/WPATQBds/warCCnrSRWaYgb20+HY9jmC4hQ=; b=zoEa4NxjrhM9N4Yd6HikRVFLO8a8zGJRAOneidj4izUAuFF13Hc5iFWUVWJ2/wHOPK AYfqaeXDJBj2eFPveR8ZWzrRl5lYWdXyuR0Hrn9jcIbA35U5lQna/CbwPnbjGHoWK0ho JJsjhjwpV9mEkov321qxhiqo6e4Abtd2RzK7BwL7AAvnG/L4zPk6ZqXFDKljXIEX+dfG SxOU6vUlzSzAkdNlYUxMXNK0Kygq9Rwk3DYsQqZHilobQucK7ooJviPJ1RqGxiGufdZp CNIOYIRm68mWg2UGsXI+M7F4l+uZCW7kNWvH01Eo3ZjNAtlLzVBnTliM2Yyjx2x1FyfZ 76dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=MJy37K5w; 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=9elements.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l21-20020a17090a409500b0025eab041423si9905313pjg.189.2023.07.12.02.21.33; Wed, 12 Jul 2023 02:21: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=@9elements.com header.s=google header.b=MJy37K5w; 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=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231678AbjGLJNO (ORCPT + 99 others); Wed, 12 Jul 2023 05:13:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232822AbjGLJMu (ORCPT ); Wed, 12 Jul 2023 05:12:50 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C6AF9 for ; Wed, 12 Jul 2023 02:12:49 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fbf1b82d9cso69016035e9.2 for ; Wed, 12 Jul 2023 02:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1689153167; x=1691745167; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0Keu0rY+gipqgw/+O2XoBbwO35AHep9g015KVBZdfX8=; b=MJy37K5wDhGWmO6tjYwl9vzsSW5TSHMgShH8aXlIfweopgEqSnLn3zLT1hZp00jfjv Z2r64qVP2V+bc7gIVWoIOyk0w/e8RKkFqk32JkI/5iWc+9kkHjHm9ln2DEMM1enmtba8 xBUQKEjqXJlZSJtzhA8n+4VBz43UrWa6zsMdWETlgP+Y/CQgzYLaCrv9C/1wZkbtd+Ol b0gSzGNi259Bi29csxFk2gxcU+OhPl6oY/ag/rwDyRP2GFddK1ma+Fz0lzYT4vdxa3qW 7ffWwssze8CPQzpkNpQTJL6QBq9mG9tRPp4StV1KHsaG90lJnbhG33IUvU10hpfzQFfl IV1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689153167; x=1691745167; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0Keu0rY+gipqgw/+O2XoBbwO35AHep9g015KVBZdfX8=; b=apxtoTuYKFD568ALJVPjpeyJa1318gv9foo09bzdjGNEehQBgj0bKA0aaEt7qMFE2C Nhg+qmib2fcOanMiuZcsrc58pgYzamc4l37JVNOfxM1PnGcL6qtymJdKxBq+nkeSgNHl nUE68gNexOXBS3sRAJ90WpJu5NXNFwXSZGcAB/h+7mDVMsrI8Pez0GvNjII14StiK/4u 5dEIsr80CDV9Kf01XC/AWHR+U6CXtgQpNHTPAu2RCaB45OOA8604QNp2VIfBElrLFPJB x5/DPJTR/hTzRYdwdXs72wdfQRCSZoCuOPVNOysfOM/Jnasw+ZmgnhyiMB7xi8hRmxPY Od3g== X-Gm-Message-State: ABy/qLbOnglFz9FwNeuEilF287d6GJtJP3OjCq/7+xKCVVrzoJtvqhjn RPRZHC5p52rbz0AsJ7Js4AJElQoHx+8BVx4Yrynapw== X-Received: by 2002:a7b:c457:0:b0:3fb:739d:27b2 with SMTP id l23-20020a7bc457000000b003fb739d27b2mr16764374wmi.8.1689153167573; Wed, 12 Jul 2023 02:12:47 -0700 (PDT) Received: from stroh80.sec.9e.network (ip-078-094-000-051.um19.pools.vodafone-ip.de. [78.94.0.51]) by smtp.gmail.com with ESMTPSA id y11-20020a05600c364b00b003f90b9b2c31sm15013711wmq.28.2023.07.12.02.12.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 02:12:47 -0700 (PDT) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, iwona.winiarska@intel.com, linux@roeck-us.net, jdelvare@suse.com Cc: Naresh Solanki , Patrick Rudolph , openbmc@lists.ozlabs.org Subject: [PATCH v2 1/3] peci: cpu: Add Intel Sapphire Rapids support Date: Wed, 12 Jul 2023 11:12:38 +0200 Message-ID: <20230712091241.3668454-1-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Add support for detection of Intel Sapphire Rapids processor based on CPU family & model. Sapphire Rapids Xeon processors with the family set to 6 and the model set to INTEL_FAM6_SAPPHIRERAPIDS_X. The data field for this entry is "spr". Signed-off-by: Patrick Rudolph Signed-off-by: Naresh Solanki --- Changes in V2: - Refactored from previous patchset as seperate patch based on subsystem. --- drivers/peci/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/peci/cpu.c b/drivers/peci/cpu.c index de4a7b3e5966..3668a908d259 100644 --- a/drivers/peci/cpu.c +++ b/drivers/peci/cpu.c @@ -318,6 +318,11 @@ static const struct peci_device_id peci_cpu_device_ids[] = { .model = INTEL_FAM6_ICELAKE_X, .data = "icx", }, + { /* Sapphire Rapids Xeon */ + .family = 6, + .model = INTEL_FAM6_SAPPHIRERAPIDS_X, + .data = "spr", + }, { /* Icelake Xeon D */ .family = 6, .model = INTEL_FAM6_ICELAKE_D, base-commit: 4dbbaf8fbdbd13adc80731b2452257857e4c2d8b -- 2.41.0