]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: add nbio set_reg_remap helper
authorAlex Deucher <alexander.deucher@amd.com>
Sun, 14 Apr 2024 16:56:03 +0000 (12:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 May 2024 19:17:06 +0000 (15:17 -0400)
Will be used to consolidate reg remap settings and fix HDP
flushes on systems with non-4K pages.

Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h

index 7b8c03be1d9e7d9d1f443ece136b4644cfbd8cea..f61d117b0cafe36f2ada19df50a37b581b75311c 100644 (file)
@@ -102,6 +102,7 @@ struct amdgpu_nbio_funcs {
        u32 (*get_memory_partition_mode)(struct amdgpu_device *adev,
                                         u32 *supp_modes);
        u64 (*get_pcie_replay_count)(struct amdgpu_device *adev);
+       void (*set_reg_remap)(struct amdgpu_device *adev);
 };
 
 struct amdgpu_nbio {