Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2011 16:00:53 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-acpi@freebsd.org
Cc:        =?utf-8?b?0JrRgdC10L3Qt9C+0LIg0JDQu9C10LrRgdC10Lk=?= <aksenzov@gmail.com>
Subject:   Re: Atheros 9285 & Atheros AR8131
Message-ID:  <201104061600.53572.jhb@freebsd.org>
In-Reply-To: <201103281406.27334.jhb@freebsd.org>
References:  <AANLkTi=-rourdUbyH0MVceHi81vAHcNdpaxjpmxJ_BCk@mail.gmail.com> <AANLkTinPAF6dQ0Y4se2B7yqQxVBktv3X1_MUFkfb75dC@mail.gmail.com> <201103281406.27334.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, March 28, 2011 2:06:27 pm John Baldwin wrote:
> On Monday, March 28, 2011 12:46:02 pm =D0=9A=D1=81=D0=B5=D0=BD=D0=B7=D0=
=BE=D0=B2 =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9 wrote:
> > 2011/3/29 Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
> >=20
> > >
> > >  This is probably due to a problem FreeBSD has with ACPI initializati=
on
> > > sometimes wiping out the state in PCI-PCI bridges for resource window=
s and not
> > > gracefully recovering from that.  I have some early work in progress =
to
> > > address this, but it will be a while before I have something ready for
> > > testing.
> > >
> > >
> > >  it is the acer bios that is does not follow acpi standard... I have =
the
> > > same problem
> > > in an old acer 5050 no solution still...   I had to install linux in =
that
> > > notebook.
> > >
> > > My advice is not to buy acer... they are cheap any good...
> > >
> > > Well let's wait for the Baldwin fix....
> > >
> > >
> > maybe this can be corrected by editing the ASL?
>=20
> We've never figured out what is zeroing the registers in the PCI-PCI brid=
ges.
> I suspect it is not something in the ASL, but is a side effect of some BI=
OS
> code that runs in SMM when ACPI is turned on.

Ok, so I have a patch to rework how PCI-PCI bridges manage resources for
devices.  This patch applies to HEAD, no idea if it applies to older branch=
es
(likely not).  You will need to add the option 'NEW_PCIB' to your kernel
config after applying this patch.

  http://www.FreeBSD.org/~jhb/patches/pcib_new.patch

=46or my local testing I used a hack to wipe out the PCI-PCI bridges in my
test machine similar to what the BIOS does on these machines.  The bridges
all grew windows to match their original BIOS-assigned windows based on the
BIOS-assigned resources in the BARs of the child devices.

These patches should also let us allocate new resources from scratch for
devices behind PCI-PCI bridges once we have better support for determining =
what
are valid PCI address ranges in the Host-PCI bridge drivers.

=2D-=20
John Baldwin



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