[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <576943BA.1000001@codeaurora.org>
Date: Tue, 21 Jun 2016 09:40:10 -0400
From: Sinan Kaya <okaya@...eaurora.org>
To: wim@....tudelft.nl
Cc: Bjorn Helgaas <helgaas@...nel.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
linux-kernel@...r.kernel.org, linux-acpi@...r.kernel.org,
perex@...ex.cz, linux-pci@...r.kernel.org,
Takashi Iwai <tiwai@...e.com>
Subject: Re: kernel-4.7 bug in Intel sound and/or ACPI
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@....tudelft.nl -----
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@...r.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
Powered by blists - more mailing lists