Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7267968rdb; Wed, 3 Jan 2024 09:51:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTteXZKJwjZb7t2EtULMeSbX+fVD8om5Uv0H7O9BQp40kGmQSzvWYZUgg/ftdMrMtx6DVr X-Received: by 2002:a17:90b:4002:b0:28c:137e:7a42 with SMTP id ie2-20020a17090b400200b0028c137e7a42mr5743281pjb.2.1704304267967; Wed, 03 Jan 2024 09:51:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704304267; cv=none; d=google.com; s=arc-20160816; b=tZkOv8PRqG1blDmSqYuIREbbKlwqdrLCzNyTASya/ozp5Da8MVFUvdE1vxZlToiNn+ On3FeOZGs5dPvIdK8nC55GExwk2CibQN7B4h2a+gLbG339Rf605p5ppcrfZukKDnNPfa 6ZBC70djxkCbtuvzA+F+3xtudpiRKOdZ6RPG5Is60ICSztSeqWxGDukxcAhzgSXRqfWg n+igFfWddAALJ3v95rhaUlZpIfb3eF2fw102GQ2W0UsWHZJlvYAuRKlCr8q1JfKCcWCp JjnmKTiFYuBjNi4J0GyZwha5EnOJC1Gv5MDlkY23soOwsCXIA1AdYf7RuWmH9Bxx63IK 4NtQ== 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=05HTMzTcIaF3H8SSVLr2zL/QT8bpAX59TTPeHpw8fag=; fh=i7eR55eGjX+LtNNz6mmr273cNMfzeAwmmqIzR3kyIC8=; b=R4g9b7Bg2SG+2za7JZcRuRRbKCl7tPSxsUBUs44efO4qd5cTsF1im3t+VWRaGAFbNQ JqpNau7hIfEts2su6FAAjFJFWiQ91lUvdWgcNdaS3n2uwiww46R86zE9fql/mcY0A6B2 klqFQo7+hIXtxsR1jHozgsvLhchJXSjx1o0yQMotEvgl+lfe/Ek+awzGiYhivjYYPCIR AbxUNtYV38/f4fYknvsRDYvJKIjZaHYQ65jUVJiJ7F3DDgMUQNnaCSdzRuQU/ErqqBKX d83BqcWutWFaWg8+gAxfHkgO/7L4AxrF2Qdv0h6QmT7NLjWUt7T4MAtFJAEa6UhXH0SG 9ixA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15820-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k10-20020a17090a9d8a00b0028c0ee8dd12si1510484pjp.128.2024.01.03.09.51.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 09:51:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15820-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15820-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15820-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3F2E1286854 for ; Wed, 3 Jan 2024 17:51:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BF0A1C2B2; Wed, 3 Jan 2024 17:51:01 +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 19B871C296; Wed, 3 Jan 2024 17:50:57 +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.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4T4xzP35nNz6JB4H; Thu, 4 Jan 2024 01:48:49 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 3CDFA1400D3; Thu, 4 Jan 2024 01:50:49 +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; Wed, 3 Jan 2024 17:50:48 +0000 Date: Wed, 3 Jan 2024 17:50:47 +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: <20240103175047.00001a55@Huawei.com> In-Reply-To: <20231219171210.000078a6@Huawei.com> 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> <20231219171210.000078a6@Huawei.com> 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: lhrpeml100004.china.huawei.com (7.191.162.219) To lhrpeml500005.china.huawei.com (7.191.163.240) On Tue, 19 Dec 2023 17:12:10 +0000 Jonathan Cameron wrote: > 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 :( Working again (embarrassingly I had the error source numbers reversed due to a merge resolution that went wrong which took me a day to find). I'll flesh out the injection but it will basically look like normal error injection via qmp (json records) with a bonus parameter to stick them out as via GHESv2 / CPER rather than AER internal error. I've not figured out how to wire HEST up for x86 emulation yet though so it's ARM virt only for now. (HEST isn't created for x86 qemu machines whereas it is for arm virt with ras=on) Obviously that emulation is wrong in all sorts of ways as I should be dealing with firmware/OSPM negotiation and setting the messaging up etc but meh - it works for exercising the code :) On the plus side I get nice trace points using your series and Smita's one. Quite a bit of data is 0s at the moment as I'm lazy and it's the end of the day here - I'll fix that up later this week as I can see 'everything' in QEMU and the register values etc are already handled via the native injection paths. Jonathan > > Jonathan > > > > > Ira > >