]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: fix /dev/mem compatibility under PAT
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Thu, 10 Jul 2008 08:09:59 +0000 (10:09 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 10 Jul 2008 08:09:59 +0000 (10:09 +0200)
commita361ee5cb8011763ece7b4add393e206439db8b3
treeedcde856f84bd4ac87ca381db3c61af9564a5e12
parenta1716d508abf77e4bd02c275ab9293b9866929f3
x86: fix /dev/mem compatibility under PAT

Add ioremap_default(), which gives a sane mapping without worrying about
type conflicts.

Use it in /dev/mem read in place of ioremap(), as with ioremap(),
any mapping of the region (other than UC_MINUS) will cause a conflict
and failure of /dev/mem read.

Should address the vbetest failure reported at:

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

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/ioremap.c