[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <83b983a4-064e-4a81-9c58-239b630eb299@linux.microsoft.com>
Date: Wed, 26 Mar 2025 08:37:28 -0700
From: Roman Kisel <romank@...ux.microsoft.com>
To: "Rafael J. Wysocki" <rafael@...nel.org>
Cc: arnd@...db.de, bhelgaas@...gle.com, bp@...en8.de,
catalin.marinas@....com, conor+dt@...nel.org, dan.carpenter@...aro.org,
dave.hansen@...ux.intel.com, decui@...rosoft.com, haiyangz@...rosoft.com,
hpa@...or.com, joey.gouly@....com, krzk+dt@...nel.org, kw@...ux.com,
kys@...rosoft.com, lenb@...nel.org, lpieralisi@...nel.org,
manivannan.sadhasivam@...aro.org, mark.rutland@....com, maz@...nel.org,
mingo@...hat.com, oliver.upton@...ux.dev, robh@...nel.org,
ssengar@...ux.microsoft.com, sudeep.holla@....com, suzuki.poulose@....com,
tglx@...utronix.de, wei.liu@...nel.org, will@...nel.org,
yuzenghui@...wei.com, devicetree@...r.kernel.org, kvmarm@...ts.linux.dev,
linux-acpi@...r.kernel.org, linux-arch@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-hyperv@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org, x86@...nel.org,
apais@...rosoft.com, benhill@...rosoft.com, bperkins@...rosoft.com,
sunilmut@...rosoft.com
Subject: Re: [PATCH hyperv-next v6 11/11] PCI: hv: Get vPCI MSI IRQ domain
from DeviceTree
On 3/26/2025 7:56 AM, Rafael J. Wysocki wrote:
> On Sat, Mar 15, 2025 at 1:19 AM Roman Kisel <romank@...ux.microsoft.com> wrote:
[...]
>> - chip_data);
>> +#ifdef CONFIG_ACPI
>> + if (!acpi_disabled)
>> + irq_domain_parent = hv_pci_acpi_irq_domain_parent();
>> +#endif
>> +#if defined(CONFIG_OF)
>
> Why don't you do
>
> #ifdef CONFIG_OF
>
> here for consistency?
>
Agree, that'd be easier on the eyes :) Will fix in the next version,
thanks for the suggestion!
>> + if (!irq_domain_parent)
>> + irq_domain_parent = hv_pci_of_irq_domain_parent();
>> +#endif
>> + if (!irq_domain_parent) {
>> + WARN_ONCE(1, "Invalid firmware configuration for VMBus interrupts\n");
>> + ret = -EINVAL;
>> + goto free_chip;
>> + }
>> +
>> + hv_msi_gic_irq_domain = irq_domain_create_hierarchy(
>> + irq_domain_parent, 0, HV_PCI_MSI_SPI_NR,
>> + fn, &hv_pci_domain_ops,
>> + chip_data);
>>
>> if (!hv_msi_gic_irq_domain) {
>> pr_err("Failed to create Hyper-V arm64 vPCI MSI IRQ domain\n");
>> --
--
Thank you,
Roman
Powered by blists - more mailing lists