From: Jon Smirl <jonsmirl@gmail.com>
To: Dave Jones <davej@redhat.com>, Jon Smirl <jonsmirl@gmail.com>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: Intel AGP support attaching to wrong PCI IDs
Date: Sun, 6 Feb 2005 01:49:57 -0500 [thread overview]
Message-ID: <9e473391050205224960767ad0@mail.gmail.com> (raw)
In-Reply-To: <20050206060839.GA19330@redhat.com>
On Sun, 6 Feb 2005 01:08:40 -0500, Dave Jones <davej@redhat.com> wrote:
> Why exactly are you trying to write host bridge drivers anyway ?
> Confused.
We're trying to add sysfs attributes for identifying and controlling
legacy address spaces. Desktop x86 has just a single legacy IO/mem
address space but more advanced systems like the IA64 support multiple
ones. See Documentation/filesystems/sysfs-pci.txt. All architectures
need to provide a consistent API to make it easier to write the user
space app (like video reset). If IA64 is the example then x86 needs to
add legacy_io/mem attributes to the host bus bridge which just passes
the accesses on without change.
Another part of this is VGA control. When there are multiple VGA
devices the bridges have to be set to route VGA appropriately. This is
a different feature than multiple legacy address spaces on the IA64.
> Another way forward (somewhat hacky in one sense, but a lot cleaner in another)
> would be to change the PCI code so that it'll load and init
> multiple drivers that claim to support the same PCI ID.
> This may cause issues for some other drivers however where
> we have an old and a new driver with ID overlap.
This problem already exits in DRM/fbdev. DRM loads like a normal
driver and binds to the PCI IDs. But if it loads and finds fbdev
already bound to the PCI IDs it goes into stealth mode and runs
without binding to the ID.
I would prefer that we stick with the one driver per ID rule and
instead sort out DRM/fbdev to coordinate more. The legacy_io/mem
support can probably be added some place in common AGP code since the
attributes need to be created on all x86 boxes.
> What are you up to?
Putting together a foundation for X on GL. That involves reworking
video support in Linux so that X can remove all the horrible code that
plays with bridge chips and PCI config space from a user space app.
Right now the foundation is not there to allow X to remove the code.
Several things are needed:
1) Secondary card reset at boot
2) Mode setting on secondary heads - fbdev does not have this
3) A way to set modes without being root
4) Memory management coordination between fbdev/DRM when multiple scan
buffers are active
5) Mouse cursor support in fbdev
6) Fix video reset when resuming from suspend
Something that isn't required but would be nice it to fix things so
that an OOPs will be visible even if X is running.
Once DRM/fbdev is fixed mesa-solo will run on it with full features
(it already runs on fbdev/DRM with limited features). This will bring
up a standalone OpenGL stack.
X on GL is already written and is part of the xserver project. This
will run on the standalone OpenGL stack. Combine this with Cairo/Glitz
and we have a graphics system that can compete with Windows Longhorn.
--
Jon Smirl
jonsmirl@gmail.com
next prev parent reply other threads:[~2005-02-06 6:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-06 1:45 Intel AGP support attaching to wrong PCI IDs Jon Smirl
2005-02-06 4:05 ` Dave Jones
2005-02-06 5:58 ` Jon Smirl
2005-02-06 6:08 ` Dave Jones
1996-01-19 21:38 ` Maciej W. Rozycki
2005-02-06 6:49 ` Jon Smirl [this message]
2005-02-06 7:25 ` Kyle Moffett
2005-02-06 21:37 ` Ian Pilcher
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=9e473391050205224960767ad0@mail.gmail.com \
--to=jonsmirl@gmail.com \
--cc=davej@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox