From patchwork Fri Feb 10 11:45:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Assmann X-Patchwork-Id: 9566617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6A73C601C3 for ; Fri, 10 Feb 2017 11:47:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5655828552 for ; Fri, 10 Feb 2017 11:47:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4735D28565; Fri, 10 Feb 2017 11:47: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=-6.9 required=2.0 tests=BAYES_00,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 550C428552 for ; Fri, 10 Feb 2017 11:47:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751699AbdBJLrc (ORCPT ); Fri, 10 Feb 2017 06:47:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53270 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbdBJLrc (ORCPT ); Fri, 10 Feb 2017 06:47:32 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D49B180488; Fri, 10 Feb 2017 11:45:55 +0000 (UTC) Received: from w541.redhat.com (ovpn-117-236.ams2.redhat.com [10.36.117.236]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1ABjqjg012923; Fri, 10 Feb 2017 06:45:54 -0500 From: Stefan Assmann To: linux-acpi@vger.kernel.org Cc: lenb@kernel.org, rjw@rjwysocki.net, sassmann@kpanic.de Subject: [PATCH] ACPI: skip boot interrupt rerouting when index is zero Date: Fri, 10 Feb 2017 12:45:17 +0100 Message-Id: <20170210114517.14812-1-sassmann@kpanic.de> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 10 Feb 2017 11:45:56 +0000 (UTC) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When checking for boot interrupts and PRT index is zero avoid doing any interrupt rerouting since the code currently does not handle determining the IRQ via _CRS method. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=43074 Signed-off-by: Stefan Assmann --- drivers/acpi/pci_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c index c576a6f..6ecbde0 100644 --- a/drivers/acpi/pci_irq.c +++ b/drivers/acpi/pci_irq.c @@ -280,7 +280,7 @@ static int bridge_has_boot_interrupt_variant(struct pci_bus *bus) static int acpi_reroute_boot_interrupt(struct pci_dev *dev, struct acpi_prt_entry *entry) { - if (noioapicquirk || noioapicreroute) { + if (noioapicquirk || noioapicreroute || entry->index == 0) { return 0; } else { switch (bridge_has_boot_interrupt_variant(dev->bus)) {