diff options
author | Alex Deucher <[email protected]> | 2024-05-08 15:22:59 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-06-05 10:58:10 -0400 |
commit | 7d3b9668e668506bfee97806756b5945bbc45d78 (patch) | |
tree | 5a0a74ac2f332752e20d4a20a3cc7483c0994c07 | |
parent | 730ac573868b03ea668d368d5d279c5434ae205c (diff) |
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-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; |