linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Jon Smirl <jonsmirl@yahoo.com>
Cc: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: [patch] radeonfb: FB_WAITFORVSYNC implementation
Date: Sun, 13 Mar 2005 12:37:56 +1100	[thread overview]
Message-ID: <1110677876.19810.83.camel@gaston> (raw)
In-Reply-To: <20050313012923.60373.qmail@web14926.mail.yahoo.com>

On Sat, 2005-03-12 at 17:29 -0800, Jon Smirl wrote:
> --- Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> > 
> > > When we get merged my thought was to let fbdev catch the vsync IRQ
> > and
> > > then chain into DRM. In that model fbdev becomes the mini-driver.
> > > Right now I don't think there is any other solution than merging
> > > fbdev/DRM that doesn't result in some kind of dead on VT switch
> > > scenario.
> > 
> > A VT switch should stop all asynchronous activity (interrupt, DRM,
> > etc...). X already stops the DRM on switch-out, this could be
> > enforced
> > by the kernel.
> 
> The stopping interrupts on VT switch doesn't really work in a multiuser
> system. That's what burnt me with radeonfb and X. My radeonfb was
> essentially running a different user. X caught a VT switch from the
> first user and stomped on the second.
> 
> fbdev doesn't know about VT switch and shouldn't. It's fbcon that knows
> about it.

Currently, we still need a few hacks to make things work, including that
sort of thing. In fact, the problem at this point is that once the VT
subsystem has lost ownership of the console (because X switch it to
KD_GRAPHICS), we should assume that all video cards, including the ones
not used by fbcon or whatever, have lost ownership.

That sucks, but we don't have a choice until we have proper arbitration.

> Why don't we just make X/DRM/fbdev all play nice with each other, then
> nothing has to be stopped on VT switch.

We do and are working toward that goal, remember ? 

Ben.




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

       reply	other threads:[~2005-03-13  1:38 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050313012923.60373.qmail@web14926.mail.yahoo.com>
2005-03-13  1:37 ` Benjamin Herrenschmidt [this message]
2005-03-12 14:06 [patch] radeonfb: FB_WAITFORVSYNC implementation Torgeir Veimo
2005-03-12 15:13 ` Ville Syrjälä
2005-03-12 16:59   ` Torgeir Veimo
2005-03-12 17:10   ` Michel Dänzer
2005-03-12 17:12     ` Torgeir Veimo
2005-03-12 19:20       ` Michel Dänzer
2005-03-12 19:35         ` Jon Smirl
2005-03-12 23:33           ` Benjamin Herrenschmidt
2005-03-12 17:33     ` Ville Syrjälä
2005-03-16  1:28   ` Torgeir Veimo
2005-03-16  1:59     ` Ville Syrjälä
2005-03-16  6:19     ` Michel Dänzer
2005-03-12 15:33 ` Jon Smirl
2005-03-12 15:51   ` Ville Syrjälä
2005-03-12 16:00     ` Jon Smirl
2005-03-12 16:10       ` Ville Syrjälä
2005-03-12 16:21         ` Jon Smirl
2005-03-12 23:23           ` Benjamin Herrenschmidt
2005-03-12 17:03   ` Torgeir Veimo
2005-03-12 17:21     ` Torgeir Veimo
2005-03-12 17:56       ` Jon Smirl
2005-03-12 23:21         ` Benjamin Herrenschmidt
2005-03-12 23:14 ` Benjamin Herrenschmidt
2005-03-13  3:15   ` Torgeir Veimo
2005-03-12 23:30 ` Benjamin Herrenschmidt
2005-03-16  1:28   ` Torgeir Veimo

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=1110677876.19810.83.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=jonsmirl@yahoo.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /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;
as well as URLs for NNTP newsgroup(s).