Sven asked about this on an internal IBM discussion channel and I mentioned 
that there are two issues that I can see in the Linux 3270 support:

1.  Linux is definitely doing it wrong on z/VM.  Linux infers the dimensions of 
the screen from a model number.  (Bzzzzzzt!)   If you have a standard-size 
screen for model 2, 3, 4, or 5, then the model number from DIAG 0x210 will be 
correct.  Otherwise it will reflect model 2.  I'm not sure why CP does that or 
why Linux is using the model number at all.   Even at the turn of the century 
it was irrelevant.

2. Linux doesn't detect a reconnect event, so it doesn't know to re-query the 
device and adjust any 'views' that have been created.

Regards,
Alan

Alan Altmark
IBM Senior z/VM Engineer
1 607 321 7556  (Mobile)
[email protected]

> -----Original Message-----
> From: Linux on 390 Port <[email protected]> On Behalf Of Sven
> Schnelle
> Sent: Monday, November 14, 2022 1:31 PM
>
> Well, i digged a bit in the history in linux, and the code was always using
> query partition before 2005. But that had one problem with vm: if the
> terminal is disconnected, the query would just fail and linux hangs on boot.
> Therefore code was added to derive the geometry from the
> diag210 information when running on z/VM.
> 
> I quickly added experimental diag 8c support today to the linux kernel and
> that fetches the correct dimensions of the 3270 console, but fails when i'm
> disconnecting and reconnecting with a different resolution.
> That's expected - diag 8c only queries the terminal when it comes online in
> CP.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to