drm/amdkfd: remove unused variable
Subsystems (3)
PATCH 1/1 drm/amdkfd: remove unused variable
Remove it.
--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1 -2
@@ -997,7 +997,7 @@ static int start_nocpsch(struct device_queue_manager *dqm) {pr_info ("SW scheduler is used" );init_interrupts (dqm); - +if (dqm->dev->device_info->asic_family ==CHIP_HAWAII )return pm_init (&dqm->packets, dqm); dqm->sched_running = true;
@@ -1674,7 +1674,6 @@ static int get_wave_state(struct device_queue_manager *dqm, u32 *save_area_used_size) {struct mqd_manager *mqd_mgr; -int r;dqm_lock (dqm);
Signature · 6 lines
2.31.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 15 lines · Nirmoy Das
Remove it.
Fixes d7b132507384c("drm/amdkfd: fix circular locking on get_wave_state")Signed-off-by Nirmoy Das <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +0
-0
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c static int start_nocpsch(struct device_queue_manager *dqm) · line 1000
Quoted 5 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1
-1@@ -997,7 +997,7 @@ static int start_nocpsch(struct device_queue_manager *dqm) {pr_info ("SW scheduler is used" );init_interrupts (dqm); - +
Please ignore this extra space. I will push without it once I get a r-b.
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c static int get_wave_state(struct device_queue_manager *dqm, · line 1679
Quoted 11 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +0
-1if (dqm->dev->device_info->asic_family ==CHIP_HAWAII )return pm_init (&dqm->packets, dqm); dqm->sched_running = true;@@ -1674,7 +1674,6 @@ static int get_wave_state(struct device_queue_manager *dqm, u32 *save_area_used_size) {struct mqd_manager *mqd_mgr; -int r;dqm_lock (dqm);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Kim, Jonathan
Reviewed-by[AMD Official Use Only]
Thanks for the catch.
Quoted 33 lines
-----Original Message-----
From: Das, Nirmoy <[email protected]>
Sent: Tuesday, June 15, 2021 6:35 AM
To: [email protected]
Cc: Kim, Jonathan <[email protected]>; Kuehling, Felix <[email protected]>
Subject: Re: [PATCH 1/1] drm/amdkfd: remove unused variableReview
Quoted 11 lines · Nirmoy Das
Remove it.
Fixes d7b132507384c("drm/amdkfd: fix circular locking on get_wave_state")Signed-off-by Nirmoy Das <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.cdrivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c static int start_nocpsch(struct
Quoted 4 lines
index e6366b408420..539212039876 100644
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +0
-0@@ -997,7 +997,7 @@ static int start_nocpsch(struct
device_queue_manager*dqm)drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c static int start_nocpsch(struct device_queue_manager *dqm) · line 1000
Quoted 5 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1
-1{pr_info ("SW scheduler is used" );init_interrupts (dqm); - +Please ignore this extra space. I will push without it once I get a r-b.
Quoted 12 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c static int get_wave_state(struct
Quoted 4 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +0
-0if (dqm->dev->device_info->asic_family ==CHIP_HAWAII )return pm_init (&dqm->packets, dqm); dqm->sched_running = true;@@ -1674,7 +1674,6 @@ static int get_wave_state(struct
device_queue_manager*dqm,Quoted 7 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +0
-1u32 *save_area_used_size) {struct mqd_manager *mqd_mgr; -int r;dqm_lock (dqm);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx