[PATCH 3/4] drm/vmwgfx: Update the backdoor call with support for new instructions

From: Thomas HellstrÃm (VMware)
Date: Sun Aug 18 2019 - 10:43:15 EST


From: Thomas Hellstrom <thellstrom@xxxxxxxxxx>

Use the definition provided by include/asm/vmware.h

Signed-off-by: Thomas Hellstrom <thellstrom@xxxxxxxxxx>
Reviewed-by: Doug Covelli <dcovelli@xxxxxxxxxx>
---
drivers/gpu/drm/vmwgfx/vmwgfx_msg.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_msg.h b/drivers/gpu/drm/vmwgfx/vmwgfx_msg.h
index 4907e50fb20a..7fc3ff63b1a8 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_msg.h
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_msg.h
@@ -32,6 +32,7 @@
#ifndef _VMWGFX_MSG_H
#define _VMWGFX_MSG_H

+#include <asm/vmware.h>

/**
* Hypervisor-specific bi-directional communication channel. Should never
@@ -57,7 +58,7 @@
port_num, magic, \
eax, ebx, ecx, edx, si, di) \
({ \
- asm volatile ("inl %%dx, %%eax;" : \
+ asm volatile (VMWARE_HYPERCALL : \
"=a"(eax), \
"=b"(ebx), \
"=c"(ecx), \
--
2.20.1