Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp290451rdb; Mon, 18 Sep 2023 15:33:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkG3UCxcd+kWGKG1zrbNBKY5Z/Ve+h2CcEnzLxsgSlSLJ71p5iVTpiAGtE1ejOrPFnANkf X-Received: by 2002:a05:6a00:21cb:b0:68c:5cec:30d4 with SMTP id t11-20020a056a0021cb00b0068c5cec30d4mr10972324pfj.27.1695076406692; Mon, 18 Sep 2023 15:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695076406; cv=none; d=google.com; s=arc-20160816; b=OntT2vM9lpbdvNrPHS3ysyWJZE7B4Hpmj82qwpE0BM9onPuhN+Ibyl8LvhwXRidqYX 0FeNtHgsPg7mmFxhJT+XYTmfOXeaw0ops9RET7p+W3HeKfU6j6lBSRCL8PccifnRy7I1 DKtLo4qlYPa2D7cAMMtFkNjP9sxiIYW+6lRScATfebDyfkW4kDmhcvFnj2ccY0j0RcW9 vZpTyxG94MFWdcXTZ6+eMuACmTC8DLO6ZLV/8TX9WdN5yZormxicgReWf6yF4Pmf+6tn Gk7bj1wkhy7YsxRsG3DT0Ck0xNY9i77HsVa9kp4cUFjfySlZv104YqnCOyAMmeXZFzs0 rV+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=plK/U+zw5v72FN/33/EkMVJ57FyQdAYJJ1dS9jj9jRc=; fh=Tj8aB+gM7KHxFNFRPNOk5Hp2kKLni5PD/+GzaCfyTa0=; b=azUR9JhGMs6YyxPLI3BjN/DOA1BVRO7giH6ajAWBhEai1ZBFoPWrpOyTUmCntSjPve reCSFT+GvZ1h5jqpbVPtemvZX3Oj3L9kYT+ZZMvxgHaNRBIgp1Mahom+fNi3oWvYJ7uJ RnFBnnFwMdHahLFPZDEH+eJa3dt8+aCst3DlR1h1gsCZu1/nATVX11Yf2/5Y465PmCRD l/wOxsQhcOuIrIpXk7TfzLOQMutu7zndaMr+dtiSA4BhyM31v7qwIFpZvFhbfkWuZJXL HnpXnm/Op1SYrq5+nKee5xWsdYj+XtxwXRn4M02Q8qqfk2psfseezcPEHA7M33CVYNCA ljOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FnL9ehie; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id p23-20020a056a000a1700b0068e29a05faesi8888634pfh.285.2023.09.18.15.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 15:33:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FnL9ehie; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 7E75F806E3EF; Mon, 18 Sep 2023 09:42:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230476AbjIRQmj (ORCPT + 99 others); Mon, 18 Sep 2023 12:42:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjIRQmW (ORCPT ); Mon, 18 Sep 2023 12:42:22 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0E574495; Mon, 18 Sep 2023 09:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695053009; x=1726589009; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=1fHCLdwNFc+9WgKlHtruvN6B6ijVRNVQjqIxvdsKyPI=; b=FnL9ehieDvRqRo/ncZYymTThU2+f0RPQoBOsKnBPfYInE5eCdQLOUqKO zAGizLBhuQ8dtYXvIKuX7aPWPS5WoGc3ZnSb7tz60oLJ/wHG3DQu5foTU Y5eVUwIUwUzSl+sPZQN8BUMJhlWC/gExxkLaJCgdoQx2Zsm6qTt1cAN31 nYr/vXlo85rGds8XqJy78ZUHPIGNXpkc/fHckQ4AndnVxETf/H7F0oSMf ufZ3ghzXmQm8+NggGsmrfo+o1ThaVSX9cT+EJGYcp65CYKB1uo08lj2n1 7X8Yedc8Zi2Tf+nZWA+iczUJXXZsDVnkNl4QG7WH6S2KrM6rg0yn9my48 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="370011044" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="370011044" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 08:46:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="869597607" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="869597607" Received: from nprotaso-mobl1.ccr.corp.intel.com ([10.252.49.156]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 08:46:09 -0700 Date: Mon, 18 Sep 2023 18:46:06 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: "Luck, Tony" cc: "Joseph, Jithu" , 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" Subject: RE: [PATCH 03/10] platform/x86/intel/ifs: Image loading for new generations In-Reply-To: Message-ID: <56b486ce-2a6e-c4c7-8bc5-ceeb7119ba1@linux.intel.com> References: <20230913183348.1349409-1-jithu.joseph@intel.com> <20230913183348.1349409-4-jithu.joseph@intel.com> <10fe57c-c926-9de4-be84-21a0f8abab6d@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 09:42:45 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 lipwig.vger.email On Mon, 18 Sep 2023, Luck, Tony wrote: > > I think Tony's "proof" is pretty invalid. He doesn't differentiate > > HW interface related bitfields from those which are not HW interface > > related (to the extent that in fact most of those bitfields likely are not > > HW interface related). > > When I made that comment it was about a patch series that used > bitfields to decode the subfields in Intel model specific MSRs. I > think that's true of use in this series too. But your grep in [1] was not limited to such cases nor to HW interface related ones in general. What I meant with your proof being invalid is that the argument against bitfields have been related to using them with HW interfaces, not just generic use of the bitfields (even if there have been some performance issues in that area as well). Simply grepping through include/ directly is not going to tell anything if the bitfield in question is related to HW interfaces or not. > I think most of these are for MSR decode. The one mentioned in > this thread: "union ifs_scan_hashes_status_gen2 {" definitely is. > > Are there any that are not for MSRs? I'd also claim "Intel > specific" if there are some decoding parts of the Intel scan > file format. First of all, I already checked myself that the alignment is not incorrect so I don't find it as problematic as I thought it was (I did not even flag all bitfield addition in the patches, just the cases were u8 was followed by u32 bitfield which I thought is not going to work because of something I read about this topic some time ago claimed if the type changes the bitfield does not carry over). Since you replied, would you happen to have a pointer something that tells (in writing) how the bitfields in C are allocated in case of x86_64? I spent a bit of time trying to find something but came up nothing. [1] https://lore.kernel.org/lkml/SJ1PR11MB6083EBD2D2826E0A247AF242FCD19@SJ1PR11MB6083.namprd11.prod.outlook.com/ -- i.