Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp840768rwd; Thu, 1 Jun 2023 07:15:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4p+8BNACcCrQgDF/V/0+mtomDoh4UlRsH2AdWg1gJe7i+FIDGXxUy3Y8C/oGULFkNdxhmR X-Received: by 2002:a05:6a20:12c7:b0:10c:ef18:7473 with SMTP id v7-20020a056a2012c700b0010cef187473mr7636240pzg.56.1685628916044; Thu, 01 Jun 2023 07:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685628916; cv=none; d=google.com; s=arc-20160816; b=p17T4F+PvXnisSw6DMrA9GOsldMrFx57gS1VeePvfmQ/kO3KRWmK4gnBT2IzoLj6Jl RJ3S2m7DcZgfsJYjqyq2H0usZ9e7ljOZRIZNi+BTik0akHQoxfGA3Et8Oz5ac6bRUMHX xHhhT6seeXsRfkYQr5eks2OvjQRrllBzYSdhTr6fgHUNiTEezgidG6q9dKHkKtqCDepM RsxO/9Hg6lP7IRjV34AOStK6iUg+DyoSmS00/YMK/ashWvYYiDLoSoZODw5pV0kEiwLa 5KgxaKVQrI7zRlft29++AEpmm0lWPgFdo9cAQBnyWV7/A+5rM1X+Kqr5bu6vgFskq2AK RKpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=w5PXE9yygssHAH5a6T7ait4lXRU2gjjsHcG24fXRj0Y=; b=oWHAfqTOFRyszK+6JqH1ONHpEuZpiPEnd2K6GEXlynss4QTCb4bbf7uNhm/Ou93LoT ztiOvX4rVBB+o2kOCdZvlGdUrY84CDnw3m4RCRsRgD3fa7M3ZZyjGKsDGgfKtK6r86Ph 8AJwEP1BZDBgr7KlqE4TN9ovgOY8ej9jK5MkOjLBKkEdSATn1AOuLZNPhueCoaNrHtBL T0anEahXdvwHpY/XucFnI1kNXB0e/FFJBB6cVzeD9D5oLAXXdGEoAIYxW6aK8gursBmC X0ABqjN5oRvKNXiRE9OgSYMDGfyJ+lLMjCb6V4hjUXelDCkudyEn45lbdqgvSx43/nJW OITQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20-20020a170902e9d400b001ab007aff67si2721435plk.32.2023.06.01.07.15.01; Thu, 01 Jun 2023 07:15:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232679AbjFAOEC (ORCPT + 99 others); Thu, 1 Jun 2023 10:04:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233230AbjFAODp (ORCPT ); Thu, 1 Jun 2023 10:03:45 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C552E186; Thu, 1 Jun 2023 07:03:43 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QX7CH6rdBz6J7Dk; Thu, 1 Jun 2023 22:03:39 +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.23; Thu, 1 Jun 2023 15:03:40 +0100 Date: Thu, 1 Jun 2023 15:03:39 +0100 From: Jonathan Cameron To: Terry Bowman CC: , , , , , , , , , Subject: Re: [PATCH v4 21/23] cxl/pci: Add RCH downstream port error logging Message-ID: <20230601150339.00002db6@Huawei.com> In-Reply-To: <20230523232214.55282-22-terry.bowman@amd.com> References: <20230523232214.55282-1-terry.bowman@amd.com> <20230523232214.55282-22-terry.bowman@amd.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml500005.china.huawei.com (7.191.163.240) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 May 2023 18:22:12 -0500 Terry Bowman wrote: > RCH downstream port error logging is missing in the current CXL driver. The > missing AER and RAS error logging is needed for communicating driver error > details to userspace. Update the driver to include PCIe AER and CXL RAS > error logging. > > Add RCH downstream port error handling into the existing RCiEP handler. > The downstream port error handler is added to the RCiEP error handler > because the downstream port is implemented in a RCRB, is not PCI > enumerable, and as a result is not directly accessible to the PCI AER > root port driver. The AER root port driver calls the RCiEP handler for > handling RCD errors and RCH downstream port protocol errors. > > Update existing RCiEP correctable and uncorrectable handlers to also call > the RCH handler. The RCH handler will read the RCH AER registers, check for > error severity, and if an error exists will log using an existing kernel > AER trace routine. The RCH handler will also log downstream port RAS errors > if they exist. > > Co-developed-by: Robert Richter > Signed-off-by: Robert Richter > Signed-off-by: Terry Bowman LGTM Reviewed-by: Jonathan Cameron