Closed cohuck closed 6 years ago
I totally forgot that this option even exists... lscss does not show subchannels by drivers but by subchannel type, I guess that's why a subchannel is displayed even when bound to an alternate driver.
The --vfio does break the rule stated above in that it shows only subchannels bound to the vfio_ccw driver. Why is --vfio not selected by --all? I guess because a subchannel should only be displayed once. --io and --vfio have been deliberately made incompatible by the developers implementing that change:
lscss --vfio --io
lscss: Invalid option combination: --vfio can not be used with --io, -d, -t or --avail
OK, that sounds like we have to live with 'lscss handling of vfio-ccw devices is a bit odd'.
But can we get an update for the man page? It currently states
NOTES
In rare situations a device might temporarily not be accessible to the
subchannel. Then "none" is displayed as the device identifier and the
other device attributes are empty.
That is not really true for vfio-ccw devices.
Good point. I'll add something like:
For subchannels bound to an alternate driver (most notably vfio_ccw) the device identifier can also be displayed as "none". In this case use the --vfio option to show VFIO specific subchannel information.
Possibly s/can/may/ or s/can/will/ ? Otherwise, sounds good to me.
Setup: LPAR with one subchannel for a dasd reassigned from the I/O subchannel driver to the vfio-ccw driver (no mdev created yet)
lscss
showsThe line for subchannel 0.0.0325 is a bit confusing, as it looks like there is something wrong with the subchannel (previously, I saw output like that only if there was some problem with device recognition in the common I/O layer, as the I/O subchannel driver always registers a ccw device.)
lscss --all
does not reveal anything, either.The subchannel shows up correctly with
lscss --vfio
.I'm not sure what the best approach is here. If lscss only showed devices bound to a subchannel driver, we would miss chsc or eadm subchannels if the driver is not present. (I think we can rely on the I/O subchannel driver always being present.)
I would, however, expect the output of
lscss --all
to include the output oflscss --vfio
. Or maybe a new optionlscss --everything
or so.