Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp63118rdb; Tue, 19 Dec 2023 09:21:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiBO+iHBwNz4MJgL5wEc0kH8QBk/mgoyyjpUVoaQpYK6sqzrR9A0e6pDt7KumzlX35xATN X-Received: by 2002:a17:906:73d5:b0:a23:6979:757a with SMTP id n21-20020a17090673d500b00a236979757amr809800ejl.183.1703006506013; Tue, 19 Dec 2023 09:21:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703006506; cv=none; d=google.com; s=arc-20160816; b=JvCC0eV1zCC4zU5IfQHpIsHmvxURJHLLJQMzr1dF1d3qMd7aosf8Sh+zpUjHy7/wLc IM5t1Chp5r61biDTnf3mIGSeq3mmyx5pFHiv03PHyhSeUYwWY4f2Y08RjzClsvGEO5D+ nOeEyak00cJyjBwvnx7xeI29LssoZYYzWzc5HR4IbmwImh1WbLSvxZynVDphJX7ZUdX1 qZDtJ0J5wLMFOE1P+UDb0vgENqYgPCuU3Itb3lrcyEHVtwO4whOeQIgO6FsIMriNK13v zjJLGdpSBSD4Fr9U9jOG7ExJgOdcQxCOawebHzWZWuDPFKW11hGtuwjACTA1SYp/5hNU Fqkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=/aNGXRZBmdorfjKLGCFZv0oZLfJ7TFaGen17gh9P8+Y=; fh=Opv570sc8zaZcx63Px34kQV/zkvDE/GNsm1LPZ68Sdw=; b=VbpXqEZGdEFec/t9AewSzTKG96chjNaGiOd8DEsHtqQbSiZgOZhZqInwadTgZC+Ggs kCuAmbzkVvZnI7U2ljPCqyU83vDnjH3cHjcJSgXmmHqgpP3KtFmJiTK6UXOxYWtmR0bg mm6/iltB1SUVuM2DBKk/5piRExy7RaoRed5Jxn7ow233Z0RCeaoSRLVeIAyNUtxKr/nq EkZ427tvSIJbBTmWNIH3Sa99wEZ1/DA9+4JnvwAKjxXG0Dr2+b1WhHl/qT8oNjs+S32+ oBGoJr+1nDgwca0pKwhSMaB39S7d9BDfeH517BpWD/RxbKWU0A1fBDy19vxn1UWtfW7t +aGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t5-20020a1709060c4500b00a235026789esi2141613ejf.99.2023.12.19.09.21.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:21:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 012281F25C4B for ; Tue, 19 Dec 2023 17:13:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4701422331; Tue, 19 Dec 2023 17:12:51 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 449DC374E7; Tue, 19 Dec 2023 17:12:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4SvjrK4lPFz6K9KR; Wed, 20 Dec 2023 01:10:41 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 83AA7140F7F; Wed, 20 Dec 2023 01:12:25 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 19 Dec 2023 17:12:11 +0000 Date: Tue, 19 Dec 2023 17:12:10 +0000 From: Jonathan Cameron To: Ira Weiny CC: Smita Koralahalli , Dan Williams , Shiju Jose , "Yazen Ghannam" , Davidlohr Bueso , "Dave Jiang" , Alison Schofield , Vishal Verma , "Ard Biesheuvel" , , , Subject: Re: [PATCH RFC v4 5/6] firmware/efi: Process CXL Component Events Message-ID: <20231219171210.000078a6@Huawei.com> In-Reply-To: <657a2ff3bcc0b_25c9c7294ab@iweiny-mobl.notmuch> References: <20230601-cxl-cper-v4-0-47bb901f135e@intel.com> <20230601-cxl-cper-v4-5-47bb901f135e@intel.com> <7ec6d2af-c860-9b05-7eaf-c82f50f8e66e@amd.com> <65674a71ef4d0_a1b25294e4@iweiny-mobl.notmuch> <20231213171351.00004579@Huawei.com> <657a2ff3bcc0b_25c9c7294ab@iweiny-mobl.notmuch> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100006.china.huawei.com (7.191.160.224) To lhrpeml500005.china.huawei.com (7.191.163.240) On Wed, 13 Dec 2023 14:28:03 -0800 Ira Weiny wrote: > Jonathan Cameron wrote: > > On Wed, 29 Nov 2023 06:28:01 -0800 > > Ira Weiny wrote: > > > > [snip] > > > > > __packed attribute just for cper_cxl_event_rec still fails to properly > > > > align structure elements. Looks like, __packed attribute is needed for > > > > all structs (cper_cxl_event_devid and cper_cxl_event_sn) inside > > > > cper_cxl_event_rec. > > > > > > > > Seems easier to use global pragma instead.. I could test and obtain the > > > > output as expected using pragma.. > > > > > > I did not know that was acceptable in the kernel but I see you used it in > > > cper_cxl.h before... > > > > > > Ok I'll do that and spin again. > > > > > > Thanks so much for testing this! I was out last week and still don't have > > > a test environment. > > > > Easy to hack into QEMU :) Hmm. I have a CCIX patch set from years ago > > somewhere that does similar. Would be easy to repurposed. Looks like > > I never published them (just told people to ask if they wanted them :( ). > > > > Anyhow, if useful I can dig them out. > > If you have a branch with them with a somewhat latest qemu that could work > too. They are ancient and based on GHES emulation that got reworked before being merged. I had a quick go at a forwards port but this is a bigger job than I expected. May be a little while :( Jonathan > > Ira