Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4085192pxk; Tue, 29 Sep 2020 14:00:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbOwJObRm3ex+quVCxqMa9XqQAPXFCWmdAq4cGKXeFBVgDUc9VoCgND1oOlrc6xi7nRIOH X-Received: by 2002:aa7:ca17:: with SMTP id y23mr5530146eds.245.1601413240849; Tue, 29 Sep 2020 14:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601413240; cv=none; d=google.com; s=arc-20160816; b=TCkIhpKEwntR6wAJUYctZy9s4nN841Qc64ksh6x9rAvhwPJJ+BrCJXUpbq8PdPLd3B KiDIWKOU10G0ed8I1UVVDosAVlA7ceFJNF8iXqkquv/h/obbzjtLp0I5/oFnrE44Lg7O mOVGcCLmMDBKTDNcQJYOGCQFVlX4dsWoZcKgx1ro9JzKlygiynlnhgBDMUzSExzu6qiq 1o60ZQ22H3whj/uX8ZuLDK7n9ra+AptwkiwQ88qoZ1E8f+u8oCaGdonRx6h1IESMUH2j X/nk0CCwgPhyHx2wxfXBXenqsHnfj+RvQ6zpIReX4xR7xJNE2zyzyrCRWmPPNiZSjVHL 2MTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=kuaNhEMsQO2YruWflX+1JGlQGovU/lLtfx4KHfq0ZZg=; b=0B8wmTgg66bkHyEqFZ3NlyvYj/8wsj6fSEg+iH2S5B+QhLvSFOtEeKNq1IgrWprhaH femsLhv4UyvLxnREezlvhFVpe0EsSpDRe1D4PYXNF68sPyBPYqSW/QuzZIN8ZK/TuQ14 u6DjHvKWqUzYDTFpowT9jyO3sDLE80b2xJLB28zrCqB7wSwBb/BqA+oDZyxP7wCvo5WB mj6VbqKQk1FsKGoO5ahiloaeFnhqRhTHbP5WWN4GKBR9uK8Lyk7rvZW6J4K6IPF1nlKV Hv5zJwgoVs9CedMsNl3UWrGGbrrm1zIwhDkepIV/xepPlyeLSl6mVLFg/KZwd3m7Pjoi hUwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jo13si3329721ejb.200.2020.09.29.14.00.17; Tue, 29 Sep 2020 14:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729555AbgI2U6f (ORCPT + 99 others); Tue, 29 Sep 2020 16:58:35 -0400 Received: from mga05.intel.com ([192.55.52.43]:27949 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729499AbgI2U6e (ORCPT ); Tue, 29 Sep 2020 16:58:34 -0400 IronPort-SDR: OWW/iFqVRDzvM04O8p/SvD8ztkLA43YfAuS13cJxyPamTLspycvurFUP0aH8UQg+bJAUGicnJT xR0WCuNZZbsw== X-IronPort-AV: E=McAfee;i="6000,8403,9759"; a="247019252" X-IronPort-AV: E=Sophos;i="5.77,319,1596524400"; d="scan'208";a="247019252" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 13:58:34 -0700 IronPort-SDR: KN3cTVRkNoKQ4clAAfGsFNEd5ONRm9U1jTghmt3NPGHDnlVLN0q8SGNpTpAzMl32yJu8UrRN80 bJHZ/0jnfBdg== X-IronPort-AV: E=Sophos;i="5.77,319,1596524400"; d="scan'208";a="312349115" Received: from apickett-mobl.amr.corp.intel.com (HELO [10.255.228.142]) ([10.255.228.142]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 13:58:33 -0700 Subject: Re: [PATCH v9 0/5] Simplify PCIe native ownership detection logic To: Kuppuswamy Sathyanarayanan , bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, ashok.raj@intel.com References: From: "Kuppuswamy, Sathyanarayanan" Message-ID: Date: Tue, 29 Sep 2020 13:58:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On 9/27/20 6:11 PM, Kuppuswamy Sathyanarayanan wrote: > Currently, PCIe capabilities ownership status is detected by > verifying the status of pcie_ports_native, pcie_ports_dpc_native > and _OSC negotiated results (cached in struct pci_host_bridge > ->native_* members). But this logic can be simplified, and we can > use only struct pci_host_bridge ->native_* members to detect it. > Did you get this patch set or do I need to send it again? > This patchset removes the distributed checks for pcie_ports_native, > pcie_ports_dpc_native parameters. > > Changes since v8: > * Simplified setting _OSC ownwership logic > * Moved bridge->native_ltr out of #ifdef CONFIG_PCIEPORTBUS. > > Changes since v7: > * Fixed "fix array_size.cocci warnings". > > Changes since v6: > * Created new patch for CONFIG_PCIEPORTBUS check in > pci_init_host_bridge(). > * Added warning message for a case when pcie_ports_native > overrides _OSC negotiation result. > > Changes since v5: > * Rebased on top of v5.8-rc1 > > Changes since v4: > * Changed the patch set title (Original link: https://lkml.org/lkml/2020/5/26/1710) > * Added AER/DPC dependency logic cleanup fixes. > > > Kuppuswamy Sathyanarayanan (5): > PCI: Conditionally initialize host bridge native_* members > ACPI/PCI: Ignore _OSC negotiation result if pcie_ports_native is set. > ACPI/PCI: Ignore _OSC DPC negotiation result if pcie_ports_dpc_native > is set. > PCI/portdrv: Remove redundant pci_aer_available() check in DPC enable > logic > PCI/DPC: Move AER/DPC dependency checks out of DPC driver > > drivers/acpi/pci_root.c | 37 ++++++++++++++++++++++--------- > drivers/pci/hotplug/pciehp_core.c | 2 +- > drivers/pci/pci-acpi.c | 3 --- > drivers/pci/pcie/aer.c | 2 +- > drivers/pci/pcie/dpc.c | 3 --- > drivers/pci/pcie/portdrv.h | 2 -- > drivers/pci/pcie/portdrv_core.c | 13 +++++------ > drivers/pci/probe.c | 6 +++-- > include/linux/acpi.h | 2 ++ > include/linux/pci.h | 2 ++ > 10 files changed, 42 insertions(+), 30 deletions(-) > -- Sathyanarayanan Kuppuswamy Linux Kernel Developer