From: Guenter Roeck Subject: Re: [PATCH] tty/metag_da: Add console_poll module parameter Date: Mon, 15 Sep 2014 12:14:52 -0700 Message-ID: <20140915191452.GA18175@roeck-us.net> References: <1410560122-12362-1-git-send-email-james.hogan@imgtec.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=S457Vx3vzNy/L2bqaZ4PsMgDN/ufYuPmBYc7FPydPNw=; b=OXzaGV8wzKwcOGLdK7E+6O7QC2EhHfOglw1ayFa+NRwkC25LAb/p/F6so8QzrOGgT+ MlL7hzvoKaTEmZ7EgXtiajkhROerj7VEsUZKW3hVogi/iiQJHZBQgonFFjLphshOOQvq xXF2mAFjp/i+AwoQouuCH5O+jjd1aps38+uWV3wNg6HI+5LMW5TwGpudia44fp2MY4Ie HQvnsc6NKhapHf17MbU8xzCXhpMoKryRo2AzvZTd3SOMlILy3L8HdSmc5SAurkQuEu4n gtp503T+SzTALAgYS+/CL6fr3lYifmH/Yqw82Rfu8rVcRAjI6kYt4oLYHlwDCd4/IIfP 5fRQ== Content-Disposition: inline In-Reply-To: <1410560122-12362-1-git-send-email-james.hogan@imgtec.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: James Hogan Cc: Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, linux-metag@vger.kernel.org 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 > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: Guenter Roeck Tested-by: Guenter Roeck Thanks a lot! Guenter