summaryrefslogtreecommitdiff
path: root/arch/s390/include
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2023-07-02 22:20:09 +0300
committerHeiko Carstens <hca@linux.ibm.com>2023-07-24 13:12:21 +0300
commitc83cd4fe31d52bca0587370d9e98f00072aefa27 (patch)
treeb9acbb4cfa7528cd67f80e608dca88fd1fd2c624 /arch/s390/include
parent8cf57d7217c32133d25615324c0ab4aaacf4d9c4 (diff)
downloadlinux-c83cd4fe31d52bca0587370d9e98f00072aefa27.tar.xz
s390/diag: handle diag 204 subcode 4 address correctly
Diagnose 204 subcode 4 requires a real (physical) address, but a virtual address is passed to the inline assembly. Convert the address to a physical address for only this specific case. Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r--arch/s390/include/asm/diag.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/diag.h b/arch/s390/include/asm/diag.h
index fb5a886ff47f..bed804137537 100644
--- a/arch/s390/include/asm/diag.h
+++ b/arch/s390/include/asm/diag.h
@@ -109,6 +109,8 @@ enum diag204_sc {
DIAG204_SUBC_STIB7 = 7
};
+#define DIAG204_SUBCODE_MASK 0xffff
+
/* The two available diag 204 data formats */
enum diag204_format {
DIAG204_INFO_SIMPLE = 0,