Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp24500lqa; Fri, 26 Apr 2024 13:04:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWM5Yzvb1goPNrsz+aUJGA1+uO0eCtDS/G12w4S9rikrz1k7wDT38MLdCXTnCWd33uKlSQ+NxaHlZ/qOX4boZLm+ffUK7OTbj2lIOrMUQ== X-Google-Smtp-Source: AGHT+IF4tmfTLY+ZMJ5DBKZSjYgtoSUAyOQEevpHDR2MFJtWj6eaxBjmRUxiFUQxCZnN9CJwViDr X-Received: by 2002:a05:6a20:2d07:b0:1ac:be61:6d76 with SMTP id g7-20020a056a202d0700b001acbe616d76mr4717114pzl.26.1714161883247; Fri, 26 Apr 2024 13:04:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714161883; cv=pass; d=google.com; s=arc-20160816; b=TxRplNqBexFteEjwtd6Zz2yW51YNwJOFqQhRKs5d8NKNAikxyCI7rHyHo0SIghC+wk MI7U+qMMP3Zf5FbgA1mLKb8T+M/cF05X2aBahLERPGdKieB3Wa9qbq4VSXP/XR50Y1AS 4W3VP5IfLD4vUyByDMIXdorWDsoTc9S+hvXFB2Z29EOh9ueIrkeerOYua90EyBFz1JRt ZXF0GuGYsTFQXrLwXMnkDJF+mGpktXg69ixnekMgx2tCXJodkmS2SxJuktGctpC9ljBL EBcoE24HNdGJoT56YgQHPGubgrtvOanB9g6PM9e2UraDyTdQ06Xq+hfrYeJF0mzlvFg7 rdvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=LqsDH6ymF7nPa/YqfdEeI7XxSMEhdsPxB8RwdpFkoD0=; fh=eCZmv8745b0DZZ+/zKsSE7ZGKoWjbnt74XvLzp6GIwc=; b=rVZhk+QUDb+YXw25xIm6AeOeQ0YCUmwTyMCkrZT4y6FTihC+ckgJEX/6g5OWdpKPew 5s4sIU2O8qTKNS9/LqVItK3KzgyK6UMbNrKo+2PaAyLEGAl2oHBntGrxdL3yywmCsq+2 OibSpugU1lwr5DLEvCfPSttNiRQ1hLu/vP2RZjYVIRklXaLmJAeVyuJhBsVSN5ciozk4 bBzbk6oYOfKSlFC5XRgWj4aFvR82jlzbwdoMzoX+3xO0PozAfluZiFzxk/cLj37NJMXC 4IXtUyyuVvZ6cfmCeRW3kbWB3L/Vlf7sMbaDgej8POig/h5b99nxSoSJshzTvzPI51km zltw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cuK8mgWC; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-160652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y2-20020a62b502000000b006ed5f660606si11781528pfe.212.2024.04.26.13.04.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 13:04:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cuK8mgWC; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-160652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 7B7D9B24056 for ; Fri, 26 Apr 2024 20:03:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84E1F22334; Fri, 26 Apr 2024 20:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cuK8mgWC" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 EC701208AF; Fri, 26 Apr 2024 20:03:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714161788; cv=none; b=pahRN99076vs+1IRoBiJkRCGVmJEADhsWtGxboX4WFxF8roSmstyCWckeNBrT9jYNPgPwbUe0DnJX+067waOtJxGHtYy7EibP1k7c58M9o+x5IC1eSDhx6IleZ/HS3fxG8t2IzDYyBmoqoSOpdUxwq6P48TDB5Qv9cIXj4Xx2ng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714161788; c=relaxed/simple; bh=Mq+HIvBiRfXqX7bq1lJIJQ9QW1/+6x26EYOzLbZxohA=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=c6Gtr2NJbx9fi7tUqMVRoDj+2KwemIad/035UKOZKZgQvm3YGPvWyQZZjtbeex7tgULDbosSxcFEFX1+tW3v9Np/KCLUcfEPF0vaZZYwXT3s+0YuRo84/03ihuJP5M1JegVXAolZ6XqFnnW679VrB6CYQgHFSrXTTt282ATye64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cuK8mgWC; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714161787; x=1745697787; h=from:subject:date:message-id:mime-version: content-transfer-encoding:to:cc; bh=Mq+HIvBiRfXqX7bq1lJIJQ9QW1/+6x26EYOzLbZxohA=; b=cuK8mgWCptBDl8wueIv3g8KnABfIBBa43DWs3I/eH1xpC19JGHIwIzW0 qtz9ZWAAyBkYADAAj0RXII9DXuxwp07nGX0ayfNSKKNh5u/EHzClo6KBI HrR5gzJWyLym/kixjUT7cKqVEzR4J/attvbn8y7huFQ6NVcpY+MPRwF9k wYaZMVJIag0JvSJAiWF9NjbX8AefW3t5VetqEfSTeeEG9r4FeW/NG95XM ULdRZcZgdaDgW35LfXJuBt/MrFLGDAf0RiJHHFNL+MX2ZNhVPpxygJdQ3 iSwHd7ox3dVKSUdKwJ9+JPTub2NByB2Zu1Gz4TYrpRz7zWr2IWy+T47P6 g==; X-CSE-ConnectionGUID: CYfZzpiITgW4BgpGhf24bw== X-CSE-MsgGUID: quzStg/eQH6Bp2WiXnq0/w== X-IronPort-AV: E=McAfee;i="6600,9927,11056"; a="9787163" X-IronPort-AV: E=Sophos;i="6.07,233,1708416000"; d="scan'208";a="9787163" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 13:03:06 -0700 X-CSE-ConnectionGUID: e0o/VpuZQaeWZc6Nd3Pjsw== X-CSE-MsgGUID: ISuVIbRnTHCF0MvS+8y3GQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,233,1708416000"; d="scan'208";a="25516139" Received: from iweiny-mobl.amr.corp.intel.com (HELO localhost) ([10.209.176.246]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 13:03:05 -0700 From: Ira Weiny Subject: [PATCH v3 0/2] efi/cxl-cper: Report CXL CPER events through tracing Date: Fri, 26 Apr 2024 13:02:58 -0700 Message-Id: <20240426-cxl-cper3-v3-0-6ade7dfc849e@intel.com> 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="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAHIILGYC/02MywqDMBBFf0Wybkqc8b3qf5Qu7GRSA1YlkWAR/ 71RKHV5LvecVXh2lr1oklU4DtbbcYiAl0RQ1w4vllZHFqAgUwBK0tJLmtihRMV5DmVtaixE/E+ OjV2O1v0RubN+Ht3nSId0X3+V6lQJqVSyaFs0KWZIBd3sMHN/pfEt9kqAv5kBnE2IZk5aY1kZ0 up5Nrdt+wKk1Vs23AAAAA== To: Dave Jiang , Dan Williams , Jonathan Cameron , Smita Koralahalli , Shiju Jose Cc: Dan Carpenter , Yazen Ghannam , Davidlohr Bueso , Alison Schofield , Vishal Verma , Ard Biesheuvel , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, Ira Weiny , "Rafael J. Wysocki" , Tony Luck , Borislav Petkov X-Mailer: b4 0.13-dev-2d940 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714161785; l=2068; i=ira.weiny@intel.com; s=20221211; h=from:subject:message-id; bh=Mq+HIvBiRfXqX7bq1lJIJQ9QW1/+6x26EYOzLbZxohA=; b=nlX+XmIEYn5bLLKXFjPw8b3YJxtR6DsOTI4QuOaR0qOT43FN3rMoeQBeS4iIo0TpQYm2wnkdk NTyTlzZOQjNCd459/a59z2OeeC2prP/oy11j6lJj4JxatErN1T1Azyb X-Developer-Key: i=ira.weiny@intel.com; a=ed25519; pk=noldbkG+Wp1qXRrrkfY1QJpDf7QsOEthbOT7vm0PqsE= If a device is configured for firmware first CXL event records are not sent directly to the host, rather they are reported through the EFI Common Platform Error Records (CPER). EFI 2.10 Section N.2.14 defines the CXL CPER to wrap a mostly CXL event payload. The CXL sub-system uniquely has DPA to HPA translation information.[0] It also already has event decoding/tracing. Such translations are very useful for users to determine which system issues may correspond to specific hardware events. The restructuring of the event data structures in 6.8 made sharing the data between CPER/event logs more efficient. Now re-wire the sending of CPER records to the CXL sub-system. Series status/background ======================== Smita and Jonathan have been a great help with this series. Once again thank you. Unfortunately, with all the churn surrounding the bug which Dan Carpenter found the maintainers were force to revert this work. Testing ======= Continue to use my quick hack in debugfs to facilitate easier testing.[1] [0] Link: https://lore.kernel.org/all/cover.1711598777.git.alison.schofield@intel.com/ [1] Link: https://github.com/weiny2/linux-kernel/commit/9b1f33314e8488506dbad63dc1c896386d4803d6 Signed-off-by: Ira Weiny --- Changes in v3: - djbw: drop patch which traces errors if CXL is not loaded - djbw: Let CXL layer declare work struct. Leave kfifo management in GHES layer - Link to v2: https://lore.kernel.org/r/20240422-cxl-cper3-v2-0-5cdd378fcd0b@intel.com --- Ira Weiny (2): acpi/ghes: Process CXL Component Events cxl/pci: Process CPER events drivers/acpi/apei/ghes.c | 110 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/cxl/pci.c | 71 +++++++++++++++++++++++++++++- include/linux/cxl-event.h | 27 ++++++++++++ 3 files changed, 207 insertions(+), 1 deletion(-) --- base-commit: e33c4963bf536900f917fb65a687724d5539bc21 change-id: 20240220-cxl-cper3-30e55279f936 Best regards, -- Ira Weiny