From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Hancock Subject: Re: WARNING: at drivers/ata/libata-core.c:5162 ata_qc_issue Date: Sat, 23 Jan 2010 14:49:47 -0600 Message-ID: <4B5B60EB.8070302@gmail.com> References: <87d699441001202038m906038dgd7a849adabe8509@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-iw0-f186.google.com ([209.85.223.186]:54503 "EHLO mail-iw0-f186.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751626Ab0AWUtu (ORCPT ); Sat, 23 Jan 2010 15:49:50 -0500 Received: by iwn16 with SMTP id 16so1076979iwn.33 for ; Sat, 23 Jan 2010 12:49:49 -0800 (PST) In-Reply-To: <87d699441001202038m906038dgd7a849adabe8509@mail.gmail.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Ilia Mirkin Cc: linux-ide@vger.kernel.org On 01/20/2010 10:38 PM, Ilia Mirkin wrote: > Hi, > > I recently set up a box with (basically) 2.6.32.2 (specifically > gentoo-2.6.32-r1), and got the warning below when I started up smartd, > which is set to scan all the devices. This machine has an Areca > 1300ix-16 controller (mvsas driver, no raid), and a number of WDC > WD20EADS-00S2B0 drives attached (2TB, SATA). That would appear to be this: if (ata_is_ncq(prot)) { .. } else { WARN_ON_ONCE(link->sactive); which means that something (presumably smartd) was issuing a non-NCQ command while NCQ commands were active, which shouldn't be allowed. Some issue with the NCQ defer behavior with mvsas? > > Please let me know if you need any other information. > > [706120.572560] ------------[ cut here ]------------ > [706120.572566] WARNING: at drivers/ata/libata-core.c:5162 > ata_qc_issue+0x11c/0x365() > [706120.572568] Hardware name: X8DT6 > [706120.572569] Modules linked in: w83627hf hwmon_vid iTCO_wdt > iTCO_vendor_support > [706120.572575] Pid: 29946, comm: smartd Not tainted 2.6.32-gentoo-r1 #2 > [706120.572576] Call Trace: > [706120.572582] [] ? scsi_host_alloc_command+0x1b/0x62 > [706120.572584] [] ? ata_qc_issue+0x11c/0x365 > [706120.572588] [] warn_slowpath_common+0x77/0xa4 > [706120.572591] [] ? ata_scsi_pass_thru+0x0/0x242 > [706120.572593] [] warn_slowpath_null+0xf/0x11 > [706120.572595] [] ata_qc_issue+0x11c/0x365 > [706120.572598] [] ? ata_scsi_pass_thru+0x0/0x242 > [706120.572600] [] ? scsi_done+0x0/0x12 > [706120.572602] [] __ata_scsi_queuecmd+0x19e/0x1f8 > [706120.572605] [] ? scsi_done+0x0/0x12 > [706120.572607] [] ata_sas_queuecmd+0x2a/0x3c > [706120.572611] [] sas_queuecommand+0x82/0x269 > [706120.572614] [] scsi_dispatch_cmd+0x1c3/0x23e > [706120.572617] [] scsi_request_fn+0x39f/0x4e9 > [706120.572622] [] __blk_run_queue+0x3d/0x71 > [706120.572625] [] elv_insert+0xa5/0x248 > [706120.572627] [] __elv_add_request+0x9a/0xa2 > [706120.572630] [] blk_execute_rq_nowait+0x62/0x8c > [706120.572632] [] blk_execute_rq+0x8a/0xae > [706120.572636] [] ? check_preempt_wakeup+0xf7/0x16b > [706120.572639] [] ? security_capable+0x27/0x29 > [706120.572642] [] sg_io+0x273/0x386 > [706120.572645] [] ? default_wake_function+0xd/0xf > [706120.572648] [] scsi_cmd_ioctl+0x20f/0x3e8 > [706120.572651] [] ? sock_def_readable+0x3f/0x6c > [706120.572654] [] ? select_task_rq_fair+0x4b6/0x87e > [706120.572656] [] ? enqueue_entity+0x25f/0x26b > [706120.572660] [] sd_ioctl+0xa2/0xc7 > [706120.572663] [] __blkdev_driver_ioctl+0x62/0x77 > [706120.572665] [] blkdev_ioctl+0x7e5/0x81d > [706120.572668] [] ? finish_task_switch+0x43/0xad > [706120.572672] [] ? fsnotify_clear_marks_by_inode+0x28/0xdd > [706120.572675] [] ? virt_to_head_page+0x9/0x2a > [706120.572678] [] ? sock_destroy_inode+0x14/0x16 > [706120.572680] [] ? virt_to_head_page+0x9/0x2a > [706120.572683] [] block_ioctl+0x38/0x3c > [706120.572686] [] vfs_ioctl+0x2a/0x78 > [706120.572688] [] do_vfs_ioctl+0x46c/0x4ad > [706120.572691] [] ? __fput+0x1a9/0x1b8 > [706120.572694] [] sys_ioctl+0x55/0x77 > [706120.572697] [] system_call_fastpath+0x16/0x1b > [706120.572699] ---[ end trace 77cd22c8c073dd64 ]--- > > Thanks, > > -- > Ilia Mirkin > imirkin@alum.mit.edu > -- > To unsubscribe from this list: send the line "unsubscribe linux-ide" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >