From patchwork Wed Sep 28 23:38:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 9355349 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 9716A60756 for ; Wed, 28 Sep 2016 23:38:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84677285DE for ; Wed, 28 Sep 2016 23:38:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 776D229697; Wed, 28 Sep 2016 23:38:51 +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 924CA285DE for ; Wed, 28 Sep 2016 23:38:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702AbcI1Xit (ORCPT ); Wed, 28 Sep 2016 19:38:49 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37166 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751438AbcI1Xir (ORCPT ); Wed, 28 Sep 2016 19:38:47 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8912B61AAE; Wed, 28 Sep 2016 23:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1475105926; bh=sD1uTnp3pKbvSGU1zsaeJzH8PhUskPtQQp4n2J4eoLY=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=Gdhg8x9aJ8Scmnq5VgczSate18whHtS0ZVcQB5aXGzqFmeAOlrCivu/nK33XwAN3r ZMm+hoxlZycBiXugSkQLNOAaL4Cz3smcfa1GrY7+Ysjdmh3ClWRgPEV4VIygn7DM2T TSuoYbRdwZ3DhBRw/y9yNcDR2TnqfFQqY/Ap+G0A= Received: from [192.168.1.66] (104-182-54-152.lightspeed.rlghnc.sbcglobal.net [104.182.54.152]) (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 1104961A86; Wed, 28 Sep 2016 23:38:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1475105925; bh=sD1uTnp3pKbvSGU1zsaeJzH8PhUskPtQQp4n2J4eoLY=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=Jg8OR32lL5TzKs+kRidgT7E9C5ui9GCSUcjnutCxNHZ1/Hjro1jnlDEXVAxsZTAHe E2S4+/BZZXqzuPU0JbBRAyKqpppXeRUHO29KbOQwl+SPJ7xXlxEsATT5a3OzKKqH7d H7QrBCfszGa+UyHaBlZfgLP2f8S+BmJHhL0u0MfU= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 1104961A86 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: Ondrej Zary References: <201609251512.05657.linux@rainbow-software.org> <201609281902.31500.linux@rainbow-software.org> <76303bb8-7ae2-9a6b-8e5d-a144ae7c6009@codeaurora.org> <201609282123.48506.linux@rainbow-software.org> Cc: "Rafael J. Wysocki" , "linux-kernel@vger.kernel.org" , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, Bjorn Helgaas , wim@djo.tudelft.nl, ravikanth.nalla@hpe.com From: Sinan Kaya Message-ID: <946fcb62-272b-61b3-9afa-7c27a1ce7419@codeaurora.org> Date: Wed, 28 Sep 2016 19:38:41 -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: <201609282123.48506.linux@rainbow-software.org> 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 On 9/28/2016 3:23 PM, Ondrej Zary wrote: > On Wednesday 28 September 2016 20:22:40 Sinan Kaya wrote: >> On 9/28/2016 1:02 PM, Ondrej Zary wrote: >>>> Thanks, It sounds like you have more than one machine with similar >>>> >>>>> problems. Can you collect the log from the other machines with >>>>> 4.8-rc8? >>>>> >>>>> and also a boot log with 4.6 kernel where things are working? >>> >>> The attached logs are from another machine: >>> >>> dmesg-bad-debug.txt: 4.8-rc8 with your debug patch - bad >>> >>> dmesg-reverted.txt: 4.8-rc8 with patches (as per Rafael's suggestion) >>> reverted - good >>> >>> dmesg-3.6.txt: 4.6 (Debian kernel) - good >> >> I think I see a race condition for the SCI interrupt. I need another dump >> from 4.8-rc8 with the attached patch to confirm. Let's remove the previous >> one and apply this one. > > dmesg-reverted.txt: 4.8-rc8 w/patches reverted (good) > $ head /proc/interrupts > CPU0 > 0: 8531 XT-PIC timer > 1: 9 XT-PIC i8042 > 2: 0 XT-PIC cascade > 8: 1 XT-PIC rtc0 > 11: 713 XT-PIC acpi, uhci_hcd:usb1, uhci_hcd:usb2, nvkm, eth0 > 12: 161 XT-PIC i8042 > 14: 4042 XT-PIC pata_via > 15: 0 XT-PIC pata_via > NMI: 0 Non-maskable interrupts > > dmesg-bad-debug.txt: 4.8-rc8 (bad) > $ head /proc/interrupts > CPU0 > 0: 8027 XT-PIC timer > 1: 286 XT-PIC i8042 > 2: 0 XT-PIC cascade > 8: 1 XT-PIC rtc0 > 10: 0 XT-PIC uhci_hcd:usb1, uhci_hcd:usb2 > 11: 0 XT-PIC acpi, nvkm, eth0 > 12: 161 XT-PIC i8042 > 14: 4069 XT-PIC pata_via > 15: 0 XT-PIC pata_via > > (I'm moving between different machines through the day - these logs are from > different machine than the last ones). > Can you try these patches on your machines please? diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index 1edda48..df58153 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c @@ -871,9 +871,10 @@ static int __init acpi_irq_penalty_update(char *str, int used) */ void acpi_penalize_isa_irq(int irq, int active) { + int penalty = active ? PIRQ_PENALTY_ISA_USED : PIRQ_PENALTY_PCI_USING; + 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); + acpi_isa_irq_penalty[irq] += penalty; } bool acpi_isa_irq_available(int irq)