From f6647e47c3678a13697a46ab9e6f22456c99a2c1 Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Mon, 11 Feb 2013 17:15:57 +0000 Subject: [PATCH] ioremap_cache Conflicts: drivers/tty/hvc/hvc_xen.c --- drivers/tty/hvc/hvc_xen.c | 3 ++- drivers/xen/grant-table.c | 6 ++++-- drivers/xen/xenbus/xenbus_probe.c | 5 ++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c index 6b8f97c3918dd..3859436d726f6 100644 --- a/drivers/tty/hvc/hvc_xen.c +++ b/drivers/tty/hvc/hvc_xen.c @@ -39,6 +39,7 @@ #include #include #include +#include #include "hvc_console.h" @@ -229,7 +230,7 @@ static int xen_hvm_console_init(void) return -ENODEV; } mfn = v; - info->intf = ioremap(mfn << PAGE_SHIFT, PAGE_SIZE); + info->intf = __arm_ioremap(mfn << PAGE_SHIFT, PAGE_SIZE, MT_MEMORY); if (info->intf == NULL) { kfree(info); return -ENODEV; diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index 56494b2918b24..931648b9ca95f 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c @@ -47,6 +47,8 @@ #include #include #include +#include +#include #include #include @@ -987,8 +989,8 @@ int gnttab_resume(void) return gnttab_map(0, nr_grant_frames - 1); if (gnttab_shared.addr == NULL) { - gnttab_shared.addr = ioremap(xen_hvm_resume_frames, - PAGE_SIZE * max_nr_gframes); + gnttab_shared.addr = __arm_ioremap(xen_hvm_resume_frames, + PAGE_SIZE * max_nr_gframes, MT_MEMORY); if (gnttab_shared.addr == NULL) { printk(KERN_WARNING "Failed to ioremap gnttab share frames!"); diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index c25772ce571e8..3ab35b9fb3d76 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c @@ -51,6 +51,8 @@ #include #include #include +#include +#include #include #include @@ -769,7 +771,8 @@ static int __init xenbus_init(void) goto out_error; xen_store_mfn = (unsigned long)v; xen_store_interface = - ioremap(xen_store_mfn << PAGE_SHIFT, PAGE_SIZE); + __arm_ioremap(xen_store_mfn << PAGE_SHIFT, PAGE_SIZE, MT_MEMORY); + printk("DEBUG %s %d mfn=%lx virt=%lx evtchn=%lu content=%lx\n",__func__,__LINE__,(unsigned long)xen_store_mfn,(unsigned long)xen_store_interface,(unsigned long)xen_store_evtchn,*((unsigned long*)xen_store_interface)); break; default: pr_warn("Xenstore state unknown\n"); -- 2.39.5