aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3903-drm-amdkfd-Remove-excessive-print-when-reserving-doo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3903-drm-amdkfd-Remove-excessive-print-when-reserving-doo.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3903-drm-amdkfd-Remove-excessive-print-when-reserving-doo.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3903-drm-amdkfd-Remove-excessive-print-when-reserving-doo.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3903-drm-amdkfd-Remove-excessive-print-when-reserving-doo.patch
new file mode 100644
index 00000000..d567dc00
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3903-drm-amdkfd-Remove-excessive-print-when-reserving-doo.patch
@@ -0,0 +1,52 @@
+From 204c5a62eb751df26c022f4ec396f416a3e246a5 Mon Sep 17 00:00:00 2001
+From: Yong Zhao <Yong.Zhao@amd.com>
+Date: Sat, 21 Sep 2019 02:01:50 -0400
+Subject: [PATCH 3903/4256] drm/amdkfd: Remove excessive print when reserving
+ doorbells
+
+The dozens of printing messages are compressed into 2 lines.
+
+Change-Id: I339b3eee06509973f76577091c4c4e9c70ed8248
+Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_process.c | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
+index 9446cc45d80f..c14fdf3bda75 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
+@@ -762,6 +762,8 @@ static int init_doorbell_bitmap(struct qcm_process_device *qpd,
+ struct kfd_dev *dev)
+ {
+ unsigned int i;
++ int range_start = dev->shared_resources.non_cp_doorbells_start;
++ int range_end = dev->shared_resources.non_cp_doorbells_end;
+
+ if (!KFD_IS_SOC15(dev->device_info->asic_family))
+ return 0;
+@@ -773,14 +775,16 @@ static int init_doorbell_bitmap(struct qcm_process_device *qpd,
+ return -ENOMEM;
+
+ /* Mask out doorbells reserved for SDMA, IH, and VCN on SOC15. */
++ pr_debug("reserved doorbell 0x%03x - 0x%03x\n", range_start, range_end);
++ pr_debug("reserved doorbell 0x%03x - 0x%03x\n",
++ range_start + KFD_QUEUE_DOORBELL_MIRROR_OFFSET,
++ range_end + KFD_QUEUE_DOORBELL_MIRROR_OFFSET);
++
+ for (i = 0; i < KFD_MAX_NUM_OF_QUEUES_PER_PROCESS / 2; i++) {
+- if (i >= dev->shared_resources.non_cp_doorbells_start
+- && i <= dev->shared_resources.non_cp_doorbells_end) {
++ if (i >= range_start && i <= range_end) {
+ set_bit(i, qpd->doorbell_bitmap);
+ set_bit(i + KFD_QUEUE_DOORBELL_MIRROR_OFFSET,
+ qpd->doorbell_bitmap);
+- pr_debug("reserved doorbell 0x%03x and 0x%03x\n", i,
+- i + KFD_QUEUE_DOORBELL_MIRROR_OFFSET);
+ }
+ }
+
+--
+2.17.1
+