WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] [Patch] cleanup warning of UC|WB attribute page

To: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [Patch] cleanup warning of UC|WB attribute page
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Sun, 6 May 2007 12:59:11 +0900
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 05 May 2007 20:57:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <65C78F86DA4D13takebe_akio@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <65C78F86DA4D13takebe_akio@xxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
Hi Akio. 
some small comments.


On Sun, May 06, 2007 at 11:32:55AM +0900, Akio Takebe wrote:
> diff -r 63263d715d43 xen/arch/ia64/xen/mm.c
> --- a/xen/arch/ia64/xen/mm.c  Thu May 03 14:38:26 2007 -0600
> +++ b/xen/arch/ia64/xen/mm.c  Sun May 06 12:55:52 2007 +0900
> @@ -493,6 +493,8 @@ u64 translate_domain_pte(u64 pteval, u64
>                          port space.  Also prevents possible address
>                          aliasing issues.  */
>                       if (!(mpaddr - IO_PORTS_PADDR < IO_PORTS_SIZE))
> +                     /* and also except UC|WB page */
> +                     if (!efi_ucwb(mpaddr, PAGE_SIZE)) 
>                               gdprintk(XENLOG_WARNING, "Warning: UC to WB "
>                                        "for mpaddr=%lx\n", mpaddr);
>                       pteval = (pteval & ~_PAGE_MA_MASK) | _PAGE_MA_WB;

Probably you want something like
                        if (!(mpaddr - IO_PORTS_PADDR < IO_PORTS_SIZE) &&
                            /* and also except UC|WB page */
                            (d != dom0 || !efi_ucwb(mpaddr, PAGE_SIZE)))


> diff -r 63263d715d43 xen/include/asm-ia64/mm.h
> --- a/xen/include/asm-ia64/mm.h       Thu May 03 14:38:26 2007 -0600
> +++ b/xen/include/asm-ia64/mm.h       Sun May 06 12:55:52 2007 +0900
> @@ -431,6 +431,7 @@ extern unsigned long assign_domain_mmio_
>  extern unsigned long assign_domain_mmio_page(struct domain *d, unsigned long 
> mpaddr, unsigned long phys_addr, unsigned long size, unsigned long flags);
>  extern unsigned long assign_domain_mach_page(struct domain *d, unsigned long 
> mpaddr, unsigned long size, unsigned long flags);
>  int domain_page_mapped(struct domain *d, unsigned long mpaddr);
> +int efi_ucwb(unsigned long physaddr, unsigned long size);
>  int efi_mmio(unsigned long physaddr, unsigned long size);
>  extern unsigned long ____lookup_domain_mpa(struct domain *d, unsigned long 
> mpaddr);
>  extern unsigned long do_dom0vp_op(unsigned long cmd, unsigned long arg0, 
> unsigned long arg1, unsigned long arg2, unsigned long arg3);

efi_ucwb() is defined and used in only mm.c so that
it can be declared as static function.

-- 
yamahata

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel