aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-12-02 20:58:07 +0100
committerHeiko Carstens <hca@linux.ibm.com>2021-12-10 16:14:26 +0100
commit7a334a28a14bf8b8812bb2e626a6280ad0d21f4e (patch)
treec8c024af1761810c3ffc33cd6947f49b570d1e50 /arch/s390/include/asm
parents390/pgalloc: use pointers instead of unsigned long values (diff)
downloadlinux-dev-7a334a28a14bf8b8812bb2e626a6280ad0d21f4e.tar.xz
linux-dev-7a334a28a14bf8b8812bb2e626a6280ad0d21f4e.zip
s390/ap: add missing virt_to_phys address conversion
The address of the notification-indicator byte is an absolute address. Therefore convert its virtual to a physical address before being used with PQAP(AQIC). Note: this currently doesn't fix a real bug, since virtual addresses are indentical to physical ones. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Reviewed-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r--arch/s390/include/asm/ap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/include/asm/ap.h b/arch/s390/include/asm/ap.h
index 3afbee21dc1f..c0c8a1f6c35d 100644
--- a/arch/s390/include/asm/ap.h
+++ b/arch/s390/include/asm/ap.h
@@ -12,6 +12,8 @@
#ifndef _ASM_S390_AP_H_
#define _ASM_S390_AP_H_
+#include <linux/io.h>
+
/**
* The ap_qid_t identifier of an ap queue.
* If the AP facilities test (APFT) facility is available,
@@ -238,7 +240,7 @@ static inline struct ap_queue_status ap_aqic(ap_qid_t qid,
struct ap_qirq_ctrl qirqctrl;
struct ap_queue_status status;
} reg1;
- void *reg2 = ind;
+ unsigned long reg2 = virt_to_phys(ind);
reg1.qirqctrl = qirqctrl;