Date: Wed, 19 Oct 2022 11:39:19 -0600 From: Warner Losh <imp@bsdimp.com> To: Souradeep Chakrabarti <schakrabarti@microsoft.com> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Wei Hu <weh@microsoft.com> Subject: Re: allocating IRQ mentioned in _CRS of ACPI Message-ID: <CANCZdfotdfuwK1t7efmh%2B_jNxjEJj4UmdrWhTVmUktZC9auzEQ@mail.gmail.com> In-Reply-To: <PSAP153MB053688DD7E9B60CE5AEB17A6CC289@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM> References: <PSAP153MB053667A618629ACFFDCEDCBFCC249@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM> <PSAP153MB053698CAD8CB5439C99355B4CC249@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM> <PSAP153MB053688DD7E9B60CE5AEB17A6CC289@PSAP153MB0536.APCP153.PROD.OUTLOOK.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ee990a05eb66b0a4 Content-Type: text/plain; charset="UTF-8" Sorry for the late reply... I've been busy with some things for work... I think you'll need to get the parent of vmbus to allow a pass through allocation. What bus is that currently? Warner On Tue, Oct 18, 2022 at 12:33 PM Souradeep Chakrabarti < schakrabarti@microsoft.com> wrote: > Hi, > It will be a great help, if someone can help here with some idea. > As it is blocking the FreeBSD on Hyper-V ARM64. > > Thanks & Regards, > Souradeep > > > -----Original Message----- > > From: Souradeep Chakrabarti > > Sent: Friday, October 14, 2022 1:24 PM > > To: 'Warner Losh' <imp@bsdimp.com> > > Cc: freebsd-hackers@freebsd.org; Wei Hu <weh@microsoft.com> > > Subject: RE: allocating IRQ mentioned in _CRS of ACPI > > > > 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 > --000000000000ee990a05eb66b0a4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Sorry for the=C2=A0late reply... I've been busy w= ith some things for work...</div><div><br></div><div>I think you'll nee= d to get the parent of vmbus to allow a pass through allocation. What bus i= s that</div><div>currently?</div><div><br></div><div>Warner<br></div><br><d= iv class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Oct = 18, 2022 at 12:33 PM Souradeep Chakrabarti <<a href=3D"mailto:schakrabar= ti@microsoft.com">schakrabarti@microsoft.com</a>> wrote:<br></div><block= quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1= px solid rgb(204,204,204);padding-left:1ex">Hi,<br> It will be a great help, if someone can help here with some idea.<br> As it is blocking the FreeBSD on Hyper-V ARM64.<br> <br> Thanks & Regards,<br> Souradeep<br> <br> > -----Original Message-----<br> > From: Souradeep Chakrabarti<br> > Sent: Friday, October 14, 2022 1:24 PM<br> > To: 'Warner Losh' <<a href=3D"mailto:imp@bsdimp.com" target= =3D"_blank">imp@bsdimp.com</a>><br> > Cc: <a href=3D"mailto:freebsd-hackers@freebsd.org" target=3D"_blank">f= reebsd-hackers@freebsd.org</a>; Wei Hu <<a href=3D"mailto:weh@microsoft.= com" target=3D"_blank">weh@microsoft.com</a>><br> > Subject: RE: allocating IRQ mentioned in _CRS of ACPI<br> > <br> > Last mail was having incorrect FreeBSD hacker alias. Replacing that wi= th correct<br> > one here.<br> > <br> > <br> > > -----Original Message-----<br> > > From: Souradeep Chakrabarti<br> > > Sent: Friday, October 14, 2022 1:19 PM<br> > > To: Warner Losh <<a href=3D"mailto:imp@bsdimp.com" target=3D"_= blank">imp@bsdimp.com</a>><br> > > Cc: <a href=3D"mailto:hacker@freebsd.org" target=3D"_blank">hacke= r@freebsd.org</a>; Wei Hu <<a href=3D"mailto:weh@microsoft.com" target= =3D"_blank">weh@microsoft.com</a>><br> > > Subject: allocating IRQ mentioned in _CRS of ACPI<br> > ><br> > > Hi,<br> > > I would like to allocate IRQ to a device, mentioned in the _CRS o= f<br> > > that device in ACPI table.<br> > > I have tried with bus_alloc_resource_any(), but it is failing as = the<br> > > parent of that device is not owning the IRQ.<br> > ><br> > > Current ACPI topo for the device :<br> > > ACPI0->SB.VMOD(HID ACPI0004, has SYS_RES_MEM for MMIO in _CRS)= -<br> > > >VMBUS( it has SYS_RES_IRQ in it's _CRS).<br> > ><br> > > How can I get here both SYS_RES_IRQ and SYS_RES_MEM allocated to = VMBUS?<br> > ><br> > > Thanks & Regards,<br> > > Souradeep<br> </blockquote></div></div> --000000000000ee990a05eb66b0a4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfotdfuwK1t7efmh%2B_jNxjEJj4UmdrWhTVmUktZC9auzEQ>