diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-01 06:32:08 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-01 06:47:49 -0500 |
commit | f5c1aa1537be39d8b9bb5279b5881d81898fd3cd (patch) | |
tree | 6c7fbfb902aaff55a8893c41e54145ef58d6dddc /include | |
parent | ecc25fbd6b9e07b33895c61ddf84006b00f55d99 (diff) |
Revert "gpu/drm, x86, PAT: PAT support for io_mapping_*"
This reverts commit 17581ad812a9abb0182260374ef2e52d4a808a64.
Sitsofe Wheeler reported that /dev/dri/card0 is MIA on his EeePC 900
and bisected it to this commit.
Graphics card is an i915 in an EeePC 900:
00:02.0 VGA compatible controller [0300]:
Intel Corporation Mobile 915GM/GMS/910GML
Express Graphics Controller [8086:2592] (rev 04)
( Most likely the ioremap() of the driver failed and hence the card
did not initialize. )
Reported-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Bisected-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/io-mapping.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/io-mapping.h b/include/linux/io-mapping.h index f1ed66c43787..cbc2f0cd631b 100644 --- a/include/linux/io-mapping.h +++ b/include/linux/io-mapping.h | |||
@@ -49,9 +49,8 @@ static inline struct io_mapping * | |||
49 | io_mapping_create_wc(resource_size_t base, unsigned long size) | 49 | io_mapping_create_wc(resource_size_t base, unsigned long size) |
50 | { | 50 | { |
51 | struct io_mapping *iomap; | 51 | struct io_mapping *iomap; |
52 | pgprot_t prot; | ||
53 | 52 | ||
54 | if (!reserve_io_memtype_wc(base, size, &prot)) | 53 | if (!is_io_mapping_possible(base, size)) |
55 | return NULL; | 54 | return NULL; |
56 | 55 | ||
57 | iomap = kmalloc(sizeof(*iomap), GFP_KERNEL); | 56 | iomap = kmalloc(sizeof(*iomap), GFP_KERNEL); |
@@ -60,14 +59,13 @@ io_mapping_create_wc(resource_size_t base, unsigned long size) | |||
60 | 59 | ||
61 | iomap->base = base; | 60 | iomap->base = base; |
62 | iomap->size = size; | 61 | iomap->size = size; |
63 | iomap->prot = prot; | 62 | iomap->prot = pgprot_writecombine(__pgprot(__PAGE_KERNEL)); |
64 | return iomap; | 63 | return iomap; |
65 | } | 64 | } |
66 | 65 | ||
67 | static inline void | 66 | static inline void |
68 | io_mapping_free(struct io_mapping *mapping) | 67 | io_mapping_free(struct io_mapping *mapping) |
69 | { | 68 | { |
70 | free_io_memtype(mapping->base, mapping->size); | ||
71 | kfree(mapping); | 69 | kfree(mapping); |
72 | } | 70 | } |
73 | 71 | ||