Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2582132lqt; Mon, 22 Apr 2024 15:26:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVv5j29zKvnB2LghIHBjsm4bQWEez2+XiC63PU5V8ld00AbcXVlPyo2vf2zfJtJvle4TPLDQ2D29WGt/DE4VAOslMorkfKgqqWVwnQTjA== X-Google-Smtp-Source: AGHT+IGFoNDuaRE80sjXPGYLUVzoCiA6x2+evDc3lrs3LthYQvsG25u2tGk384Ch0x5Z7oUFkgI3 X-Received: by 2002:a05:6a20:8417:b0:1aa:41e4:f1b4 with SMTP id c23-20020a056a20841700b001aa41e4f1b4mr11790819pzd.44.1713824760994; Mon, 22 Apr 2024 15:26:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713824760; cv=pass; d=google.com; s=arc-20160816; b=umklQ764mfGXS/sIQUyWVTZ7ldcnfw38ZyVpfQTCAtxMGIYKffeH474eBNm7ofsRUf ATs9L7SFVIPLPi41iF2vVa8krcYTfbRRaer4InCb0ipF3RJpOuhgOgKKYJRY7337as92 gRB38wDyf1il57vbJGrHJ/Hd3cViJF8NaUEkOYn7uBcmcvdX4Gr/n8K6MoSYFzFXRo8x F5yKioo9dtUz/vfqMD0WGbeSmnXlZThfwyJGa8gzY2NFn115Tu3bstsPTQUaEJhhuCF/ d1/mqOoz+XVSOfbzZpkphXeg/eWP0E/cJXB0jVFEAq3yzVRt/OKRB2tUCQw1fR5SAvFX GNRQ== 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=kKEvSM3jC8tECxp7ilLTdKo2E89bAiwX0ngHiySGYaU=; fh=eCZmv8745b0DZZ+/zKsSE7ZGKoWjbnt74XvLzp6GIwc=; b=bs7DgvCKWctvXj1ybVe2fNMZxuBE9XrZsgonEARrfxTj7MQuXKc/gieRFO8w3Q21nR UoEhRVhXICLa0/xPf79GqYu+SbPLKYUplfFvFcmgtYXLgQ1mP4MbK8dvC9IJhwz5tPHE kuWIrn84HWUM6T6PetoCb0Srfhl4VVud50lXoON2UnkqfzAJNvjJFFKFRWLo7iqrQhEm lOHHRhK/FJ/Fxyuizep0sibHiLM8BOsM50Rg1SxDF5p3OJwawGTbYiStF5wFzvBUrarj uGR4SpvXEiyX1BvMJn8vTnqZ2jMJDujTL0lolqQQzQZkJsrShtIccfljFdVlwghThV09 8rxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nqFeJsfF; 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-154083-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154083-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 gb12-20020a056a00628c00b006e77d8947b5si8361979pfb.275.2024.04.22.15.26.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 15:26:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154083-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=nqFeJsfF; 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-154083-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154083-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 C864FB21FD0 for ; Mon, 22 Apr 2024 22:25:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8623920330; Mon, 22 Apr 2024 22:25:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="nqFeJsfF" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 378BB1CF8B; Mon, 22 Apr 2024 22:25:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713824748; cv=none; b=ru9Glat8jUyr/vJ8RFklFd8/Qe+dUutB6VJLikGF89K4vP/9txBpdh41nVALvk/NmtapxzafXa3KjCOOeBdNNRi0+qIJi40t+SSIkZ/Dc79BnW/ZO4COWl8oEHFstUvlC3HInoZYCHGwcIijFBHGFdGPKxpoT7bmMgfrEY0ITiM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713824748; c=relaxed/simple; bh=2Phf3ks/cnNo6Uuryp1lm3GfxtwMoBkYFhifOVUn7P8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=fqAVcICCjqRTBo3x9yWribmjWv7NXKV6SGnJT83CdXqEkwmqa2PGjHLIe39pokY2nCIBz9MrHDm30ZChLAe+a0t4sroqa32rRWfPg+EYFOMTelfYsRryy+CGS0qeonQz4pyZqYBXuDQrEpSTqzCA1P/scGY2Mtfq7czh4u2B7Uc= 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=nqFeJsfF; arc=none smtp.client-ip=192.198.163.11 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=1713824747; x=1745360747; h=from:subject:date:message-id:mime-version: content-transfer-encoding:to:cc; bh=2Phf3ks/cnNo6Uuryp1lm3GfxtwMoBkYFhifOVUn7P8=; b=nqFeJsfFu7tk7xyS2QNgLdA1CnH03H6lWHiR0fhfKO1ljSKQ9E/yhso5 JFok174Fp2RmA7kr4S5vhpbpfAHrsjkmTnglaTZt/UaJqzkoC2yxvqNWu sobCtEzcBKPrzOrvvTnUWfDEBiHkYFhJAbDCTrhxHLENLwXZl4SCulSZW PcE+oCoNTZj08j+Ighna5k/UlurSBz5Yht556/KToPdCPRLi3wLmZyBbM NDagKy3mB+1lFEqKgsfxD1aQSQpsQFFgy8JfaNFFO/9IswXtJ/OTyOgUB DN5oA64V8TbBfGyvP06xtNvFpamOLPU1BHq77cLf3bLN0PvkFzjbgFHmm A==; X-CSE-ConnectionGUID: XSNrLJzUT4aSw+Eha4vNuA== X-CSE-MsgGUID: YoxEcCtWQnCnXlHW2btkAQ== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="19997720" X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="19997720" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 15:25:46 -0700 X-CSE-ConnectionGUID: e08MvUHVSUCsr/0sawEHtw== X-CSE-MsgGUID: 7pXqjSa/S32tnHQd847OPA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,221,1708416000"; d="scan'208";a="55094320" Received: from iweiny-mobl.sc.intel.com (HELO localhost) ([10.144.160.117]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 15:25:45 -0700 From: Ira Weiny Subject: [PATCH v2 0/3] efi/cxl-cper: Report CXL CPER events through tracing Date: Mon, 22 Apr 2024 15:25:44 -0700 Message-Id: <20240422-cxl-cper3-v2-0-5cdd378fcd0b@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=H4sIAOjjJmYC/03MSwrCMBSF4a2UOzaSRxttR+5DOgjxxl6oSUlKq JTs3VgQHP6Hw7dDwkiYYGh2iJgpUfA15KkBOxn/REaP2iC5bLmUnNltZnbBqJji2HXy0rteaaj /JaKj7bDuY+2J0hri+6Cz+K4/5fqnZME408YoJ1SrrLY38ivOZxteMJZSPnhExYKiAAAA 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=1713824744; l=2465; i=ira.weiny@intel.com; s=20221211; h=from:subject:message-id; bh=2Phf3ks/cnNo6Uuryp1lm3GfxtwMoBkYFhifOVUn7P8=; b=lu2kTiZytHzyWJb7z+ye6p1Xw6SNeCJkq85Q8tJcdSeUnRYRafxBapuzQL6oNsJhjcZbyCPzB /eaANkp6I9uDIyL/LR0cZ6YcB9me2tZmHS03lPK6bwhcfBXnNmTOIjL 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. In addition provide a default RAS event should the CXL module not be loaded. 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 ======= A quick hack was added to debugfs patch to facilitate easier testing.[1] With this it was verified that the bug Dan Carpenter found is fixed. However, the tp_printk bug Jonathan found remains. Fortunately, tp_printk is not widely used so it is anticipated this will not be an issue. [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 v2: - iweiny: address comments from V1 (noted in the patches themselves) - iweiny: drop header file clean up patch (only needed for my debugfs test) - Link to v1: https://lore.kernel.org/r/20240228-cxl-cper3-v1-0-6aa3f1343c6c@intel.com --- Ira Weiny (3): acpi/ghes: Process CXL Component Events cxl/pci: Process CPER events ras/events: Trace CXL CPER events without CXL stack drivers/acpi/apei/ghes.c | 128 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/cxl/pci.c | 61 +++++++++++++++++++++- include/linux/cxl-event.h | 18 +++++++ include/ras/ras_event.h | 51 ++++++++++++++++++ 4 files changed, 257 insertions(+), 1 deletion(-) --- base-commit: 4d2008430ce87061c9cefd4f83daf2d5bb323a96 change-id: 20240220-cxl-cper3-30e55279f936 Best regards, -- Ira Weiny