]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu/gmc6-8: properly disable the AGP aperture
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Sep 2023 17:07:00 +0000 (13:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 21:00:22 +0000 (17:00 -0400)
commit29495d81457a483c2859ccde59cc063034bfe47d
treee0235d49f6f14c550cd174fcc835d8390488f44f
parentcd956e7531281fba1b7cbb97e5cb55c99701f0c6
drm/amdgpu/gmc6-8: properly disable the AGP aperture

The BOT register needs to be larger than the TOP register
for this to be properly disabled.  The lower 22 bits
of the BOT address are always 0 and the lower 22 bits of
the TOP register are always 1 so you need to make
the upper bits of BOT larger than the upper bits of BOT.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c