Skip to content
Commit 2f688913 authored by Yinghai Lu's avatar Yinghai Lu Committed by Linus Torvalds
Browse files

x86/agp: tighten check to update amd nb aperture



Impact: fix bug to make agp work with dri

Jeffrey reported that dri does work with 64bit, but doesn't work with
32bit it turns out NB aperture is 32M, aperture on agp is 128M

64bit is using 64M for vaidation for 64 iommu/gart 32bit is only using
32M..., and will not update the nb aperture.

So try to compare nb apterture and agp apterture before leaving not
touch nb aperture.

Reported-by: default avatarJeffrey Trull <jetrull@sbcglobal.net>
Tested-by: default avatarJeffrey Trull <jetrull@sbcglobal.net>
Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
Acked-by: default avatarDave Airlie <airlied@linux.ie>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5a891ed5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment