Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2432910rdf; Mon, 6 Nov 2023 14:12:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNWVSCJouqEHTJk0EDuDYv38rtnD9wLEVSMkVRv4KmNmTEFgwPD1BQpSSswfNLzLlfBacV X-Received: by 2002:a05:6a21:a106:b0:181:1d71:7e27 with SMTP id aq6-20020a056a21a10600b001811d717e27mr18542754pzc.43.1699308761544; Mon, 06 Nov 2023 14:12:41 -0800 (PST) Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id t13-20020a17090ae50d00b0027d158c7bb7si8800331pjy.155.2023.11.06.14.12.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 14:12:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iFg155cY; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 349DC80BD3A4; Mon, 6 Nov 2023 14:12:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233196AbjKFWMd (ORCPT + 99 others); Mon, 6 Nov 2023 17:12:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233169AbjKFWMc (ORCPT ); Mon, 6 Nov 2023 17:12:32 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 840EB183; Mon, 6 Nov 2023 14:12:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699308749; x=1730844749; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=KWfVPtaUXxYD6l8Vct2lCBBnMB46OOyZ1AQJGC8Z0Uo=; b=iFg155cYu3j4vIlt+LwJBiyC23kyCOzKOSVRE0ZvFBiDB2LE++/QEusU xaEuMFMHLXxOBMfbQUWmH7SFya6RxgFZrfnGEgVM/jJYkr0sSpNuD+h6x KCbcC7WZ+34X2K3a9YGkeeHpttIx3qKqQh8V22Sorn85Zol9AAhh2tk5D 4h7rZJ7xlDAjgCPk58JN8qk8vcFzzGl1YVNhMT05mEHdVmLVL0Df5e3Vt QlKdkx3aTXDMAOKpy5Py4ok1QAx4B1KqWSVAmvhnsWAnkVes/5JWd4AZN ijJtHNoUgQ2Zmh6nqlWpTT5nfjcsDXbHS8ti6k88xwrn8xNod4qlbeGgv Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="379772215" X-IronPort-AV: E=Sophos;i="6.03,282,1694761200"; d="scan'208";a="379772215" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2023 14:12:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,282,1694761200"; d="scan'208";a="3762404" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 06 Nov 2023 14:12:28 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 6 Nov 2023 14:12:27 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Mon, 6 Nov 2023 14:12:27 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Mon, 6 Nov 2023 14:12:25 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eyXsOcs6GoBs6C+bBqCViWZ4vhiMZetMZ3jge2Ol3EmchwGoV2nlXam+e0fGCOvWNpvx4QfjVDgjUB2ERJtjUhBisw38INmDQe0Ip4iq2xSigRIsm1+q2GVDCo5N0VyXn23sjEp2994FEYfj6u7eYqv/ZiXd95HdhM/aHGcXevmNNWR8xR80XgpRMeQLjkZmoX+xQMz29p87AvcFu9wUsV7of6SnI0YPmNsGSOZmLk+hCeG7iQ/dsjut2Q7WfyBKPF+BWfz89eM0I+pUtCp+GF4fZfn5PUM7ZFfzU3TYYgosdZL7I+BeJLQ3zL2qiDtS+Q3JXjwsdwSyrlM1bmdiGQ== 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=biDuWQQtw/OpEPl4w852AtTyBidAg26osqsyBXZcLA8=; b=Ta7N2L56ta2Rqu12D6n8qaaoXpcyodhvJDN71dZsnStY4DlJJNORIxmLGSaheZ7lPeM27XZhxSHSj5rwdFZvBKR5mtuW1z8h9gxNglM5kN0fC0o69LCFFq03XJIxEJzOnTAJLkVCDY1JZYrRNdK9iFUEBBKrKHK2qXAqUxkXZp6a2/+G4WJ8xOf5AoSyDVsLXiyTltKOc5+IRhiQGno+uv2LVgPlqomWAUUStpM2lOdFjQLUJowTMLvBGYDWudS97Ke+i5HlIGDLKNEpdXqrvEu+EVym4nfNXCIuKJQhWuWWwLjr5ikyCMJ6B38IcGQsfA8aryE550wRVBH3dVaQVQ== 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 SA1PR11MB6733.namprd11.prod.outlook.com (2603:10b6:806:25c::17) by DM4PR11MB6455.namprd11.prod.outlook.com (2603:10b6:8:ba::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Mon, 6 Nov 2023 22:12:24 +0000 Received: from SA1PR11MB6733.namprd11.prod.outlook.com ([fe80::d3b2:2f2:701e:e8c7]) by SA1PR11MB6733.namprd11.prod.outlook.com ([fe80::d3b2:2f2:701e:e8c7%4]) with mapi id 15.20.6954.028; Mon, 6 Nov 2023 22:12:24 +0000 Date: Mon, 6 Nov 2023 14:12:21 -0800 From: Ira Weiny To: Smita Koralahalli , Ira Weiny , Dan Williams , "Jonathan Cameron" CC: Yazen Ghannam , Davidlohr Bueso , Dave Jiang , Alison Schofield , Vishal Verma , "Ard Biesheuvel" , , , Subject: Re: [PATCH RFC v3 5/6] firmware/efi: Process CXL Component Events Message-ID: <654964c510b5c_90fed29485@iweiny-mobl.notmuch> References: <20230601-cxl-cper-v3-0-0189d61f7956@intel.com> <20230601-cxl-cper-v3-5-0189d61f7956@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: SJ0PR03CA0332.namprd03.prod.outlook.com (2603:10b6:a03:39c::7) To SA1PR11MB6733.namprd11.prod.outlook.com (2603:10b6:806:25c::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA1PR11MB6733:EE_|DM4PR11MB6455:EE_ X-MS-Office365-Filtering-Correlation-Id: 859aa56c-c218-441c-58d6-08dbdf157422 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XXjqNqoyIWXr9SyK5qpxhYcA+unbXUzT9uQlnDY01zGmZ3qmqENOUblHqCnlZMq2GFYZvfTLePEvBg3jD2vxRp+svmBLuTQUcGIHt1s/9a/Vqzpo2JK3sOYHObmhv3FOJGY63lcPG25/RzcEPBne1PaWuThqnKXdytnronxqcqfL+7okqUupU4t3rq2IFBeralK4Qi/JmBgOjY6uAawZuRYg+1LbIUzMCdnUUR9rxXdMLEHr/5V7uiN9BU5ZFN6ZGKQB8tw1c/VBF9tBuk/34MalUubD1x7Pes4uZNRQS5kf6Oql/r2zZSnTZWmMr6HtHMoSm162UKILvZRoZp0+mIgR03Djw0W1KuGn0dtG6G9TstWUoEPYYrnZbrwrIYZZIffJ9P2ycSLIYqexRSpQGP83E0K65IzTOSieJE2kILGwy6v3ySupgAwzAT1eEnggC8TiEqTUNDDbHUhFloZQBQgLdjPTSbgSi8JyCkPNTppeIrtK9cMUonEr+sG6QjpAwk+YagLW6MHenj2srfkblI0gsO5k/LxIt39ZB1wHS1acZiDVAqnt9u++WrOpx9hJ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR11MB6733.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(366004)(39860400002)(346002)(136003)(376002)(230922051799003)(64100799003)(451199024)(186009)(1800799009)(2906002)(4744005)(26005)(38100700002)(86362001)(82960400001)(53546011)(5660300002)(6506007)(478600001)(9686003)(44832011)(6512007)(41300700001)(6486002)(6666004)(66556008)(66476007)(66946007)(54906003)(110136005)(316002)(8676002)(8936002)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?IJLIcFQvSPfvhbNPR+BXqvPOyNFJHuQdI4xP+VqnXvcxfrocSteFytG4RAjM?= =?us-ascii?Q?wsTLu0v5APEAj0wD59Pw+4Tn2e23/jAyPOwhO8LLKI6nVESlK1UOW2/aPxgf?= =?us-ascii?Q?hwLtAojkN5o6NWNakHNWoKAEmrMbkhk7by+Ga/6k4fCUzPkXFnpAe5idqgbk?= =?us-ascii?Q?FMLQepmWIjCKk5yNtJzhRNI975iotl+qiPQ3QJU1xocndoO4URSLmhSG8JN3?= =?us-ascii?Q?ABWDoYxj+31k3OFSQ/Y98XpEVu0A9BfKGzc/PLNKZ/Fhq/EQKAItv7rqDcHc?= =?us-ascii?Q?UjfCnLCHFy2nqIXrYVlesncnbs+hHQZYG5aPzJ9YVckutINrw7GUL3ICA1S6?= =?us-ascii?Q?+Y5GvOHk9ZlBAuq4wQeU3dQT0Qq6shCcXRZ+ByQpTJlKF1InJsns/GjS+yWl?= =?us-ascii?Q?6AjjftcFWI/zEio6HHpEjSGmgH9Q4r8gXfyHaaCYh405FnRDQ0y+g7hckv9g?= =?us-ascii?Q?VgJ8Cn3Ta5NO6vaB/NT8PzhI1X/fxHSyYVF0gUtX8K4CDDQv622h43k5YDyM?= =?us-ascii?Q?FO5Ry5nPeK3taSmkyjoUpNwLcJe4r6YJQTLaMY4xfffcxPMEuBHshkPnd67n?= =?us-ascii?Q?40/18cC4/IxrCFSCr+TtYHuZkCtk4WXSD12O4sHAaDAbyE+eVoWHryNKy+10?= =?us-ascii?Q?mj23fcUQjhBpyPnL3+kIHagZ18JriFaYBszRS/zhHhqgU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CKftFbXjS/R+zmSHq8fL4kt/XTi?= X-MS-Exchange-CrossTenant-Network-Message-Id: 859aa56c-c218-441c-58d6-08dbdf157422 X-MS-Exchange-CrossTenant-AuthSource: SA1PR11MB6733.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2023 22:12:24.0461 (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: yA9YY8DrQSBF1ycPHooGLfDgGvg2AIvZMu5IWNcGSCOtRJL7zOa+yg6TKRPAhqO20KRZ7iGZQoHKrhbx3N+izw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB6455 X-OriginatorOrg: intel.com 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Mon, 06 Nov 2023 14:12:39 -0800 (PST) Smita Koralahalli wrote: > On 11/1/2023 2:11 PM, Ira Weiny wrote: > > [snip] > > + > > +#define CPER_CXL_DEVICE_ID_VALID BIT(0) > > +#define CPER_CXL_DEVICE_SN_VALID BIT(1) > > +#define CPER_CXL_COMP_EVENT_LOG_VALID BIT(2) > > +struct cper_cxl_event_rec { > > + struct { > > + u32 length; > > + u64 validation_bits; > > + struct cper_cxl_event_devid { > > + u16 vendor_id; > > + u16 device_id; > > + u8 func_num; > > + u8 device_num; > > + u8 bus_num; > > + u16 segment_num; > > + u16 slot_num; /* bits 2:0 reserved */ > > + u8 reserved; > > + } device_id; > > + struct cper_cxl_event_sn { > > + u32 lower_dw; > > + u32 upper_dw; > > + } dev_serial_num; > > + } hdr; > > + > > + union cxl_event event; > > +}; > > Do we need pragma pack or similar for alignment here? Yes good catch. Fixed, Ira