diff options
| author | Christian König <[email protected]> | 2022-01-21 15:59:36 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-01-03 21:50:03 +0000 |
| commit | 7ccfd79fdd6c1a3b44badc994d9581fc9e634562 (patch) | |
| tree | 9af56b1c2aa9d538981659b0d0c023e92140b1d5 /drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | |
| parent | drm/amdgpu: use VRAM|GTT for a bunch of kernel allocations (diff) | |
| download | kernel-7ccfd79fdd6c1a3b44badc994d9581fc9e634562.tar.gz kernel-7ccfd79fdd6c1a3b44badc994d9581fc9e634562.zip | |
drm/amdgpu: rename vram_scratch into mem_scratch
Rename vram_scratch into mem_scratch and allow allocating it into GTT as
well.
The only problem with that is that we won't have a default page for the
system aperture any more.
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Luben Tuikov <[email protected]>
Acked-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c index 382dde1ce74c..24a256cfd7ce 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c @@ -474,7 +474,7 @@ static void gmc_v8_0_mc_program(struct amdgpu_device *adev) WREG32(mmMC_VM_SYSTEM_APERTURE_HIGH_ADDR, adev->gmc.vram_end >> 12); WREG32(mmMC_VM_SYSTEM_APERTURE_DEFAULT_ADDR, - adev->vram_scratch.gpu_addr >> 12); + adev->mem_scratch.gpu_addr >> 12); if (amdgpu_sriov_vf(adev)) { tmp = ((adev->gmc.vram_end >> 24) & 0xFFFF) << 16; |
