]> Gentwo Git Trees - linux/.git/commit
s390/ap: Expose ap_bindings_complete_count counter via sysfs
authorHarald Freudenberger <freude@linux.ibm.com>
Fri, 17 Oct 2025 14:51:52 +0000 (16:51 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 23 Oct 2025 14:11:38 +0000 (16:11 +0200)
commit51d921a613b1e89a47c2c262bbef1d7b0b032ac7
treeca0249eb4d0b08130eec63d40b90313927005d0d
parent07a75d08cfa1b883a6e1256666e5f0617ee99231
s390/ap: Expose ap_bindings_complete_count counter via sysfs

The AP bus udev event BINDINGS=complete is sent out when the
first time all devices detected by the AP bus scan have been
bound to device drivers. This is the ideal time to for example
change the AP bus masks apmask and aqmask to re-establish a
persistent change on the decision about which cards/domains
should be available for the host and which should go into the
pool for kvm guests.

However, if exactly this initial udev event is sent out early
in the boot process a udev rule may not have been established
yet and thus this event will never be recognized. To have
some indication about if the AP bus binding complete has
already happened, the internal ap_bindings_complete_count
counter is exposed via sysfs with this patch.

Suggested-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Tested-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/ap_bus.c