Linux PARISC architecture development
 help / color / mirror / Atom feed
* RE: the patch "Convert PDC console to an early console" breaks the^M console
       [not found] <1MhlGq-1pGSQJ2Koq-00dm3N@mail.gmx.net>
@ 2022-10-20 13:26 ` Mikulas Patocka
  2022-10-20 18:01   ` Helge Deller
  0 siblings, 1 reply; 7+ messages in thread
From: Mikulas Patocka @ 2022-10-20 13:26 UTC (permalink / raw)
  To: Helge Deller; +Cc: John David Anglin, linux-parisc



On Thu, 20 Oct 2022, Helge Deller wrote:

> Your serial ports don't seem to be detected and thus missing...?!

It seems to be so. Does it work on your C8000? - if it does, send me your 
config and I'll find the difference.

Mikulas


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: the patch "Convert PDC console to an early console" breaks the^M console
  2022-10-20 13:26 ` the patch "Convert PDC console to an early console" breaks the^M console Mikulas Patocka
@ 2022-10-20 18:01   ` Helge Deller
       [not found]     ` <4011ff49-294a-aa08-e087-d60995649e00@gmx.de>
  0 siblings, 1 reply; 7+ messages in thread
From: Helge Deller @ 2022-10-20 18:01 UTC (permalink / raw)
  To: Mikulas Patocka; +Cc: John David Anglin, linux-parisc

On 10/20/22 15:26, Mikulas Patocka wrote:
> On Thu, 20 Oct 2022, Helge Deller wrote:
>
>> Your serial ports don't seem to be detected and thus missing...?!
>
> It seems to be so. Does it work on your C8000? - if it does, send me your
> config and I'll find the difference.

Didn't tested on c8k, but 32-bit kernel in qemu git head works for me...:

CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
CONFIG_SERIAL_8250_16550A_VARIANTS=y
# CONFIG_SERIAL_8250_FINTEK is not set
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_GSC=y
CONFIG_SERIAL_8250_DMA=y
CONFIG_SERIAL_8250_PCI=y
CONFIG_SERIAL_8250_EXAR=y
# CONFIG_SERIAL_8250_CS is not set
CONFIG_SERIAL_8250_NR_UARTS=8
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
# CONFIG_SERIAL_8250_RSA is not set
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not set


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: the patch "Convert PDC console to an early console" breaks the^M console
       [not found]     ` <4011ff49-294a-aa08-e087-d60995649e00@gmx.de>
@ 2022-10-20 19:57       ` Mikulas Patocka
  2022-10-20 20:22         ` Helge Deller
  0 siblings, 1 reply; 7+ messages in thread
From: Mikulas Patocka @ 2022-10-20 19:57 UTC (permalink / raw)
  To: Helge Deller; +Cc: John David Anglin, linux-parisc



On Thu, 20 Oct 2022, Helge Deller wrote:

> On 10/20/22 20:01, Helge Deller wrote:
> > On 10/20/22 15:26, Mikulas Patocka wrote:
> > > On Thu, 20 Oct 2022, Helge Deller wrote:
> > > 
> > > > Your serial ports don't seem to be detected and thus missing...?!
> > > 
> > > It seems to be so. Does it work on your C8000? - if it does, send me your
> > > config and I'll find the difference.
> 
> Works for me on c8k with serial console (parameter console=ttyS0):
> config attached.

Thanks. CONFIG_GSC=y fixed it for me.

Maybe you should update the help text for CONFIG_GSC. It says that it is 
"not found in B1000, C3000, J5000, A500, L1000, N4000 and upwards" - so I 
turned it off when making my config.

Mikulas


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: the patch "Convert PDC console to an early console" breaks the^M console
  2022-10-20 19:57       ` Mikulas Patocka
@ 2022-10-20 20:22         ` Helge Deller
  2022-10-20 20:34           ` Mikulas Patocka
  0 siblings, 1 reply; 7+ messages in thread
From: Helge Deller @ 2022-10-20 20:22 UTC (permalink / raw)
  To: Mikulas Patocka; +Cc: John David Anglin, linux-parisc

On 10/20/22 21:57, Mikulas Patocka wrote:
>
>
> On Thu, 20 Oct 2022, Helge Deller wrote:
>
>> On 10/20/22 20:01, Helge Deller wrote:
>>> On 10/20/22 15:26, Mikulas Patocka wrote:
>>>> On Thu, 20 Oct 2022, Helge Deller wrote:
>>>>
>>>>> Your serial ports don't seem to be detected and thus missing...?!
>>>>
>>>> It seems to be so. Does it work on your C8000? - if it does, send me your
>>>> config and I'll find the difference.
>>
>> Works for me on c8k with serial console (parameter console=ttyS0):
>> config attached.
>
> Thanks. CONFIG_GSC=y fixed it for me.

Good.

> Maybe you should update the help text for CONFIG_GSC. It says that it is
> "not found in B1000, C3000, J5000, A500, L1000, N4000 and upwards" - so I
> turned it off when making my config.

The help text is actually correct.
Your C8000 does not has a GSC bus, so why does CONFIG_GSC=n disables your serial ports?
Needs checking..

Helge



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: the patch "Convert PDC console to an early console" breaks the^M console
  2022-10-20 20:22         ` Helge Deller
