]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix modprobe failure of the secondary GPU when GDDR6 training enabled(V5)
authorTianci.Yin <tianci.yin@amd.com>
Thu, 9 Jan 2020 07:38:39 +0000 (15:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 18:35:37 +0000 (13:35 -0500)
commitd48031b059e8c525f1fc7a29b6b961b53e53d881
tree96f80652007306f595c0bbbdad856e40599658e3
parentd9c87d8e58a57c105864be70c28b0c903e0137c2
drm/amdgpu: fix modprobe failure of the secondary GPU when GDDR6 training enabled(V5)

[why]
In dual GPUs scenario, stolen_size is assigned to zero on the secondary GPU,
since there is no pre-OS console using that memory. Then the bottom region of
VRAM was allocated as GTT, unfortunately a small region of bottom VRAM was
encroached by UMC firmware during GDDR6 BIST training, this cause page fault.

[how]
Forcing stolen_size to 3MB, then the bottom region of VRAM was
allocated as stolen memory, GTT corruption avoid.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Tianci.Yin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c