hercules-390 / hyperion

Hercules 390
Other
248 stars 67 forks source link

STORCHK in qeth.c may be broken #199

Closed ivan-w closed 7 years ago

ivan-w commented 7 years ago

When running under z/VM 6.3, when an QETH/OSA adapter is directly attached to the TCPIP virtual machine, the QDIO Establish Queues (X'1B') CCW fails with command reject.

This comes down to the STORCHK in qeth.c indicating that the storage areas and storage keys defined by the Queue Descriptors do not match (and the keys are not 0) wouldn't allow access to the queue buffers by the QDIO adapter.

When the STORCHK macro is cancelled out (forced to always return 0:success), the z/VM TCP/IP stack can then use the OSA adapter directly (and it works as advertised).

I will apply a patch to the source tree as a workaround.

note that it is NOT a permanent fix.

ivan-w commented 7 years ago

1ebc0ba Applied as a temporary workaround

ivan-w commented 7 years ago

Applied commit 4ee28ff - this may require some review... (although it works for me in z/VM (VSWITCH and TCPIP direct attach), Debian Linux....