mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jon Smirl" <jonsmirl@gmail.com>
To: "Dave Airlie" <airlied@linux.ie>
Cc: "Linus Torvalds" <torvalds@osdl.org>,
	"Arjan van de Ven" <arjan@infradead.org>,
	"Andrew Morton" <akpm@osdl.org>,
	"Matthew Reppert" <arashi@sacredchao.net>,
	linux-kernel@vger.kernel.org,
	"Antonino A. Daplas" <adaplas@pol.net>,
	"Benjamin Herrenschmidt" <benh@kernel.crashing.org>
Subject: Re: PCI ROM resource allocation issue with 2.6.17-rc2
Date: Tue, 25 Apr 2006 22:10:18 -0400	[thread overview]
Message-ID: <9e4733910604251910t37b3b78o774a1c2bc38e9c66@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0604260221560.31555@skynet.skynet.ie>

On 4/25/06, Dave Airlie <airlied@linux.ie> wrote:
>
> >
> > Maybe just add a DRM command to do it, so that old X versions (who don't
> > know about it) will just do it by hand, and then new X versions can do
> >
> >       if (drm_ioctl(fd, DRM_SETUP_THE_DAMN_RESOURCES) < 0) {
> >               /*
> >                * I don't know what errno the drm-ioctl actually
> >                * returns for unrecognized commands, so this is
> >                * just an example
> >                */
> >               if (errno == ENOTTY) {
> >                       old kernel: do it by hand
> >               }
> >       }
> >
> > which allows us to go forward in a sane way, and finally leave the broken
> > X PCI-configuration-by-hand crap behind.
>
> It doesn't help of course, the fb drivers also pci_enable the devices,
> really X needs a kicking square, I'm trying to figure out some sort of fix
> here, but X does't some really stupid things with PCI resources...
>
> We really need a userspace way to pci_enable_device that X can call (via
> sysfs) so for cards that don't have a DRM or fb loaded we still get
> something..

You could make a null DRM driver that is loaded for every card that
doesn't have a real one. Give it aliases to make it match the X driver
names.

The right answer here is to start working towards a solution where the
OS is actually in control of hardware resources instead of a user app.
There can only be one entity in charge of PCI space or we will all go
insane. If we continue to say that old X binaries have to work we will
still have these same problems in 2060.


>
> Dave.
>
> --
> David Airlie, Software Engineer
> http://www.skynet.ie/~airlied / airlied at skynet.ie
> Linux kernel - DRI, VAX / pam_smb / ILUG
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>


--
Jon Smirl
jonsmirl@gmail.com

  reply	other threads:[~2006-04-26  2:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-24  4:02 Matthew Reppert
2006-04-24  5:21 ` Andrew Morton
2006-04-24  5:54   ` Dave Airlie
2006-04-24 17:07     ` Linus Torvalds
2006-04-24 17:16       ` Arjan van de Ven
2006-04-24 17:28         ` Linus Torvalds
2006-04-26  1:23           ` Dave Airlie
2006-04-26  2:10             ` Jon Smirl [this message]
2006-04-24 17:01   ` Linus Torvalds
2006-04-26  3:28     ` Dave Airlie
2006-04-26  3:40       ` Debian Kernel with Squash and UnionFS installed Joshua Perrymon
2006-04-26  5:05       ` PCI ROM resource allocation issue with 2.6.17-rc2 Linus Torvalds
2006-04-26  5:56         ` Dave Airlie
2006-04-24  5:28 ` Matthew Reppert
2006-04-24 19:24   ` Jon Smirl

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=9e4733910604251910t37b3b78o774a1c2bc38e9c66@mail.gmail.com \
    --to=jonsmirl@gmail.com \
    --cc=adaplas@pol.net \
    --cc=airlied@linux.ie \
    --cc=akpm@osdl.org \
    --cc=arashi@sacredchao.net \
    --cc=arjan@infradead.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®