Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1630210rdb; Mon, 8 Jan 2024 05:42:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUtH5vDjVjOimQpTWyLR3EuA637zrlkUUF6k+nupRjRFPhWR+bqofmIkjwElQVJfxu5mHv X-Received: by 2002:a05:6358:7e93:b0:175:5e2f:41c5 with SMTP id o19-20020a0563587e9300b001755e2f41c5mr2893528rwn.26.1704721360687; Mon, 08 Jan 2024 05:42:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704721360; cv=none; d=google.com; s=arc-20160816; b=oFYoRVmxpImPcxh88n27U5o3/sTw9xe/U5b/YvpRnXzTLJ4v4ie2YalTvFr3GvcVKa o6HadsRLg0hQqxoXwQakwKV4CgtSrSR1NxeCraFelsHTMYZMqf0vy39I+3jcf9iCC9JK 0lZr7LbsatItefBix8YT+fkeudH5N4S8IJ1DZYfXQQiIkanVf0GFeTE9MdLm5eT35VOv RknqK4axvX2F2gf0awAxXw44pY2jZ//iHFvmDTkkah67LkXjImRam6rmvuQlYVIel8d6 MtP6MODNd1frQ3ghdiZuDs531VUBy5J1Egfd78DgHqvBAB/woKLl+IwJrzJLSGoeH6YE ywKg== 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=BcVdA4+N6SALbhx7I9ByRxthVStFdcjPZChdJrWfvSc=; fh=EH4bLA8JIptls84Tw2qmXT/C/y5s94KLqlVsAutJb24=; b=LjkSxk/Mc+HiqUvQMr1WKhOIQLj+bt0vOXBPRVLsXP2BtfgKBtZ0GgpyjHokCtnqgF y3ryfmDvN8n9ycar3WVCf/cgr2TI0F0XXJZtEIeiberb8nJZ/wmvt5Mz9CvFFfolSFUd QebSgphlaEmI67npaa1F64GyDTlDZ45ovWDQzv4gk48ZCpaPrrYtHZXOp3q5jJ48zPjU vEOlRMtXEtxX8w+lOxkOBEHk49zb7AkJICiKBgBt1lWb22YGuPpqxWntUD01AYKijUBn BWu+v1N0+2Ux5HY0vrSQgfN/ttJov/xuVZx54302VhKGSutqxjKMtPMYaVXF5T6BegBN 2JqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-19635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s129-20020a632c87000000b005ce008218b6si5971169pgs.841.2024.01.08.05.42.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:42:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-19635-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19635-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DCD2EB2232A for ; Mon, 8 Jan 2024 13:42:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA75545944; Mon, 8 Jan 2024 13:42:06 +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 2D79344C93; Mon, 8 Jan 2024 13:42:02 +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 4T7wDJ1LFpz6FGLk; Mon, 8 Jan 2024 21:40:16 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 6B578140B33; Mon, 8 Jan 2024 21:41:59 +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; Mon, 8 Jan 2024 13:41:58 +0000 Date: Mon, 8 Jan 2024 13:41:57 +0000 From: Jonathan Cameron To: Ira Weiny CC: Dan Williams , Smita Koralahalli , Shiju Jose , Yazen Ghannam , "Davidlohr Bueso" , Dave Jiang , "Alison Schofield" , Vishal Verma , Ard Biesheuvel , , , , "Rafael J. Wysocki" Subject: Re: [PATCH v5 7/9] acpi/ghes: Process CXL Component Events Message-ID: <20240108134157.0000013c@Huawei.com> In-Reply-To: <20231220-cxl-cper-v5-7-1bb8a4ca2c7a@intel.com> References: <20231220-cxl-cper-v5-0-1bb8a4ca2c7a@intel.com> <20231220-cxl-cper-v5-7-1bb8a4ca2c7a@intel.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: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500005.china.huawei.com (7.191.163.240) On Wed, 20 Dec 2023 16:17:34 -0800 Ira Weiny wrote: > BIOS can configure memory devices as firmware first. This will send CXL > events to the firmware instead of the OS. The firmware can then send > these events to the OS via UEFI. > > UEFI v2.10 section N.2.14 defines a Common Platform Error Record (CPER) > format for CXL Component Events. The format is mostly the same as the > CXL Common Event Record Format. The difference is the use of a GUID in > the Section Type rather than a UUID as part of the event itself. > > Add GHES support to detect CXL CPER records and call a registered > callback with the event. > > A notifier chain was considered for the callback but the complexity did > not justify the use case as only the CXL subsystem requires this event. > Enforce that only one callback can be registered at any time. > > Cc: Ard Biesheuvel > Cc: "Rafael J. Wysocki" > Signed-off-by: Ira Weiny > Very annoying that CXL using UUIDS and UEFI GUIDs (so endian swapped). Is it worth a general conversion function or just keep the data duplication? Otherwise LGTM Reviewed-by: Jonathan Cameron