From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751861AbcFUNkR (ORCPT ); Tue, 21 Jun 2016 09:40:17 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33300 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751139AbcFUNkP (ORCPT ); Tue, 21 Jun 2016 09:40:15 -0400 Subject: Re: kernel-4.7 bug in Intel sound and/or ACPI To: wim@djo.tudelft.nl References: <20160620003530.GA19571@djo.tudelft.nl> <2999417.fp4mqtxYS2@vostro.rjw.lan> <20160620212507.GA24086@localhost> <57686D67.8010201@codeaurora.org> <20160621124715.GB3528@djo.tudelft.nl> Cc: Bjorn Helgaas , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, perex@perex.cz, linux-pci@vger.kernel.org, Takashi Iwai From: Sinan Kaya Message-ID: <576943BA.1000001@codeaurora.org> Date: Tue, 21 Jun 2016 09:40:10 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20160621124715.GB3528@djo.tudelft.nl> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/21/2016 8:47 AM, Wim Osterholt wrote: >> Can you try the following and see if it makes any difference? >> >> >> --- a/drivers/acpi/pci_link.c >> +++ b/drivers/acpi/pci_link.c >> @@ -500,7 +500,7 @@ static int acpi_irq_get_penalty(int irq) >> int penalty = 0; >> >> if (irq < ACPI_MAX_ISA_IRQS) >> - penalty += acpi_isa_irq_penalty[irq]; >> + return acpi_isa_irq_penalty[irq]; >> >> /* >> * Penalize IRQ used by ACPI SCI. If ACPI SCI pin attributes conflict >> @@ -586,6 +586,10 @@ static int acpi_pci_link_allocate(struct acpi_pci_link *link) >> acpi_device_bid(link->device)); >> return -ENODEV; >> } else { >> + if (irq < ACPI_MAX_ISA_IRQS) >> + acpi_isa_irq_penalty[irq] = acpi_irq_get_penalty(irq) + >> + PIRQ_PENALTY_PCI_USING; >> + >> >> >> >>> Bjorn > > > I tried this on kernel 4.7.0-rc4, but that didn't help. It still tried to > grab irq7. > > Thanks, It was a guess with no proof. Let's undo the change above and start adding some print statements to collect data from your system. Can you add this to the end of acpi_irq_get_penalty function and then send the output? pr_info("%s:%d irq = %d penalty = %d\n", __func__, __LINE__, irq, penalty); > Regards, Wim. > > > ----- wim@djo.tudelft.nl ----- > > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Sinan Kaya Qualcomm Technologies, Inc. on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project