Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Apr 2013 15:21:10 -0700
From:      Benjamin Lee <ben@b1c1l1.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: panic: acpi_pci_link_srs_from_crs: can't put non-ISA IRQ 20 in legacy IRQ resource type)
Message-ID:  <20130419152110.213c7fbb@b1c1l1.com>
In-Reply-To: <201304191726.31089.jhb@freebsd.org>
References:  <20130418124940.47e3618a@b1c1l1.com> <201304191131.49433.jhb@freebsd.org> <20130419131849.7357c8f6@b1c1l1.com> <201304191726.31089.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/eEdCXbzuhjkEDZADVWrv2fN
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Fri, 19 Apr 2013 17:26:31 -0400, John Baldwin <jhb@freebsd.org> wrote:
> On Friday, April 19, 2013 4:18:49 pm Benjamin Lee wrote:
> > On Fri, 19 Apr 2013 11:31:49 -0400, John Baldwin <jhb@freebsd.org> wrot=
e:
> > > On Thursday, April 18, 2013 3:49:40 pm Benjamin Lee wrote:
> > > > I have a system that panics on boot with 10-CURRENT and boots with =
many
> > > > ACPI error messages and non-functional devices with 9.1-RELEASE.
> > > >=20
> > > > Motherboard is Foxconn C51XEM2AA (NVIDIA nForce 590) desktop board.
> > [...]
> > > > Even though 9.1-RELEASE boots successfully, devices such as the ehc=
i USB
> > > > controller and SATA controller do not work.
> > >=20
> > > Ugh, your BIOS does unexpected things.  It uses a _CRS for these pci =
link
> > > devices that uses a "short" IRQ resource, but uses an extended IRQ=20
> resource in
> > > _PRS (and expects an extended one in _SRS).  We use _CRS as a templat=
e for=20
> the
> > > resource to build.
> > >=20
> > > Try this patch.  It's a bit hackish, but it forces us to not use _CRS=
 as a
> > > template if _CRS uses a "short" IRQ resource, but the link supports n=
on-
> ISA
> > > IRQs.
> > [...]
> >=20
> > Thanks, that fixed the panic and the system boots.  Now it is
> > complaining about AE_AML_BAD_RESOURCE_LENGTH and still unable to route
> > IRQs, but it definitely looks better than the ACPI parsing errors in 9:
> >=20
> > pcib0: allocated type 3 (0xdffff000-0xdfffffff) for rid 10 of pci0:0:10=
:0
> > pcib0: matched entry for 0.10.INTA (src \_SB_.PCI0.AUBA:0)
> > pci_link26: Picked IRQ 20 with weight 0
> > pci_link26: Unable to route IRQs: AE_AML_BAD_RESOURCE_LENGTH
> >=20
> > Full boot -v output: http://www.b1c1l1.com/media/debug/20130419-10-patc=
hed-
> boot.txt.gz
>=20
> Can you add some printfs to the places that return the=20
> AE_AML_BAD_RESOURCE_LENGTH to see which one is being triggered?  (Just lo=
ok=20
> for that constant in sys/contrib/dev/acpica to find the possible places.)

Is there a macro for dumping information about Resource or
Resource->Data?  Here's what I have for now at
sys/contrib/dev/acpica/resources/rscalc.c line 237:

pcib0: matched entry for 0.10.INTA (src \_SB_.PCI0.AUBA:0)
pci_link26: Picked IRQ 20 with weight 0
rscalc.c:237
Resource->Type: 7
Resource->Length: 0
pci_link26: Unable to route IRQs: AE_AML_BAD_RESOURCE_LENGTH

All of the errors are from there and look identical (Type 7, Length 0).
Type 7 appears to be ACPI_RESOURCE_TYPE_END_TAG.


--=20
Benjamin Lee
http://www.b1c1l1.com/

--Sig_/eEdCXbzuhjkEDZADVWrv2fN
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAEBAgAGBQJRccNaAAoJEHpz6H1iC6qDz9EP/iOQEILcs6gV/xV3BPROnHIX
LwHyQPAr/IWsSRJ8UnatWaKbD76t0E9qyZysGDqJbM9ihYrNLMf+lVJGRWE890Mn
UXkk4wmStKSdbBYNj78hPEWgK2wZ5BYOe46KrOtWCy5LCV8XVaztxBV9VIJrvX53
+XtdW241cruRFRCzfiEDiKLqOaGqF2PAcR4m4hkFODpp9nt945LKZj0ynfsrBNrd
W7MF6kJ6N9UJeSLcnUWv2Ty78+YHdG2FT3z5oh8J33HXMBsxhW5vLpN2hvdfeh6p
JP1TxRtPGT6Xl/H8F4ItVimy7XWf9/VxZNOXUpJFC1URzNc2XE7k6ZoA/7Jj+mNm
03bmygYWQK9YdEaLoaC2W5Ww7o5GqeI2agLcOBrWI2Y3FUXSA4dR1GUcRgamN1yZ
j0ZxaRnAzok9Nvlpb2anxfG+S4tCVWBcYMYsNxhQL6pHeTLhTwmYivoAkEMD0ArZ
ZpEAFNDuzVIIc7zwksapih+KXnMbc5hKAilZ35j1sPmvDCgRu0cUnmPIvKqsnAXK
JZMm3vIwvX2TGPZRadfmFWF/8ZrzjO5+cd6MWuTzGXTvoaEA91EZu4G2FhTKMjLe
ckyqhtAmMcbHU6zhyNI53bf+DwJCEKyUNWFGqPEJyd/hlMxs09txN1ss8N+iZEhL
gl9MQwra/5GCQqLJaTaa
=mPmB
-----END PGP SIGNATURE-----

--Sig_/eEdCXbzuhjkEDZADVWrv2fN--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130419152110.213c7fbb>