libhsakmt: Improve the comment regarding queue doorbells
The comment failed to convey the fact.
Change-Id: Ia9b1d1c2583e288a6308d2bc81d42055064a5f4f
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
[ROCm/ROCR-Runtime commit: 6a762ec717]
This commit is contained in:
zatwierdzone przez
Yong Zhao
rodzic
7f35aa9739
commit
db028d945b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user