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-devel

Re: [Xen-devel] Problems with DMA in xen0

To: Matthias Hofherr <matthias_hofherr@xxxxxxxx>
Subject: Re: [Xen-devel] Problems with DMA in xen0
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 21 Oct 2004 09:58:42 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 21 Oct 2004 10:10:03 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Thu, 21 Oct 2004 10:10:39 +0200." <200410211010.39416.matthias_hofherr@xxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
This is almost certainly a build misconfiguration, such that the
kernel doesn't really know about your chipset, or some generic disk
DMA option is disabled in you XenLinux config.

 -- Keir

> Hi list,
> 
> I'm doing currently some tests with xen in order to migrate a development 
> environment from User Mode Linux to Xen. So far, Xen looks very promising.
> My only problem currently is that my xen0 kernel seems no to be able to use 
> DMA modes for hard disk access.
> 
> With the xen0 kernel (2.6.8.1), hdparm shows me
>   hdparm -t /dev/hda
>   /dev/hda:
>   Timing buffered disk reads:   10 MB in  3.08 seconds =   3.25 MB/sec
> When I boot with a standard non-Xen kernel (2.6.7), I get about 52 MB/sec.
> In both kernels support for my Intel boad Chipset () is enabled.
> When I try to set DMA with hdparm manually:
>  hdparm -u1 -d1 -X66 -m 16 -c 3 -W 1 /dev/hda
> /dev/hda:
>  setting 32-bit IO_support flag to 3
>  setting multcount to 16
>  setting unmaskirq to 1 (on)
>  setting using_dma to 1 (on)
>  HDIO_SET_DMA failed: Operation not permitted
>  setting xfermode to 66 (UltraDMA mode2)
>  setting drive write-caching to 1 (on)
>  multcount    = 16 (on)
>  IO_support   =  3 (32-bit w/sync)
>  unmaskirq    =  1 (on)
>  using_dma    =  0 (off)
> 
> I'm using the nightly snapshot tarball xen-unstable from yesterday. 
> Any ideas what's the problem ?
> 
> Regards,
> 
> Matthias Hofherr
> 
> -- 
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>  Matthias Hofherr             EMail: Matthias_Hofherr@xxxxxxxx
>  GeNUA Gesellschaft fuer Netzwerk- und Unix-Administration mbH
>  Domagkstraße 7, D-85551 Kirchheim     Tel.+49 (89) 99 19 50-0
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel
 -=- MIME -=- 
Hi list,

I'm doing currently some tests with xen in order to migrate a development=20
environment from User Mode Linux to Xen. So far, Xen looks very promising.
My only problem currently is that my xen0 kernel seems no to be able to use=
=20
DMA modes for hard disk access.

With the xen0 kernel (2.6.8.1), hdparm shows me
  hdparm -t /dev/hda
  /dev/hda:
  Timing buffered disk reads:   10 MB in  3.08 seconds =3D   3.25 MB/sec
When I boot with a standard non-Xen kernel (2.6.7), I get about 52 MB/sec.
In both kernels support for my Intel boad Chipset () is enabled.
When I try to set DMA with hdparm manually:
 hdparm -u1 -d1 -X66 -m 16 -c 3 -W 1 /dev/hda
/dev/hda:
 setting 32-bit IO_support flag to 3
 setting multcount to 16
 setting unmaskirq to 1 (on)
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 setting xfermode to 66 (UltraDMA mode2)
 setting drive write-caching to 1 (on)
 multcount    =3D 16 (on)
 IO_support   =3D  3 (32-bit w/sync)
 unmaskirq    =3D  1 (on)
 using_dma    =3D  0 (off)

I'm using the nightly snapshot tarball xen-unstable from yesterday.=20
Any ideas what's the problem ?

Regards,

Matthias Hofherr

=2D-=20
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 Matthias Hofherr             EMail: Matthias_Hofherr@xxxxxxxx
 GeNUA Gesellschaft fuer Netzwerk- und Unix-Administration mbH
 Domagkstra=DFe 7, D-85551 Kirchheim     Tel.+49 (89) 99 19 50-0
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<=20


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

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