Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp204680rdb; Mon, 18 Sep 2023 12:21:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfocs7DLKxkjlQ3ZBaIjuBjfgAAYAsBYbWp8QAvBQ/cLvFnQbjmWJzBWQ0XsvRnXl+64lT X-Received: by 2002:a05:6a00:1249:b0:68e:42c9:74e0 with SMTP id u9-20020a056a00124900b0068e42c974e0mr9373651pfi.3.1695064904992; Mon, 18 Sep 2023 12:21:44 -0700 (PDT) Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id cp21-20020a056a00349500b0068895dea43csi8139702pfb.78.2023.09.18.12.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 12:21:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ed/P2Olb"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 29CE581410EF; Mon, 18 Sep 2023 09:52:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230424AbjIRQwG (ORCPT + 99 others); Mon, 18 Sep 2023 12:52:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230369AbjIRQwF (ORCPT ); Mon, 18 Sep 2023 12:52:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62CEB181; Mon, 18 Sep 2023 09:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695055918; x=1726591918; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=WQupkjNY43iZqDY6dt8UeokZqoz4BaZ8W6G4rm7LzrQ=; b=ed/P2OlbbDGf9MoQD8Wt7A/yK1S/DZxmrxtCDCjOjLuzPJTf5hPb/O6Y ij6UhHS/aTGSqEBpWSvNS9+Cl9f5ko42JhHRiKjRwIcUIANyJ3/eGx77E /przTE0X98lUffzE3UZV9HrOhXj6LCONrh5W/yLb8l4hmo+aEBUuNOJte iTkntOfuAL0A5mwfLKlhEhFxhH8vPR8p1/InJhNF142OuljNqXWYW9wgm md9BVsm16dcYYg2WfDVoET5O6KH0mnbrb4i9lfLpfYPDMdyF07Zjgfsd4 sWI9uVCC4cPNSscb2d740cfiO8JFGFFa8dBsQHIekFc+NV4e3P/PZBqw/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="443789355" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="443789355" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 09:51:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="775193768" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="775193768" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 18 Sep 2023 09:51:57 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 18 Sep 2023 09:51:56 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 18 Sep 2023 09:51:56 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Mon, 18 Sep 2023 09:51:56 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Mon, 18 Sep 2023 09:51:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S/dT6SY9HTDgfMv7Xa14FNVRo56r0Bf+VdLXnu0fF07EIVf8o5C4ecKFUFr5Zy+DH99FxTtYwEhBpJg2UqRKIGeK3Zmo5cWKrhRUVEA2tSNMr+HlmEA/A1Aez6vqIhoZnkZsRSx8BhZd1fsQ/MMwxoLjlV0wyvluoCq11W7aMB7+TsE8fmzg9MxkKWSgY75vbygyMCZC4UCkACyEkwkDUVxG+hM1W8Opm/orStGVRHUHVG1gXefuQJz7zk+gdTzynm2MncwEVapj4GNBLpbX/8TQL36MPWh2+w84GbRcHFcqI/IjZLrusTET+pUPp4gCZwwZxBccQwV452sg8zvkxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0PcKBs0HXAEC8yZ9zgaG2ihCnM/LNG86ykBSzI0t5lU=; b=NXpeBJtkXWPcUZvr5xW6jrRV5m3atBM3OuLM2kTDo7xkdovX4aSsRLe1ZnvKLL/b8yyuZu/ichOpTc1V2fhKO5+KOV9Yn5iSXRv6Xc/HwCEuP/IvVuxMOnZCa4uszg/r7OtY5X6zNH1wl+EXbaj+d3vNUbcwd35bnlZFFyWVVSVgN1qc5K1TRW5lGVeN5jktlTtWV9opUK6nubYdMGuenp1M1lEZCf1OqK4f24QMCEwcDrWXfyywgHL63VQ2k2xqA+pRDBF6T+8OZNldF3rmhG4hjEnWdqFXBFxoKtXoGfGhkG3FLe4530RCAEkJQmuhm334CA2IZCHGJOy/vNrdew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from BYAPR11MB3768.namprd11.prod.outlook.com (2603:10b6:a03:fa::20) by IA0PR11MB7306.namprd11.prod.outlook.com (2603:10b6:208:438::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.23; Mon, 18 Sep 2023 16:51:53 +0000 Received: from BYAPR11MB3768.namprd11.prod.outlook.com ([fe80::fca6:a86:a250:ad54]) by BYAPR11MB3768.namprd11.prod.outlook.com ([fe80::fca6:a86:a250:ad54%7]) with mapi id 15.20.6792.026; Mon, 18 Sep 2023 16:51:52 +0000 Message-ID: <826a2b32-bd6a-900a-19fa-e169fcf0d29d@intel.com> Date: Mon, 18 Sep 2023 09:51:49 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 03/10] platform/x86/intel/ifs: Image loading for new generations To: =?UTF-8?Q?Ilpo_J=c3=a4rvinen?= , "Luck, Tony" CC: Hans de Goede , "markgross@kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "rostedt@goodmis.org" , "Raj, Ashok" , LKML , "platform-driver-x86@vger.kernel.org" , "patches@lists.linux.dev" , "Shankar, Ravi V" , "Xu, Pengfei" References: <20230913183348.1349409-1-jithu.joseph@intel.com> <20230913183348.1349409-4-jithu.joseph@intel.com> <10fe57c-c926-9de4-be84-21a0f8abab6d@linux.intel.com> <56b486ce-2a6e-c4c7-8bc5-ceeb7119ba1@linux.intel.com> Content-Language: en-US From: "Joseph, Jithu" In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW2PR16CA0023.namprd16.prod.outlook.com (2603:10b6:907::36) To BYAPR11MB3768.namprd11.prod.outlook.com (2603:10b6:a03:fa::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR11MB3768:EE_|IA0PR11MB7306:EE_ X-MS-Office365-Filtering-Correlation-Id: 9185d5a6-7f6c-4179-5b38-08dbb8678f35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s8Kv0XdpXiYWBxctz0tHCMpbFK6QSnHZuebSw2LJogEvVNiiRfLY6D3EB0XY8hTSp3KPJIobw4xP1oqqg98VnJ6OZVe70MK/g2m4jdsEgHDNOWyVHM6VydZIUtIcHtaWxJl2xsONimnB7JbkAiB0vEac3TD7hgFEGgLi/hh9rP0iHSNsnwOE6nlenpI893/uvU2Rc9wVF/eDVSl8lcTo+ISMWFbG84C4gluB/eYEMIQwbszPNLJsnMoTYLjbN1OL0iMp3dkDkkkmzZzIVujZigi7ZogTJC/cEuZqM4eEAzRbVwYbFMcO9WI2vJDidhA0L0wFW8/GrKkpYNnlhWXeuywlFkjYb7/0fUy6B6Bnrxm7k553K4Re9SNA4Z+bNo03DIHm6cusfSlb3A4EmmS1U88JvNAM4pehchJ8WltZsTgqZpG5zpFnSSAONY+nEvtpcFeAWmlHKRexGqFv3Qr40A2wyQyPiYXP3aVzCopYfR/BxZuO0AnD296y92etPDoONaYj88IdZ+MS+bpzhZtPYjmQXhtX2ivK+6nfDoz5smtjo589yVQ23vrkDXQheYC2/85W3SJFokknUw++2SmXXyr5mxqgnPHfoG5+ClhTbC3mXxnBVKBNtxxzJvnX0XkQU/wi47dupbDmGvqf9z4Rdw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3768.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(39860400002)(376002)(346002)(366004)(396003)(451199024)(1800799009)(186009)(6486002)(5660300002)(6506007)(53546011)(86362001)(54906003)(316002)(6512007)(66946007)(38100700002)(41300700001)(66556008)(66476007)(110136005)(31686004)(6666004)(478600001)(6636002)(82960400001)(8936002)(2616005)(8676002)(26005)(2906002)(31696002)(66574015)(4744005)(36756003)(4326008)(83380400001)(7416002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Slovc05Zbm5Fckl4UHJWUDBnYVhjNndmWDE1WEdVWVdEUnV3UVgrbGlHcWxy?= =?utf-8?B?alBBTkhxeThkVERTa2VWZTZIRUhVUWRhUlAySkk3THFLa09BVzdFMTI0Ungv?= =?utf-8?B?bzZtb3hkTlFYTmRoNjIwUFYrNHhFZkdyL2E1czN1RERUV2tkSjRFSUNWRUVR?= =?utf-8?B?N2lSWkhRYncxQzlSL0FDTDY3TEE4YzM1SFQ1V01vUm0xM1E3V05GVGhS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xRVdNV1JVUlh4ckF4WDNEYjRGbCtreS9mRG9NNDAv?= =?utf-8?B?WUpHWjlFT0JEVmRNaEE4WVlaRGhVMHRvVjRRVTJtQjFXaTRsQkRBQTVaMlEr?= =?utf-8?B?bS94dmlkSVJPOERpUSt2Ni9HRGZYTU1IUDVERW5KSE5sSEVkT1dyWVMrYkxp?= =?utf-8?B?K2c9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 9185d5a6-7f6c-4179-5b38-08dbb8678f35 X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3768.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2023 16:51:52.8352 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5nyOWKYUD2vjE8R4Qj0J6mY2Z51eeq4sJ1ua2gazKNehe57BpTpDQXGleXau4MxPoMZToSKs/cCCh6DqFSddvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7306 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-3.6 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_BLOCKED,SPF_HELO_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 18 Sep 2023 09:52:11 -0700 (PDT) On 9/18/2023 9:29 AM, Ilpo Järvinen wrote: > > In this case it is not just about the bitfield itself nor the bit > allocation order but sharing the storage unit with another member, and to > further complicate things, members have different alignment requirement > too (32-bit aligned u8 followed by u32 bitfield). > I too verified that the size of the whole structure matches that of MSR 64 bits (8 bytes). Initially when IFS scan was added the all MSR structure members were bit-fields, later there was a suggestion to use basic C types if applicable during subsequent Array BIST patch series. I followed this approach with the current patch series . I will change the current series to use all bit-field MSR structures in v2, given mixing basic types and bitfields is a a source of confusion Jithu