Skip to content

Commit

Permalink
hsa/radeon: Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
  • Loading branch information
Oded Gabbay committed Aug 10, 2014
1 parent be18097 commit cf2fe94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/hsa/radeon/kfd_device_queue_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ int fence_wait_timeout(unsigned int *fence_addr, unsigned int fence_value, unsig
static int destroy_sdma_queues(struct device_queue_manager *dqm, unsigned int sdma_engine)
{
return pm_send_unmap_queue(&dqm->packets, KFD_QUEUE_TYPE_SDMA,
KFD_PRERMPT_TYPE_FILTER_ALL_QUEUES, 0, false, sdma_engine);
KFD_PREEMPT_TYPE_FILTER_ALL_QUEUES, 0, false, sdma_engine);
}

static int destroy_queues_cpsch(struct device_queue_manager *dqm)
Expand All @@ -1020,7 +1020,7 @@ static int destroy_queues_cpsch(struct device_queue_manager *dqm)
destroy_sdma_queues(dqm, 1);

retval = pm_send_unmap_queue(&dqm->packets, KFD_QUEUE_TYPE_COMPUTE,
KFD_PRERMPT_TYPE_FILTER_ALL_QUEUES, 0, false, 0);
KFD_PREEMPT_TYPE_FILTER_ALL_QUEUES, 0, false, 0);
if (retval != 0)
goto out;

Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/hsa/radeon/kfd_packet_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,11 @@ int pm_send_unmap_queue(struct packet_manager *pm, enum kfd_queue_type type,
packet->bitfields2.num_queues = 1;
packet->bitfields3b.doorbell_offset0 = filter_param;
break;
case KFD_PRERMPT_TYPE_FILTER_BY_PASID:
case KFD_PREEMPT_TYPE_FILTER_BY_PASID:
packet->bitfields2.queue_sel = queue_sel__mes_unmap_queues__perform_request_on_pasid_queues;
packet->bitfields3a.pasid = filter_param;
break;
case KFD_PRERMPT_TYPE_FILTER_ALL_QUEUES:
case KFD_PREEMPT_TYPE_FILTER_ALL_QUEUES:
packet->bitfields2.queue_sel = queue_sel__mes_unmap_queues__perform_request_on_all_active_queues;
break;
default:
Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/hsa/radeon/kfd_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ struct kfd_queue {

enum kfd_preempt_type_filter {
KFD_PREEMPT_TYPE_FILTER_SINGLE_QUEUE,
KFD_PRERMPT_TYPE_FILTER_ALL_QUEUES,
KFD_PRERMPT_TYPE_FILTER_BY_PASID
KFD_PREEMPT_TYPE_FILTER_ALL_QUEUES,
KFD_PREEMPT_TYPE_FILTER_BY_PASID
};

enum kfd_preempt_type {
Expand Down

0 comments on commit cf2fe94

Please sign in to comment.