From db028d945be5cf5f09f677665735dd50688002ec Mon Sep 17 00:00:00 2001 From: Yong Zhao Date: Fri, 22 Nov 2019 21:04:31 -0500 Subject: [PATCH] libhsakmt: Improve the comment regarding queue doorbells The comment failed to convey the fact. Change-Id: Ia9b1d1c2583e288a6308d2bc81d42055064a5f4f Signed-off-by: Yong Zhao [ROCm/ROCR-Runtime commit: 6a762ec717bc91527369abce3eee41bab538958a] --- projects/rocr-runtime/src/queues.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/rocr-runtime/src/queues.c b/projects/rocr-runtime/src/queues.c index 85d1f549ba..ac633479fe 100644 --- a/projects/rocr-runtime/src/queues.c +++ b/projects/rocr-runtime/src/queues.c @@ -676,9 +676,9 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtCreateQueue(HSAuint32 NodeId, if (IS_SOC15(dev_info->asic_family)) { /* On SOC15 chips, the doorbell offset within the * doorbell page is included in the doorbell offset - * returned by KFD. This allows doorbells to be - * allocated per-device, independent of the - * per-process queue ID. + * returned by KFD. This allows CP queue doorbells to be + * allocated dynamically (while SDMA queue doorbells fixed) + * rather than based on the its process queue ID. */ doorbell_mmap_offset = args.doorbell_offset & ~(HSAuint64)(doorbells[NodeId].size - 1);