drm/amdkfd: Make process queues logs less verbose
Subsystems (3)
PATCH 1/1 drm/amdkfd: Make process queues logs less verbose
During normal usage, especially if jobs are started and stopped in rapid succession, the kernel log is filled with messages like this:
[38732.522910] Restoring PASID 0x8003 queues [38732.666767] Evicting PASID 0x8003 queues [38732.714074] Restoring PASID 0x8003 queues [38732.815633] Evicting PASID 0x8003 queues [38732.834961] Restoring PASID 0x8003 queues [38732.840536] Evicting PASID 0x8003 queues [38732.869846] Restoring PASID 0x8003 queues [38732.893655] Evicting PASID 0x8003 queues [38732.927975] Restoring PASID 0x8003 queues
According to [1], these messages are expected, but they carry little value for the end user, so turn them into debug messages.
[1] https://github.com/RadeonOpenCompute/ROCm/issues/343
--- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +4 -4
@@ -604,7 +604,7 @@ static int evict_process_queues_nocpsch(struct device_queue_manager *dqm, goto out; pdd =qpd_to_pdd (qpd); -pr_info_ratelimited ("Evicting PASID 0x%x queues\n" , +pr_debug_ratelimited ("Evicting PASID 0x%x queues\n" , pdd->process->pasid);/* Mark all queues as evicted. Deactivate all active queues on
@@ -650,7 +650,7 @@ static int evict_process_queues_cpsch(struct device_queue_manager *dqm, goto out; pdd =qpd_to_pdd (qpd); -pr_info_ratelimited ("Evicting PASID 0x%x queues\n" , +pr_debug_ratelimited ("Evicting PASID 0x%x queues\n" , pdd->process->pasid);/* Mark all queues as evicted. Deactivate all active queues on
@@ -696,7 +696,7 @@ static int restore_process_queues_nocpsch(struct device_queue_manager *dqm, goto out; } -pr_info_ratelimited ("Restoring PASID 0x%x queues\n" , +pr_debug_ratelimited ("Restoring PASID 0x%x queues\n" , pdd->process->pasid);/* Update PD Base in QPD */
@@ -772,7 +772,7 @@ static int restore_process_queues_cpsch(struct device_queue_manager *dqm, goto out; } -pr_info_ratelimited ("Restoring PASID 0x%x queues\n" , +pr_debug_ratelimited ("Restoring PASID 0x%x queues\n" , pdd->process->pasid);/* Update PD Base in QPD */
--
2.24.1
Quoted 13 lines · Julian Sax
During normal usage, especially if jobs are started and stopped in rapid succession, the kernel log is filled with messages like this:
[38732.522910] Restoring PASID 0x8003 queues [38732.666767] Evicting PASID 0x8003 queues [38732.714074] Restoring PASID 0x8003 queues [38732.815633] Evicting PASID 0x8003 queues [38732.834961] Restoring PASID 0x8003 queues [38732.840536] Evicting PASID 0x8003 queues [38732.869846] Restoring PASID 0x8003 queues [38732.893655] Evicting PASID 0x8003 queues [38732.927975] Restoring PASID 0x8003 queues
Quoted 4 lines
According to [1], these messages are expected, but they carry little value for the end user, so turn them into debug messages.
trivia:
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
Quoted 1 line
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +0
-0
[]
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c static int evict_process_queues_nocpsch(struct device_queue_manager *dqm, · line 608
Quoted 7 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1
-1@@ -604,7 +604,7 @@ static int evict_process_queues_nocpsch(struct device_queue_manager *dqm, goto out; pdd =qpd_to_pdd (qpd); -pr_info_ratelimited ("Evicting PASID 0x%x queues\n" , +pr_debug_ratelimited ("Evicting PASID 0x%x queues\n" , pdd->process->pasid);
It would be nicer to realign all the subsequent lines in a single statement to the now moved open parenthesis.
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c static int evict_process_queues_cpsch(struct device_queue_manager *dqm, · line 654
Quoted 9 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1
-1/* Mark all queues as evicted. Deactivate all active queues on @@ -650,7 +650,7 @@ static int evict_process_queues_cpsch(struct device_queue_manager *dqm, goto out; pdd =qpd_to_pdd (qpd); -pr_info_ratelimited ("Evicting PASID 0x%x queues\n" , +pr_debug_ratelimited ("Evicting PASID 0x%x queues\n" , pdd->process->pasid);
etc...
Quoted 39 lines · Joe Perches
Quoted 13 lines · Julian Sax
During normal usage, especially if jobs are started and stopped in rapid succession, the kernel log is filled with messages like this:
[38732.522910] Restoring PASID 0x8003 queues [38732.666767] Evicting PASID 0x8003 queues [38732.714074] Restoring PASID 0x8003 queues [38732.815633] Evicting PASID 0x8003 queues [38732.834961] Restoring PASID 0x8003 queues [38732.840536] Evicting PASID 0x8003 queues [38732.869846] Restoring PASID 0x8003 queues [38732.893655] Evicting PASID 0x8003 queues [38732.927975] Restoring PASID 0x8003 queuesQuoted 4 lines
According to [1], these messages are expected, but they carry little value for the end user, so turn them into debug messages.
trivia:
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
Quoted 1 line
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +0
-0[]
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c static int evict_process_queues_nocpsch(struct device_queue_manager *dqm, · line 608
Quoted 7 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1
-1@@ -604,7 +604,7 @@ static int evict_process_queues_nocpsch(struct device_queue_manager *dqm, goto out; pdd =qpd_to_pdd (qpd); -pr_info_ratelimited ("Evicting PASID 0x%x queues\n" , +pr_debug_ratelimited ("Evicting PASID 0x%x queues\n" , pdd->process->pasid);It would be nicer to realign all the subsequent lines in a single statement to the now moved open parenthesis.
Quoted 5 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +0
-0/* Mark all queues as evicted. Deactivate all active queues on @@ -650,7 +650,7 @@ static int evict_process_queues_cpsch(struct device_queue_manager *dqm, goto out;
Quoted 6 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c static int evict_process_queues_nocpsch(struct device_queue_manager *dqm, · line 608
Quoted 4 lines
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1
-1pdd =qpd_to_pdd (qpd); -pr_info_ratelimited ("Evicting PASID 0x%x queues\n" , +pr_debug_ratelimited ("Evicting PASID 0x%x queues\n" , pdd->process->pasid);etc...
Yeah, absolutely, thanks for pointing that out. v2 coming shortly.
Julian
PATCH v2 1/1 drm/amdkfd: Make process queues logs less verbose
In reply to Joe PerchesDuring normal usage, especially if jobs are started and stopped in rapid succession, the kernel log is filled with messages like this:
[38732.522910] Restoring PASID 0x8003 queues [38732.666767] Evicting PASID 0x8003 queues [38732.714074] Restoring PASID 0x8003 queues [38732.815633] Evicting PASID 0x8003 queues [38732.834961] Restoring PASID 0x8003 queues [38732.840536] Evicting PASID 0x8003 queues [38732.869846] Restoring PASID 0x8003 queues [38732.893655] Evicting PASID 0x8003 queues [38732.927975] Restoring PASID 0x8003 queues
According to [1], these messages are expected, but they carry little value for the end user, so turn them into debug messages.
[1] https://github.com/RadeonOpenCompute/ROCm/issues/343
---
v2: fixed indenting of following lines
.../drm/amd/amdkfd/kfd_device_queue_manager.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +8 -8
@@ -604,8 +604,8 @@ static int evict_process_queues_nocpsch(struct device_queue_manager *dqm, goto out; pdd =qpd_to_pdd (qpd); -pr_info_ratelimited ("Evicting PASID 0x%x queues\n" , - pdd->process->pasid); +pr_debug_ratelimited ("Evicting PASID 0x%x queues\n" , + pdd->process->pasid);/* Mark all queues as evicted. Deactivate all active queues on * the qpd.
@@ -650,8 +650,8 @@ static int evict_process_queues_cpsch(struct device_queue_manager *dqm, goto out; pdd =qpd_to_pdd (qpd); -pr_info_ratelimited ("Evicting PASID 0x%x queues\n" , - pdd->process->pasid); +pr_debug_ratelimited ("Evicting PASID 0x%x queues\n" , + pdd->process->pasid);/* Mark all queues as evicted. Deactivate all active queues on * the qpd.
@@ -696,8 +696,8 @@ static int restore_process_queues_nocpsch(struct device_queue_manager *dqm, goto out; } -pr_info_ratelimited ("Restoring PASID 0x%x queues\n" , - pdd->process->pasid); +pr_debug_ratelimited ("Restoring PASID 0x%x queues\n" , + pdd->process->pasid);/* Update PD Base in QPD */ qpd->page_table_base = pd_base;
@@ -772,8 +772,8 @@ static int restore_process_queues_cpsch(struct device_queue_manager *dqm, goto out; } -pr_info_ratelimited ("Restoring PASID 0x%x queues\n" , - pdd->process->pasid); +pr_debug_ratelimited ("Restoring PASID 0x%x queues\n" , + pdd->process->pasid);/* Update PD Base in QPD */ qpd->page_table_base = pd_base;
--
2.24.1