From patchwork Wed Sep 13 18:33:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jithu Joseph X-Patchwork-Id: 13943 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:a8d:b0:3f2:4152:657d with SMTP id gr13csp150715vqb; Wed, 13 Sep 2023 16:29:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiYa5cLJIUrP6h/VdLUPX4377AXeMWtf204yf7pB/B9gOrVg6ACkUB4U025zG9S/hAkbK3 X-Received: by 2002:a05:6a20:4327:b0:13b:b4bb:8b18 with SMTP id h39-20020a056a20432700b0013bb4bb8b18mr4848030pzk.1.1694647793255; Wed, 13 Sep 2023 16:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694647793; cv=none; d=google.com; s=arc-20160816; b=0W3A3/sdxgV3RPMKTpzweBQNHAhcu1ot5Ao1JQKphDu4RrWlXQe6um/q7f0ZSPanW2 JD6x+Bn4S/mTx/jUrVPVLEe6aK7Xkt3EwzF1XUVFm2NwvR4qHOCLG5PShjPUQ+oZYYd/ g0GyE8rml0OJRPYsPtAOWTOJS7feuncEZ05w2FFQW0/qliDCBvh2r9CqAPi3wLStw2MH CB5CWQW/mLRGz6jBwlJ4ccnSBW8ySqCp4i1s54+t34OIc4cwZkZJ8I+JFqJGeTQ6T+al FA4jKLCN7i2C/5OhZYMuonQClkWoUCMqdDXoOQK3K35T8JmkgmtAYtpaG7gwgWsnipzo koPQ== 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=XrkmPRvDhOTAvy0jIA+B3eNb+SEalIOB17nMQYh+6SA=; fh=8xS9zNNEexx7KHEczBpq5wXIDtxA/g5mXnxETx6X+p0=; b=hfGX3qsqv7jbnngsPXleRaiUG75YVutlP+5xlKLVB7Se/5diGnQUsC1NRva+VVUGna HzIcmfsfCxeyqcU/9Mwo93Sewcq0JkUEM7W2B5X3UileW1RZZDEmaajR45rLv4jH2Ylr 4k9emvJ5QbH1TGrX2OalJlcC8ehzLT0rxqcheU7ZaodlxpJMf1A2EuJMehOfD3BTLqHS v3VK2OhGmh5Kh46ygL0CQgs4GgJgDwlDLCPl9DCxpIFYNDwUZnjW5DoUm4lcfb/NUsIc RgoyP1Etg/KNsA6ll517fFG+M3T6roA8wyfpoRbCwJgR+LpCBbjU0fsAjM30dolsb6jL mlwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LFjoIi0O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id q5-20020a170902a3c500b001b864e277e1si336119plb.494.2023.09.13.16.29.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 16:29:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LFjoIi0O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1750780765FB; Wed, 13 Sep 2023 11:38:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231820AbjIMSiA (ORCPT + 34 others); Wed, 13 Sep 2023 14:38:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjIMSh6 (ORCPT ); Wed, 13 Sep 2023 14:37:58 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B03CA3; Wed, 13 Sep 2023 11:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694630274; x=1726166274; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=m9uEFh1PK56Z7q+u6kDbQXw+ZQrWKN8Nj13N/OIjzBY=; b=LFjoIi0OjzDAthx7SjkiIoqaiYawOpx4ea6k200ncvS1DQ4SYjbkzqxc ydRdVwDTGFby8dqyZSR8Q9k5om/Ai04HYqphv8NAdYtDF47Ebo0/cxNQi oCHtXOImJ6Jo5pgzjRiAhlOdgfCHDrQuEMsMFmHjbSKpyrb7YPlGAYjhH s8Zjq3TYDqokXKsOC76ZrBcxvOcBjnwFBZmLYg1IEy6IFzKbuUuRgy/9i x9OHR5wvrHBCZT/VZe54k2zwLKJ8AcLDs8Tl0/T6A+PN0WF5tW3YS/uln oti2sL9YSy9l7EU4RBQw87DoansUkMvJwF5UCDr7MlZssgHiPJHGoh7Ld A==; X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="369019101" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="369019101" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 11:37:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="744238572" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="744238572" Received: from jithujos.sc.intel.com ([172.25.103.66]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 11:37:53 -0700 From: Jithu Joseph To: hdegoede@redhat.com, markgross@kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, rostedt@goodmis.org, jithu.joseph@intel.com, ashok.raj@intel.com, tony.luck@intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@lists.linux.dev, ravi.v.shankar@intel.com, pengfei.xu@intel.com Subject: [PATCH 00/10] IFS support for GNR and SRF Date: Wed, 13 Sep 2023 11:33:38 -0700 Message-Id: <20230913183348.1349409-1-jithu.joseph@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 11:38:44 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776967004619774384 X-GMAIL-MSGID: 1776967004619774384 This series adds IFS support for newer CPUs like Granite Rapids(GNR) and Sierra Forest(SRF). There are changes in the IFS image loading and test flow to support these new CPUs. Note to reviewers: - patch 01/10 adds a bit definition to arch/x86/.../msr-index.h, hence x86 maintainers are cc-d. - patch 05/10 modifies an existing tracepoint, cc Steven Rostedt - Rest are localized to IFS driver Jithu Joseph (10): platform/x86/intel/ifs: Store IFS generation number platform/x86/intel/ifs: Refactor image loading code platform/x86/intel/ifs: Image loading for new generations platform/x86/intel/ifs: Scan test for new generations trace: platform/x86/intel/ifs: Modify scan trace platform/x86/intel/ifs: Validate image size platform/x86/intel/ifs: Metadata validation for start_chunk platform/x86/intel/ifs: Add new CPU support platform/x86/intel/ifs: Add new error code platform/x86/intel/ifs: ARRAY BIST for Sierra Forest arch/x86/include/asm/msr-index.h | 2 + drivers/platform/x86/intel/ifs/ifs.h | 47 +++++++ include/trace/events/intel_ifs.h | 16 +-- drivers/platform/x86/intel/ifs/core.c | 14 +- drivers/platform/x86/intel/ifs/load.c | 159 +++++++++++++++++++++-- drivers/platform/x86/intel/ifs/runtest.c | 68 +++++++++- 6 files changed, 273 insertions(+), 33 deletions(-) base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d