Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5797463rdb; Wed, 13 Dec 2023 22:37:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfq3eDdhtETQVaqiZ/Bc9lX3oSbo9rzMSVGFTWi434xYEiZ6afZtVx8r+l0g+J7NHGdmmi X-Received: by 2002:a05:6808:17a7:b0:3b8:b365:1e34 with SMTP id bg39-20020a05680817a700b003b8b3651e34mr11566467oib.33.1702535864936; Wed, 13 Dec 2023 22:37:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702535864; cv=none; d=google.com; s=arc-20160816; b=HILaKIZZHVfGHzg0OKw8FK7rjJO4080g/tZ2vMgv/k58fFou8Gu2XASGXzPBTdBkA7 UYCOZXlnhenX+3assPCtVM1EWO6tsPvwWHNjiqkGMc/xXuaoL6nXuAoIPPZNeY2njjsM J6sfO9UhV2CuvCwWR582REjgQ38UgqRzmww5GVweNwNWUkVXsB/Uz7kSZbqEGlAP4wuK 1o0hvejaQ8ItZIGIiwaGbDV+Byaq007+Eq4euQEcBOm1K2DL8SEBul1D8s+EoWW2l6IV UdFCgLl0lr/sxLfIaZEXAbnn8ciVpH9jmgZ5/DNA6+qovNkydA2WvyTGGzKYj3c2pqIa jPVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=ByMsI+TQi9NOnAmZv30hIBVObC1nPLx9Qj7duP4chNM=; fh=buL26O7GPocb3p8eEQ9k+8M7LJvBirBJXugzg7RvsEQ=; b=Z+HLcIL/hxx6DgoYrY3gsaxbberqKIW5swCh4Fl0EWZQ77G+x1iKOh9yZGaZdBfZ7B +vlteulUboRpBaLUH0D+OPybkWrq3onO4n9YdvjT5w8utlV3k8wyu9AfkpxZJWRDClz5 oN6D/M92FpTER8UojRp24u1X/gR5tI4XNLj09Q8uwOiSZUUfLqmfAD3XhQL0uj9l9Pyn mE9cezyirt9+SQWEUfVFWQvuvYW6MqlBx8yJ+5758PCFRNnesJBa2MEiuem12KVgiVwY YDtPAPdxKrx016FbKOuG/mkGRrVL4zy+IUi6N3fwxjbh8UcSkf2ruQyXQnkWk+ui05jq Y9Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@purestorage.com header.s=google2022 header.b=Obavcbfy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=purestorage.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id r9-20020a63ec49000000b005c662c8da8asi11237977pgj.203.2023.12.13.22.37.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 22:37:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@purestorage.com header.s=google2022 header.b=Obavcbfy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=purestorage.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2213382CFA49; Wed, 13 Dec 2023 22:37:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234281AbjLNGhU (ORCPT + 99 others); Thu, 14 Dec 2023 01:37:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjLNGhT (ORCPT ); Thu, 14 Dec 2023 01:37:19 -0500 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E959EA6 for ; Wed, 13 Dec 2023 22:37:24 -0800 (PST) Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-58dd3528497so4917206eaf.3 for ; Wed, 13 Dec 2023 22:37:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1702535844; x=1703140644; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=ByMsI+TQi9NOnAmZv30hIBVObC1nPLx9Qj7duP4chNM=; b=ObavcbfyQbfE8jemvKgIfGrRI+91HnMmCxyE1adfJFdxRXzNxu7P2/BwV2rMc0Xhu5 Gi/+zVbZgeL8D3lqpgl7runcUtjd8mg62JGh6cn+mmzBoFzbpBw5iHrMg81CsBF6OwHA 15CsOq+YuX+x+N4EEfAywXzYBXYnISyO26WvD9MxGTlXloq5hlGQUrqO0yWn51adx+JC QutL2YTSdQh/p361TaSZViQec4W/z4s3T2fgQbqfpfn/FDd3aly02jmR6y47U7PMoI2y FTXaTjbDHAgsPbzW5eRtgpihngxYEII5T5OPLBHwBfa2+y2ormTQqhkoD8Vy940EPz4j 3N1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702535844; x=1703140644; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ByMsI+TQi9NOnAmZv30hIBVObC1nPLx9Qj7duP4chNM=; b=JWqvp2F42p5r7E8OGuLQVp8iAI0ATr7kpqSMSXgE5ZI4VWegNrdbVh9af4tHBI3GTg +BLUrZRtnhkxS8Pax1L6WCaPQg1vkHzIzK+0M0ZxKb+xrv2K8/aksGGHR/2mIr8A4e/g rgq57lsvU2nrv4XXM+y6KO6IKHu2IHQwrzX8JFlu58p6Fg93sbPeGyL74rJTo9bNsCHv o5xVnyglu/nUReIx270HUlhqmnv7YNWapf/DxNU37wFJjavWzxOtx3wo7jfP017Y5oVo G17DlfxgYDXWg9bfJrRXvjDBYu5kI1sUMqgzUX/E/QbHDVEXXTooQCHiQQXT0lQ2/P5M 2lew== X-Gm-Message-State: AOJu0YxGlqCRb6RgLNpYgxgi9WuIXhUwKosRWuBd6NJwJeSyGo361kJJ ftfUGSCQHi5cxtQs5ph9d703JQ== X-Received: by 2002:a4a:d28f:0:b0:590:e85:199c with SMTP id h15-20020a4ad28f000000b005900e85199cmr6792637oos.6.1702535844207; Wed, 13 Dec 2023 22:37:24 -0800 (PST) Received: from dev-mattc2.dev.purestorage.com ([208.88.159.128]) by smtp.googlemail.com with ESMTPSA id m20-20020a4a2414000000b005902a5bc3easm3390878oof.22.2023.12.13.22.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 22:37:23 -0800 (PST) From: Matthew W Carlis To: helgaas@kernel.org Cc: bhelgaas@google.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, mika.westerberg@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: [PATCH v3] PCI/portdrv: Allow AER service only for Root Ports & RCECs Date: Wed, 13 Dec 2023 23:37:17 -0700 Message-Id: <20231214063717.992-1-mattc@purestorage.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221210002922.1749403-1-helgaas@kernel.org> References: <20221210002922.1749403-1-helgaas@kernel.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 22:37:42 -0800 (PST) Hello Any Interested Recently found that this patch had the affect of requiring us to set pcie_ports_dpc_native in order to use the kernel DPC driver with PCIe switch downstream ports. The kernel check for the DPC capability in portdrv.c has; if pci_aer_available() and (dpc-native or using AER port service driver on the device). I wonder if we couldn't do away with the requirement of the AER service being used on the port if pci_aer_available() & host->native_aer don't lie. I'm still trying to decide exactly what the condition ought to look like, but it might draw from the AER service check above it. For example: if (pci_find_ext_capability(dev, PCI_EXT_CAP_ID_DPC) && - pci_aer_available() && - (pcie_ports_dpc_native || (services & PCIE_PORT_SERVICE_AER))) + dev->aer_cap && pci_aer_available() && + (pcie_ports_dpc_native || host->native_aer)) services |= PCIE_PORT_SERVICE_DPC; Thanks, -Matt