@ 2022-10-20 20:34           ` Mikulas Patocka
  2022-10-20 20:43             ` Helge Deller
  0 siblings, 1 reply; 7+ messages in thread
From: Mikulas Patocka @ 2022-10-20 20:34 UTC (permalink / raw)
  To: Helge Deller; +Cc: John David Anglin, linux-parisc



On Thu, 20 Oct 2022, Helge Deller wrote:

> On 10/20/22 21:57, Mikulas Patocka wrote:
> > 
> > 
> > On Thu, 20 Oct 2022, Helge Deller wrote:
> > 
> > > On 10/20/22 20:01, Helge Deller wrote:
> > > > On 10/20/22 15:26, Mikulas Patocka wrote:
> > > > > On Thu, 20 Oct 2022, Helge Deller wrote:
> > > > > 
> > > > > > Your serial ports don't seem to be detected and thus missing...?!
> > > > > 
> > > > > It seems to be so. Does it work on your C8000? - if it does, send me
> > > > > your
> > > > > config and I'll find the difference.
> > > 
> > > Works for me on c8k with serial console (parameter console=ttyS0):
> > > config attached.
> > 
> > Thanks. CONFIG_GSC=y fixed it for me.
> 
> Good.
> 
> > Maybe you should update the help text for CONFIG_GSC. It says that it is
> > "not found in B1000, C3000, J5000, A500, L1000, N4000 and upwards" - so I
> > turned it off when making my config.
> 
> The help text is actually correct.
> Your C8000 does not has a GSC bus, so why does CONFIG_GSC=n disables your
> serial ports?
> Needs checking..
> 
> Helge

There's drivers/tty/serial/8250/Kconfig:
config SERIAL_8250_GSC
        tristate
        depends on SERIAL_8250 && GSC
        default SERIAL_8250

drivers/tty/serial/8250/Makefile:
obj-$(CONFIG_SERIAL_8250_GSC)           += 8250_gsc.o

drivers/tty/serial/8250/8250_gsc.c contains this device table:
static const struct parisc_device_id serial_tbl[] __initconst = {
        { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00075 },
        { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008c },
        { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008d },
        { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x000ad }, <--- this matches the serial port on C8000
        { 0 }
};

So, perhaps it should depend on CONFIG_PARISC instead of CONFIG_GSC.

Mikulas


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: the patch "Convert PDC console to an early console" breaks the^M console
  2022-10-20 20:34           ` Mikulas Patocka
@ 2022-10-20 20:43             ` Helge Deller
  2022-10-20 21:08               ` Mikulas Patocka
  0 siblings, 1 reply; 7+ messages in thread
From: Helge Deller @ 2022-10-20 20:43 UTC (permalink / raw)
  To: Mikulas Patocka; +Cc: John David Anglin, linux-parisc

On 10/20/22 22:34, Mikulas Patocka wrote:
>
>
> On Thu, 20 Oct 2022, Helge Deller wrote:
>
>> On 10/20/22 21:57, Mikulas Patocka wrote:
>>>
>>>
>>> On Thu, 20 Oct 2022, Helge Deller wrote:
>>>
>>>> On 10/20/22 20:01, Helge Deller wrote:
>>>>> On 10/20/22 15:26, Mikulas Patocka wrote:
>>>>>> On Thu, 20 Oct 2022, Helge Deller wrote:
>>>>>>
>>>>>>> Your serial ports don't seem to be detected and thus missing...?!
>>>>>>
>>>>>> It seems to be so. Does it work on your C8000? - if it does, send me
>>>>>> your
>>>>>> config and I'll find the difference.
>>>>
>>>> Works for me on c8k with serial console (parameter console=ttyS0):
>>>> config attached.
>>>
>>> Thanks. CONFIG_GSC=y fixed it for me.
>>
>> Good.
>>
>>> Maybe you should update the help text for CONFIG_GSC. It says that it is
>>> "not found in B1000, C3000, J5000, A500, L1000, N4000 and upwards" - so I
>>> turned it off when making my config.
>>
>> The help text is actually correct.
>> Your C8000 does not has a GSC bus, so why does CONFIG_GSC=n disables your
>> serial ports?
>> Needs checking..
>>
>> Helge
>
> There's drivers/tty/serial/8250/Kconfig:
> config SERIAL_8250_GSC
>          tristate
>          depends on SERIAL_8250 && GSC
>          default SERIAL_8250
>
> drivers/tty/serial/8250/Makefile:
> obj-$(CONFIG_SERIAL_8250_GSC)           += 8250_gsc.o
>
> drivers/tty/serial/8250/8250_gsc.c contains this device table:
> static const struct parisc_device_id serial_tbl[] __initconst = {
>          { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00075 },
>          { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008c },
>          { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008d },
>          { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x000ad }, <--- this matches the serial port on C8000
>          { 0 }
> };
>
> So, perhaps it should depend on CONFIG_PARISC instead of CONFIG_GSC.

Right, I just came to the same conclusion.
Do you want to post a patch here on the list?

Helge

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: the patch "Convert PDC console to an early console" breaks the^M console
  2022-10-20 20:43             ` Helge Deller
