From patchwork Tue Sep 27 23:06:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 9352967 X-Patchwork-Delegate: bhelgaas@google.com 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 C850A600CB for ; Tue, 27 Sep 2016 23:06:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B70382840F for ; Tue, 27 Sep 2016 23:06:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A97CB29200; Tue, 27 Sep 2016 23:06:18 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_TVD_MIME_EPI 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 180B02840F for ; Tue, 27 Sep 2016 23:06:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756421AbcI0XGQ (ORCPT ); Tue, 27 Sep 2016 19:06:16 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51478 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756166AbcI0XGP (ORCPT ); Tue, 27 Sep 2016 19:06:15 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id AA5F261788; Tue, 27 Sep 2016 23:06:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1475017574; bh=/f9nRCIPG0iceDfR6ZalC0VkcupbEQtUt4iXvnAJzjQ=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=EGsqY4FvdDAx5AJw4l9/b8+mRpGhVFtHkPmnNXRW103cK9FrpZBWG7Xwp8wiNHt2q 9p1TcR7fvQXW8vPUIoecJDJLEItHwC9JWNiWvR1cj/lhG/O+DfGirvPeQfoR+KDcXJ u+SWn1ntqJm4fxJR1fruGir01JWSkyt5rovXk8s4= Received: from [10.228.68.92] (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 39A85615AE; Tue, 27 Sep 2016 23:06:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1475017574; bh=/f9nRCIPG0iceDfR6ZalC0VkcupbEQtUt4iXvnAJzjQ=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=EGsqY4FvdDAx5AJw4l9/b8+mRpGhVFtHkPmnNXRW103cK9FrpZBWG7Xwp8wiNHt2q 9p1TcR7fvQXW8vPUIoecJDJLEItHwC9JWNiWvR1cj/lhG/O+DfGirvPeQfoR+KDcXJ u+SWn1ntqJm4fxJR1fruGir01JWSkyt5rovXk8s4= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 39A85615AE Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=okaya@codeaurora.org Subject: Re: 4.7 regression: ACPI: No IRQ available for PCI Interrupt Link [LNKD]. Try pci=noacpi or acpi=off To: "Rafael J. Wysocki" , Ondrej Zary References: <201609251512.05657.linux@rainbow-software.org> <5551312.D3H9D4JOFc@vostro.rjw.lan> <201609280023.31987.linux@rainbow-software.org> <4220489.2ZUOL1U5cK@vostro.rjw.lan> Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, Bjorn Helgaas From: Sinan Kaya Message-ID: Date: Tue, 27 Sep 2016 19:06:12 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <4220489.2ZUOL1U5cK@vostro.rjw.lan> 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 On 9/27/2016 6:58 PM, Rafael J. Wysocki wrote: >> :040000 040000 9bf16c388d23bb66e087809f069eafed18e46a8c bcac95fb33ee834aec7d23eab9eb0dc5e330c68c M drivers > OK > > Sinan, can you help, please? > > Sure, let's see what's going on. I was writing an email. Can we apply this and collect the kernel log? It also helps to see the kernel log from a working combination. diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index c983bf7..44937f93 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c @@ -508,6 +508,8 @@ static int acpi_irq_get_penalty(int irq) penalty += PIRQ_PENALTY_ISA_ALWAYS; else penalty += PIRQ_PENALTY_PCI_USING; + + pr_info("%s:%d adding SCI penalty: %d\n", __func__, __LINE__, penalty); } if (irq < ACPI_MAX_ISA_IRQS) @@ -604,6 +606,12 @@ static int acpi_pci_link_allocate(struct acpi_pci_link *link) } } if (acpi_irq_get_penalty(irq) >= PIRQ_PENALTY_ISA_ALWAYS) { + for (i = (link->irq.possible_count - 1); i >= 0; i--) { + pr_info("penalty[%d] = 0x%x\n", + link->irq.possible[i], + acpi_irq_get_penalty(link->irq.possible[i])); + } + printk(KERN_ERR PREFIX "No IRQ available for %s [%s]. " "Try pci=noacpi or acpi=off\n", acpi_device_name(link->device), @@ -870,9 +878,12 @@ static int __init acpi_irq_penalty_update(char *str, int used) */ void acpi_penalize_isa_irq(int irq, int active) { - if ((irq >= 0) && (irq < ARRAY_SIZE(acpi_isa_irq_penalty))) + if ((irq >= 0) && (irq < ARRAY_SIZE(acpi_isa_irq_penalty))) { acpi_isa_irq_penalty[irq] = acpi_irq_get_penalty(irq) + (active ? PIRQ_PENALTY_ISA_USED : PIRQ_PENALTY_PCI_USING); + pr_info("%s:%d acpi_isa_irq_penalty[%d]=0x%x active = %d\n", __func__, + __LINE__, irq, acpi_irq_get_penalty(irq), active); + } } bool acpi_isa_irq_available(int irq)