AGPGART 2/5: size AGP mem correctly when memory is discontiguous
PATCH 1/1 AGPGART 2/5: size AGP mem correctly when memory is discontiguous
This removes the agpgart assumption that memory is contiguous.
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.661 -> 1.662
# drivers/char/agp/agpgart_be.c 1.35 -> 1.36
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/09/13 [email protected] 1.662
# Fix max AGP memory for machines with discontiguous memory.
# --------------------------------------------
#
drivers/char/agp/agpgart_be.c +1 -1
@@ -4517,7 +4497,7 @@ {long memory, index, result; - memory =virt_to_phys (high_memory) >>20 ; + memory = (num_physpages <<PAGE_SHIFT ) >>20 ; index =1 ; while ((memory > maxes_table[index].mem) &&