From owner-freebsd-current@FreeBSD.ORG Tue Apr 17 02:59:11 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACDDE106566C; Tue, 17 Apr 2012 02:59:11 +0000 (UTC) (envelope-from conrads@serene.no-ip.org) Received: from eastrmfepo203.cox.net (eastrmfepo203.cox.net [68.230.241.218]) by mx1.freebsd.org (Postfix) with ESMTP id EF33D8FC15; Tue, 17 Apr 2012 02:59:10 +0000 (UTC) Received: from eastrmimpo306.cox.net ([68.230.241.238]) by eastrmfepo203.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120417025910.QTYB18532.eastrmfepo203.cox.net@eastrmimpo306.cox.net>; Mon, 16 Apr 2012 22:59:10 -0400 Received: from serene.no-ip.org ([98.164.83.206]) by eastrmimpo306.cox.net with bizsmtp id yqz61i00A4T5sES02qz9fy; Mon, 16 Apr 2012 22:59:10 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020208.4F8CDC7E.000F,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=CRPD+Qc8oD39miT01U+idCnfgtTI0UgUfEDugnPCZ2w= c=1 sm=1 a=z1TLwsU0kBEA:10 a=VC6RoNgPb2YA:10 a=2dwednEH3cQA:10 a=cRs4AX/51puMaUeRAuoQtw==:17 a=kviXuzpPAAAA:8 a=vPMbR5NFtfAhTSspdpUA:9 a=nJ5FD3HPWyYA:10 a=4vB-4DCPJfMA:10 a=cRs4AX/51puMaUeRAuoQtw==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from serene.no-ip.org (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q3H2x5vk001239; Mon, 16 Apr 2012 21:59:05 -0500 (CDT) (envelope-from conrads@serene.no-ip.org) Received: (from conrads@localhost) by localhost.my.domain (8.14.5/8.14.5/Submit) id q3GLnOQT000036; Mon, 16 Apr 2012 16:49:24 -0500 (CDT) (envelope-from conrads) Date: Mon, 16 Apr 2012 16:49:24 -0500 From: "Conrad J. Sabatier" To: Edward Tomasz =?unknown-8bit?Q?Napiera=B3a?= Message-ID: <20120416214924.GA26@.no.cox.net> References: <20120415053032.370280f9@cox.net> <4F8BDF13.4060903@mail.zedat.fu-berlin.de> <4F8C2E2B.20408@gmail.com> <20120416145543.GB2358@deviant.kiev.zoral.com.ua> <4F8C45A4.2050407@gwdg.de> <20120416173150.GH2358@deviant.kiev.zoral.com.ua> <4F8C5DE1.60200@gwdg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Tue, 17 Apr 2012 03:53:31 +0000 Cc: matt , "O. Hartmann" , ken@freebsd.org, freebsd-current@freebsd.org, Konstantin Belousov , "Conrad J. Sabatier" Subject: Re: Kernel builds, but crashes at boot (amd64, Revision: 234306) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2012 02:59:11 -0000 On Tue, Apr 17, 2012 at 03:53:27AM +0200, Edward Tomasz Napieraa wrote: > Wiadomość napisana przez Rainer Hurling w dniu 16 kwi 2012, o godz. 19:58: > > On 16.04.2012 19:31 (UTC+1), Konstantin Belousov wrote: > >> On Mon, Apr 16, 2012 at 06:15:32PM +0200, Rainer Hurling wrote: > >>> > >>> I just updated my system to r234342, only downgraded > >>> /usr/src/sys/cam/scsi/scsi_da.c to r233746, and now the system is > >>> booting again. So obviously there is something wrong with the newest > >>> patch to scsi_da.c. > >> It is too broad, try to revert exactly one patch and see whether it works. > > > > Sorry for my bad english. I wanted to say, that I only reverted exactly one patch (file scsi_da.c from 234177 back to 233746 manually). The rest is up to r234342. > > Could you try the patch below? > > Index: sys/cam/scsi/scsi_da.c > =================================================================== > --- sys/cam/scsi/scsi_da.c (revision 234314) > +++ sys/cam/scsi/scsi_da.c (working copy) > @@ -938,7 +938,9 @@ daopen(struct disk *dp) > if (error != 0) > xpt_print(periph->path, "unable to retrieve capacity data"); > > - if (periph->flags & CAM_PERIPH_INVALID) > + if (periph->flags & CAM_PERIPH_INVALID || > + softc->disk->d_sectorsize == 0 || > + softc->disk->d_mediasize == 0) > error = ENXIO; > > if (error == 0 && (softc->flags & DA_FLAG_PACK_REMOVABLE) != 0 && > > This patch fixed the problem for me. Thank you! -- Conrad J. Sabatier conrads@cox.net