Skip to contentSkip to conversation

drm/amdkfd: Removed commented line for MQD queue priority

PATCH In review Andrew Martin 2 participants 3 messages Feb 23

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdkfd: Removed commented line for MQD queue priority

Missed deleting the commented line in the original patch.

Fixes 3e95063383f5 ("drm/amdkfd: Disable MQD queue priority")
---
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c    | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c    | 1 -
 7 files changed, 7 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c +0 -1
index 90ac3a30e81d..14123c5d4925 100644
@@ -70,7 +70,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct cik_mqd *m, struct queue_properties *q)
 {
 	m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-	m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c +0 -1
index 97055f808d4a..0f7688a1f8b1 100644
@@ -70,7 +70,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct v10_compute_mqd *m, struct queue_properties *q)
 {
 	m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-	m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c +0 -1
index 7e5a7ab6d0c0..d8f565cb2180 100644
@@ -96,7 +96,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct v11_compute_mqd *m, struct queue_properties *q)
 {
 	m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-	m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c +0 -1
index a51f217329db..db615b42b25c 100644
@@ -77,7 +77,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct v12_compute_mqd *m, struct queue_properties *q)
 {
 	m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-	m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c +0 -1
index d0776ba2cc99..6e591103c3b6 100644
@@ -131,7 +131,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct v12_1_compute_mqd *m, struct queue_properties *q)
 {
 	m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-	m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c +0 -1
index dcf4bbfa641b..ad0dcaed3d35 100644
@@ -106,7 +106,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct v9_mqd *m, struct queue_properties *q)
 {
 	m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-	m->cp_hqd_queue_priority = q->priority;
 }
 
 static bool mqd_on_vram(struct amdgpu_device *adev)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c +0 -1
index 09483f0862d4..c192c66a5c7b 100644
@@ -73,7 +73,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct vi_mqd *m, struct queue_properties *q)
 {
 	m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-	m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Andrew Martin

Missed deleting the commented line in the original patch.

Fixes 3e95063383f5 ("drm/amdkfd: Disable MQD queue priority")

This should be rebased on top of a tree which contains the original patch. I.e., the patch should look like:
- /* m->cp_hqd_queue_priority = q->priority; */

With that fixed,

Quoted 98 lines
---
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c    | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c    | 1 -
 7 files changed, 7 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c +0 -1
index 90ac3a30e81d..14123c5d4925 100644
@@ -70,7 +70,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct cik_mqd *m, struct queue_properties *q)
 {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-       m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c +0 -1
index 97055f808d4a..0f7688a1f8b1 100644
@@ -70,7 +70,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct v10_compute_mqd *m, struct queue_properties *q)
 {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-       m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c +0 -1
index 7e5a7ab6d0c0..d8f565cb2180 100644
@@ -96,7 +96,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct v11_compute_mqd *m, struct queue_properties *q)
 {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-       m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c +0 -1
index a51f217329db..db615b42b25c 100644
@@ -77,7 +77,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct v12_compute_mqd *m, struct queue_properties *q)
 {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-       m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c +0 -1
index d0776ba2cc99..6e591103c3b6 100644
@@ -131,7 +131,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct v12_1_compute_mqd *m, struct queue_properties *q)
 {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-       m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c +0 -1
index dcf4bbfa641b..ad0dcaed3d35 100644
@@ -106,7 +106,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct v9_mqd *m, struct queue_properties *q)
 {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-       m->cp_hqd_queue_priority = q->priority;
 }
 
 static bool mqd_on_vram(struct amdgpu_device *adev)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c +0 -2
index 09483f0862d4..c192c66a5c7b 100644
@@ -73,7 +73,6 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
 static void set_priority(struct vi_mqd *m, struct queue_properties *q)
 {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-       m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
--

2.43.0

#2 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Greetings @Alex Deucher

Thanks, will do as instructed!

Quoted 134 lines

-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Monday, February 23, 2026 3:43 PM
To: Martin, Andrew <[email protected]>
Cc: [email protected]; Deucher, Alexander <[email protected]>
Subject: Re: [PATCH] drm/amdkfd: Removed commented line for MQD queue priority

Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.

Quoted 4 lines · Andrew Martin

Missed deleting the commented line in the original patch.

Fixes 3e95063383f5 ("drm/amdkfd: Disable MQD queue priority")

This should be rebased on top of a tree which contains the original patch. I.e., the patch should look like:
- /* m->cp_hqd_queue_priority = q->priority; */

With that fixed,

drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c static void update_cu_mask(struct mqd_manager

Quoted 69 lines
---
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c   | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c    | 1 -
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c    | 1 -
 7 files changed, 7 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c +0 -0
index 90ac3a30e81d..14123c5d4925 100644
@@ -70,7 +70,6 @@ static void update_cu_mask(struct mqd_manager *mm,

void *mqd, static void set_priority(struct cik_mqd *m, struct

queue_properties *q)  {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];

- m->cp_hqd_queue_priority = q->priority;
}

static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm, diff
--git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
index 97055f808d4a..0f7688a1f8b1 100644

drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c +0 -0
@@ -70,7 +70,6 @@ static void update_cu_mask(struct mqd_manager *mm,

void *mqd, static void set_priority(struct v10_compute_mqd *m, struct

queue_properties *q)  {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];

- m->cp_hqd_queue_priority = q->priority;
}

static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm, diff
--git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
index 7e5a7ab6d0c0..d8f565cb2180 100644

drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c +0 -0
@@ -96,7 +96,6 @@ static void update_cu_mask(struct mqd_manager *mm,

void *mqd, static void set_priority(struct v11_compute_mqd *m, struct

queue_properties *q)  {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];

- m->cp_hqd_queue_priority = q->priority;
}

static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm, diff
--git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c
index a51f217329db..db615b42b25c 100644

drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c +0 -0
@@ -77,7 +77,6 @@ static void update_cu_mask(struct mqd_manager *mm,

void *mqd, static void set_priority(struct v12_compute_mqd *m, struct

queue_properties *q)  {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];

- m->cp_hqd_queue_priority = q->priority;
}

static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm, diff
--git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
index d0776ba2cc99..6e591103c3b6 100644

drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c +0 -0
@@ -131,7 +131,6 @@ static void update_cu_mask(struct mqd_manager

*mm,

drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c static void update_cu_mask(struct mqd_manager

Quoted 13 lines
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c +0 -2
 void *mqd,  static void set_priority(struct v12_1_compute_mqd *m,
 struct queue_properties *q)  {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];
-       m->cp_hqd_queue_priority = q->priority;
 }
 
 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm, diff
--git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c

b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
index dcf4bbfa641b..ad0dcaed3d35 100644

drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c +0 -0
@@ -106,7 +106,6 @@ static void update_cu_mask(struct mqd_manager

*mm,

Quoted 23 lines

void *mqd, static void set_priority(struct v9_mqd *m, struct

queue_properties *q)  {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];

- m->cp_hqd_queue_priority = q->priority;
}

static bool mqd_on_vram(struct amdgpu_device *adev) diff --git
a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c index 09483f0862d4..c192c66a5c7b 100644

drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c +0 -0
@@ -73,7 +73,6 @@ static void update_cu_mask(struct mqd_manager *mm,

void *mqd, static void set_priority(struct vi_mqd *m, struct

queue_properties *q)  {
        m->cp_hqd_pipe_priority = pipe_priority_map[q->priority];

- m->cp_hqd_queue_priority = q->priority;
}

static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm,
--
2.43.0