Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1527999rwb; Wed, 16 Nov 2022 20:12:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jBzT5fP39dAg9VoXayjGEmndKfpKoJrQvVdY0qc8/NaXwTq1/G9gR3/CfQa55bCRTZkaM X-Received: by 2002:a17:90a:7304:b0:20a:9810:86ab with SMTP id m4-20020a17090a730400b0020a981086abmr6860441pjk.10.1668658363338; Wed, 16 Nov 2022 20:12:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668658363; cv=none; d=google.com; s=arc-20160816; b=Ld3p7rSN1LFSe9uYrjxlG9FXkYxYc9io5YEZOhbG01mNw0hrSwRcK3y+zkwFabHOjR Yc9ElXRQQnzfiV+ccKg5JVTjbC7Wfny0FSg+UO6B/2/V0vwYC0kd3QrM7wuseY9/4N4d HY5Yw/LMTsdupNrdImhnwNiBBHqGZxu5VZsFuLfVYwaI1+3ea19XhLQ9+vwvz9evNz/N 7gEqnMXSHQcBSkdgKKIwNkt1aM69grkAkZHmgpsNmEfvCOf48vVYG+JY9orkTOLxBv6A /VZlfe3+5u0p5Rm9N9zd61pg5SLdUcWcVp8Z2a1wfBHp+0NBUE4RiVbUviQijZCoOsgZ B2Dg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hTVCEDMxcmXoP0YDkNSPk2pcTrTM6FQ5fzxursQm8B0=; b=NLXNuRggfMeojgvV8REhOqa8S/OwooURfSEOo/05nmvV0nCCmi+ZyqklhB9r0MGHD3 F/1BNVeH5ZN2KaqYIvP8nR00UEG9ozYR6BMAyUCxYNsnDW0A5/XCjl3Q2iMuYz3TMmam rRFSEqvvX6gGXQ+FE/vpozYNOHtskLwIJFDJXHQ7If5fgvyNFff1lBFXEG3N5MYjHm2u BOg9+P3Edux9uE0U+kWOWMZN8ydgfVCKRDo0Vps8/E7oTULlenf3pjw5yCCApeXBo1o6 a+Ox1Rvvw+wWSeIWCDIYF1Ec8dV3ZfGjTe424/mGHvl7cpQYm2kPwkAWkSt5mux+ptcZ 7WKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ct9H1tNC; 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 z2-20020a170903018200b00188a915034bsi18891756plg.340.2022.11.16.20.12.31; Wed, 16 Nov 2022 20:12:43 -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=@intel.com header.s=Intel header.b=Ct9H1tNC; 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 S234702AbiKQECE (ORCPT + 90 others); Wed, 16 Nov 2022 23:02:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234495AbiKQEA7 (ORCPT ); Wed, 16 Nov 2022 23:00:59 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3D1941992; Wed, 16 Nov 2022 20:00:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668657658; x=1700193658; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=u9Rornpn2IRVhlMZez6eTlRt7/YpDQ3KZjhhPoPTdn8=; b=Ct9H1tNCHYq8vbD2pmgUScCU+kFtmcd/UDs4TDToBsScIEuuUPPaKj+o qM0VdvJbRYwe2q2iYwNB05bSnmPfZm6aKwH7IlpG21IZ+r+C/YxW52MCP LgW/YSKPIQ6o9ohKgCLfye3asOprdxzzYkMON+n3IvHRjssRECj/uuK1W 7Vfd4Sniqbue7YAdHyB3Ca3ILd8Kl6HabasF/WZDihVbM4F3I3kI/8yU6 u+B53uDkiLTi8Mggd7Oh9Yb7NxQH51ZoNgXLsB5VEAlxM9dI8bR72aVWl lLWt8FZlm4nvqrcAM2OBjxhCQzdjMaIV3/drOM03wgzB4vV5Cbkyj1foL A==; X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="292455970" X-IronPort-AV: E=Sophos;i="5.96,169,1665471600"; d="scan'208";a="292455970" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2022 20:00:58 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="590462694" X-IronPort-AV: E=Sophos;i="5.96,169,1665471600"; d="scan'208";a="590462694" Received: from jithujos.sc.intel.com ([172.25.103.66]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2022 20:00:58 -0800 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, gregkh@linuxfoundation.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, thiago.macieira@intel.com, athenas.jimenez.gonzalez@intel.com, sohil.mehta@intel.com Subject: [PATCH v3 09/16] x86/microcode/intel: Use a reserved field for metasize Date: Wed, 16 Nov 2022 19:59:28 -0800 Message-Id: <20221117035935.4136738-10-jithu.joseph@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221117035935.4136738-1-jithu.joseph@intel.com> References: <20221107225323.2733518-1-jithu.joseph@intel.com> <20221117035935.4136738-1-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE 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 Intel is using microcode file format for IFS test images too. IFS test images use one of the existing reserved fields in microcode header to indicate the size of the region in the file allocated for metadata structures. In preparation for this, rename first of the existing reserved fields in microcode header to metasize. In subsequent patches IFS specific code will make use of this field while parsing IFS images. Reviewed-by: Tony Luck Reviewed-by: Ashok Raj Reviewed-by: Sohil Mehta Signed-off-by: Jithu Joseph --- arch/x86/include/asm/microcode_intel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/microcode_intel.h b/arch/x86/include/asm/microcode_intel.h index 2a999bf91ef0..6af1e703cb2e 100644 --- a/arch/x86/include/asm/microcode_intel.h +++ b/arch/x86/include/asm/microcode_intel.h @@ -14,7 +14,8 @@ struct microcode_header_intel { unsigned int pf; unsigned int datasize; unsigned int totalsize; - unsigned int reserved[3]; + unsigned int metasize; + unsigned int reserved[2]; }; struct microcode_intel { -- 2.25.1