From patchwork Thu Oct 25 16:01:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Sierra X-Patchwork-Id: 10656139 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E98C0109C for ; Thu, 25 Oct 2018 16:01:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA0C92BEFD for ; Thu, 25 Oct 2018 16:01:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE9302BEFE; Thu, 25 Oct 2018 16:01:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 745022BEFF for ; Thu, 25 Oct 2018 16:01:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727313AbeJZAe5 (ORCPT ); Thu, 25 Oct 2018 20:34:57 -0400 Received: from xes-mad.com ([162.248.234.2]:1219 "EHLO mail.xes-mad.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727712AbeJZAe5 (ORCPT ); Thu, 25 Oct 2018 20:34:57 -0400 Received: from asierra1.xes-mad.com (asierra1.xes-mad.com [10.52.16.65]) by mail.xes-mad.com (Postfix) with ESMTP id 53170264A7; Thu, 25 Oct 2018 11:01:32 -0500 (CDT) From: Aaron Sierra To: linux-pci@vger.kernel.org Cc: Bjorn Helgaas , "Rafael J. Wysocki" , Len Brown Subject: [PATCH v2 0/2] Improve _OSC control request granularity Date: Thu, 25 Oct 2018 11:01:30 -0500 Message-Id: <1540483292-24049-1-git-send-email-asierra@xes-inc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539642186-12821-1-git-send-email-asierra@xes-inc.com> References: <1539642186-12821-1-git-send-email-asierra@xes-inc.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These patches allow PCIe AER to function in a kernel without CONFIG_PCIEASPM enabled. There is no explicit Kbuild dependency between the two and there are, in my opinion, legitimate reasons for no implicit dependency to exist either. Previously with ASPM: acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI] acpi PNP0A03:00: _OSC: OS now controls [PME AER PCIeCapability LTR] Previously without ASPM: acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig Segments MSI] acpi PNP0A03:00: _OSC: not requesting OS control; OS requires [ExtendedConfig ASPM ClockPM MSI] Now with ASPM: acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI] acpi PNP0A03:00: _OSC: OS requested [PME AER PCIeCapability LTR] acpi PNP0A03:00: _OSC: platform granted [PME AER PCIeCapability LTR] Now without ASPM: acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig Segments MSI] acpi PNP0A03:00: _OSC: OS requested [AER PCIeCapability] acpi PNP0A03:00: _OSC: platform granted [AER PCIeCapability] This is v2 of the patchset, which includes these changes from v1: * Rebased from the mainline kernel (4.19-rc7) to Bjorn Helgaas's pci/aspm branch [1] * Factored moving the pcie_ports_disabled check to the top of negotiate_os_control into its own patch * Simplified new __osc_check_support function and renamed it to __osc_have_support * No longer messes with _OSC general availability test and related error message (i.e. _OSC failed ... disabling ASPM) [1] https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git Aaron Sierra (2): PCI/ACPI: Move _OSC test for native services to top PCI/ACPI: Improve _OSC control request granularity drivers/acpi/pci_root.c | 129 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 91 insertions(+), 38 deletions(-)