diff options
| author | Alex Sierra <[email protected]> | 2021-02-04 01:02:20 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-03-24 02:59:07 +0000 |
| commit | ec8631e01143e593c4f28d3d2d8a11073ce38b7f (patch) | |
| tree | c1a58e14f4857249bae07f3d40b8a547d75960df /drivers/gpu/drm/amd/amdgpu | |
| parent | drm/amdgpu: Fix the comment in amdgpu_gmc.h (diff) | |
| download | kernel-ec8631e01143e593c4f28d3d2d8a11073ce38b7f.tar.gz kernel-ec8631e01143e593c4f28d3d2d8a11073ce38b7f.zip | |
drm/amdgpu: use pd addr based on gart level page table
With a recent gart page table re-construction, the gart page
table is now 2-level for some ASICs: PDB0->PTB.
In the case of 2-level gart page table, the page_table_base
of vmid0 should point to PDB0 instead of PTB.
Signed-off-by: Alex Sierra <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Reviewed-by: Oak Zeng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 4add9eaa7fa4..0ea1b68e7bb9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -2057,7 +2057,8 @@ int amdgpu_copy_buffer(struct amdgpu_ring *ring, uint64_t src_offset, return r; if (vm_needs_flush) { - job->vm_pd_addr = amdgpu_gmc_pd_addr(adev->gart.bo); + job->vm_pd_addr = amdgpu_gmc_pd_addr(adev->gmc.pdb0_bo ? + adev->gmc.pdb0_bo : adev->gart.bo); job->vm_needs_flush = true; } if (resv) { |
