diff options
author | venkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com> | 2008-03-18 20:00:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:20 -0400 |
commit | 6997ab4982a29925e79f72c3a59823cf944c3529 (patch) | |
tree | c46234aee452e7b47f315c8b87487e22f2ad4d3d /arch/x86/mm/ioremap.c | |
parent | b310f381d220b2c6e3fab16e8c6e4ca13eea75b2 (diff) |
x86: add PAT related debug prints
Adds debug prints at critical code. Adds enough info in dmesg to allow us to
do effective first round of analysis of any issues that may result due to PAT
patch series.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/ioremap.c')
-rw-r--r-- | arch/x86/mm/ioremap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index 51cd3956c564..6cd3418afe71 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c | |||
@@ -131,7 +131,7 @@ static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size, | |||
131 | return NULL; | 131 | return NULL; |
132 | 132 | ||
133 | if (!phys_addr_valid(phys_addr)) { | 133 | if (!phys_addr_valid(phys_addr)) { |
134 | printk(KERN_WARNING "ioremap: invalid physical address %lx\n", | 134 | printk(KERN_WARNING "ioremap: invalid physical address %llx\n", |
135 | phys_addr); | 135 | phys_addr); |
136 | WARN_ON_ONCE(1); | 136 | WARN_ON_ONCE(1); |
137 | return NULL; | 137 | return NULL; |
@@ -177,6 +177,10 @@ static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size, | |||
177 | new_prot_val == _PAGE_CACHE_WC)) || | 177 | new_prot_val == _PAGE_CACHE_WC)) || |
178 | (prot_val == _PAGE_CACHE_WC && | 178 | (prot_val == _PAGE_CACHE_WC && |
179 | new_prot_val == _PAGE_CACHE_WB)) { | 179 | new_prot_val == _PAGE_CACHE_WB)) { |
180 | printk( | ||
181 | "ioremap error for 0x%llx-0x%llx, requested 0x%lx, got 0x%lx\n", | ||
182 | phys_addr, phys_addr + size, | ||
183 | prot_val, new_prot_val); | ||
180 | free_memtype(phys_addr, phys_addr + size); | 184 | free_memtype(phys_addr, phys_addr + size); |
181 | return NULL; | 185 | return NULL; |
182 | } | 186 | } |