Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12463668rwd; Fri, 23 Jun 2023 06:32:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ML3iMmSJ82NA+CmvAYk15Jh8Bji+bCtpZXQdiDcsD31fANiBHIWhMmOQdgGvXeYi9htSg X-Received: by 2002:a05:6870:e481:b0:19e:bf9a:c511 with SMTP id v1-20020a056870e48100b0019ebf9ac511mr15866265oag.46.1687527169490; Fri, 23 Jun 2023 06:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687527169; cv=none; d=google.com; s=arc-20160816; b=FRTecD3+Z3cDIGcYbQk/9Kmt9ZExPCCY/2mAMWCqKprfwRgHEWCRPJ397WemzpjLb4 s8qgGZzV6gfFPLFIW3MkKtnoiuvDmjNyK6NJ9I5xNSYUHU4aLjgkYRnFBpA4EGwGKd3L ojj7WKN6N0K97FKxV9a23Q077GzkvGwH34yvXzSgQXaoNypLqfE/uHLiKXENPc+RAMHx O+JUuxvFtBfO7gs2dtIx5A5HZyBSh8oKPalPHKYash5X9FkucmMSPSWDqQRFYWpfuyGV I18ju0tGZlq2Ccjn1UtEZIeq3IOuUYH6NSzBeitwxujAlq06wU+YOCGzbDcL4zTTo2Ye PgdQ== 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=HhHSPZySebDMPg1Tm14AqOoiHwTiO0xVwb1UvoOKxBg=; b=ioKKOv2aEOY8uSBj5tZSb67mrenlXtRn1XbQE2lyUKB6hGj4bXmhZB/4Am8zgB6rVu +VneOq3Igbx/JDrKfdbnkRA9mRSwIRPw2AdSOyvwoU0BTsHYVSRhAfGaM+TIsbGX6Pjh ZC5PR1d0BHwNMGoZ/CrI59CFikguaeXLM/LSgXY7ILNcBlqHrtzLbfZWwFxerPQij3/8 RZViTjjtedvdjgeSXrYvqxcmKPa+EALJUDZNr6R6AWPG7wssQcNcZ2uYeHyAaysAR171 oo/rfBpZSs5K+UBaPhdajTFzh+5SoL7v1tGMEQ9p5jhR98BKBbP46ZhIXI+r5RiIuKvO 5Jpw== 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 w4-20020a656944000000b0055752f5a119si2582244pgq.517.2023.06.23.06.32.34; Fri, 23 Jun 2023 06:32:49 -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 S231609AbjFWN3F (ORCPT + 99 others); Fri, 23 Jun 2023 09:29:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbjFWN3C (ORCPT ); Fri, 23 Jun 2023 09:29:02 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D0F1715; Fri, 23 Jun 2023 06:28:59 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QndL036jMz6J7Yh; Fri, 23 Jun 2023 21:26:16 +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.27; Fri, 23 Jun 2023 14:28:57 +0100 Date: Fri, 23 Jun 2023 14:28:56 +0100 From: Jonathan Cameron To: Terry Bowman CC: , , , , , , , , , Subject: Re: [PATCH v6 25/27] cxl/pci: Disable root port interrupts in RCH mode Message-ID: <20230623142856.000004c5@Huawei.com> In-Reply-To: <7c11f087-72ee-eb18-cdcb-774d7848dcef@amd.com> References: <20230622035126.4130151-1-terry.bowman@amd.com> <20230622035126.4130151-26-terry.bowman@amd.com> <20230622141255.00006d13@Huawei.com> <7c11f087-72ee-eb18-cdcb-774d7848dcef@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: lhrpeml500001.china.huawei.com (7.191.163.213) 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_H4,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 Thu, 22 Jun 2023 11:33:30 -0500 Terry Bowman wrote: > Hi Jonathan, > > On 6/22/23 08:12, Jonathan Cameron wrote: > > On Wed, 21 Jun 2023 22:51:24 -0500 > > Terry Bowman wrote: > > > >> The RCH root port contains root command AER registers that should not be > >> enabled.[1] Disable these to prevent root port interrupts. > > > > I'm a little dubious about a 'because the spec says' so argument. > > If we can describe the path by which spurious interrupts turn up then > > great - if not then fair enough. > > > > This was added to follow the spec. The RCH downstream port contains > root port control pci express capability for enabling and disabling root > port interrupts. The interrupts are (should be) disabled by default at > powerup according to the PCI spec. We know SW does not enable because > the RCH downstream port is not enumerated or managed by a port driver. I > cant say this patch is absolutely necessary but was not comfortable with > removing it either and want to avoid undefined behavior. > Maybe we should just abuse firmware authors and blame them for potentially having changed the default :) Fine as is. Jonathan > Regards, > Terry