Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3655909rdg; Wed, 18 Oct 2023 01:56:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3/mmpT1z9YLkvD0sHatg49qapQ8nX4gDYODZCQN/I1R6ODyPX5vp2TOe4j8CX4H1ik31R X-Received: by 2002:a05:6870:1210:b0:1e9:ae68:fda3 with SMTP id 16-20020a056870121000b001e9ae68fda3mr4598561oan.12.1697619392876; Wed, 18 Oct 2023 01:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697619392; cv=none; d=google.com; s=arc-20160816; b=zCM3gDI77TVRQnI1K5MzKpo/YD17dV7ecVX9DPc8NNKANIc0142ktwXF3Vus3mLoyc I3hNTTG4aj69guTh+G6+UVPRE5elVXGpWRcEuIOM0aOvEI9MgIzt1mOkqG8KmoaaqZfh GrMISVgSnnoO+wg27ORaMuRYm2yw6J/XeeiERuicbCu1vj8w0Uf19Mxu1+sjM+VI93Fe l1moPX3usZRywKafrcc0Xsk5EelI8p6BHpKrp2fPfuhF8kPuZeecwdvHxz3ahzHDXC6S iL4lW72hs/hKqjIXEVzuwu/nKiB0g8PKvXhSgGB5m46scjzf6aICpsm9lXLt67OBkuef f4nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=d05rj6n5ZK2p8ecSzGvTbVDMXDFYZOSXnK4ri/IGJ40=; fh=idxKsOH+rXrTGJbYKGZsF1J+6lOMhqRtpBR2sDisHW4=; b=KF/kRNuAdJGTeKXw2phxieOKywhqa1x54En5bVCA2EbVub82fleaUm5NkTwqYzfAup z5bPOayHuUwaB67usUtr5i/lHjZRIoCytaLpj2Pjr0ZWGtdMFVKk+biz+jkXG3wDPA88 gB8WBOJXWEtjShOCVWeY+Dx5LKNgELZoX7dGo1r/Penjohko/WHe+qentSv/gwecd2GM dfD85WLsfY2t4PI+NeDM6LbixagHlTbWHCqT1JQnmm8CW1b7IMSSZaLdtcQbkCwouIfh sfM6MjxoFs/0ELskRK7Vt+tzdhMUkJ8ITglQrKihLcYaP2c/KulKydKo3Pd4B1ly7t/p LQPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=onskFz8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i131-20020a636d89000000b005ad10a010f6si1722601pgc.352.2023.10.18.01.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 01:56:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=onskFz8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8C40B80ADF32; Wed, 18 Oct 2023 01:56:31 -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 S229510AbjJRI42 (ORCPT + 99 others); Wed, 18 Oct 2023 04:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjJRI40 (ORCPT ); Wed, 18 Oct 2023 04:56:26 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B7539D; Wed, 18 Oct 2023 01:56:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA057C433C8; Wed, 18 Oct 2023 08:56:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697619385; bh=KRyk2UahrrFPBEIK3F5R5UL123qYTEWCilr8OIr+Ni0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=onskFz8n7eY4HE6UxY+Qt+j/CPAfiEGsY6LTSwau9SSFWKCeKtx+HxkXJef6hRfuy VDquXqxg6ExoZT8WW0kzz2MRSlmRWECHonoRFvrti8Y8OMq4R72j5b1FNDX0BzVKQj sO1/8rEF24ZdlroAAaof8oFG0eEnjLq2g38dNiur/ehl0swWvslrXu+oOjX2wMmoXd NvnL5/1pcrd71EGTM/91m5f0jNFcPJBF78ui28bE1i5Lm6ujNZQA/pi3dQpjgBPOif m4Wm5IXtEktwDh4feIf8qKVkwThP7Xj5PFLnxRhppTy8dz2XLdvzdUnfg4WI8+ze53 QoHakNiC40UpQ== Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2c5210a1515so48576131fa.0; Wed, 18 Oct 2023 01:56:24 -0700 (PDT) X-Gm-Message-State: AOJu0YxuVzebr/EG8W9kDbfj9O9v4K3pDoj8t4+eBeIRfUCKIJlyHJ5N yj4kkZabbnCBmhYusNL3BU7eOcK30ajlq1YPbds= X-Received: by 2002:a2e:bc12:0:b0:2c5:9a5:a1c2 with SMTP id b18-20020a2ebc12000000b002c509a5a1c2mr5539058ljf.30.1697619383146; Wed, 18 Oct 2023 01:56:23 -0700 (PDT) MIME-Version: 1.0 References: <20231012230301.58500-1-Smita.KoralahalliChannabasappa@amd.com> <20231012230301.58500-2-Smita.KoralahalliChannabasappa@amd.com> <65288e68de994_2347eb294c2@iweiny-mobl.notmuch> In-Reply-To: From: Ard Biesheuvel Date: Wed, 18 Oct 2023 10:56:11 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] efi/cper, cxl: Decode CXL Component Events General Media Event Record To: Smita Koralahalli Cc: Ira Weiny , linux-efi@vger.kernel.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, Alison Schofield , Vishal Verma , Dan Williams , Jonathan Cameron , Yazen Ghannam Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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]); Wed, 18 Oct 2023 01:56:31 -0700 (PDT) On Tue, 17 Oct 2023 at 22:52, Smita Koralahalli wrote: > > Hi Ira, > > On 10/12/2023 5:25 PM, Ira Weiny wrote: > > Smita Koralahalli wrote: > >> Add support for decoding CXL Component Events General Media Event Record > >> as defined in CXL rev 3.0 section 8.2.9.2.1.1. > >> > >> All the event records as defined in Event Record Identifier field of the > >> Common Event Record Format in CXL rev 3.0 section 8.2.9.2.1 follow the > >> CPER format for representing the hardware errors if reported by a > >> platform. > >> > >> According to the CPER format, each event record including the General > >> Media is logged as a CXL Component Event as defined in UEFI 2.10 > >> Section N.2.14 and is identified by a UUID as defined by Event Record > >> Identifier field in Common Event Record Format of CXL rev 3.0 section > >> 8.2.9.2.1. CXL Component Event Log field in Component Events Section > >> corresponds to the component/event specified by the section type UUID. > >> > >> Add support for decoding CXL Component Events as defined in UEFI 2.10 > >> Section N.2.14 and decoding Common Event Record as defined in CXL rev 3.0 > >> section 8.2.9.2.1. > >> > >> Signed-off-by: Smita Koralahalli > > > > [snip] > > > >> + > >> +/* > >> + * Compute Express Link Common Event Record > >> + * CXL rev 3.0 section 8.2.9.2.1; Table 8-42 > >> + */ > >> +struct common_event_record { > >> + u8 identifier[16]; > > > > I interpreted the CPER structure as not having this identifier here. > > > > From Section N.2.14: > > > > "For the CXL Component Event Log: Refer to the Common Event Record field > > (Offset 16) of the Events Record Format for each CXL component." > > > > This implies that the data coming from the CPER record starts at length. > > Thanks for pointing this out. According to Spec, you are right. Our > records did show up the identifier. Hence, I added that field. We should > probably fix it from our end. > > Meanwhile, I'm taking a look at your patches. > Thanks Once you've compared notes, can you please let me know how to proceed? I will not consider Ira's patches or yours for merging before that. -- Ard.