drm/amdgpu/benchmark: fix error handling
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu/benchmark: fix error handling
Forgot to assign the return value here.
Reported-by kernel test robot <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c +2 -2
@@ -163,8 +163,8 @@ int amdgpu_benchmark(struct amdgpu_device *adev, int test_number)"benchmark test: %d (simple test, VRAM to VRAM)\n" , test_number);/* simple test, VRAM to VRAM */ -amdgpu_benchmark_move (adev,1024 *1024 ,AMDGPU_GEM_DOMAIN_VRAM , -AMDGPU_GEM_DOMAIN_VRAM ); + r =amdgpu_benchmark_move (adev,1024 *1024 ,AMDGPU_GEM_DOMAIN_VRAM , +AMDGPU_GEM_DOMAIN_VRAM );if (r) goto done;break ;
Signature · 1 line
2.35.1
Reviewed-by Guchun Chen <[email protected]>
Regards,
Guchun
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Wednesday, February 23, 2022 10:23 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; kernel test robot <[email protected]>
Subject: [PATCH] drm/amdgpu/benchmark: fix error handling
Forgot to assign the return value here.
Reported-by kernel test robot <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c +2 -2
@@ -163,8 +163,8 @@ int amdgpu_benchmark(struct amdgpu_device *adev, int test_number)"benchmark test: %d (simple test, VRAM to VRAM)\n" , test_number);/* simple test, VRAM to VRAM */ -amdgpu_benchmark_move (adev,1024 *1024 ,AMDGPU_GEM_DOMAIN_VRAM , -AMDGPU_GEM_DOMAIN_VRAM ); + r =amdgpu_benchmark_move (adev,1024 *1024 ,AMDGPU_GEM_DOMAIN_VRAM , +AMDGPU_GEM_DOMAIN_VRAM );if (r) goto done;break ;
Signature · 1 line
2.35.1
Am 23.02.22 um 15:23 schrieb Alex Deucher:
Quoted 4 lines
Forgot to assign the return value here.
Reported-by kernel test robot <[email protected]>Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 19 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c +2
-2@@ -163,8 +163,8 @@ int amdgpu_benchmark(struct amdgpu_device *adev, int test_number)"benchmark test: %d (simple test, VRAM to VRAM)\n" , test_number);/* simple test, VRAM to VRAM */ -amdgpu_benchmark_move (adev,1024 *1024 ,AMDGPU_GEM_DOMAIN_VRAM , -AMDGPU_GEM_DOMAIN_VRAM ); + r =amdgpu_benchmark_move (adev,1024 *1024 ,AMDGPU_GEM_DOMAIN_VRAM , +AMDGPU_GEM_DOMAIN_VRAM );if (r) goto done;break ;