From: Ben Hutchings <ben@decadent.org.uk>
To: Dave Airlie <airlied@redhat.com>, David Woodhouse <dwmw2@infradead.org>
Cc: linux-kernel@vger.kernel.org, 570321@bugs.debian.org,
571003@bugs.debian.org, 548090@bugs.debian.org
Subject: amd64-agp conflicts with sis-agp
Date: Sat, 20 Mar 2010 17:17:15 +0000 [thread overview]
Message-ID: <1269105436.18314.81.camel@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]
This code in agp_amd64_init() can optionally bind to devices
generically, and it does this without going through the device core:
/* Look for any AGP bridge */
dev = NULL;
err = -ENODEV;
for_each_pci_dev(dev) {
if (!pci_find_capability(dev, PCI_CAP_ID_AGP))
continue;
/* Only one bridge supported right now */
if (agp_amd64_probe(dev, NULL) == 0) {
err = 0;
break;
}
}
This is causing crashes on some systems where sis-agp is already bound
to the device. It could even race with binding of another driver when
they are both built-in. I think it should be using something like the
following instead of directly calling agp_amd64_probe():
down(&dev->dev.sem);
if (!dev->dev.driver &&
driver_probe_device(&drv->driver, &dev->dev) == 0)
err = 0;
up(&dev->dev.sem);
if (err == 0)
break;
Ben.
--
Ben Hutchings
Power corrupts. Absolute power is kind of neat.
- John Lehman, Secretary of the US Navy 1981-1987
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
reply other threads:[~2010-03-20 17:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1269105436.18314.81.camel@localhost \
--to=ben@decadent.org.uk \
--cc=548090@bugs.debian.org \
--cc=570321@bugs.debian.org \
--cc=571003@bugs.debian.org \
--cc=airlied@redhat.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.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