[PATCH v2 4/9] drm/amdkfd: Validate user queue buffers

Dieter Faulbaum dieter at faulbaum.in-berlin.de
Thu Feb 13 09:56:54 UTC 2025


Hello Philip,

Philip Yang <yangp at amd.com> writes:

> On 2025-02-12 17:42, Uwe Kleine-König wrote:
>
>  #regzbot introduced: 68e599db7a549f010a329515f3508d8a8c3467a4
> #regzbot monitor: https://bugs.debian.org/1093124
>
> Hello,
>
> On Thu, Jul 18, 2024 at 05:05:53PM -0400, Philip Yang wrote:
>
>  Find user queue rptr, ring buf, eop buffer and cwsr area BOs, 
>  and
> check BOs are mapped on the GPU with correct size and take the 
> BO
> reference.
>
> Signed-off-by: Philip Yang <Philip.Yang at amd.com>
> Reviewed-by: Felix Kuehling <felix.kuehling at amd.com>
>
>
> This change made it into v6.12-rc1 as 68e599db7a54 ("drm/amdkfd:
> Validate user queue buffers"). A Debian user (Dieter Faulbaum, 
> on Cc)
> reported that this change introduced a regression using a gfx803 
> device
> resulting in a HSA exception when e.g. darktable is used. I 
> didn't even
> try to understand the problem, but maybe one of you have an idea 
> about
> the issue?!
>
> Try this patch
>
> https://lore.kernel.org/all/20250130000412.29812-1-Philip.Yang@amd.com/T/
Thank you, this patch helps!
Tested with kernel version 6.12.0+

And (for me) the Debian bug report could be closed.

Thanks to all for your help!
Dieter


More information about the amd-gfx mailing list