aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4021-drm-amdkfd-Improve-KFD-IOCTL-printing.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4021-drm-amdkfd-Improve-KFD-IOCTL-printing.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4021-drm-amdkfd-Improve-KFD-IOCTL-printing.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4021-drm-amdkfd-Improve-KFD-IOCTL-printing.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4021-drm-amdkfd-Improve-KFD-IOCTL-printing.patch
new file mode 100644
index 00000000..695479e3
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4021-drm-amdkfd-Improve-KFD-IOCTL-printing.patch
@@ -0,0 +1,40 @@
+From 998584da07efe61d6d5dc21bc6809b122252a8d3 Mon Sep 17 00:00:00 2001
+From: Yong Zhao <Yong.Zhao@amd.com>
+Date: Fri, 20 Sep 2019 22:06:57 -0400
+Subject: [PATCH 4021/4256] drm/amdkfd: Improve KFD IOCTL printing
+
+The code use hex define, so should the printing.
+
+Change-Id: Ia7cc7690553bb043915b3d8c0157216c64421a60
+Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
+Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+index 9b934f68d726..c60c4480d124 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+@@ -2991,7 +2991,7 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
+ } else
+ goto err_i1;
+
+- dev_dbg(kfd_device, "ioctl cmd 0x%x (#%d), arg 0x%lx\n", cmd, nr, arg);
++ dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n", cmd, nr, arg);
+
+ process = kfd_get_process(current);
+ if (IS_ERR(process)) {
+@@ -3046,7 +3046,8 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
+ kfree(kdata);
+
+ if (retcode)
+- dev_dbg(kfd_device, "ret = %d\n", retcode);
++ dev_dbg(kfd_device, "ioctl cmd (#0x%x), arg 0x%lx, ret = %d\n",
++ nr, arg, retcode);
+
+ return retcode;
+ }
+--
+2.17.1
+