From nobody@FreeBSD.org  Thu Oct 15 20:17:53 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 86078106568D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Oct 2009 20:17:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 765838FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Oct 2009 20:17:53 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9FKHpJ4074818
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Oct 2009 20:17:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n9FKHpK4074817;
	Thu, 15 Oct 2009 20:17:51 GMT
	(envelope-from nobody)
Message-Id: <200910152017.n9FKHpK4074817@www.freebsd.org>
Date: Thu, 15 Oct 2009 20:17:51 GMT
From: Charles Owens <cowens@greatbaysoftware.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: CD-boot failure w/READ_BIG error on IBM System x3250 M2
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         139654
>Category:       kern
>Synopsis:       [boot] CD-boot failure w/READ_BIG error on IBM System x3250 M2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 15 20:20:01 UTC 2009
>Closed-Date:    Sun Dec 06 22:37:38 UTC 2009
>Last-Modified:  Wed Dec  9 17:30:21 UTC 2009
>Originator:     Charles Owens
>Release:        7.1-RELEASE
>Organization:
Great Bay Software
>Environment:
FreeBSD qaprofiler2 7.1-RELEASE-p5 FreeBSD 7.1-RELEASE-p5 #0: Thu Jun  4 11:47:32 UTC 2009     cowens@n_newcastle.greatbaysoftware.com:/usr/obj/usr/src/sys/BEACON  i386
>Description:
Note custom kernel is PAE-enabled but otherwise largely same as GENERIC.
Behavior also verified with GENERIC kernels.

Unable to boot FreeBSD install CD with IBM System x3250 M2 server
appliance.  Kernel loads fine but at point where boot process attempts
to mount CD following error messages are seen (repeating endlessly --
boot process never completes):

acd0: TIMEOUT - READ_BIG retrying (1 retry left)
acd0: TIMEOUT - READ_BIG retrying (0 retries left)
acd0: TIMEOUT - READ_BIG timed out


Kernel detects the CD/DVD drive as:

acd0 CDRW <HL-DT-STCD-RW/DVD DRIVE GCC-T20N/1.00>


This seems somewhat similar to kern/133122
>How-To-Repeat:
Attempt to boot from install CD
>Fix:


