From owner-freebsd-bugs@FreeBSD.ORG Fri Apr 29 18:40:13 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85CDF1065670 for ; Fri, 29 Apr 2011 18:40:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 609F58FC17 for ; Fri, 29 Apr 2011 18:40:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p3TIeDuZ049930 for ; Fri, 29 Apr 2011 18:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3TIeDbA049929; Fri, 29 Apr 2011 18:40:13 GMT (envelope-from gnats) Date: Fri, 29 Apr 2011 18:40:13 GMT Message-Id: <201104291840.p3TIeDbA049929@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Dmytro Pryanyshnikov Cc: Subject: Re: kern/153205: [ahci] PIONEER DVD-RW: timeout with ahci(4), OK with ata(4) + ATA_CAM X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmytro Pryanyshnikov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2011 18:40:13 -0000 The following reply was made to PR kern/153205; it has been noted by GNATS. From: Dmytro Pryanyshnikov To: Alexander Motin Cc: bug-followup@freebsd.org Subject: Re: kern/153205: [ahci] PIONEER DVD-RW: timeout with ahci(4), OK with ata(4) + ATA_CAM Date: Fri, 29 Apr 2011 21:06:30 +0300 Hello! 2011/4/28 Alexander Motin : > Hi. > > As I can see from dmesg, controller reports that command is completed, > but driver either haven't received interrupt or mishandled it. > > Just an idea, could you try to disable MSI interrupts for the controller > by setting hint.ahci.0.msi=0 in /boot/loader.conf? I've made an investigation using the same kernel config as in original submission: http://sites.google.com/site/lynxripe/freebsd/pr/20101216-ahci/lynx but with more recent RELENG_8 sources (as of 2011-03-07). So, without disabling MSI, problem is the same as originally described (timeout + no cd0 when using ahci instead of ata with the Intel ICH7 AHCI SATA controller): http://sites.google.com/site/lynxripe/freebsd/pr/153205/110429/dmesg.txt Setting hint.ahci.0.msi=0 _almost_ cures the problem: cd0 works, and verbose boot logs most often look like this: http://sites.google.com/site/lynxripe/freebsd/pr/153205/110429/dmesg-nomsi.txt However, sometimes (I've seen it 2 times out of 6 reboots) vestiges of the problem still appear in the form of non-fatal timeout: http://sites.google.com/site/lynxripe/freebsd/pr/153205/110429/dmesg-nomsi2.txt http://sites.google.com/site/lynxripe/freebsd/pr/153205/110429/dmesg-nomsi3.txt OTOH, ata(4)+ATA_CAM works with MSI enabled for this controller (hint.atapci.1.msi=1) just fine: http://sites.google.com/site/lynxripe/freebsd/pr/153205/110429/dmesg-ata-msi.txt > > -- > Alexander Motin > -- Sincerely, Dmytro