x86: Fix CPA memtype reserving in the set_pages_array*() cases
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 3 Aug 2009 07:25:45 +0000 (09:25 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 3 Aug 2009 17:36:09 +0000 (19:36 +0200)
commit8523acfe40efc1a8d3da8f473ca67cb195b06f0c
tree718817f1db5e19edf9c8d3df7d24581c11d27b60
parentbdc6340f4eb68295b1e7c0ade2356b56dca93d93
x86: Fix CPA memtype reserving in the set_pages_array*() cases

The code was incorrectly reserving memtypes using the page
virtual address instead of the physical address. Furthermore,
the code was not ignoring highmem pages as it ought to.

( upstream does not pass in highmem pages yet - but upcoming
  graphics code will do it and there's no reason to not handle
  this properly in the CPA APIs.)

Fixes: http://bugzilla.kernel.org/show_bug.cgi?id=13884

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: <stable@kernel.org>
Cc: dri-devel@lists.sourceforge.net
Cc: venkatesh.pallipadi@intel.com
LKML-Reference: <1249284345-7654-1-git-send-email-thellstrom@vmware.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c