From nobody@FreeBSD.org  Fri Apr  4 21:50:04 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 04D984EA
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Apr 2014 21:50:04 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id CEB14777
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 Apr 2014 21:50:03 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s34Lo3iA003253
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 4 Apr 2014 21:50:03 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s34Lo3Qr003252;
	Fri, 4 Apr 2014 21:50:03 GMT
	(envelope-from nobody)
Message-Id: <201404042150.s34Lo3Qr003252@cgiserv.freebsd.org>
Date: Fri, 4 Apr 2014 21:50:03 GMT
From: Ian Allison <IFAllison@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mpt unable to communicate with LSI7202XP Fibrechannel 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         188270
>Category:       kern
>Synopsis:       [mpt] mpt unable to communicate with LSI7202XP Fibrechannel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-scsi
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 04 22:00:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Wed Apr 16 01:34:00 UTC 2014
>Originator:     Ian Allison
>Release:        10.0
>Organization:
UBC
>Environment:
FreeBSD pauli 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 08:49:04 UTC 2014     root@snap.freebsd.org:/usr/obj/powerpc.powerpc64/usr/src/sys/GENERIC64  powerpc

This is a fresh install from the 10.0 CD image
>Description:
I'm trying to connect to an external storage shelf over fibre channel.
My system is a xserve g5 and the shelf is an xserve raid. The HBA in
the xserve is a PCI-X card from LSILogic, it is listed as LSI7202XP
PCI-X HBA. From mpt(4) I thought this would work, but mptutil returns
garbage whenever I try to configure the shelf.


Here are the relevant lines from dmesg

mpt0: <Dual LSILogic FC929X 2Gb/s FC PCI-X Adapter> port 0x400-0x4ff mem 0x90030000-0x9003ffff,0x90020000-0x9002ffff irq 181 at device 3.0 on pci2
mpt0: MPI Version=1.3.2.0
mpt1: <Dual LSILogic FC929X 2Gb/s FC PCI-X Adapter> mem 0x90010000-0x9001ffff,0x90000000-0x9000ffff irq 181 at device 3.1 on pci2
mpt1: MPI Version=1.3.2.0


And here is the output of pciconf -lv

mpt0@pci1:6:3:0:	class=0x0c0400 card=0x10d01000 chip=0x06261000 rev=0x81 hdr=0x00
    vendor     = 'LSI Logic / Symbios Logic'
    device     = 'FC929X Fibre Channel Adapter'
    class      = serial bus
    subclass   = Fibre Channel
mpt1@pci1:6:3:1:	class=0x0c0400 card=0x10d01000 chip=0x06261000 rev=0x81 hdr=0x00
    vendor     = 'LSI Logic / Symbios Logic'
    device     = 'FC929X Fibre Channel Adapter'
    class      = serial bus
    subclass   = Fibre Channel


mptutil gives garbled results, for example the show adapter command 

mptutil show adapter
mpt0 Adapter:
       Board Name: 
   Board Assembly: 
        Chip Name: U?
    Chip Revision: 
mptutil: mpt_read_ioc_page(2): Status: 0x2200
mptutil: mpt_read_ioc_page(6): Status: 0x2200


mpt0 Adapter:
       Board Name: 
   Board Assembly: ?\H
        Chip Name: ?a
    Chip Revision: ?#0

mptutil: mpt_read_ioc_page(2): Status: 0x2200
mptutil: mpt_read_ioc_page(6): Status: 0x2200


or show drives

mptutil show drives
mptutil: Reading config page header failed: Status: 0x2200
mptutil: Failed to fetch volume list: Input/output error
mptutil: Failed to get drive list: Input/output error


I have looked at /usr/src/UPDATING but couldn't see anything, and all
of my searches turned up nothing relevant.
>How-To-Repeat:
From 10.0 with GENERIC kernel 

mptutil show adapter
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Apr 16 01:33:07 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=188270 
>Unformatted:
