All of lore.kernel.org
 help / color / mirror / Atom feed
* SWIOTLB allocation failed
@ 2007-11-27 13:53 Lukas Hejtmanek
  2007-11-27 14:03 ` pradeep singh rautela
  2007-11-28  3:32 ` Keir Fraser
  0 siblings, 2 replies; 8+ messages in thread
From: Lukas Hejtmanek @ 2007-11-27 13:53 UTC (permalink / raw)
  To: xen-devel

Hello,

I'm using Xen 3.1 with kernel 2.6.18. If I use swiotlb=force option to boot
domU, I got the following message:
xm create -c skirit60-1
Using config file "/etc/xen/skirit60-1".
Started domain skirit60-1
                         Bootdata ok (command line is root=/dev/sda1 ro
ip=147.251.11.44:1.2.3.4:147.251.11.1:255.255.255.128:skirit60-1:eth0:off
magrathea=eth1:10.0.0.1:10.0.0.101: swiotlb=force)
Linux version 2.6.18-xen31-smp (root@skirit60) (gcc version 4.0.2 20050901
(prerelease) (SUSE Linux)) #19 SMP Tue Jul 10 01:06:20 CEST 2007
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 000000009cc00000 (usable)
No mptable found.
Built 1 zonelists.  Total pages: 642048
Kernel command line: root=/dev/sda1 ro
ip=147.251.11.44:1.2.3.4:147.251.11.1:255.255.255.128:skirit60-1:eth0:off
magrathea=eth1:10.0.0.1:10.0.0.101: swiotlb=force
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Xen reported: 2992.500 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Kernel panic - not syncing: No suitable physical memory available for SWIOTLB
buffer!
Use dom0_mem Xen boot parameter to reserve
some DMA memory (e.g., dom0_mem=-128M).


is there something I could do to improve domU? Dom0 has only 256MB RAM, system
has 4GB RAM total. (DomU is assigned 2.5GB RAM.)

-- 
Lukáš Hejtmánek

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

* Re: SWIOTLB allocation failed
  2007-11-27 13:53 SWIOTLB allocation failed Lukas Hejtmanek
@ 2007-11-27 14:03 ` pradeep singh rautela
  2007-11-27 23:34   ` Lukas Hejtmanek
  2007-12-04 14:26   ` Lukas Hejtmanek
  2007-11-28  3:32 ` Keir Fraser
  1 sibling, 2 replies; 8+ messages in thread
From: pradeep singh rautela @ 2007-11-27 14:03 UTC (permalink / raw)
  To: Lukas Hejtmanek; +Cc: xen-devel

[-- Attachment #1: Type: text/plain, Size: 1976 bytes --]

On Nov 27, 2007 7:23 PM, Lukas Hejtmanek <xhejtman@ics.muni.cz> wrote:
> Hello,
>
> I'm using Xen 3.1 with kernel 2.6.18. If I use swiotlb=force option to boot

Did you try using swiotlb=XYZ to solve your problem? XYZ is the amount
of the memory for swiotlb.
Did you get the same crash?

Thanks
> domU, I got the following message:
> xm create -c skirit60-1
> Using config file "/etc/xen/skirit60-1".
> Started domain skirit60-1
>                          Bootdata ok (command line is root=/dev/sda1 ro
> ip=147.251.11.44:1.2.3.4:147.251.11.1:255.255.255.128:skirit60-1:eth0:off
> magrathea=eth1:10.0.0.1:10.0.0.101: swiotlb=force)
> Linux version 2.6.18-xen31-smp (root@skirit60) (gcc version 4.0.2 20050901
> (prerelease) (SUSE Linux)) #19 SMP Tue Jul 10 01:06:20 CEST 2007
> BIOS-provided physical RAM map:
>  Xen: 0000000000000000 - 000000009cc00000 (usable)
> No mptable found.
> Built 1 zonelists.  Total pages: 642048
> Kernel command line: root=/dev/sda1 ro
> ip=147.251.11.44:1.2.3.4:147.251.11.1:255.255.255.128:skirit60-1:eth0:off
> magrathea=eth1:10.0.0.1:10.0.0.101: swiotlb=force
> Initializing CPU#0
> PID hash table entries: 4096 (order: 12, 32768 bytes)
> Xen reported: 2992.500 MHz processor.
> Console: colour dummy device 80x25
> Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
> Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
> Kernel panic - not syncing: No suitable physical memory available for SWIOTLB
> buffer!
> Use dom0_mem Xen boot parameter to reserve
> some DMA memory (e.g., dom0_mem=-128M).
>
>
> is there something I could do to improve domU? Dom0 has only 256MB RAM, system
> has 4GB RAM total. (DomU is assigned 2.5GB RAM.)
>
> --
> Lukáš Hejtmánek
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>



-- 
--
pradeep singh rautela

"question = ( to ) ? be : ! be;"
                -- Wm. Shakespeare

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

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

* Re: SWIOTLB allocation failed
  2007-11-27 14:03 ` pradeep singh rautela
@ 2007-11-27 23:34   ` Lukas Hejtmanek
  2007-12-04 14:26   ` Lukas Hejtmanek
  1 sibling, 0 replies; 8+ messages in thread
From: Lukas Hejtmanek @ 2007-11-27 23:34 UTC (permalink / raw)
  To: pradeep singh rautela; +Cc: xen-devel

On Tue, Nov 27, 2007 at 07:33:40PM +0530, pradeep singh rautela wrote:
> On Nov 27, 2007 7:23 PM, Lukas Hejtmanek <xhejtman@ics.muni.cz> wrote:
> > Hello,
> >
> > I'm using Xen 3.1 with kernel 2.6.18. If I use swiotlb=force option to boot
> 
> Did you try using swiotlb=XYZ to solve your problem? XYZ is the amount
> of the memory for swiotlb.
> Did you get the same crash?

if I use swiotlb=32000000 I got fatal DMA error and recommendation to use
swiotlb=force caused by mthca driver.

Fatal DMA error! Please use 'swiotlb=force'
----------- [cut here ] --------- [please bite here ] ---------


-- 
Lukáš Hejtmánek

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

* Re: SWIOTLB allocation failed
  2007-11-27 13:53 SWIOTLB allocation failed Lukas Hejtmanek
  2007-11-27 14:03 ` pradeep singh rautela
@ 2007-11-28  3:32 ` Keir Fraser
  2007-11-28  9:47   ` Lukas Hejtmanek
  1 sibling, 1 reply; 8+ messages in thread
From: Keir Fraser @ 2007-11-28  3:32 UTC (permalink / raw)
  To: Lukas Hejtmanek, xen-devel

Have you assigned any physical devices to this domU? If not then it is not
allowed to request contiguous multi-page allocations, and this will cause
swiotlb initialisation to fail (and hence panic the kernel). If you do not
assign any physical devices to the domU then there is no point in it having
a swiotlb anyway.

 -- Keir

On 27/11/07 13:53, "Lukas Hejtmanek" <xhejtman@ics.muni.cz> wrote:

> Hello,
> 
> I'm using Xen 3.1 with kernel 2.6.18. If I use swiotlb=force option to boot
> domU, I got the following message:
> xm create -c skirit60-1
> Using config file "/etc/xen/skirit60-1".
> Started domain skirit60-1
>                          Bootdata ok (command line is root=/dev/sda1 ro
> ip=147.251.11.44:1.2.3.4:147.251.11.1:255.255.255.128:skirit60-1:eth0:off
> magrathea=eth1:10.0.0.1:10.0.0.101: swiotlb=force)
> Linux version 2.6.18-xen31-smp (root@skirit60) (gcc version 4.0.2 20050901
> (prerelease) (SUSE Linux)) #19 SMP Tue Jul 10 01:06:20 CEST 2007
> BIOS-provided physical RAM map:
>  Xen: 0000000000000000 - 000000009cc00000 (usable)
> No mptable found.
> Built 1 zonelists.  Total pages: 642048
> Kernel command line: root=/dev/sda1 ro
> ip=147.251.11.44:1.2.3.4:147.251.11.1:255.255.255.128:skirit60-1:eth0:off
> magrathea=eth1:10.0.0.1:10.0.0.101: swiotlb=force
> Initializing CPU#0
> PID hash table entries: 4096 (order: 12, 32768 bytes)
> Xen reported: 2992.500 MHz processor.
> Console: colour dummy device 80x25
> Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
> Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
> Kernel panic - not syncing: No suitable physical memory available for SWIOTLB
> buffer!
> Use dom0_mem Xen boot parameter to reserve
> some DMA memory (e.g., dom0_mem=-128M).
> 
> 
> is there something I could do to improve domU? Dom0 has only 256MB RAM, system
> has 4GB RAM total. (DomU is assigned 2.5GB RAM.)

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

* Re: SWIOTLB allocation failed
  2007-11-28  3:32 ` Keir Fraser
@ 2007-11-28  9:47   ` Lukas Hejtmanek
  0 siblings, 0 replies; 8+ messages in thread
From: Lukas Hejtmanek @ 2007-11-28  9:47 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

On Wed, Nov 28, 2007 at 03:32:45AM +0000, Keir Fraser wrote:
> Have you assigned any physical devices to this domU? If not then it is not
> allowed to request contiguous multi-page allocations, and this will cause
> swiotlb initialisation to fail (and hence panic the kernel). If you do not
> assign any physical devices to the domU then there is no point in it having
> a swiotlb anyway.

I do have a physical device - Mellanox Infiniband card. 

But it's my fault, DMA fatal error is caused by ipoib (IP over Infiniband)
module that uses incorrectly dma_sync_single on areas not mapped by
dma_map_single.

-- 
Lukáš Hejtmánek

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

* Re: SWIOTLB allocation failed
  2007-11-27 14:03 ` pradeep singh rautela
  2007-11-27 23:34   ` Lukas Hejtmanek
@ 2007-12-04 14:26   ` Lukas Hejtmanek
  2007-12-04 14:53     ` Christopher S. Aker
  1 sibling, 1 reply; 8+ messages in thread
From: Lukas Hejtmanek @ 2007-12-04 14:26 UTC (permalink / raw)
  To: pradeep singh rautela; +Cc: xen-devel

On Tue, Nov 27, 2007 at 07:33:40PM +0530, pradeep singh rautela wrote:
> Did you try using swiotlb=XYZ to solve your problem? XYZ is the amount
> of the memory for swiotlb.
> Did you get the same crash?

I noticed that using swiotlb=30000000 probably does not work at all as I got
the following:
[  189.436069] Kernel command line: root=/dev/sda1 ro
ip=147.251.11.44:1.2.3.4:147.251.11.1:255.255.255.128:skirit60-1:eth0:off
magrathea=eth1:10.0.0.1:10.0.0.101: swiotlb=30000000 xencons=tty
[  189.436416] Initializing CPU#0
[  189.436656] PID hash table entries: 4096 (order: 12, 32768 bytes)
[  189.436695] Xen reported: 2992.498 MHz processor.
[  189.436721] Console: colour dummy device 80x25
[  189.438468] Dentry cache hash table entries: 524288 (order: 10, 4194304
bytes)
[  189.440459] Inode-cache hash table entries: 262144 (order: 9, 2097152
bytes)
[  189.440825] Software IO TLB disabled

-- 
Lukáš Hejtmánek

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

* Re: SWIOTLB allocation failed
  2007-12-04 14:26   ` Lukas Hejtmanek
@ 2007-12-04 14:53     ` Christopher S. Aker
  2007-12-04 15:00       ` Lukas Hejtmanek
  0 siblings, 1 reply; 8+ messages in thread
From: Christopher S. Aker @ 2007-12-04 14:53 UTC (permalink / raw)
  To: Lukas Hejtmanek; +Cc: xen-devel

Lukas Hejtmanek wrote:
> On Tue, Nov 27, 2007 at 07:33:40PM +0530, pradeep singh rautela wrote:
>> Did you try using swiotlb=XYZ to solve your problem? XYZ is the amount
>> of the memory for swiotlb.
>> Did you get the same crash?
> 
> I noticed that using swiotlb=30000000 probably does not work at all as I got
> the following:

That would attempt to assign 30 million 128k pages, or roughly 3.5 TB of 
memory towards the bounce buffer.  I don't think you want that.

swiotlb defaults to 32 or 64 (I forget) -- try bumping it to 128 or 256.

-Chris

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

* Re: SWIOTLB allocation failed
  2007-12-04 14:53     ` Christopher S. Aker
@ 2007-12-04 15:00       ` Lukas Hejtmanek
  0 siblings, 0 replies; 8+ messages in thread
From: Lukas Hejtmanek @ 2007-12-04 15:00 UTC (permalink / raw)
  To: Christopher S. Aker; +Cc: xen-devel

On Tue, Dec 04, 2007 at 09:53:53AM -0500, Christopher S. Aker wrote:
> That would attempt to assign 30 million 128k pages, or roughly 3.5 TB of 
> memory towards the bounce buffer.  I don't think you want that.
>
> swiotlb defaults to 32 or 64 (I forget) -- try bumping it to 128 or 256.

OK, but it still reports disabled:
[  162.852041] Kernel command line: root=/dev/sda1 ro ip=147.251.11.44:1.2.3.4:147.251.11.1:255.255.255.128:skirit60-1:eth0:off magrathea=eth1:10.0.0.1:10.0.0.101: swiotlb=256 xencons=tty
[  162.852392] Initializing CPU#0
[  162.852632] PID hash table entries: 4096 (order: 12, 32768 bytes)
[  162.852672] Xen reported: 2992.498 MHz processor.
[  162.852697] Console: colour dummy device 80x25
[  162.854447] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[  162.856471] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[  162.856816] Software IO TLB disabled

-- 
Lukáš Hejtmánek

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

end of thread, other threads:[~2007-12-04 15:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-27 13:53 SWIOTLB allocation failed Lukas Hejtmanek
2007-11-27 14:03 ` pradeep singh rautela
2007-11-27 23:34   ` Lukas Hejtmanek
2007-12-04 14:26   ` Lukas Hejtmanek
2007-12-04 14:53     ` Christopher S. Aker
2007-12-04 15:00       ` Lukas Hejtmanek
2007-11-28  3:32 ` Keir Fraser
2007-11-28  9:47   ` Lukas Hejtmanek

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.