diff options
| author | Finn Callies <fcallies@linux.ibm.com> | 2026-08-05 11:29:28 +0200 |
|---|---|---|
| committer | Vasily Gorbik <gor@linux.ibm.com> | 2026-08-05 15:16:54 +0200 |
| commit | 0de29a313ccc84b8d7ddd906aeda53b510e17cb2 (patch) | |
| tree | af893bd51cb476a15ddd976134888bf2d0f8fafb /scripts/stackusage | |
| parent | 5ddf6f12dc8d0535382f854012b2bf83448f4021 (diff) | |
| download | linux-0de29a313ccc84b8d7ddd906aeda53b510e17cb2.tar.gz linux-0de29a313ccc84b8d7ddd906aeda53b510e17cb2.zip | |
s390/ap: Fix MAPML computation
When the TAPQ subfunction of PQAP returns a value between 0 and 3 in the
ml field, the Principles of Operation states that the Maximum AP Message
Length (MAPML) must be 12 KB.
The previous code incorrectly calculated smaller sizes for ml values 1-2:
- ml=1: 4 KB instead of 12 KB
- ml=2: 8 KB instead of 12 KB
While no current hardware reports ml=1 or ml=2, this fix ensures correct
behavior for specification compliance and future-proofing.
The fix ensures all ml values 0-3 correctly use the 12 KB default, with
only values 4+ using the formula ml * 4096.
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Finn Callies <fcallies@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
