From owner-freebsd-bugs@FreeBSD.ORG Tue May 12 14:50:01 2009 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 510A2106564A for ; Tue, 12 May 2009 14:50:01 +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 13B398FC17 for ; Tue, 12 May 2009 14:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4CEo0QG078478 for ; Tue, 12 May 2009 14:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4CEo0fd078477; Tue, 12 May 2009 14:50:00 GMT (envelope-from gnats) Resent-Date: Tue, 12 May 2009 14:50:00 GMT Resent-Message-Id: <200905121450.n4CEo0fd078477@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michel Bouissou Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DEB8106566C for ; Tue, 12 May 2009 14:45:39 +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 1DD398FC08 for ; Tue, 12 May 2009 14:45:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4CEjcWL035089 for ; Tue, 12 May 2009 14:45:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4CEjcFi035088; Tue, 12 May 2009 14:45:38 GMT (envelope-from nobody) Message-Id: <200905121445.n4CEjcFi035088@www.freebsd.org> Date: Tue, 12 May 2009 14:45:38 GMT From: Michel Bouissou To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/134488: [SCSI] MPT SCSI driver probes max. 8 LUNs per device X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2009 14:50:01 -0000 >Number: 134488 >Category: kern >Synopsis: [SCSI] MPT SCSI driver probes max. 8 LUNs per device >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 12 14:50:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Michel Bouissou >Release: 7.2 >Organization: Bioclinica >Environment: >Description: The MPT SCSI driver is only able to scan up to 8 LUNs (0-7) per SCSI device, which is far too few for some SCSI disks enclosures. This issue had already been discussed in http://osdir.com/ml/os.freebsd.devel.scsi/2008-03/msg00015.html about a year ago, but it seems not to have been fixed even though the fix is easy. >How-To-Repeat: >Fix: The highest LUN number that MPT will scan is hardcoded in dev/mpt/mpt_cam.c around line 3605 : cpi->max_lun = 7; Replacing this "7" with the number you want solves the issue (I used 32 for my needs). But this necessitates the sysadmin to patch and recompile the kernel... Would be nice if this could default to a more sensible value than "8"... >Release-Note: >Audit-Trail: >Unformatted: