]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu/soc24: use common nbio callback to set remap offset
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 8 May 2024 19:22:59 +0000 (15:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jun 2024 14:58:10 +0000 (10:58 -0400)
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>
drivers/gpu/drm/amd/amdgpu/soc24.c

index 791e37f8b65760b82322bf313e24f7e98b7cf691..a15673e2dc99191b308b2b8d21d6087915523785 100644 (file)
@@ -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;