Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423521AbXEANmY (ORCPT ); Tue, 1 May 2007 09:42:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423510AbXEANmX (ORCPT ); Tue, 1 May 2007 09:42:23 -0400 Received: from gherkin.frus.com ([192.158.254.49]:47230 "EHLO gherkin.frus.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423503AbXEANmF (ORCPT ); Tue, 1 May 2007 09:42:05 -0400 Subject: Re: BAD_SG_DMA panic in aha1542 In-Reply-To: <20070501133312.GD4653@kernel.dk> "from Jens Axboe at May 1, 2007 03:33:12 pm" To: Jens Axboe Date: Tue, 1 May 2007 08:42:00 -0500 (CDT) CC: James.Bottomley@SteelEye.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, alan@lxorguk.ukuu.org.uk X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20070501134200.D669ADBA1@gherkin.frus.com> From: rct@gherkin.frus.com (Bob Tracy) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 12467 Lines: 292 Jens Axboe wrote: > Try Alan's patch, it should fix it. As mentioned earlier in this thread, > the real fix is to get rid of the cgc stuff and inject into the block > layer from cdrom.c. But Alan's patch should work-around the issue for > now. Trying that patch is the next thing on my plate. For now, here's the dmesg output James requested (aha1542 debug patch). Oddly enough, when the smoke cleared, the mount succeeded and I could access the cd :-). Initial state: SCSI cdrom drivers not loaded. Command: "mount -t iso9660 /dev/scd0 /mnt/cdrom -r" sr0: scsi3-mmc drive: 16x/16x writer cd/rw xa/form2 cdda tray Uniform CD-ROM driver Revision: 3.20 sr 1:0:4:0: Attached scsi CD-ROM sr0 sgpnt[0:1] page c3489af0/0x3489af0 length 32 BUG: warning at drivers/scsi/aha1542.c:78/BAD_SG_DMA() [] aha1542_queuecommand+0x4a4/0x4ce [aha1542] [] scsi_done+0x0/0x16 [scsi_mod] [] scsi_dispatch_cmd+0x1b0/0x223 [scsi_mod] [] scsi_request_fn+0x22e/0x2ac [scsi_mod] [] __generic_unplug_device+0x1d/0x1f [] blk_execute_rq_nowait+0x64/0x6a [] blk_execute_rq+0x6e/0x8f [] blk_end_sync_rq+0x0/0x1d [] mempool_alloc+0x1c/0x97 [] bio_phys_segments+0xe/0x14 [] blk_rq_bio_prep+0x28/0x7c [] scsi_execute+0xc6/0xd9 [scsi_mod] [] sr_do_ioctl+0x80/0x1bd [sr_mod] [] scsi_set_medium_removal+0x43/0x67 [scsi_mod] [] sr_packet+0x1a/0x1f [sr_mod] [] cdrom_open+0x337/0x8ae [cdrom] [] wait_for_completion+0x5b/0x84 [] default_wake_function+0x0/0xc [] call_usermodehelper_keys+0xa6/0xb2 [] __call_usermodehelper+0x0/0x43 [] request_module+0xc2/0xd0 [] kobject_get+0xf/0x13 [] sr_block_open+0x74/0x81 [sr_mod] [] do_open+0x8a/0x313 [] scsi_request_fn+0x273/0x2ac [scsi_mod] [] io_schedule+0xe/0x16 [] __wait_on_bit+0x50/0x58 [] sync_buffer+0x0/0x2e [] sync_buffer+0x0/0x2e [] out_of_line_wait_on_bit+0x62/0x6a [] wake_bit_function+0x0/0x3c [] __wait_on_buffer+0x1c/0x1f [] __ext3_get_inode_loc+0x263/0x2b1 [ext3] [] d_splice_alias+0xa9/0xc3 [] ext3_lookup+0x98/0xb8 [ext3] [] do_lookup+0x4f/0x135 [] dput+0x1a/0x10b [] __link_path_walk+0xa5d/0xba8 [] blkdev_get+0x55/0x60 [] open_bdev_excl+0x32/0x6e [] get_sb_bdev+0x14/0x115 [] isofs_get_sb+0x12/0x16 [isofs] [] isofs_fill_super+0x0/0x899 [isofs] [] vfs_kern_mount+0x88/0xfd [] do_kern_mount+0x26/0x36 [] do_mount+0x589/0x5fb [] mntput_no_expire+0x11/0x59 [] mntput_no_expire+0x11/0x59 [] link_path_walk+0xaf/0xb9 [] __handle_mm_fault+0x341/0x620 [] do_path_lookup+0x195/0x1b5 [] __handle_mm_fault+0x187/0x620 [] get_page_from_freelist+0x6e/0x2bb [] __get_free_pages+0x25/0x3e [] copy_mount_options+0x27/0x10a [] sys_mount+0x6a/0xa2 [] syscall_call+0x7/0xb sgpnt[0:1] page c3489af0/0x3489af0 length 32 BUG: warning at drivers/scsi/aha1542.c:78/BAD_SG_DMA() [] aha1542_queuecommand+0x4a4/0x4ce [aha1542] [] scsi_done+0x0/0x16 [scsi_mod] [] scsi_dispatch_cmd+0x1b0/0x223 [scsi_mod] [] scsi_request_fn+0x22e/0x2ac [scsi_mod] [] blk_run_queue+0x2a/0x4b [] scsi_queue_insert+0x75/0x7d [scsi_mod] [] blk_done_softirq+0x4a/0x55 [] __do_softirq+0x35/0x75 [] do_softirq+0x22/0x26 [] do_IRQ+0x48/0x50 [] common_interrupt+0x1a/0x20 [] scsi_dispatch_cmd+0x1b4/0x223 [scsi_mod] [] scsi_request_fn+0x22e/0x2ac [scsi_mod] [] __generic_unplug_device+0x1d/0x1f [] blk_execute_rq_nowait+0x64/0x6a [] blk_execute_rq+0x6e/0x8f [] blk_end_sync_rq+0x0/0x1d [] mempool_alloc+0x1c/0x97 [] bio_phys_segments+0xe/0x14 [] blk_rq_bio_prep+0x28/0x7c [] scsi_execute+0xc6/0xd9 [scsi_mod] [] sr_do_ioctl+0x80/0x1bd [sr_mod] [] scsi_set_medium_removal+0x43/0x67 [scsi_mod] [] sr_packet+0x1a/0x1f [sr_mod] [] cdrom_open+0x337/0x8ae [cdrom] [] wait_for_completion+0x5b/0x84 [] default_wake_function+0x0/0xc [] call_usermodehelper_keys+0xa6/0xb2 [] __call_usermodehelper+0x0/0x43 [] request_module+0xc2/0xd0 [] kobject_get+0xf/0x13 [] sr_block_open+0x74/0x81 [sr_mod] [] do_open+0x8a/0x313 [] scsi_request_fn+0x273/0x2ac [scsi_mod] [] io_schedule+0xe/0x16 [] __wait_on_bit+0x50/0x58 [] sync_buffer+0x0/0x2e [] sync_buffer+0x0/0x2e [] out_of_line_wait_on_bit+0x62/0x6a [] wake_bit_function+0x0/0x3c [] __wait_on_buffer+0x1c/0x1f [] __ext3_get_inode_loc+0x263/0x2b1 [ext3] [] d_splice_alias+0xa9/0xc3 [] ext3_lookup+0x98/0xb8 [ext3] [] do_lookup+0x4f/0x135 [] dput+0x1a/0x10b [] __link_path_walk+0xa5d/0xba8 [] blkdev_get+0x55/0x60 [] open_bdev_excl+0x32/0x6e [] get_sb_bdev+0x14/0x115 [] isofs_get_sb+0x12/0x16 [isofs] [] isofs_fill_super+0x0/0x899 [isofs] [] vfs_kern_mount+0x88/0xfd [] do_kern_mount+0x26/0x36 [] do_mount+0x589/0x5fb [] mntput_no_expire+0x11/0x59 [] mntput_no_expire+0x11/0x59 [] link_path_walk+0xaf/0xb9 [] __handle_mm_fault+0x341/0x620 [] do_path_lookup+0x195/0x1b5 [] __handle_mm_fault+0x187/0x620 [] get_page_from_freelist+0x6e/0x2bb [] __get_free_pages+0x25/0x3e [] copy_mount_options+0x27/0x10a [] sys_mount+0x6a/0xa2 [] syscall_call+0x7/0xb sgpnt[0:1] page c3489af0/0x3489af0 length 32 BUG: warning at drivers/scsi/aha1542.c:78/BAD_SG_DMA() [] aha1542_queuecommand+0x4a4/0x4ce [aha1542] [] scsi_done+0x0/0x16 [scsi_mod] [] scsi_dispatch_cmd+0x1b0/0x223 [scsi_mod] [] scsi_request_fn+0x22e/0x2ac [scsi_mod] [] blk_run_queue+0x2a/0x4b [] scsi_queue_insert+0x75/0x7d [scsi_mod] [] blk_done_softirq+0x4a/0x55 [] __do_softirq+0x35/0x75 [] do_softirq+0x22/0x26 [] do_IRQ+0x48/0x50 [] common_interrupt+0x1a/0x20 [] scsi_dispatch_cmd+0x1b4/0x223 [scsi_mod] [] scsi_request_fn+0x22e/0x2ac [scsi_mod] [] __generic_unplug_device+0x1d/0x1f [] blk_execute_rq_nowait+0x64/0x6a [] blk_execute_rq+0x6e/0x8f [] blk_end_sync_rq+0x0/0x1d [] mempool_alloc+0x1c/0x97 [] bio_phys_segments+0xe/0x14 [] blk_rq_bio_prep+0x28/0x7c [] scsi_execute+0xc6/0xd9 [scsi_mod] [] sr_do_ioctl+0x80/0x1bd [sr_mod] [] scsi_set_medium_removal+0x43/0x67 [scsi_mod] [] sr_packet+0x1a/0x1f [sr_mod] [] cdrom_open+0x337/0x8ae [cdrom] [] wait_for_completion+0x5b/0x84 [] default_wake_function+0x0/0xc [] call_usermodehelper_keys+0xa6/0xb2 [] __call_usermodehelper+0x0/0x43 [] request_module+0xc2/0xd0 [] kobject_get+0xf/0x13 [] sr_block_open+0x74/0x81 [sr_mod] [] do_open+0x8a/0x313 [] scsi_request_fn+0x273/0x2ac [scsi_mod] [] io_schedule+0xe/0x16 [] __wait_on_bit+0x50/0x58 [] sync_buffer+0x0/0x2e [] sync_buffer+0x0/0x2e [] out_of_line_wait_on_bit+0x62/0x6a [] wake_bit_function+0x0/0x3c [] __wait_on_buffer+0x1c/0x1f [] __ext3_get_inode_loc+0x263/0x2b1 [ext3] [] d_splice_alias+0xa9/0xc3 [] ext3_lookup+0x98/0xb8 [ext3] [] do_lookup+0x4f/0x135 [] dput+0x1a/0x10b [] __link_path_walk+0xa5d/0xba8 [] blkdev_get+0x55/0x60 [] open_bdev_excl+0x32/0x6e [] get_sb_bdev+0x14/0x115 [] isofs_get_sb+0x12/0x16 [isofs] [] isofs_fill_super+0x0/0x899 [isofs] [] vfs_kern_mount+0x88/0xfd [] do_kern_mount+0x26/0x36 [] do_mount+0x589/0x5fb [] mntput_no_expire+0x11/0x59 [] mntput_no_expire+0x11/0x59 [] link_path_walk+0xaf/0xb9 [] __handle_mm_fault+0x341/0x620 [] do_path_lookup+0x195/0x1b5 [] __handle_mm_fault+0x187/0x620 [] get_page_from_freelist+0x6e/0x2bb [] __get_free_pages+0x25/0x3e [] copy_mount_options+0x27/0x10a [] sys_mount+0x6a/0xa2 [] syscall_call+0x7/0xb sgpnt[0:1] page c3489af0/0x3489af0 length 32 BUG: warning at drivers/scsi/aha1542.c:78/BAD_SG_DMA() [] aha1542_queuecommand+0x4a4/0x4ce [aha1542] [] scsi_done+0x0/0x16 [scsi_mod] [] scsi_dispatch_cmd+0x1b0/0x223 [scsi_mod] [] scsi_request_fn+0x22e/0x2ac [scsi_mod] [] blk_run_queue+0x2a/0x4b [] scsi_queue_insert+0x75/0x7d [scsi_mod] [] blk_done_softirq+0x4a/0x55 [] __do_softirq+0x35/0x75 [] do_softirq+0x22/0x26 [] do_IRQ+0x48/0x50 [] common_interrupt+0x1a/0x20 [] scsi_dispatch_cmd+0x1b4/0x223 [scsi_mod] [] scsi_request_fn+0x22e/0x2ac [scsi_mod] [] __generic_unplug_device+0x1d/0x1f [] blk_execute_rq_nowait+0x64/0x6a [] blk_execute_rq+0x6e/0x8f [] blk_end_sync_rq+0x0/0x1d [] mempool_alloc+0x1c/0x97 [] bio_phys_segments+0xe/0x14 [] blk_rq_bio_prep+0x28/0x7c [] scsi_execute+0xc6/0xd9 [scsi_mod] [] sr_do_ioctl+0x80/0x1bd [sr_mod] [] scsi_set_medium_removal+0x43/0x67 [scsi_mod] [] sr_packet+0x1a/0x1f [sr_mod] [] cdrom_open+0x337/0x8ae [cdrom] [] wait_for_completion+0x5b/0x84 [] default_wake_function+0x0/0xc [] call_usermodehelper_keys+0xa6/0xb2 [] __call_usermodehelper+0x0/0x43 [] request_module+0xc2/0xd0 [] kobject_get+0xf/0x13 [] sr_block_open+0x74/0x81 [sr_mod] [] do_open+0x8a/0x313 [] scsi_request_fn+0x273/0x2ac [scsi_mod] [] io_schedule+0xe/0x16 [] __wait_on_bit+0x50/0x58 [] sync_buffer+0x0/0x2e [] sync_buffer+0x0/0x2e [] out_of_line_wait_on_bit+0x62/0x6a [] wake_bit_function+0x0/0x3c [] __wait_on_buffer+0x1c/0x1f [] __ext3_get_inode_loc+0x263/0x2b1 [ext3] [] d_splice_alias+0xa9/0xc3 [] ext3_lookup+0x98/0xb8 [ext3] [] do_lookup+0x4f/0x135 [] dput+0x1a/0x10b [] __link_path_walk+0xa5d/0xba8 [] blkdev_get+0x55/0x60 [] open_bdev_excl+0x32/0x6e [] get_sb_bdev+0x14/0x115 [] isofs_get_sb+0x12/0x16 [isofs] [] isofs_fill_super+0x0/0x899 [isofs] [] vfs_kern_mount+0x88/0xfd [] do_kern_mount+0x26/0x36 [] do_mount+0x589/0x5fb [] mntput_no_expire+0x11/0x59 [] mntput_no_expire+0x11/0x59 [] link_path_walk+0xaf/0xb9 [] __handle_mm_fault+0x341/0x620 [] do_path_lookup+0x195/0x1b5 [] __handle_mm_fault+0x187/0x620 [] get_page_from_freelist+0x6e/0x2bb [] __get_free_pages+0x25/0x3e [] copy_mount_options+0x27/0x10a [] sys_mount+0x6a/0xa2 [] syscall_call+0x7/0xb ISO 9660 Extensions: Microsoft Joliet Level 1 ISOFS: changing to secondary root -- ----------------------------------------------------------------------- Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org rct@frus.com ----------------------------------------------------------------------- - 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/