[PATCH] drm/amdgpu: fix incorrect size printing in error msg
Alex Deucher
alexdeucher at gmail.com
Mon Mar 28 14:19:15 UTC 2022
On Mon, Mar 28, 2022 at 10:12 AM Christian König
<ckoenig.leichtzumerken at gmail.com> wrote:
>
> That are bytes not pages.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
Acked-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> index ea0cde4904f0..f4a148917520 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> @@ -472,7 +472,7 @@ static bool amdgpu_bo_validate_size(struct amdgpu_device *adev,
>
> fail:
> DRM_DEBUG("BO size %lu > total memory in domain: %llu\n", size,
> - man->size << PAGE_SHIFT);
> + man->size);
> return false;
> }
>
> --
> 2.25.1
>
More information about the amd-gfx
mailing list