Skip to contentSkip to conversation

drm/amdkfd: remove unused variable

PATCH In review Nirmoy Das 2 participants 3 messages Jun 15, 2021

Subsystems (3)
lore
Share & tools
lore

Nirmoy Das

author
#0 lore raw

PATCH 1/1 drm/amdkfd: remove unused variable

Remove it.

Fixes d7b132507384c("drm/amdkfd: fix circular locking on get_wave_state")
---
 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
index e6366b408420..539212039876 100644
@@ -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
#1 lore raw
Quoted 15 lines · Nirmoy Das

Remove it.

Fixes d7b132507384c("drm/amdkfd: fix circular locking on get_wave_state")
---
  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
index e6366b408420..539212039876 100644

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 -1
  	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);
 

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reviewed-by
#2 lore raw

[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 variable

Review

Quoted 11 lines · Nirmoy Das

Remove it.

Fixes d7b132507384c("drm/amdkfd: fix circular locking on get_wave_state")
---
  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.c

drivers/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 -0
    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,

Quoted 7 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +0 -1
                      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