All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][VT] Enable multi-word DMA mode 2 for the PIIX3 chipset
@ 2005-08-15 21:45 Arun Sharma
  0 siblings, 0 replies; 4+ messages in thread
From: Arun Sharma @ 2005-08-15 21:45 UTC (permalink / raw)
  To: Ian Pratt, Keir Fraser; +Cc: xen-devel

Enable multi-word DMA mode 2 for the PIIX3 chipset

Without this patch, Linux PIIX3 driver would see ultra DMA and get confused
and ended up disabling DMA.

With the patch, we're able to see 3x increase in disk read throughput.

Signed-off-by: Winston Wang <winston.l.wang@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>

diff -r 29aab159846c -r b5196e075602 tools/ioemu/hw/ide.c
--- a/tools/ioemu/hw/ide.c	Mon Aug 15 18:32:29 2005
+++ b/tools/ioemu/hw/ide.c	Mon Aug 15 20:28:07 2005
@@ -430,6 +430,7 @@
         put_le16(p + 59, 0x100 | s->mult_sectors);
     put_le16(p + 60, s->nb_sectors);
     put_le16(p + 61, s->nb_sectors >> 16);
+    put_le16(p + 63, 0x07);
     put_le16(p + 80, (1 << 1) | (1 << 2));
     put_le16(p + 82, (1 << 14));
     put_le16(p + 83, (1 << 14));
@@ -460,7 +461,7 @@
     put_le16(p + 48, 1); /* dword I/O (XXX: should not be set on CDROM) */
     put_le16(p + 49, 1 << 9); /* LBA supported, no DMA */
     put_le16(p + 53, 3); /* words 64-70, 54-58 valid */
-    put_le16(p + 63, 0x103); /* DMA modes XXX: may be incorrect */
+    put_le16(p + 63, 0x07); /* Multi-word DMA mode 2 */ 
     put_le16(p + 64, 1); /* PIO modes */
     put_le16(p + 65, 0xb4); /* minimum DMA multiword tx cycle time */
     put_le16(p + 66, 0xb4); /* recommended DMA multiword tx cycle time */

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH][VT] Enable multi-word DMA mode 2 for the PIIX3 chipset
@ 2005-10-05 20:51 Wang, Winston L
  2005-10-05 22:11 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Wang, Winston L @ 2005-10-05 20:51 UTC (permalink / raw)
  To: Ian Pratt, Keir Fraser; +Cc: xen-devel

Clear device_model_pid when vmx guest shutdown failed.
Without the patch, Installation of guest os Windows XP,Windows 2003 will
be failed and also can not shut down vmx guest os correctly.

Signed-off-by: Winston Wang <winston.l.wang@intel.com>

--- tools/python/xen/xend/XendDomainInfo.py.org 2005-10-05
13:45:16.034679872 -0700
+++ tools/python/xen/xend/XendDomainInfo.py     2005-10-05
13:46:52.309043944 -0700
@@ -1089,6 +1089,7 @@

         if self.image:
             try:
+               self.device_model_pid = 0
                 self.image.destroy()
             except:
                 log.exception(

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH][VT] Enable multi-word DMA mode 2 for the PIIX3 chipset
  2005-10-05 20:51 Wang, Winston L
@ 2005-10-05 22:11 ` Keir Fraser
  0 siblings, 0 replies; 4+ messages in thread
From: Keir Fraser @ 2005-10-05 22:11 UTC (permalink / raw)
  To: Wang, Winston L; +Cc: xen-devel, Ian Pratt


On 5 Oct 2005, at 21:51, Wang, Winston L wrote:

> Clear device_model_pid when vmx guest shutdown failed.
> Without the patch, Installation of guest os Windows XP,Windows 2003 
> will
> be failed and also can not shut down vmx guest os correctly.

I don't see that variable referenced anywhere in the python tools!

And the email subject line in no way matches the patch.

  -- Keir

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH][VT] Enable multi-word DMA mode 2 for the PIIX3 chipset
@ 2005-10-05 23:05 Wang, Winston L
  0 siblings, 0 replies; 4+ messages in thread
From: Wang, Winston L @ 2005-10-05 23:05 UTC (permalink / raw)
  To: Wang, Winston L, Ian Pratt, Keir Fraser; +Cc: xen-devel

Sorry, please discard it for now and I need retest the againest the
latest code,
Thanks,
Wang, Winston L wrote:
> Clear device_model_pid when vmx guest shutdown failed.
> Without the patch, Installation of guest os Windows XP,Windows 2003
> will be failed and also can not shut down vmx guest os correctly. 
> 
> Signed-off-by: Winston Wang <winston.l.wang@intel.com>
> 
> --- tools/python/xen/xend/XendDomainInfo.py.org 2005-10-05
> 13:45:16.034679872 -0700 +++ tools/python/xen/xend/XendDomainInfo.py 
> 2005-10-05 13:46:52.309043944 -0700 @@ -1089,6 +1089,7 @@
> 
>          if self.image:
>              try:
> +               self.device_model_pid = 0
>                  self.image.destroy()
>              except:
>                  log.exception(

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-05 23:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-15 21:45 [PATCH][VT] Enable multi-word DMA mode 2 for the PIIX3 chipset Arun Sharma
  -- strict thread matches above, loose matches on Subject: below --
2005-10-05 20:51 Wang, Winston L
2005-10-05 22:11 ` Keir Fraser
2005-10-05 23:05 Wang, Winston L

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.