]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/ap: Fix wrong APQN fill calculation
authorHarald Freudenberger <freude@linux.ibm.com>
Mon, 19 Jan 2026 09:37:28 +0000 (10:37 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 20 Jan 2026 13:33:42 +0000 (14:33 +0100)
commit3317785a8803db629efc759d811d0f589d3a0b2d
tree54d11c62191d1aef0972e6bf16450e58e0e66c46
parentd045e166d3c51b7aec069669bb243e057d80d04f
s390/ap: Fix wrong APQN fill calculation

The upper limit of the firmware queue fill state for each APQN
is reported by the hwinfo.qd field. This field shows the
numbers 0-7 for 1-8 queue spaces available. But the exploiting
code assumed the real boundary is stored there and thus stoppes
queuing in messages one tick too early.

Correct the limit calculation and thus offer a boost
of 12.5% performance for high traffic on one APQN.

Fixes: d4c53ae8e4948 ("s390/ap: store TAPQ hwinfo in struct ap_card")
Cc: stable@vger.kernel.org
Reported-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/ap_card.c
drivers/s390/crypto/ap_queue.c