Skip to contentSkip to conversation

ZONE_DMA and dm_create->init_emergency_isa_pool

uml-devel [email protected] 2 participants 3 messages Dec 3, 2006 – Dec 7, 2006 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

Hello,

When I want to create a device mapper table in user-mode-linux, I get

BUG: failure at mm/bounce.c:85/init_emergency_isa_pool()!

(full stack trace below)

I think this behaviour was introduced by:
[PATCH] uml: get rid of ZONE_DMA use

I got it to work by reversing the patch.

Greetings,

Rik.

Trace:

BUG: failure at mm/bounce.c:85/init_emergency_isa_pool()!
Kernel panic - not syncing: BUG!

EIP: 0073:[<401300c4>] CPU: 0 Not tainted ESP: 007b:bf433948 EFLAGS:
00000246

     Not tainted
     EAX: ffffffda EBX: 00000003 ECX: c134fd03 EDX: 08050408
     ESI: 400287c0 EDI: 40026180 EBP: bf433a98 DS: 007b ES: 007b
     0901bd78:  [<080686b0>] show_regs+0xb4/0xb9
     0901bda4:  [<0805a4c3>] panic_exit+0x25/0x3f
     0901bdb8:  [<0807b018>] notifier_call_chain+0x1d/0x3c
     0901bdd8:  [<0807b0a7>] atomic_notifier_call_chain+0x11/0x13
     0901bdec:  [<0806f96e>] panic+0x52/0xdd
     0901be0c:  [<0809b91b>] init_emergency_isa_pool+0x4b/0x5d
     0901be28:  [<080f3cbd>] blk_queue_bounce_limit+0x33/0x48
     0901be3c:  [<081106a5>] alloc_dev+0xf4/0x285
     0901be64:  [<081109c1>] dm_create+0xb/0x20
     0901be70:  [<08113205>] dev_create+0x3f/0x9b
     0901be90:  [<08114047>] ctl_ioctl+0xd7/0x10e
     0901beb8:  [<080ae385>] do_ioctl+0x45/0x5a
     0901bed8:  [<080ae717>] vfs_ioctl+0x1ec/0x209
     0901bf00:  [<080ae762>] sys_ioctl+0x2e/0x4c
     0901bf28:  [<0805ac46>] handle_syscall+0x86/0xa0
     0901bf74:  [<08065805>] handle_trap+0xbe/0xc7
     0901bf90:  [<08065bf3>] userspace+0x123/0x166
     0901bfdc:  [<0805a985>] fork_handler+0x74/0x7c
     0901bffc:  [<a55a5a5a>] 0xa55a5a5a
Signature · 11 lines
Nothing is ever a total loss; it can always serve as a bad example.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#1 lore raw
Quoted 11 lines · On Sunday 03 December 2006 22:06, [email protected] wrote:

Hello,

When I want to create a device mapper table in user-mode-linux, I get

BUG: failure at mm/bounce.c:85/init_emergency_isa_pool()!

(full stack trace below)

I think this behaviour was introduced by:
[PATCH] uml: get rid of ZONE_DMA use

I got it to work by reversing the patch.

Can you detail the used UML version? Thanks.

Quoted 32 lines

Greetings,

Rik.

Trace:

BUG: failure at mm/bounce.c:85/init_emergency_isa_pool()!
Kernel panic - not syncing: BUG!

EIP: 0073:[<401300c4>] CPU: 0 Not tainted ESP: 007b:bf433948 EFLAGS:
00000246

     Not tainted
     EAX: ffffffda EBX: 00000003 ECX: c134fd03 EDX: 08050408
     ESI: 400287c0 EDI: 40026180 EBP: bf433a98 DS: 007b ES: 007b
     0901bd78:  [<080686b0>] show_regs+0xb4/0xb9
     0901bda4:  [<0805a4c3>] panic_exit+0x25/0x3f
     0901bdb8:  [<0807b018>] notifier_call_chain+0x1d/0x3c
     0901bdd8:  [<0807b0a7>] atomic_notifier_call_chain+0x11/0x13
     0901bdec:  [<0806f96e>] panic+0x52/0xdd
     0901be0c:  [<0809b91b>] init_emergency_isa_pool+0x4b/0x5d
     0901be28:  [<080f3cbd>] blk_queue_bounce_limit+0x33/0x48
     0901be3c:  [<081106a5>] alloc_dev+0xf4/0x285
     0901be64:  [<081109c1>] dm_create+0xb/0x20
     0901be70:  [<08113205>] dev_create+0x3f/0x9b
     0901be90:  [<08114047>] ctl_ioctl+0xd7/0x10e
     0901beb8:  [<080ae385>] do_ioctl+0x45/0x5a
     0901bed8:  [<080ae717>] vfs_ioctl+0x1ec/0x209
     0901bf00:  [<080ae762>] sys_ioctl+0x2e/0x4c
     0901bf28:  [<0805ac46>] handle_syscall+0x86/0xa0
     0901bf74:  [<08065805>] handle_trap+0xbe/0xc7
     0901bf90:  [<08065bf3>] userspace+0x123/0x166
     0901bfdc:  [<0805a985>] fork_handler+0x74/0x7c
     0901bffc:  [<a55a5a5a>] 0xa55a5a5a
Signature · 16 lines
Inform me of my mistakes, so I can add them to my list!
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#2 lore raw

Hello,

Quoted 11 lines · Blaisorblade
Quoted 9 lines · On Sunday 03 December 2006 22:06, [email protected] wrote:

When I want to create a device mapper table in user-mode-linux, I get

BUG: failure at mm/bounce.c:85/init_emergency_isa_pool()!

(full stack trace below)

I think this behaviour was introduced by:
[PATCH] uml: get rid of ZONE_DMA use

I got it to work by reversing the patch.

Can you detail the used UML version? Thanks.

It happens, for example, with stock 2.6.19+"page.h compilation fix by Jeff".

Quoted 9 lines
Quoted 9 lines
     0901bd78:  [<080686b0>] show_regs+0xb4/0xb9
     0901bda4:  [<0805a4c3>] panic_exit+0x25/0x3f
     0901bdb8:  [<0807b018>] notifier_call_chain+0x1d/0x3c
     0901bdd8:  [<0807b0a7>] atomic_notifier_call_chain+0x11/0x13
     0901bdec:  [<0806f96e>] panic+0x52/0xdd
     0901be0c:  [<0809b91b>] init_emergency_isa_pool+0x4b/0x5d
     0901be28:  [<080f3cbd>] blk_queue_bounce_limit+0x33/0x48
     0901be3c:  [<081106a5>] alloc_dev+0xf4/0x285
     0901be64:  [<081109c1>] dm_create+0xb/0x20

The failing init_emergency_isa_pool is called from block/ll_rw_blk.c because it finds that the system has DMA. With the introduction of 'get rid of ZONE_DMA use' init_emergency_isa_pool started giving errors. The proper fix probably consists of convincing block/ll_rw_blk.c that it doesn't need DMA (<16MB) memory.

Greetings,

Rik.

Signature · 11 lines
Nothing is ever a total loss; it can always serve as a bad example.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel