Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1503195 > unrolled thread
| Started by | Jiri Slaby <jslaby@suse.cz> |
|---|---|
| First post | 2016-10-18 18:20 +0200 |
| Last post | 2016-10-18 19:00 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] tty: serial: 8250: add CON_CONSDEV to flags Jiri Slaby <jslaby@suse.cz> - 2016-10-18 18:20 +0200
Re: [Linux-kernel] [PATCH] tty: serial: 8250: add CON_CONSDEV to flags Ben Dooks <ben.dooks@codethink.co.uk> - 2016-10-18 18:30 +0200
Re: [Linux-kernel] [PATCH] tty: serial: 8250: add CON_CONSDEV to flags Jiri Slaby <jslaby@suse.cz> - 2016-10-18 19:00 +0200
| From | Jiri Slaby <jslaby@suse.cz> |
|---|---|
| Date | 2016-10-18 18:20 +0200 |
| Subject | Re: [PATCH] tty: serial: 8250: add CON_CONSDEV to flags |
| Message-ID | <stFho-49i-7@gated-at.bofh.it> |
On 06/21/2016, 05:19 PM, Matthew Leach wrote:
> When using the 8250 as a boot console and the main console results in
> messages being printed twice. The console framework will only
> unregister boot consoles if a new console is registered with the
> CON_CONSDEV flag set.
>
> Set this flag for the univ8250 console to prevent double-registration.
>
> Signed-off-by: Matthew Leach <matthew.leach@codethink.co.uk>
> ---
> drivers/tty/serial/8250/8250_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
> index 2f4f5ee..7a7453d 100644
> --- a/drivers/tty/serial/8250/8250_core.c
> +++ b/drivers/tty/serial/8250/8250_core.c
> @@ -675,7 +675,7 @@ static struct console univ8250_console = {
> .device = uart_console_device,
> .setup = univ8250_console_setup,
> .match = univ8250_console_match,
> - .flags = CON_PRINTBUFFER | CON_ANYTIME,
> + .flags = CON_PRINTBUFFER | CON_ANYTIME | CON_CONSDEV,
This patch breaks console= parameter handling. Passing:
console=ttyS0 console=tty0
no longer means /dev/console is tty0 and it should be as is documented.
I have not investigated further yet.
thanks,
--
js
suse labs
[toc] | [next] | [standalone]
| From | Ben Dooks <ben.dooks@codethink.co.uk> |
|---|---|
| Date | 2016-10-18 18:30 +0200 |
| Subject | Re: [Linux-kernel] [PATCH] tty: serial: 8250: add CON_CONSDEV to flags |
| Message-ID | <stFr3-4cE-7@gated-at.bofh.it> |
| In reply to | #1503195 |
On 18/10/16 17:15, Jiri Slaby wrote:
> On 06/21/2016, 05:19 PM, Matthew Leach wrote:
>> When using the 8250 as a boot console and the main console results in
>> messages being printed twice. The console framework will only
>> unregister boot consoles if a new console is registered with the
>> CON_CONSDEV flag set.
>>
>> Set this flag for the univ8250 console to prevent double-registration.
>>
>> Signed-off-by: Matthew Leach <matthew.leach@codethink.co.uk>
>> ---
>> drivers/tty/serial/8250/8250_core.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
>> index 2f4f5ee..7a7453d 100644
>> --- a/drivers/tty/serial/8250/8250_core.c
>> +++ b/drivers/tty/serial/8250/8250_core.c
>> @@ -675,7 +675,7 @@ static struct console univ8250_console = {
>> .device = uart_console_device,
>> .setup = univ8250_console_setup,
>> .match = univ8250_console_match,
>> - .flags = CON_PRINTBUFFER | CON_ANYTIME,
>> + .flags = CON_PRINTBUFFER | CON_ANYTIME | CON_CONSDEV,
>
> This patch breaks console= parameter handling. Passing:
> console=ttyS0 console=tty0
> no longer means /dev/console is tty0 and it should be as is documented.
>
> I have not investigated further yet.
Ok, thanks.
I'll need to find Matthew Leach's new address as he's moved jobs.
--
Ben Dooks http://www.codethink.co.uk/
Senior Engineer Codethink - Providing Genius
[toc] | [prev] | [next] | [standalone]
| From | Jiri Slaby <jslaby@suse.cz> |
|---|---|
| Date | 2016-10-18 19:00 +0200 |
| Subject | Re: [Linux-kernel] [PATCH] tty: serial: 8250: add CON_CONSDEV to flags |
| Message-ID | <stFU5-4q4-13@gated-at.bofh.it> |
| In reply to | #1503200 |
On 10/18/2016, 06:23 PM, Ben Dooks wrote:
> On 18/10/16 17:15, Jiri Slaby wrote:
>> On 06/21/2016, 05:19 PM, Matthew Leach wrote:
>>> When using the 8250 as a boot console and the main console results in
>>> messages being printed twice. The console framework will only
>>> unregister boot consoles if a new console is registered with the
>>> CON_CONSDEV flag set.
>>>
>>> Set this flag for the univ8250 console to prevent double-registration.
>>>
>>> Signed-off-by: Matthew Leach <matthew.leach@codethink.co.uk>
>>> ---
>>> drivers/tty/serial/8250/8250_core.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/tty/serial/8250/8250_core.c
>>> b/drivers/tty/serial/8250/8250_core.c
>>> index 2f4f5ee..7a7453d 100644
>>> --- a/drivers/tty/serial/8250/8250_core.c
>>> +++ b/drivers/tty/serial/8250/8250_core.c
>>> @@ -675,7 +675,7 @@ static struct console univ8250_console = {
>>> .device = uart_console_device,
>>> .setup = univ8250_console_setup,
>>> .match = univ8250_console_match,
>>> - .flags = CON_PRINTBUFFER | CON_ANYTIME,
>>> + .flags = CON_PRINTBUFFER | CON_ANYTIME | CON_CONSDEV,
>>
>> This patch breaks console= parameter handling. Passing:
>> console=ttyS0 console=tty0
>> no longer means /dev/console is tty0 and it should be as is documented.
>>
>> I have not investigated further yet.
>
> Ok, thanks.
> I'll need to find Matthew Leach's new address as he's moved jobs.
Oh sure:
#define CON_CONSDEV (2) /* Last on the command line */
Why it should be set in struct console statically? The patch is
obviously incorrect. And I do not understand from the vague commit log
what the problem actually was.
So for the time being, Greg, please revert it (d03516df8375873) and we
can come with something better, when we understand the issue. Please CC
stable (4.8+).
thanks,
--
js
suse labs
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web