From 346a69e5a9ed5e6d15cc0c0e1abf029df1624305 Mon Sep 17 00:00:00 2001 From: Harald Freudenberger Date: Mon, 19 Jan 2026 10:40:11 +0100 Subject: [PATCH] lszcrypt: Update depth field calculation based on kernel change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sysfs field 'depth' for AP queues now shows the real depth and not the depth -1 as it is reported by the TAPQ instruction. lszcrypt did under the hood already this +1 but now this increment is done by the kernel and thus not needed in lszcrypt any more. Suggested-by: Ingo Franzki Signed-off-by: Harald Freudenberger Reviewed-by: Ingo Franzki Signed-off-by: Jan Höppner --- zconf/zcrypt/lszcrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zconf/zcrypt/lszcrypt.c b/zconf/zcrypt/lszcrypt.c index 604387ad..27451857 100644 --- a/zconf/zcrypt/lszcrypt.c +++ b/zconf/zcrypt/lszcrypt.c @@ -676,7 +676,7 @@ static void read_subdev_rec_verbose(struct util_rec *rec, const char *grp_dev, util_rec_set(rec, "hwtype", buf); util_file_read_l(&depth, 10, "%s/depth", grp_dev); - util_rec_set(rec, "depth", "%02d", depth + 1); + util_rec_set(rec, "depth", "%02d", depth); if (util_file_read_ul(&facility, 16, "%s/ap_functions", grp_dev)) errx(EXIT_FAILURE, @@ -848,7 +848,7 @@ static void read_rec_verbose(struct util_rec *rec, const char *grp_dev) util_rec_set(rec, "hwtype", buf); util_file_read_l(&depth, 10, "%s/depth", grp_dev); - util_rec_set(rec, "depth", "%02d", depth + 1); + util_rec_set(rec, "depth", "%02d", depth); util_file_read_ul(&facility, 16, "%s/ap_functions", grp_dev); for (i = 0; i < MAX_FAC_BITS; i++)