lkml.org 
[lkml]   [2003]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Crash when inserting a PCMCIA CF card
On Fri, Jul 25, 2003 at 06:58:25AM -0400, Matias Alejo Garcia wrote:
> Hi,
> When I insert a SanDisk o Ridata CompactFlash card to the PCMCIA adapter
> (this used to work OK in 2.4.20), the load of the module ide-cs dumps a
> Call Trace, then, if I eject the CF card, the system crash. (see below)
>
> Is there a patch for this? I am sure the problem is in ide-cs, others
> pcmcia cards are working OK.
>
> Thanks. Matias
> Logs:(starting when I load cardctl and ds/yenta_socket/pcmcia_core,
> the problem is at 6:33:13, when I insert the CF card)

This looks like some problem with either the partition handling code
or the IDE code - it looks like hdc1 was created or registered twice.

> ...
> Jul 25 06:33:16 runner kernel: hdc: 62720 sectors (32 MB) w/1KiB Cache, CHS=490/4/32
> Jul 25 06:33:16 runner kernel: hdc: hdc1
> Jul 25 06:33:17 runner kernel: hdc: hdc1
> Jul 25 06:33:17 runner kernel: kobject_register failed for hdc1 (-17)
> Jul 25 06:33:17 runner kernel: Call Trace:
> Jul 25 06:33:17 runner kernel: [<c01ee01a>] kobject_register+0x50/0x5a
> Jul 25 06:33:17 runner kernel: [<c018a5d2>] register_disk+0x136/0x13e
> Jul 25 06:33:17 runner kernel: [<c023a960>] add_disk+0x4e/0x5e
> Jul 25 06:33:17 runner kernel: [<c023a8ec>] exact_match+0x0/0x8
> Jul 25 06:33:17 runner kernel: [<c023a8f4>] exact_lock+0x0/0x1e
> Jul 25 06:33:17 runner kernel: [<c0255362>] idedisk_attach+0x12c/0x1ac
> Jul 25 06:33:17 runner kernel: [<c0250c76>] ata_attach+0x96/0x1b2
> Jul 25 06:33:17 runner kernel: [<c024a777>] ideprobe_init+0xdf/0xfb
> Jul 25 06:33:17 runner kernel: [<c024f201>] ide_probe_module+0xd/0x10
> Jul 25 06:33:17 runner kernel: [<c024feda>] ide_register_hw+0x154/0x186
> Jul 25 06:33:17 runner kernel: [<e0902260>] idecs_register+0x5e/0x70 [ide_cs]
> Jul 25 06:33:17 runner kernel: [<e093aace>] CardServices+0x208/0x351 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e09330b4>] set_cis_map+0x40/0x10c [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e090277e>] ide_config+0x50c/0x854 [ide_cs]
> Jul 25 06:33:17 runner kernel: [<e09332a1>] read_cis_mem+0x121/0x18c [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e09330b4>] set_cis_map+0x40/0x10c [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e09332a1>] read_cis_mem+0x121/0x18c [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e0933545>] read_cis_cache+0xdf/0x16a [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e0933e45>] pcmcia_get_tuple_data+0x91/0x96 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e0935065>] pcmcia_parse_tuple+0x109/0x16e [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e093516c>] read_tuple+0xa2/0xa4 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e08f27ba>] yenta_set_mem_map+0x1e0/0x232 [yenta_socket]
> Jul 25 06:33:17 runner kernel: [<e08f27ba>] yenta_set_mem_map+0x1e0/0x232 [yenta_socket]
> Jul 25 06:33:17 runner kernel: [<e0933d63>] pcmcia_get_next_tuple+0x231/0x282 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e09338b4>] pcmcia_get_first_tuple+0xa0/0x138 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<c022c559>] scrup+0x12f/0x13a
> Jul 25 06:33:17 runner kernel: [<e08f27ba>] yenta_set_mem_map+0x1e0/0x232 [yenta_socket]
> Jul 25 06:33:17 runner kernel: [<c0231398>] poke_blanked_console+0x5c/0x76
> Jul 25 06:33:17 runner kernel: [<c0230737>] vt_console_print+0x213/0x302
> Jul 25 06:33:17 runner kernel: [<e08f27ba>] yenta_set_mem_map+0x1e0/0x232 [yenta_socket]
> Jul 25 06:33:17 runner kernel: [<e09330b4>] set_cis_map+0x40/0x10c [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e09332a1>] read_cis_mem+0x121/0x18c [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e09332a1>] read_cis_mem+0x121/0x18c [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e0933545>] read_cis_cache+0xdf/0x16a [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e0933e45>] pcmcia_get_tuple_data+0x91/0x96 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e0935065>] pcmcia_parse_tuple+0x109/0x16e [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e093516c>] read_tuple+0xa2/0xa4 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e08f27ba>] yenta_set_mem_map+0x1e0/0x232 [yenta_socket]
> Jul 25 06:33:17 runner kernel: [<e08f27ba>] yenta_set_mem_map+0x1e0/0x232 [yenta_socket]
> Jul 25 06:33:17 runner kernel: [<e0933d63>] pcmcia_get_next_tuple+0x231/0x282 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e09338b4>] pcmcia_get_first_tuple+0xa0/0x138 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e0933545>] read_cis_cache+0xdf/0x16a [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e0933d63>] pcmcia_get_next_tuple+0x231/0x282 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e093528c>] pcmcia_validate_cis+0x11e/0x1ea [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<c0159fc3>] wake_up_buffer+0xf/0x26
> Jul 25 06:33:17 runner kernel: [<c019f1cb>] do_get_write_access+0x2cb/0x5e8
> Jul 25 06:33:17 runner kernel: [<e0902c55>] ide_event+0x67/0xea [ide_cs]
> Jul 25 06:33:17 runner kernel: [<e0939676>] pcmcia_register_client+0x1c8/0x1fe [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<c0193d5e>] ext3_mark_iloc_dirty+0x28/0x36
> Jul 25 06:33:17 runner kernel: [<e08f27ba>] yenta_set_mem_map+0x1e0/0x232 [yenta_socket]
> Jul 25 06:33:17 runner kernel: [<c0190d19>] ext3_splice_branch+0x123/0x1da
> Jul 25 06:33:17 runner kernel: [<e093aa67>] CardServices+0x1a1/0x351 [pcmcia_core]
> Jul 25 06:33:17 runner kernel: [<e0902110>] ide_attach+0x110/0x150 [ide_cs]
> Jul 25 06:33:17 runner kernel: [<e0902bee>] ide_event+0x0/0xea [ide_cs]
> Jul 25 06:33:17 runner kernel: [<e08fe3bf>] get_pcmcia_driver+0x3f/0x5a [ds]
> Jul 25 06:33:17 runner kernel: [<e08fd4b0>] bind_request+0x180/0x214 [ds]
> Jul 25 06:33:17 runner kernel: [<e08fe069>] ds_ioctl+0x5eb/0x6ec [ds]
> Jul 25 06:33:17 runner kernel: [<c029f95a>] sock_def_readable+0x82/0x84
> Jul 25 06:33:17 runner kernel: [<c0303be9>] unix_dgram_sendmsg+0x36b/0x56c
> Jul 25 06:33:17 runner kernel: [<c029c39a>] sock_sendmsg+0x9e/0xca
> Jul 25 06:33:17 runner kernel: [<c0170d18>] alloc_inode+0x1c/0x148
> Jul 25 06:33:17 runner kernel: [<c0171cde>] iget_locked+0x96/0xc0
> Jul 25 06:33:17 runner kernel: [<c01840b9>] proc_read_inode+0x17/0x3c
> Jul 25 06:33:17 runner kernel: [<c013d531>] find_get_page+0x29/0x64
> Jul 25 06:33:17 runner kernel: [<c013e8d6>] filemap_nopage+0x26c/0x384
> Jul 25 06:33:17 runner kernel: [<c014125f>] __rmqueue+0xcb/0x11c
> Jul 25 06:33:17 runner kernel: [<c0141671>] buffered_rmqueue+0xd1/0x192
> Jul 25 06:33:17 runner kernel: [<c0141671>] buffered_rmqueue+0xd1/0x192
> Jul 25 06:33:17 runner kernel: [<c0149762>] zap_pmd_range+0x48/0x64
> Jul 25 06:33:17 runner kernel: [<c01497c7>] unmap_page_range+0x49/0x88
> Jul 25 06:33:17 runner kernel: [<c01498c8>] unmap_vmas+0xc2/0x22e
> Jul 25 06:33:17 runner kernel: [<c014d2d1>] unmap_region+0x9b/0xde
> Jul 25 06:33:17 runner kernel: [<c014d1d0>] unmap_vma+0x40/0x7e
> Jul 25 06:33:17 runner kernel: [<c014d22a>] unmap_vma_list+0x1c/0x28
> Jul 25 06:33:17 runner kernel: [<c014d600>] do_munmap+0x166/0x1ce
> Jul 25 06:33:17 runner kernel: [<c016a6d1>] sys_ioctl+0xf3/0x27a
> Jul 25 06:33:17 runner kernel: [<c010b22b>] syscall_call+0x7/0xb

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.042 / U:1.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site