Remove NodeId parameter from hsaKmtAllocQueueGWS

The NodeId parameter is redundant and can be retrieved
from QueueId parameter.

Change-Id: I12853849b868b304bd27633fa7653ba644d69026
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>


[ROCm/ROCR-Runtime commit: f40f166e20]
Cette révision appartient à :
Oak Zeng
2019-07-25 15:59:14 -05:00
révisé par Oak Zeng
Parent b2697b1e25
révision dc22f0c67e
3 fichiers modifiés avec 1 ajouts et 13 suppressions
-1
Voir le fichier
@@ -578,7 +578,6 @@ hsaKmtUnmapGraphicHandle(
HSAKMT_STATUS
HSAKMTAPI
hsaKmtAllocQueueGWS(
HSAuint32 NodeId, //IN
HSA_QUEUEID QueueId, //IN
HSAuint32 nGWS, //IN
HSAuint32 *firstGWS //OUT
+1 -2
Voir le fichier
@@ -470,17 +470,16 @@ struct kfd_ioctl_unmap_memory_from_gpu_args {
/* Allocate GWS for specific queue
*
* @gpu_id: device identifier
* @queue_id: queue's id that GWS is allocated for
* @num_gws: how many GWS to allocate
* @first_gws: index of the first GWS allocated.
* only support contiguous GWS allocation
*/
struct kfd_ioctl_alloc_queue_gws_args {
__u32 gpu_id; /* to KFD */
__u32 queue_id; /* to KFD */
__u32 num_gws; /* to KFD */
__u32 first_gws; /* from KFD */
__u32 pad; /* to KFD */
};
struct kfd_ioctl_get_dmabuf_info_args {
-10
Voir le fichier
@@ -834,25 +834,15 @@ uint32_t *convert_queue_ids(HSAuint32 NumQueues, HSA_QUEUEID *Queues)
HSAKMT_STATUS
HSAKMTAPI
hsaKmtAllocQueueGWS(
HSAuint32 NodeId,
HSA_QUEUEID QueueId,
HSAuint32 nGWS,
HSAuint32 *firstGWS)
{
struct kfd_ioctl_alloc_queue_gws_args args = {0};
struct queue *q = PORT_UINT64_TO_VPTR(QueueId);
HSAKMT_STATUS result;
uint32_t gpu_id;
CHECK_KFD_OPEN();
result = validate_nodeid(NodeId, &gpu_id);
if (result != HSAKMT_STATUS_SUCCESS) {
pr_err("[%s] invalid node ID: %d\n", __func__, NodeId);
return result;
}
args.gpu_id = gpu_id;
args.queue_id = (HSAuint32)q->queue_id;
args.num_gws = nGWS;