]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Match TC hash settings to DF settings (v2)
authorJoseph Greathouse <Joseph.Greathouse@amd.com>
Thu, 9 Jan 2020 23:41:43 +0000 (17:41 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jan 2020 15:18:58 +0000 (10:18 -0500)
commit97be47db7032f0f15c8a8f1db69fb4a2c68b8ff3
tree57260872498afc2bf57da39c4f752af8c0e605e9
parent4a912710781806b729406c77b9505f80759eb858
drm/amdgpu: Match TC hash settings to DF settings (v2)

On Arcturus, data fabric hashing is set by the VBIOS, and
affects which addresses map to which memory channels. The
gfx core's caches also need to know this mapping, but the
hash settings for these these caches is set by the driver.

This change queries the DF to understand how the VBIOS
configured DF, then matches the TC hash configuration bits
to do the same thing.

v2: squash in warning fix

Signed-off-by: Joseph Greathouse <Joseph.Greathouse@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/df_v1_7.c
drivers/gpu/drm/amd/amdgpu/df_v3_6.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c