From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: davej@redhat.com, Linus Torvalds <torvalds@osdl.org>,
Paul Mackerras <paulus@samba.org>
Subject: Re: [AGPGART] Map the graphic card to the bridge its connected to.
Date: Fri, 11 Mar 2005 10:02:50 +1100 [thread overview]
Message-ID: <1110495771.32525.287.camel@gaston> (raw)
In-Reply-To: <200503070222.j272MJai027858@hera.kernel.org>
On Wed, 2005-02-23 at 02:25 +0000, Linux Kernel Mailing List wrote:
> ChangeSet 1.1982.82.19, 2005/02/22 21:25:33-05:00, davej@delerium.kernelslacker.org
>
> [AGPGART] Map the graphic card to the bridge its connected to.
>
> Signed-off-by: Dave Jones <davej@redhat.com>
>
>
>
> generic.c | 5 +++++
> 1 files changed, 5 insertions(+)
>
>
> diff -Nru a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c
> --- a/drivers/char/agp/generic.c 2005-03-06 18:22:31 -08:00
> +++ b/drivers/char/agp/generic.c 2005-03-06 18:22:31 -08:00
> @@ -636,6 +636,11 @@
> pci_dev_put(device);
> continue;
> }
> + if ((device->bus->self->vendor != bridge->dev->vendor) &&
> + (device->bus->self->device != bridge->dev->device)) {
> + pci_dev_put(device);
> + continue;
> + }
> }
>
That sounds totally bogus and blows up on pmac, please revert.
device->bus may be a host bridge, which has no bus->self -> Ooops.
Unfortunately, there is no sane way to match a host bridge with it's
eventual "self" device if it has any. The only way would be to scan for
devices of class host bridge, but that isn't even 100% reliable.
The result is that the self device (AGP bridge device) is generally a
sibling of the actual AGP card, which is source of interesting problems,
especially with power management.
Ideally, the AGP property should be implemented at the "bus instance"
level, but we don't really have a real pci bus driver layer at this
point, and we can't use normal PCI discovery to find host bridges, so
that would require arch support.
In the meantime, please revert the above, it will just blow up on a
number of setups.
Ben.
next parent reply other threads:[~2005-03-10 23:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200503070222.j272MJai027858@hera.kernel.org>
2005-03-10 23:02 ` Benjamin Herrenschmidt [this message]
2005-03-11 0:59 ` [AGPGART] Map the graphic card to the bridge its connected to Benjamin Herrenschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1110495771.32525.287.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox