summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Zhang <yifan1.zhang@amd.com>2019-10-18 16:30:52 +0800
committerYifan Zhang <yifan1.zhang@amd.com>2019-10-19 12:35:28 +0800
commite576643835ac289d9c3ca30ede56e5062bb98e21 (patch)
tree615cd4df81f763542b7543a8c8f73bcc614189e0
parent08ff26c17e6c6f8170afdc4a649d4a22d4f92127 (diff)
drm/amd/autoconf: add drm-amdgpu-fence-to-handle.m4 back
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
-rw-r--r--drivers/gpu/drm/amd/dkms/m4/drm-amdgpu-fence-to-handle.m42
-rw-r--r--drivers/gpu/drm/amd/dkms/m4/kernel.m41
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/dkms/m4/drm-amdgpu-fence-to-handle.m4 b/drivers/gpu/drm/amd/dkms/m4/drm-amdgpu-fence-to-handle.m4
index 0bb828e353c1..ee146c1a3256 100644
--- a/drivers/gpu/drm/amd/dkms/m4/drm-amdgpu-fence-to-handle.m4
+++ b/drivers/gpu/drm/amd/dkms/m4/drm-amdgpu-fence-to-handle.m4
@@ -2,7 +2,7 @@ dnl #
dnl # commit 7ca24cf2d2269bde25e21c02a77fe81995a081ae
dnl # drm/amdgpu: add FENCE_TO_HANDLE ioctl that returns syncobj or sync_file
dnl #
-AC_DEFUN([AC_AMDGPU_BPF_CGROUP_RUN_PROG_DEVICE_CGROUP],
+AC_DEFUN([AC_AMDGPU_FENCE_TO_HANDLE],
[AC_MSG_CHECKING([whether DRM_AMDGPU_FENCE_TO_HANDLE is defined])
AC_KERNEL_TRY_COMPILE([
#include <drm/amdgpu_drm.h>
diff --git a/drivers/gpu/drm/amd/dkms/m4/kernel.m4 b/drivers/gpu/drm/amd/dkms/m4/kernel.m4
index 9af54ef27038..72fe9974e79c 100644
--- a/drivers/gpu/drm/amd/dkms/m4/kernel.m4
+++ b/drivers/gpu/drm/amd/dkms/m4/kernel.m4
@@ -181,6 +181,7 @@ AC_DEFUN([AC_CONFIG_KERNEL], [
AC_AMDGPU_KTIME_GET_REAL_SECONDS
AC_AMDGPU_DRM_CONNECTOR_LIST_ITER_BEGIN
AC_AMDGPU_DRM_MODE_IS_420_XXX
+ AC_AMDGPU_FENCE_TO_HANDLE
AS_IF([test "$LINUX_OBJ" != "$LINUX"], [
KERNEL_MAKE="$KERNEL_MAKE O=$LINUX_OBJ"