commit | d30333bbabb4a2cfad1f1a45c48a4e4d0065c1f6 | [log] [tgz] |
---|---|---|
author | David Miller <davem@davemloft.net> | Sun Feb 15 01:08:07 2009 -0800 |
committer | Dave Airlie <airlied@redhat.com> | Fri Mar 13 14:24:03 2009 +1000 |
tree | b1e79697d2aa260a5e2aaa14465632aa3326d18b | |
parent | 6abf6bb0ff90bb77f9429bd0d90fc841c358daf3 [diff] |
drm: ati_pcigart: Fix limit check in drm_ati_pcigart_init(). The variable 'max_pages' is ambiguous. There are two concepts of "pages" being used in this function. First, we have ATI GART pages which are always 4096 bytes. Then, we have system pages which are of size PAGE_SIZE. Eliminate the confusion by creating max_ati_pages and max_real_pages. Calculate and use them as appropriate. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Dave Airlie <airlied@linux.ie>