drm/amdgpu: fix metadata_size for ubo ioctl queries
authorShiwu Zhang <shiwu.zhang@amd.com>
Mon, 24 May 2021 06:30:21 +0000 (14:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jun 2021 02:35:50 +0000 (22:35 -0400)
commiteba98523724be7ad3539f2c975de1527e0c99dd6
treeb786c46a6ffb1a240a02e757757bc415b81c9372
parent580204038f5b6f4218dbefb9a0ec89a675b1d45b
drm/amdgpu: fix metadata_size for ubo ioctl queries

Although the kfd_ioctl_get_dmabuf_info() still fail it will indicate
the caller right metadat_size useful for the same kfd ioctl next time.

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Nirmoy Das <nirmoy.das@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c