>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/139654: commit references a PR
Date: Sat,  5 Dec 2009 13:41:06 +0000 (UTC)

 Author: mav
 Date: Sat Dec  5 13:40:51 2009
 New Revision: 200121
 URL: http://svn.freebsd.org/changeset/base/200121
 
 Log:
   Do not ignore device interrupt if bus mastering is still active. It is
   normal in case of media read error and some ATAPI cases, when transfer size
   is unknown beforehand. PCI ATA BM specification tells that in case of such
   underrun driver should just manually stop DMA engine. DMA engine should
   same time guarantie that all bus mastering transfers completed at the moment
   of driver reads interrupt flag asserted.
   This change should fix interrupt storms and command timeouts in many cases.
   
   PR:		kern/103602, sparc64/121539, kern/133122, kern/139654
 
 Modified:
   head/sys/dev/ata/ata-pci.c
 
 Modified: head/sys/dev/ata/ata-pci.c
 ==============================================================================
 --- head/sys/dev/ata/ata-pci.c	Sat Dec  5 13:12:04 2009	(r200120)
 +++ head/sys/dev/ata/ata-pci.c	Sat Dec  5 13:40:51 2009	(r200121)
 @@ -462,8 +462,7 @@ ata_pci_status(device_t dev)
  	 (ch->dma.flags & ATA_DMA_ACTIVE))) {
  	int bmstat = ATA_IDX_INB(ch, ATA_BMSTAT_PORT) & ATA_BMSTAT_MASK;
  
 -	if ((bmstat & (ATA_BMSTAT_ACTIVE | ATA_BMSTAT_INTERRUPT)) !=
 -	    ATA_BMSTAT_INTERRUPT)
 +	if ((bmstat & ATA_BMSTAT_INTERRUPT) == 0)
  	    return 0;
  	ATA_IDX_OUTB(ch, ATA_BMSTAT_PORT, bmstat & ~ATA_BMSTAT_ERROR);
  	DELAY(1);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: Alexander Best <alexbestms@wwu.de>
To: <bug-followup@FreeBSD.org>,
 <cowens@greatbaysoftware.com>
Cc:  
Subject: Re: kern/139654: [boot] CD-boot failure w/READ_BIG error on IBM
 System x3250 M2
Date: Sun, 06 Dec 2009 17:06:42 +0100 (CET)

 duplicate of kern/103602. please close this pr.
 
 alex
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Dec 6 22:36:41 UTC 2009 
State-Changed-Why:  
Duplicate of kern/103602. 


Responsible-Changed-From-To: freebsd-bugs->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Dec 6 22:36:41 UTC 2009 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=139654 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/139654: commit references a PR
Date: Wed,  9 Dec 2009 17:20:23 +0000 (UTC)

 Author: mav
 Date: Wed Dec  9 17:20:10 2009
 New Revision: 200297
 URL: http://svn.freebsd.org/changeset/base/200297
 
 Log:
   MFC r200121:
   Do not ignore device interrupt if bus mastering is still active. It is
   normal in case of media read error and some ATAPI cases, when transfer size
   is unknown beforehand. PCI ATA BM specification tells that in case of such
   underrun driver should just manually stop DMA engine. DMA engine should
   same time guarantie that all bus mastering transfers completed at the moment
   of driver reads interrupt flag asserted.
   This change fixes interrupt storms and command timeouts in many cases.
   
   PR:             kern/103602, sparc64/121539, kern/133122, kern/139654
 
 Modified:
   stable/8/sys/dev/ata/ata-pci.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
   stable/8/sys/dev/xen/xenpci/   (props changed)
 
 Modified: stable/8/sys/dev/ata/ata-pci.c
 ==============================================================================
 --- stable/8/sys/dev/ata/ata-pci.c	Wed Dec  9 17:11:09 2009	(r200296)
 +++ stable/8/sys/dev/ata/ata-pci.c	Wed Dec  9 17:20:10 2009	(r200297)
 @@ -462,8 +462,7 @@ ata_pci_status(device_t dev)
  	 (ch->dma.flags & ATA_DMA_ACTIVE))) {
  	int bmstat = ATA_IDX_INB(ch, ATA_BMSTAT_PORT) & ATA_BMSTAT_MASK;
  
 -	if ((bmstat & (ATA_BMSTAT_ACTIVE | ATA_BMSTAT_INTERRUPT)) !=
 -	    ATA_BMSTAT_INTERRUPT)
 +	if ((bmstat & ATA_BMSTAT_INTERRUPT) == 0)
  	    return 0;
  	ATA_IDX_OUTB(ch, ATA_BMSTAT_PORT, bmstat & ~ATA_BMSTAT_ERROR);
  	DELAY(1);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/139654: commit references a PR
Date: Wed,  9 Dec 2009 17:23:18 +0000 (UTC)

 Author: mav
 Date: Wed Dec  9 17:23:08 2009
 New Revision: 200298
 URL: http://svn.freebsd.org/changeset/base/200298
 
 Log:
   MFC r200121:
   Do not ignore device interrupt if bus mastering is still active. It is
   normal in case of media read error and some ATAPI cases, when transfer size
   is unknown beforehand. PCI ATA BM specification tells that in case of such
   underrun driver should just manually stop DMA engine. DMA engine should
   same time guarantie that all bus mastering transfers completed at the moment
   when driver reads interrupt flag asserted.
   This change fixes interrupt storms and command timeouts in many cases.
   
   PR:             kern/103602, sparc64/121539, kern/133122, kern/139654
 
 Modified:
   stable/7/sys/dev/ata/ata-pci.c
 Directory Properties:
   stable/7/sys/   (props changed)
   stable/7/sys/contrib/pf/   (props changed)
 
 Modified: stable/7/sys/dev/ata/ata-pci.c
 ==============================================================================
 --- stable/7/sys/dev/ata/ata-pci.c	Wed Dec  9 17:20:10 2009	(r200297)
 +++ stable/7/sys/dev/ata/ata-pci.c	Wed Dec  9 17:23:08 2009	(r200298)
 @@ -445,8 +445,7 @@ ata_pci_status(device_t dev)
  		    (ch->dma->flags & ATA_DMA_ACTIVE))) {
  	int bmstat = ATA_IDX_INB(ch, ATA_BMSTAT_PORT) & ATA_BMSTAT_MASK;
  
 -	if ((bmstat & (ATA_BMSTAT_ACTIVE | ATA_BMSTAT_INTERRUPT)) !=
 -	    ATA_BMSTAT_INTERRUPT)
 +	if ((bmstat & ATA_BMSTAT_INTERRUPT) == 0)
  	    return 0;
  	ATA_IDX_OUTB(ch, ATA_BMSTAT_PORT, bmstat & ~ATA_BMSTAT_ERROR);
  	DELAY(1);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
