Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp184150lqa; Fri, 26 Apr 2024 20:34:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbvU5TugiBRHG1Ppt2Odm8PBGGit78mg+UZFAUJbWxNfF/IoLCaULEhOUNEGbfWfOss4I7+rrKhjlwF6shEGveKU0RP1UxIJ0an1iN9w== X-Google-Smtp-Source: AGHT+IF+xoZ0M18iwDgJod3ITxO82PF0W/E6uyzQiLR0CPfdalAWkCihpTj/rH8trORuZTcteA0q X-Received: by 2002:a17:906:b00a:b0:a52:6fe5:938b with SMTP id v10-20020a170906b00a00b00a526fe5938bmr1158738ejy.26.1714188855551; Fri, 26 Apr 2024 20:34:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714188855; cv=pass; d=google.com; s=arc-20160816; b=CIDmFMM0F67eVeyug6vjRVMdWbPg7/ZmHsZKjQbABahGLhnCA19C0EnscXRH+/ZBvk Amh0OEuBDbB15mVZw/rNBdVg3VaeOLkS8Mp47LElithixGpOfWV0ZXfP3j+Wnt0WPLlz OYLWqv36QTaEa3+s0R0LWrN5J0/udGFnrh26CoctZKBaDtiiZeAqEvBIp2yV1l7h5n0q 8gm2ou9pppA+5X/NpsPhJ1qtZMGWECIRee10IqJjb3oacaea9NRLTqmiSfrl2A6AsqxH F74JOeD8DboMMoTAp6a0F2oG4wl0iZ1s7e200jg/t0TAD1Gb51MoZ20a8YKOYV1diIzS YSrQ== 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=r6IPOmZYS71vbe6ObIgvqh0UOnEiNbIZcugQF67dIwU=; fh=eCZmv8745b0DZZ+/zKsSE7ZGKoWjbnt74XvLzp6GIwc=; b=I3HHCHEW/zBQ2UfG5gISpbWBHe7oibxVxQTO53nif+Nho8KYFd1FPjnD43CLhNfvMK MEz461ixqqHyrBQX7gHcpla/iZyRfXcrPkmerDZmRXxjf1+G18V3VOrRUPw0SU2qvfII lgTeguHfNLUGYxYsOgABR+9IwrE3xRElyb394Q98Y5MWRtzCbL9BqqijDMQf9b5AahCQ RGkUo3OilTR4SHFXuGXDiq8F5PLTzUN4bTXb1WVKRrpEvS4KAme2x5im2Vxccz2eOpoM te8CKgXeonB4CS5Q8S6gYhLsrhAp+EXd5qjYz2rzlYKG4/yxhWibFmPUEhDvPzoeKnyG zVAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QUD8lGh1; 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-160880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z19-20020a056402275300b00568b56268c7si12255022edd.166.2024.04.26.20.34.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 20:34:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QUD8lGh1; 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-160880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160880-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 24F0C1F22EBD for ; Sat, 27 Apr 2024 03:34:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 052D73C46B; Sat, 27 Apr 2024 03:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QUD8lGh1" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 5204B2E40F; Sat, 27 Apr 2024 03:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714188846; cv=none; b=rlVUSd7d1KFi58G0qlYnZZBVYPBvfn1aeIlykuBra0hgXLrr2ch/uVo2XUj5vVjJY9AhsSgpz9Iwzaipa9TC2hiPrms1JSfoSVRBkCxxWDe7w31w/8Bbs9GPCOl4OHhkfMrdWHFt7cAO/h3bea9OIYXkaNLe3GLuG9BBx3qaczI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714188846; c=relaxed/simple; bh=yJzWU1o+Vmb73FKY90QGQEz8T9t/sfLKnbH4RR3sjXc=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Cmxuiqvnth0NmxI4OTD3vFGoeIGl4wvqz3p/aBctuT5pD6xXchMkuU3FWbVB5opBEqPfU6ao2+TFMPUvOrodcrYxMStm2/mKEG+NwYeBYHfmhMIgEko20n1d2uMnz3/pFg71NtSpdFYFP+YdV2EqcMfIlxItASFnlnpSzeSMOgM= 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=QUD8lGh1; arc=none smtp.client-ip=192.198.163.9 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=1714188845; x=1745724845; h=from:subject:date:message-id:mime-version: content-transfer-encoding:to:cc; bh=yJzWU1o+Vmb73FKY90QGQEz8T9t/sfLKnbH4RR3sjXc=; b=QUD8lGh1kzRuMhBs9G7W63wNpPSJiLqrPFjT2Jb9mmbPwGjO7a/nLfoF FoSyVbSSa65GqLboe4eDTa8Lrp3r+ugkxBrhtoDOsatENS55fRGnwc6bU +Dba3PtD9doxcoIeVvJcJm3N62YbGffJEVQIoW8wt0xYuMDmSYHhILRr+ yCgMANne4z7WiCQoCfU2mwd71SWzQcwJ8Iu3dCixN3wOibTtKtxPTmFbB wFtgj4BnLrvGUNMWjtpmYRToCmA9g5RNDbSneIbaSgmOaIMnMVRcoTVUG BTN9m9nglrnEPvfm4OVtgQFcALjcM7bhOfNTWsF/wa8ohc2mOGIafM8dr A==; X-CSE-ConnectionGUID: E91+YY1MQem4kqJYPCNbWA== X-CSE-MsgGUID: PhOnADFsRVCqPWMe8haiAw== X-IronPort-AV: E=McAfee;i="6600,9927,11056"; a="20620060" X-IronPort-AV: E=Sophos;i="6.07,234,1708416000"; d="scan'208";a="20620060" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 20:34:04 -0700 X-CSE-ConnectionGUID: NKF6R7GjTH26y6ylFvw4KA== X-CSE-MsgGUID: MRy2CD0PQ2y0DYAGos2TBQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,234,1708416000"; d="scan'208";a="25593985" Received: from iweiny-mobl.amr.corp.intel.com (HELO localhost) ([10.212.65.80]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 20:34:03 -0700 From: Ira Weiny Subject: [PATCH v4 0/2] efi/cxl-cper: Report CXL CPER events through tracing Date: Fri, 26 Apr 2024 20:33:59 -0700 Message-Id: <20240426-cxl-cper3-v4-0-58076cce1624@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=H4sIAChyLGYC/13NTQqDMBCG4atI1k2JM/Gvq96jdGEnkxqwKlHEI t69USgNXX5DnjerGNk7HsUlWYXn2Y2u78LQp0RQU3dPls6ELUCBVgBK0tJKGtijRMVZBkVlK8x FeD94tm45Wrd72I0bp96/j/Sc7tdvpYwqcyqVzOsabYoaKaer6yZuz9S/xF6Z4Sc1QCwhyIyMw aK0ZNTjX2Is81ji8afhwlgqdcWx3LbtA09qE0QWAQAA 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=1714188842; l=1952; i=ira.weiny@intel.com; s=20221211; h=from:subject:message-id; bh=yJzWU1o+Vmb73FKY90QGQEz8T9t/sfLKnbH4RR3sjXc=; b=fNPJwripoCGmVixNwjvc0tWirTSUobbH6rbpBnJaaWPYgzAmMO/D6ixQu5VQv4GfQQ4Ubqfll kfH5ccEJDOqBTzcthWCo3ozhXZAedod7QbPimL6a/ifCb9p540d9r1a 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] Link: https://lore.kernel.org/all/cover.1711598777.git.alison.schofield@intel.com/ [0] Link: https://github.com/weiny2/linux-kernel/commit/9b1f33314e8488506dbad63dc1c896386d4803d6 [1] Signed-off-by: Ira Weiny --- Changes in v4: - djbw: Use proper link format - Link to v3: https://lore.kernel.org/r/20240426-cxl-cper3-v3-0-6ade7dfc849e@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