]> git.baikalelectronics.ru Git - kernel.git/commit
drm: ati_pcigart: Fix limit check in drm_ati_pcigart_init().
authorDavid Miller <davem@davemloft.net>
Sun, 15 Feb 2009 09:08:07 +0000 (01:08 -0800)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Mar 2009 04:24:03 +0000 (14:24 +1000)
commit9327886cef2f0106e19be195b2b253c4047ea012
treeb1e79697d2aa260a5e2aaa14465632aa3326d18b
parent1327759b7229f7471dd0bebf7af07d22fa6f8891
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>
drivers/gpu/drm/ati_pcigart.c