diff options
| author | Monk Liu <[email protected]> | 2017-09-15 06:35:09 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-09-26 19:14:13 +0000 |
| commit | d59c026b7be1dd9ae00b54d1916a90775fe3bdda (patch) | |
| tree | 20d3703306567c9bdf7685bb80868038b3491b30 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amdgpu:make ctx_add_fence interruptible(v2) (diff) | |
| download | kernel-d59c026b7be1dd9ae00b54d1916a90775fe3bdda.tar.gz kernel-d59c026b7be1dd9ae00b54d1916a90775fe3bdda.zip | |
drm/amdgpu/sriov:fix memory leak after gpu reset
GPU reset will require all hw doing hw_init thus
ucode_init_bo will be invoked again, which lead to
memory leak
skip the fw_buf allocation during sriov gpu reset to avoid
memory leak.
Signed-off-by: Monk Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 9cce59f6ada5..f085c8c9f267 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1187,6 +1187,9 @@ struct amdgpu_firmware { /* gpu info firmware data pointer */ const struct firmware *gpu_info_fw; + + void *fw_buf_ptr; + uint64_t fw_buf_mc; }; /* |
