public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: James Hogan <james.hogan@imgtec.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jslaby@suse.cz>,
	linux-kernel@vger.kernel.org, linux-metag@vger.kernel.org
Subject: Re: [PATCH] tty/metag_da: Add console_poll module parameter
Date: Mon, 15 Sep 2014 12:14:52 -0700	[thread overview]
Message-ID: <20140915191452.GA18175@roeck-us.net> (raw)
In-Reply-To: <1410560122-12362-1-git-send-email-james.hogan@imgtec.com>

On Fri, Sep 12, 2014 at 11:15:22PM +0100, James Hogan wrote:
> Currently the metag_da console channel is write only, it doesn't get
> polled for incoming data. This is for performance & latency reasons as
> polling blocks the processor for a significant amount of time waiting
> for the JTAG probe to respond to the request and restart the thread.
> This means that the console channel cannot be used for a login prompt,
> so ttyDA2 is usually used instead.
> 
> In a virtual environment with a virtual DA such as QEMU however the
> polling is much cheaper as the request can be handled immediately. It is
> useful to be able to enable polling in such an environment in order to
> get both the kernel log and a usable login prompt on the same DA
> channel.
> 
> Add a console_poll module parameter which allows polling to be enabled
> for the console channel. It defaults to off as that is the current
> behaviour for good reason on real hardware.
> 
> It can be enabled by appending metag_da.console_poll to the kernel
> command line.
> 
> Signed-off-by: James Hogan <james.hogan@imgtec.com>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Jiri Slaby <jslaby@suse.cz>
> Cc: Guenter Roeck <linux@roeck-us.net>

Tested-by: Guenter Roeck <linux@roeck-us.net>

Thanks a lot!

Guenter

      reply	other threads:[~2014-09-15 19:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-12 22:15 [PATCH] tty/metag_da: Add console_poll module parameter James Hogan
2014-09-15 19:14 ` Guenter Roeck [this message]

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=20140915191452.GA18175@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=james.hogan@imgtec.com \
    --cc=jslaby@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-metag@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