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

[Xen-ia64-devel] [PATCH][GFW] Fix typo in SalProc

To: Tristan Gingold <tgingold@xxxxxxx>
Subject: [Xen-ia64-devel] [PATCH][GFW] Fix typo in SalProc
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Mon, 05 Nov 2007 11:43:09 -0700
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 05 Nov 2007 10:43:52 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Organization: OSLO R&D
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
   We're passing the width in place of the data for 1 byte PCI config
writes.  This shows up when the guest OS tries to write registers such
as the cache line size register.  With newer upstream Linux kernels,
this makes the rtl8139 non-functional as it tries to set a 128 byte
cache line size and fails.

   BTW, now that I understand a little better how PCI config operations
work in the GFW, I think my previous change to include 0xcfc/cf8 in the
_CRS method output is probably wrong.  Seems like we need to hide those
from the OS since they do have special meaning for qemu.  I'll send a
patch.  Thanks,

        Alex


Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
--

diff -r c238cddcd25b edk2-sparse/EdkXenPkg/Dxe/XenSal/Sal.c
--- a/edk2-sparse/EdkXenPkg/Dxe/XenSal/Sal.c    Wed Oct 24 02:50:08 2007 +0200
+++ b/edk2-sparse/EdkXenPkg/Dxe/XenSal/Sal.c    Mon Nov 05 11:22:31 2007 -0700
@@ -38,7 +38,7 @@ SalProc
   } else if (FunctionId == EFI_SAL_PCI_CONFIG_WRITE) {
     IoWrite32(0xcf8, BUILD_CMD(Arg2));
     if (Arg3 == 1)                           /* Writing byte  */
-      IoWrite8(0xCFC + ((REG_OFFSET(Arg2) & 3)), Arg3);
+      IoWrite8(0xCFC + ((REG_OFFSET(Arg2) & 3)), Arg4);
     else if (Arg3 == 2)                      /* Writing word  */
       IoWrite16(0xCFC + ((REG_OFFSET(Arg2) & 2)), Arg4);
     else                                    /* Writing dword */



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

<Prev in Thread] Current Thread [Next in Thread>