diff options
| author | Jack Xiao <[email protected]> | 2019-01-08 07:28:52 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-06-21 23:57:40 +0000 |
| commit | 43974dacb6c35ea6a2bf89c1d5e2e04195464f81 (patch) | |
| tree | f90778c2d62ea6c0b089296d491b5bc77bec8d96 /drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c | |
| parent | drm/amdgpu/sdma: allocate CSA per sdma ring (diff) | |
| download | kernel-43974dacb6c35ea6a2bf89c1d5e2e04195464f81.tar.gz kernel-43974dacb6c35ea6a2bf89c1d5e2e04195464f81.zip | |
drm/amdgpu: program for resuming preempted ib
For new submission ib, CE/DE metadata should be programmed to 0;
for partially execution ib, CE/DE metadata should be restored.
Acked-by: Alex Deucher <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Jack Xiao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c index f660628e6af9..35a8d3c96fc9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c @@ -47,6 +47,7 @@ int amdgpu_allocate_static_csa(struct amdgpu_device *adev, struct amdgpu_bo **bo return -ENOMEM; memset(ptr, 0, size); + adev->virt.csa_cpu_addr = ptr; return 0; } |
