]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/amdgpu: fix vf error handling
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2017 13:47:32 +0000 (09:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2017 20:03:20 +0000 (16:03 -0400)
commite23b74aab5dc48d3e508a2bc171ccd152fb03803
treeb715c0cff8755ec4f0b51bc696080e982e881bb7
parent6f87a895709eecc1542fe947e349364ad061ac00
drm/amdgpu: fix vf error handling

The error handling for virtual functions assumed a single
vf per VM and didn't properly account for bare metal.  Make
the error arrays per device and add locking.

Reviewed-by: Gavin Wan <gavin.wan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.h
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h