Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp683319lqp; Wed, 22 May 2024 17:23:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSmuFmLPlnSwSX/2vo1iFMof1RieQ177indyBJJhF6AI2VWgdEg71IQTC2k/jER618Og3pSegZWp5RJ/hs6a7VN6ZtIdkhLxlqLxrzug== X-Google-Smtp-Source: AGHT+IEjhW8lvW5u/fC3ythC0xDpLHYP/RRrijhHa9v7oNSWiphZYS2DeMQPYaGtnEstAlbb9iUh X-Received: by 2002:a05:6214:2f06:b0:6aa:cd1d:1fd1 with SMTP id 6a1803df08f44-6ab808f79d0mr42094506d6.55.1716423784543; Wed, 22 May 2024 17:23:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716423784; cv=pass; d=google.com; s=arc-20160816; b=WZw8+gZRc5rs0jbItk9xnC+nPtLU5Qpz6lJMBP9TRzEMw4lyBbQn2qmZxy2SrXH69Z GWCZqjy5y7NB9GRwlTwoHpdTyZMZl8v+bylgdbQomepzF5zqldrnBXEYBKGJVKyZF1dN NV9gEG6tpJlkhqDJi8y5PbUVB4nxPSaR0QOylZPO8VXzgdsg5aB+b8lntBi04Z0aJ2Zl fgsV2JKorwn3753L45TklwDS3sLfnZLN3AjBfZA3Dxjde/+J9qyqGTLIhI+Ha7VQ9Ox4 Y/cu6AxU9Kpj8yXmBHReF7h1l01wqC5Bj7SMVF+7/6V5t5yrJurB0PnVX2ebWZgBwKxe u1Hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=US0JOizDwePBKXoQ9ozKa5UK7z5tZTiRpAH4vMNoJZM=; fh=O+fU0C95Vf+1l/CnK+r896na8zFm8wwHWwE8kd1JB3M=; b=UJgFvtC+jSY2aoBjPJPula5xLGyAH01eswsCoJfIIHr7aL42PqLwNEIxBCmK4xVKOn trXPGSMWCBHY8U4uVgTu+OESFEcxYkj9XrSHqsYN+l9S4N0ILCqMQxlbkYYkC2wyET6S JfVbsKlbGw8JsCAefCuj/dCZHNj7cRT/c1CpIgXxHrxetZUT2JT87Y8w3l33BnTXrRyu KD1d3gTXA82UX3ipiwPNAQzYRVq+DBBZkdetYL0DWLH0qROyGDtjbdvApYE4h9WFOO1A ci7GD8qFJ0OCTZlEfYCPxWd+ekPdIE7cQ81IqNW/egeM+BicRVOtL0XIpSOWDfeLofY2 nDrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZwjnPYb5; 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-186857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186857-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ab72532960si54379676d6.423.2024.05.22.17.23.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 17:23:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZwjnPYb5; 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-186857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186857-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4807B1C20E41 for ; Thu, 23 May 2024 00:23:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87B0315CE; Thu, 23 May 2024 00:22:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZwjnPYb5" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 A147B1852; Thu, 23 May 2024 00:22:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716423777; cv=none; b=QzSbXNMxD2lKaFrFuG8V2pxDcppkgdCsx/qH5MHQZH08ADI7KPJKL766bzUmWS0XdkGkplceB5uFZ07WaPfXQpsFfmRqJ2/nAVhXJU0PrWy7pzowEMklc9Et7FY+m4wtfGF+M/zkZxXcYn/G8vc160Q1LLYJxl8Ms2YLDtnUHSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716423777; c=relaxed/simple; bh=VLpY7qGGY9Uj9hsj8eL1ZfMyVa4v25mTJX9xhzdLAww=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cgf5WUq+1qRag5ujiFvXFAzvXeVS4M2TcBTDlFKBmReA2ha/uHj0N4fBoPc4S0eHtJNAUrnZMpa4KqmS3b93yxY3LHozTVyQK+64nBLDC4XF4ryZujOGPehi1TXrdHvKmeY4kTY/lhCz0zJ4ed6mfTwfvjH4fPwN+7E50FRTUK8= 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=ZwjnPYb5; arc=none smtp.client-ip=192.198.163.18 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=1716423775; x=1747959775; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=VLpY7qGGY9Uj9hsj8eL1ZfMyVa4v25mTJX9xhzdLAww=; b=ZwjnPYb5WgJSvPhctOpW5DkkTTI/n5RncwYC+t1Ge81vbQLCU1QdWKR8 1wLV79uqBUeoCKjTsH/5B/jBOup3zgaidDTWptz8hJAMGwVrL/Of/ZsF8 3oXGUXUXBbAjgnxVkruE3W9rus81S4fosqB0agkD+UOkbO1PPbwpuv63h UfEw7A2YOwsCGGUTL6OMhtt+Gx89ZBnrsV3tntmLGetnr/4pDrhK2AVsz WQoM5RT727TInGi35veykeFBOPWrKCbYlAZJfTEMsh15CblRCas7CyyDC 9HYwy04ccMxTth/5Tw7g9DJFUFfMQsi2Yuq9HV+bZC1GL6oiI6DyBkkzN g==; X-CSE-ConnectionGUID: DYw18mtET5uwH8XhvyXUbQ== X-CSE-MsgGUID: qJAyBzThSMikeY0EWXKiow== X-IronPort-AV: E=McAfee;i="6600,9927,11080"; a="12491659" X-IronPort-AV: E=Sophos;i="6.08,181,1712646000"; d="scan'208";a="12491659" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2024 17:22:51 -0700 X-CSE-ConnectionGUID: wOj3XFDFRHavHiTz3vtlPw== X-CSE-MsgGUID: DOeJ2TUmQxGXKYVPwZ0FKQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,181,1712646000"; d="scan'208";a="64318609" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.209.68.11]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2024 17:22:50 -0700 Date: Wed, 22 May 2024 17:22:48 -0700 From: Alison Schofield To: Smita Koralahalli Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, Ard Biesheuvel , Vishal Verma , Ira Weiny , Dan Williams , Jonathan Cameron , Yazen Ghannam , Bowman Terry Subject: Re: [PATCH 3/4] acpi/ghes, cxl/pci: Trace FW-First CXL Protocol Errors Message-ID: References: <20240522150839.27578-1-Smita.KoralahalliChannabasappa@amd.com> <20240522150839.27578-4-Smita.KoralahalliChannabasappa@amd.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=us-ascii Content-Disposition: inline In-Reply-To: <20240522150839.27578-4-Smita.KoralahalliChannabasappa@amd.com> On Wed, May 22, 2024 at 03:08:38PM +0000, Smita Koralahalli wrote: > When PCIe AER is in FW-First, OS should process CXL Protocol errors from > CPER records. > > Reuse the existing work queue cxl_cper_work registered with GHES to notify > the CXL subsystem on a Protocol error. > > The defined trace events cxl_aer_uncorrectable_error and > cxl_aer_correctable_error currently trace native CXL AER errors. Reuse > them to trace FW-First Protocol Errors. Will the trace log differentiate between errors reported in FW-First versus Native mode? Wondering if that bit of info needs to be logged or is discoverable elsewhere. Otherwise, LGTM, Reviewed-by: Alison Schofield > > Signed-off-by: Smita Koralahalli > --- > drivers/acpi/apei/ghes.c | 14 ++++++++++++++ > drivers/cxl/core/pci.c | 24 ++++++++++++++++++++++++ > drivers/cxl/cxlpci.h | 3 +++ > drivers/cxl/pci.c | 34 ++++++++++++++++++++++++++++++++-- > include/linux/cxl-event.h | 1 + > 5 files changed, 74 insertions(+), 2 deletions(-) snip