From owner-freebsd-current@FreeBSD.ORG Wed Apr 18 17:19:10 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 3201A106564A; Wed, 18 Apr 2012 17:19:10 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id D019B8FC17; Wed, 18 Apr 2012 17:19:09 +0000 (UTC) Received: by pbcwz17 with SMTP id wz17so9771733pbc.13 for ; Wed, 18 Apr 2012 10:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=3Z4U0xffK1uoxtk+rO2EwRKDIyNWSwkt7Ed0+GLkeQo=; b=XhEnPau1h9dT2Dd2e2/Td30HBdEGiev7hQcXzTKqQ1SDRxPJ7LLtNk0Y1jV8Npphjm FanY1WCnRt7deJHC370/ghIGM0wdruxMBWEwTyv3fAIi5T+Sb7f8Fqn3RGjxmgVmWgEK k1tlpcG3yWzUZaEnRReHNfh6wgMrgj+bepOxbzVy+Xk+h5LMvcc+phqeOP6XGKQIFAIb NIBYWa44KSS7Pdpp51GYUdRQqCeYe9d6lLoxGJrWYtlDaO4qnntuABAE07mXTyU3fmwx opYy5Hxj1m1TI2eYqJEplVFSxsB1ZR/TrkrGjf9YvqiIkk9TfVagq4cn9qI8/No1hudN F2kw== Received: by 10.68.212.69 with SMTP id ni5mr7823248pbc.39.1334769549693; Wed, 18 Apr 2012 10:19:09 -0700 (PDT) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id d2sm19699154pbw.39.2012.04.18.10.19.06 (version=SSLv3 cipher=OTHER); Wed, 18 Apr 2012 10:19:08 -0700 (PDT) Message-ID: <4F8EF77F.7090409@gmail.com> Date: Wed, 18 Apr 2012 10:18:55 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120406 Thunderbird/10.0.3 MIME-Version: 1.0 To: "Conrad J. Sabatier" 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> <4f8cdc7f.8101e00a.37cf.ffffaf6fSMTPIN_ADDED@mx.google.com> In-Reply-To: <4f8cdc7f.8101e00a.37cf.ffffaf6fSMTPIN_ADDED@mx.google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: "O. Hartmann" , ken@freebsd.org, freebsd-current@freebsd.org, Konstantin Belousov , =?UTF-8?B?RWR3YXJkIFRvbWFzeiDvv70=?= , "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: Wed, 18 Apr 2012 17:19:10 -0000 On 04/16/12 14:49, Conrad J. Sabatier wrote: > 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! > It's fixed here too where problem device was a front-panel with a USBest UT330 chip...stupid thing presents *every* card slot as a LUN whether used or not, da0-da4. Thanks Matt