@ 2022-10-20 21:08               ` Mikulas Patocka
  0 siblings, 0 replies; 7+ messages in thread
From: Mikulas Patocka @ 2022-10-20 21:08 UTC (permalink / raw)
  To: Helge Deller; +Cc: John David Anglin, linux-parisc



On Thu, 20 Oct 2022, Helge Deller wrote:

> On 10/20/22 22:34, Mikulas Patocka wrote:
> > 
> > 
> > On Thu, 20 Oct 2022, Helge Deller wrote:
> > 
> > > On 10/20/22 21:57, Mikulas Patocka wrote:
> > > > 
> > > > 
> > > > On Thu, 20 Oct 2022, Helge Deller wrote:
> > > > 
> > > > > On 10/20/22 20:01, Helge Deller wrote:
> > > > > > On 10/20/22 15:26, Mikulas Patocka wrote:
> > > > > > > On Thu, 20 Oct 2022, Helge Deller wrote:
> > > > > > > 
> > > > > > > > Your serial ports don't seem to be detected and thus
> > > > > > > > missing...?!
> > > > > > > 
> > > > > > > It seems to be so. Does it work on your C8000? - if it does, send
> > > > > > > me
> > > > > > > your
> > > > > > > config and I'll find the difference.
> > > > > 
> > > > > Works for me on c8k with serial console (parameter console=ttyS0):
> > > > > config attached.
> > > > 
> > > > Thanks. CONFIG_GSC=y fixed it for me.
> > > 
> > > Good.
> > > 
> > > > Maybe you should update the help text for CONFIG_GSC. It says that it is
> > > > "not found in B1000, C3000, J5000, A500, L1000, N4000 and upwards" - so
> > > > I
> > > > turned it off when making my config.
> > > 
> > > The help text is actually correct.
> > > Your C8000 does not has a GSC bus, so why does CONFIG_GSC=n disables your
> > > serial ports?
> > > Needs checking..
> > > 
> > > Helge
> > 
> > There's drivers/tty/serial/8250/Kconfig:
> > config SERIAL_8250_GSC
> >          tristate
> >          depends on SERIAL_8250 && GSC
> >          default SERIAL_8250
> > 
> > drivers/tty/serial/8250/Makefile:
> > obj-$(CONFIG_SERIAL_8250_GSC)           += 8250_gsc.o
> > 
> > drivers/tty/serial/8250/8250_gsc.c contains this device table:
> > static const struct parisc_device_id serial_tbl[] __initconst = {
> >          { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00075 },
> >          { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008c },
> >          { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008d },
> >          { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x000ad }, <---
> > this matches the serial port on C8000
> >          { 0 }
> > };
> > 
> > So, perhaps it should depend on CONFIG_PARISC instead of CONFIG_GSC.
> 
> Right, I just came to the same conclusion.
> Do you want to post a patch here on the list?
> 
> Helge

I think you should do it. It would be best to rename that file from 
8250_gsc.c to 8250_parisc.c and I don't know how to make a patch that 
renames a file - you should rename the file in git and send a pull request 
to Linus.

Mikulas


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-20 21:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1MhlGq-1pGSQJ2Koq-00dm3N@mail.gmx.net>
2022-10-20 13:26 ` the patch "Convert PDC console to an early console" breaks the^M console Mikulas Patocka
2022-10-20 18:01   ` Helge Deller
     [not found]     ` <4011ff49-294a-aa08-e087-d60995649e00@gmx.de>
2022-10-20 19:57       ` Mikulas Patocka
2022-10-20 20:22         ` Helge Deller
2022-10-20 20:34           ` Mikulas Patocka
2022-10-20 20:43             ` Helge Deller
2022-10-20 21:08               ` Mikulas Patocka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox