From: "KUWAMURA Shin'ya" Subject: [PATCH] pv-on-hvm: Correct the order of the argument of out*() Date: Thu, 28 Jan 2010 15:30:58 +0900 (JST) Message-ID: <20100128.153058.235660875.kuwa@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Jan_28_15_30_58_2010_897)--" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Thu_Jan_28_15_30_58_2010_897)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, The order of the argument of outl() is wrong in platform-pci.c. The correct order is outl(value, port). This causes kernel panic. And outw() is also similar. Signed-off-by: KUWAMURA Shin'ya -- KUWAMURA Shin'ya ----Next_Part(Thu_Jan_28_15_30_58_2010_897)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-pv-on-hvm-out.patch" # HG changeset patch # User KUWAMURA Shin'ya # Date 1264659597 -32400 # Node ID 36f6f2647701484325b3cfefaced8a1213ae5cd2 # Parent 2636e561970898517def148c19e04581b12dc860 pv-on-hvm: Correct the order of the argument of out*() The order of the argument of outl() is wrong. The correct order is outl(value, port). This causes kernel panic. And outw() is also similar. Signed-off-by: KUWAMURA Shin'ya diff -r 2636e5619708 -r 36f6f2647701 unmodified_drivers/linux-2.6/platform-pci/platform-pci.c --- a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c Tue Jan 26 15:54:40 2010 +0000 +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c Thu Jan 28 15:19:57 2010 +0900 @@ -324,15 +324,15 @@ static int check_platform_magic(struct d switch (protocol) { case 1: - outw(XEN_IOPORT_PRODNUM, XEN_IOPORT_LINUX_PRODNUM); - outl(XEN_IOPORT_DRVVER, XEN_IOPORT_LINUX_DRVVER); + outw(XEN_IOPORT_LINUX_PRODNUM, XEN_IOPORT_PRODNUM); + outl(XEN_IOPORT_LINUX_DRVVER, XEN_IOPORT_DRVVER); if (inw(XEN_IOPORT_MAGIC) != XEN_IOPORT_MAGIC_VAL) { dev_err(dev, "blacklisted by host\n"); return -ENODEV; } /* Fall through */ case 0: - outw(XEN_IOPORT_UNPLUG, 0xf); + outw(0xf, XEN_IOPORT_UNPLUG); break; default: err = "unknown I/O protocol version"; ----Next_Part(Thu_Jan_28_15_30_58_2010_897)-- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ----Next_Part(Thu_Jan_28_15_30_58_2010_897)----