drm/amdkfd: Ratelimit oversubscription message
Subsystems (3)
PATCH 1/1 drm/amdkfd: Ratelimit oversubscription message
On certain applications, this message could end up flooding dmesg. Ratelimit it so that the warning is still available, but doesn't take over the entire log
Signed-off-by Kent Russell <[email protected]>
--- drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c +1 -1
@@ -207,7 +207,7 @@ static int pm_create_runlist_ib(struct packet_manager *pm,if (is_over_subscription) {if (!pm->is_over_subscription) -pr_warn ("Runlist is getting oversubscribed. Expect reduced ROCm performance.\n" ); +pr_warn_ratelimited ("Runlist is getting oversubscribed. Expect reduced ROCm performance.\n" ); retval = pm->pmf->runlist(pm, &rl_buffer[rl_wptr], *rl_gpu_addr, alloc_size_bytes / sizeof(uint32_t),
Signature · 1 line
2.34.1
Am 2023-03-02 um 14:46 schrieb Kent Russell:
Quoted 5 lines
On certain applications, this message could end up flooding dmesg. Ratelimit it so that the warning is still available, but doesn't take over the entire log
Signed-off-by Kent Russell <[email protected]>
Reviewed-by Felix Kuehling <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c +1
-1@@ -207,7 +207,7 @@ static int pm_create_runlist_ib(struct packet_manager *pm,if (is_over_subscription) {if (!pm->is_over_subscription) -pr_warn ("Runlist is getting oversubscribed. Expect reduced ROCm performance.\n" ); +pr_warn_ratelimited ("Runlist is getting oversubscribed. Expect reduced ROCm performance.\n" ); retval = pm->pmf->runlist(pm, &rl_buffer[rl_wptr], *rl_gpu_addr, alloc_size_bytes / sizeof(uint32_t),