From: Alex Deucher Date: Wed, 8 May 2024 19:22:59 +0000 (-0400) Subject: drm/amdgpu/soc24: use common nbio callback to set remap offset X-Git-Tag: io_uring-6.11-20240722~49^2~25^2~51 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7d3b9668e668506bfee97806756b5945bbc45d78;p=linux-block.git 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 Signed-off-by: Alex Deucher --- 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;