Skip to content

Commit 14edd0d

Browse files
committed
s390/cmf: fix virtual vs physical address confusion
The measurement block origin address is an absolute address; therefore add a missing virt_to_phys() translation to the cmf_activate() inline assembly. This doesn't fix a bug, since virtual and physical addresses are currently identical. Acked-by: Alexander Gordeev <[email protected]> Acked-by: Vineeth Vijayan <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 343c8a5 commit 14edd0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/s390/cio/cmf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ static inline void cmf_activate(void *area, unsigned int onoff)
169169
" lgr 2,%[mbo]\n"
170170
" schm\n"
171171
:
172-
: [r1] "d" ((unsigned long)onoff), [mbo] "d" (area)
172+
: [r1] "d" ((unsigned long)onoff),
173+
[mbo] "d" (virt_to_phys(area))
173174
: "1", "2");
174175
}
175176

0 commit comments

Comments
 (0)