Re: [PATCH] serial: forbid 8250 on s390

From: Christian Borntraeger
Date: Tue Dec 12 2017 - 12:51:02 EST




On 12/12/2017 04:50 PM, Alan Cox wrote:
> On Tue, 12 Dec 2017 09:08:35 +0100
> Christian Borntraeger <borntraeger@xxxxxxxxxx> wrote:
>
>> Using "make kvmconfig" results in a potentially unusable linux image
>> on s390. The reason is that both the (default on s390) sclp consoles
>> as well as the 8250 console register a ttyS<x> as console. Since there
>> will be no 8250 on s390 let's fence 8250. This will ensure that there
>> is always a working sclp console.
>
> And there is no physical way to attach a PCI express UART to a 390 ?

There is (some sort of) PCI but these cards are packaged in ibm specific I/O cages.
So someone would need to apply some some serious hardware and firmware hacking (since
only IBM-approved PCi cards are allowed) and you would need to have an MSI-capable
8250 as well as an MSI capable driver. (we only support MSI, no classic interrupts)
In addition to that that 8250 probably needs to support virtual functions since we always
run with LPARs.
And even if we can solve all these issues I would say it really does not make any sense at
all, while the current situation obviously breaks the use case "make kvmconfig"

So unless IBM sees some serious business case for 8250, I am inclined to answer you
question with "no" :-)