From owner-freebsd-current@FreeBSD.ORG Sun Aug 16 13:02:53 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12CA4106564A for ; Sun, 16 Aug 2009 13:02:53 +0000 (UTC) (envelope-from scb+freebsd-current@techwires.net) Received: from mx01.netsrc.de (mx01.netsrc.de [89.107.71.100]) by mx1.freebsd.org (Postfix) with ESMTP id B70C28FC5A for ; Sun, 16 Aug 2009 13:02:52 +0000 (UTC) Received: from [10.1.1.60] (dslb-088-065-048-196.pools.arcor-ip.net [88.65.48.196]) by mx01.netsrc.de (Postfix) with ESMTP id 2661C192FD9; Sun, 16 Aug 2009 14:51:33 +0200 (CEST) Message-Id: <1618A5F5-F037-46CF-954A-38FB13BAA649@techwires.net> From: Bernhard Schmidt To: current@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 16 Aug 2009 14:51:25 +0200 X-Mailer: Apple Mail (2.936) Cc: Marc UBM , Daniel Eriksson Subject: Several reported instances of boot hangs ("still waiting for xpt_config") for hptrr 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: Sun, 16 Aug 2009 13:02:53 -0000 Hi, I do have a Highpoint RocketRaid 2220 controller myself which throws similar errors since the release of 8.0-BETA2. Tracking the commits, I could narrow it down to r195534. The issue is, that htprr makes use of xpt_scan_bus() which ist no longer available in xpt_action[_default]() when cpi->transport is not set to one of XPORT_*. This probably affects all drivers relying upon xpt_scan_bus() but not setting cpi->transport. This patch has been tested against latest head and stable/8 with no more issues for me. Index: sys/dev/hptrr/hptrr_osm_bsd.c =================================================================== --- sys/dev/hptrr/hptrr_osm_bsd.c (revision 196273) +++ sys/dev/hptrr/hptrr_osm_bsd.c (working copy) @@ -814,6 +814,10 @@ strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); strncpy(cpi->hba_vid, "HPT ", HBA_IDLEN); strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); + cpi->transport = XPORT_SPI; + cpi->transport_version = 2; + cpi->protocol = PROTO_SCSI; + cpi->protocol_version = SCSI_REV_2; cpi->ccb_h.status = CAM_REQ_CMP; break; }