[PATCH] drm/amdkfd: Ratelimit oversubscription message
Felix Kuehling
felix.kuehling at amd.com
Thu Mar 2 21:38:08 UTC 2023
Am 2023-03-02 um 14:46 schrieb Kent Russell:
> 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 <kent.russell at amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
> index ed02b6d8bf63..9eb3b5feff56 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
> @@ -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),
More information about the amd-gfx
mailing list