]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/uv: Use a constant for more-data rc
authorSteffen Eiden <seiden@linux.ibm.com>
Thu, 24 Oct 2024 06:26:33 +0000 (08:26 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 29 Oct 2024 10:17:16 +0000 (11:17 +0100)
Add a define for the UVC rc 0x0100 that indicates that a UV-call was
successful but may serve more data if called with a larger buffer
again.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Link: https://lore.kernel.org/r/20241024062638.1465970-2-seiden@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/boot/uv.c
arch/s390/include/asm/uv.h

index 318e6ba95bfd27b266b2c720392fa8eaf0b045af..2a71e759dc42c2d52a9e593741f4ae389d7ac5bf 100644 (file)
@@ -22,8 +22,8 @@ void uv_query_info(void)
        if (!test_facility(158))
                return;
 
-       /* rc==0x100 means that there is additional data we do not process */
-       if (uv_call(0, (uint64_t)&uvcb) && uvcb.header.rc != 0x100)
+       /* Ignore that there might be more data we do not process */
+       if (uv_call(0, (uint64_t)&uvcb) && uvcb.header.rc != UVC_RC_MORE_DATA)
                return;
 
        if (IS_ENABLED(CONFIG_KVM)) {
index cce2568cfaddb49cccea47f083f56361148ec514..49ca548273791e8f487cec5e15e39e9ec30a9d87 100644 (file)
@@ -28,6 +28,7 @@
 #define UVC_RC_INV_STATE       0x0003
 #define UVC_RC_INV_LEN         0x0005
 #define UVC_RC_NO_RESUME       0x0007
+#define UVC_RC_MORE_DATA       0x0100
 #define UVC_RC_NEED_DESTROY    0x8000
 
 #define UVC_CMD_QUI                    0x0001