RE: allocating IRQ mentioned in _CRS of ACPI

From: Souradeep Chakrabarti <schakrabarti_at_microsoft.com>
Date: Fri, 14 Oct 2022 07:54:22 UTC
Last mail was having incorrect FreeBSD hacker alias. Replacing that with correct one here.


> -----Original Message-----
> From: Souradeep Chakrabarti
> Sent: Friday, October 14, 2022 1:19 PM
> To: Warner Losh <imp@bsdimp.com>
> Cc: hacker@freebsd.org; Wei Hu <weh@microsoft.com>
> Subject: allocating IRQ mentioned in _CRS of ACPI
> 
> Hi,
> I would like to allocate IRQ to a device, mentioned in the _CRS of that device in
> ACPI table.
> I have tried with bus_alloc_resource_any(), but it is failing as the parent of that
> device is not owning the IRQ.
> 
> Current ACPI topo for the device :
> ACPI0->SB.VMOD(HID ACPI0004, has SYS_RES_MEM for MMIO in _CRS)-
> >VMBUS( it has SYS_RES_IRQ in it's _CRS).
> 
> How can I get here both SYS_RES_IRQ and SYS_RES_MEM allocated to VMBUS?
> 
> Thanks & Regards,
> Souradeep