mirror of
https://github.com/torvalds/linux.git
synced 2026-04-30 20:42:33 -04:00
Merge tag 'amd-drm-next-5.11-2020-12-09' of git://people.freedesktop.org/~agd5f/linux into drm-next
amd-drm-next-5.11-2020-12-09: amdgpu: - SR-IOV fixes - Navy Flounder updates - Sienna Cichlid updates - Dimgrey Cavefish updates - Vangogh updates - Misc SMU fixes - Misc display fixes - Last big hunk of W=1 warning fixes - Cursor validation fixes - CI BACO updates From: Alex Deucher <alexdeucher@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201210045344.21566-1-alexander.deucher@amd.com Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -106,7 +106,7 @@ failed_kiq:
|
||||
|
||||
/**
|
||||
* amdgpu_virt_request_full_gpu() - request full gpu access
|
||||
* @amdgpu: amdgpu device.
|
||||
* @adev: amdgpu device.
|
||||
* @init: is driver init time.
|
||||
* When start to init/fini driver, first need to request full gpu access.
|
||||
* Return: Zero if request success, otherwise will return error.
|
||||
@@ -129,7 +129,7 @@ int amdgpu_virt_request_full_gpu(struct amdgpu_device *adev, bool init)
|
||||
|
||||
/**
|
||||
* amdgpu_virt_release_full_gpu() - release full gpu access
|
||||
* @amdgpu: amdgpu device.
|
||||
* @adev: amdgpu device.
|
||||
* @init: is driver init time.
|
||||
* When finishing driver init/fini, need to release full gpu access.
|
||||
* Return: Zero if release success, otherwise will returen error.
|
||||
@@ -151,7 +151,7 @@ int amdgpu_virt_release_full_gpu(struct amdgpu_device *adev, bool init)
|
||||
|
||||
/**
|
||||
* amdgpu_virt_reset_gpu() - reset gpu
|
||||
* @amdgpu: amdgpu device.
|
||||
* @adev: amdgpu device.
|
||||
* Send reset command to GPU hypervisor to reset GPU that VM is using
|
||||
* Return: Zero if reset success, otherwise will return error.
|
||||
*/
|
||||
@@ -186,7 +186,7 @@ void amdgpu_virt_request_init_data(struct amdgpu_device *adev)
|
||||
|
||||
/**
|
||||
* amdgpu_virt_wait_reset() - wait for reset gpu completed
|
||||
* @amdgpu: amdgpu device.
|
||||
* @adev: amdgpu device.
|
||||
* Wait for GPU reset completed.
|
||||
* Return: Zero if reset success, otherwise will return error.
|
||||
*/
|
||||
@@ -202,7 +202,7 @@ int amdgpu_virt_wait_reset(struct amdgpu_device *adev)
|
||||
|
||||
/**
|
||||
* amdgpu_virt_alloc_mm_table() - alloc memory for mm table
|
||||
* @amdgpu: amdgpu device.
|
||||
* @adev: amdgpu device.
|
||||
* MM table is used by UVD and VCE for its initialization
|
||||
* Return: Zero if allocate success.
|
||||
*/
|
||||
@@ -232,7 +232,7 @@ int amdgpu_virt_alloc_mm_table(struct amdgpu_device *adev)
|
||||
|
||||
/**
|
||||
* amdgpu_virt_free_mm_table() - free mm table memory
|
||||
* @amdgpu: amdgpu device.
|
||||
* @adev: amdgpu device.
|
||||
* Free MM table memory
|
||||
*/
|
||||
void amdgpu_virt_free_mm_table(struct amdgpu_device *adev)
|
||||
@@ -282,8 +282,8 @@ static int amdgpu_virt_init_ras_err_handler_data(struct amdgpu_device *adev)
|
||||
if (!*data)
|
||||
return -ENOMEM;
|
||||
|
||||
bps = kmalloc(align_space * sizeof((*data)->bps), GFP_KERNEL);
|
||||
bps_bo = kmalloc(align_space * sizeof((*data)->bps_bo), GFP_KERNEL);
|
||||
bps = kmalloc_array(align_space, sizeof((*data)->bps), GFP_KERNEL);
|
||||
bps_bo = kmalloc_array(align_space, sizeof((*data)->bps_bo), GFP_KERNEL);
|
||||
|
||||
if (!bps || !bps_bo) {
|
||||
kfree(bps);
|
||||
@@ -557,7 +557,7 @@ static int amdgpu_virt_write_vf2pf_data(struct amdgpu_device *adev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
|
||||
static void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
|
||||
{
|
||||
struct amdgpu_device *adev = container_of(work, struct amdgpu_device, virt.vf2pf_work.work);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user