From: Timothy Miller <miller@techsource.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Blocking access to a PCI device for "a long time"?
Date: Fri, 19 Nov 2004 16:34:09 -0500 [thread overview]
Message-ID: <419E66D1.8000304@techsource.com> (raw)
Some of you may have followed the earlier discussions on the open
graphics card. One problem is that we are trying to fit a lot of logic
into a small area, so one thing we're considering is having multiple
FPGA bitfiles in the PROM. When changing modes (ie. from VGA to 3D),
the driver would instruct the FPGA to reload itself from a different
part of the bitfile PROM.
The issue here is that it's a complete reload of the FPGA which makes it
completely lose all configuration state, which includes PCI config.
Thus, the process for switching modes would go something like this:
- Make sure that nothing can get confused by the device "going away" on
the PCI/AGP bus, using whatever kernel locks are necessary
- Save PCI config state of device
- Instruct the FPGA to reload itself
- Wait many, many, many, many milliseconds
- Reload PCI config state
- Unlock and continue
Other drivers accessing the bus for other devices is PROBABLY not a
problem, but nothing can touch the GPU while it's reloading.
Are there any problems with this approach that would make it a really
bad idea?
next reply other threads:[~2004-11-19 21:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-19 21:34 Timothy Miller [this message]
2004-11-21 0:10 ` Blocking access to a PCI device for "a long time"? 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=419E66D1.8000304@techsource.com \
--to=miller@techsource.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.