Skip site navigation (1)Skip section navigation (2)
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&#39;ve been busy w=
ith some things for work...</div><div><br></div><div>I think you&#39;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 &lt;<a href=3D"mailto:schakrabar=
ti@microsoft.com">schakrabarti@microsoft.com</a>&gt; 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 &amp; Regards,<br>
Souradeep<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: Souradeep Chakrabarti<br>
&gt; Sent: Friday, October 14, 2022 1:24 PM<br>
&gt; To: &#39;Warner Losh&#39; &lt;<a href=3D"mailto:imp@bsdimp.com" target=
=3D"_blank">imp@bsdimp.com</a>&gt;<br>
&gt; Cc: <a href=3D"mailto:freebsd-hackers@freebsd.org" target=3D"_blank">f=
reebsd-hackers@freebsd.org</a>; Wei Hu &lt;<a href=3D"mailto:weh@microsoft.=
com" target=3D"_blank">weh@microsoft.com</a>&gt;<br>
&gt; Subject: RE: allocating IRQ mentioned in _CRS of ACPI<br>
&gt; <br>
&gt; Last mail was having incorrect FreeBSD hacker alias. Replacing that wi=
th correct<br>
&gt; one here.<br>
&gt; <br>
&gt; <br>
&gt; &gt; -----Original Message-----<br>
&gt; &gt; From: Souradeep Chakrabarti<br>
&gt; &gt; Sent: Friday, October 14, 2022 1:19 PM<br>
&gt; &gt; To: Warner Losh &lt;<a href=3D"mailto:imp@bsdimp.com" target=3D"_=
blank">imp@bsdimp.com</a>&gt;<br>
&gt; &gt; Cc: <a href=3D"mailto:hacker@freebsd.org" target=3D"_blank">hacke=
r@freebsd.org</a>; Wei Hu &lt;<a href=3D"mailto:weh@microsoft.com" target=
=3D"_blank">weh@microsoft.com</a>&gt;<br>
&gt; &gt; Subject: allocating IRQ mentioned in _CRS of ACPI<br>
&gt; &gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt; I would like to allocate IRQ to a device, mentioned in the _CRS o=
f<br>
&gt; &gt; that device in ACPI table.<br>
&gt; &gt; I have tried with bus_alloc_resource_any(), but it is failing as =
the<br>
&gt; &gt; parent of that device is not owning the IRQ.<br>
&gt; &gt;<br>
&gt; &gt; Current ACPI topo for the device :<br>
&gt; &gt; ACPI0-&gt;SB.VMOD(HID ACPI0004, has SYS_RES_MEM for MMIO in _CRS)=
-<br>
&gt; &gt; &gt;VMBUS( it has SYS_RES_IRQ in it&#39;s _CRS).<br>
&gt; &gt;<br>
&gt; &gt; How can I get here both SYS_RES_IRQ and SYS_RES_MEM allocated to =
VMBUS?<br>
&gt; &gt;<br>
&gt; &gt; Thanks &amp; Regards,<br>
&gt; &gt; 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>