Re: [PATCH v5 3/5] accel/amdxdna: do not warn when a sync request is rejected

From: Lizhi Hou

Date: Thu Sep 17 2026 - 17:13:24 EST


Applied to drm-misc-next

On 9/17/26 08:55, Lizhi Hou wrote:

On 8/19/26 15:44, Taimuraz Kaitmazov wrote:
amdxdna_drm_sync_bo_ioctl() answers a failed amdxdna_flush_bo() with
drm_WARN(). Both of that function's error returns are decided by the
ioctl's arguments, so SYNC_BO with an offset past the end of the BO
splats and taints the kernel from an unprivileged caller.

Log it at debug level, since the same caller can repeat it.

Signed-off-by: Taimuraz Kaitmazov <taimuraz@xxxxxxxxxxxxx>
---
  drivers/accel/amdxdna/amdxdna_gem.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/accel/amdxdna/amdxdna_gem.c b/drivers/accel/amdxdna/amdxdna_gem.c
index 77a9493cd7ba..0e0f844526ca 100644
--- a/drivers/accel/amdxdna/amdxdna_gem.c
+++ b/drivers/accel/amdxdna/amdxdna_gem.c
@@ -1310,7 +1310,7 @@ int amdxdna_drm_sync_bo_ioctl(struct drm_device *dev,
          amdxdna_gem_unpin(abo);
            if (ret) {
-            drm_WARN(&xdna->ddev, 1, "Can not get flush memory");
+            XDNA_DBG(xdna, "Flush BO %d failed, ret %d", args->handle, ret);
Reviewed-by: Lizhi Hou <lizhi.hou@xxxxxxx>
              goto put_obj;
          }
      }