diff options
| author | Alex Deucher <alexander.deucher@amd.com> | 2024-05-08 22:22:59 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2024-06-05 17:58:10 +0300 |
| commit | 7d3b9668e668506bfee97806756b5945bbc45d78 (patch) | |
| tree | 5a0a74ac2f332752e20d4a20a3cc7483c0994c07 /drivers/gpu/drm/amd/amdgpu/soc24.c | |
| parent | 730ac573868b03ea668d368d5d279c5434ae205c (diff) | |
| download | linux-7d3b9668e668506bfee97806756b5945bbc45d78.tar.xz | |
drm/amdgpu/soc24: use common nbio callback to set remap offset
This fixes HDP flushes on systems with non-4K pages.
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc24.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc24.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc24.c b/drivers/gpu/drm/amd/amdgpu/soc24.c index 791e37f8b657..a15673e2dc99 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc24.c +++ b/drivers/gpu/drm/amd/amdgpu/soc24.c @@ -372,11 +372,9 @@ static const struct amdgpu_asic_funcs soc24_asic_funcs = { static int soc24_common_early_init(void *handle) { -#define MMIO_REG_HOLE_OFFSET (0x80000 - PAGE_SIZE) struct amdgpu_device *adev = (struct amdgpu_device *)handle; - adev->rmmio_remap.reg_offset = MMIO_REG_HOLE_OFFSET; - adev->rmmio_remap.bus_addr = adev->rmmio_base + MMIO_REG_HOLE_OFFSET; + adev->nbio.funcs->set_reg_remap(adev); adev->smc_rreg = NULL; adev->smc_wreg = NULL; adev->pcie_rreg = &amdgpu_device_indirect_rreg; |
