]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/gmc9: Adjust GART and AGP location with xgmi offset (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Jun 2018 21:11:56 +0000 (16:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 03:47:34 +0000 (22:47 -0500)
commitcc40cdc057add605be2707e2798bb18942e07fd3
tree921555fbb9f3274f1984c9de9fd6b10fe0e567a2
parent5ef50ac3f334234b1d1a2b9a225ceea179d4317d
drm/amdgpu/gmc9: Adjust GART and AGP location with xgmi offset (v2)

On hives with xgmi enabled, the fb_location aperture is a size
which defines the total framebuffer size of all nodes in the
hive.  Each GPU in the hive has the same view via the fb_location
aperture.  GPU0 starts at offset (0 * segment size),
GPU1 starts at offset (1 * segment size), etc.

For access to local vram on each GPU, we need to take this offset into
account. This including on setting up GPUVM page table and GART table

v2: squash in "drm/amdgpu: Init correct fb region for none XGMI configuration"

Acked-by: Huang Rui <ray.huang@amd.com>
Acked-by: Slava Abramov <slava.abramov@amd.com>
Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_1.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c