public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Arthur Taylor <art@ified.ca>
Cc: Greg KH <gregkh@suse.de>,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	Pavel Machek <pavel@ucw.cz>
Subject: Re: [PATCH] [resend] vt: Add virtual console keyboard mode OFF
Date: Thu, 3 Feb 2011 10:48:52 -0800	[thread overview]
Message-ID: <20110203184852.GC20911@kroah.com> (raw)
In-Reply-To: <1296612452.28176.52.camel@art-x200>

On Tue, Feb 01, 2011 at 06:07:32PM -0800, Arthur Taylor wrote:
> On Mon, 2011-01-31 at 09:46 -0800, Greg KH wrote:
> > Care to document this somewhere (i.e. Documentation/ABI?)
> Sure. Can it wait for a future patch though as currently all VT IOCTLs
> aren't documented in the source tree. I'm willing to write said
> documentation.

Ok, that is fine, but care to do it as part of the requirements to get
this patch in?  Yeah, it's not fair, but it ensures that the
documentation gets written :)

> > Your patch is line-wrapped and can not be applied :(
> Fixed in this mail (hopefully).

Yes, looks good.

> > Are you sure you can change the size of this structure and no one is
> > going to have problems?
> >From what I can tell, no. kbd_struct and it's members are defined in the
> non-exported kbd_kern.h, and it is never packed into weird places. Is
> that sufficient? What else should be checked?

No, you are correct.

> 
> > Also, what userspace code is going to use this new feature?  Has it been
> > tested to work properly?
> Xorg is the intended user. In short, reasons for the feature are:
>       * Removes having to flush unnecessary duplicate data.
>       * Fixes an Xorg corner case.
>       * Less code run in both kernel and userspace per key event (I know
>         kinda meh, but hey, it's a plus.)
> 
> Since the switch to evdev and automatic input device detection, Xorg
> sets the console to RAW to disable kernel special key handling and
> flushes the console input buffer per key event.
> 
> If Xorg is configured with static input device definitions, it can't
> flush the input in case the older kbd driver is in use, leading to the
> buffer filling. If the console input buffer fills, bad things happen
> (which I'm currently looking into as well.)
> 
> I modified my xserver to use this feature. I tested Xorg with the
> input-evdev and input-kbd drivers for keyboard events. Since input-kbd
> sets the keyboard back to RAW when needed, everything is fine. If
> input-kbd isn't in use, the keyboard stays in OFF and he input buffer is
> always kept empty, things always work. Shift key states are maintained,
> and SysRq's unRaw function is still works as expected.

Are the xorg patches upstream and accepted or are they waiting for this
change?  Will they work properly with the BSDs as well?

> To: Greg Kroah-Hartman <gregkh@suse.de>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Pavel Machek <pavel@ucw.cz>
> Signed-off-by: Arthur Taylor <art@ified.ca>

Thanks for the information, but we also need the original changelog
comment here for me to be able to apply it.

Care to resend with all of the text correct?

thanks,

greg k-h

  reply	other threads:[~2011-02-03 18:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-30  8:36 [PATCH] vt: Add virtual console keyboard mode OFF Arthur Taylor
2011-01-31  7:40 ` Pavel Machek
2011-01-31 17:46 ` Greg KH
2011-02-02  2:07   ` [PATCH] [resend] " Arthur Taylor
2011-02-03 18:48     ` Greg KH [this message]
2011-02-04 21:55       ` Arthur Taylor

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=20110203184852.GC20911@kroah.com \
    --to=greg@kroah.com \
    --cc=akpm@linux-foundation.org \
    --cc=art@ified.ca \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /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