diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c index fb1667b35daa..876722ff53a1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c @@ -280,11 +280,15 @@ int amdgpu_sa_bo_new(struct amdgpu_sa_manager *sa_manager, int i, r; signed long t; - if (WARN_ON_ONCE(align > sa_manager->align)) + if (WARN_ON_ONCE(align > sa_manager->align)) { + DRM_INFO_ONCE("align=%u > sa_manager->align=%u\n", align, sa_manager->align); return -EINVAL; + } - if (WARN_ON_ONCE(size > sa_manager->size)) + if (WARN_ON_ONCE(size > sa_manager->size)) { + DRM_INFO_ONCE("size=%u > sa_manager->size=%u\n", size, sa_manager->size); return -EINVAL; + } *sa_bo = kmalloc(sizeof(struct amdgpu_sa_bo), GFP_KERNEL); if (!(*sa_bo))