From owner-svn-src-all@FreeBSD.ORG Tue Jan 20 10:09:44 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09B03106564A; Tue, 20 Jan 2009 10:09:44 +0000 (UTC) (envelope-from outi@bytephobia.de) Received: from dd18312.kasserver.com (dd18312.kasserver.com [85.13.138.194]) by mx1.freebsd.org (Postfix) with ESMTP id B884B8FC0C; Tue, 20 Jan 2009 10:09:43 +0000 (UTC) (envelope-from outi@bytephobia.de) Received: from attini-ws2 (pD9E37346.dip.t-dialin.net [217.227.115.70]) by dd18312.kasserver.com (Postfix) with ESMTP id A306218405417; Tue, 20 Jan 2009 10:46:15 +0100 (CET) Date: Tue, 20 Jan 2009 10:46:12 +0100 From: Patrick Hurrelmann To: John Baldwin Message-ID: <20090120104612.2224983f@attini-ws2> In-Reply-To: <200901151031.42725.jhb@freebsd.org> References: <200901072152.n07Lql7h000807@svn.freebsd.org> <200901151031.42725.jhb@freebsd.org> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.14.4; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, Marius Strobl , src-committers@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r186878 - head/sys/dev/mpt X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2009 10:09:44 -0000 On Thu, 15 Jan 2009 10:31:42 -0500 John Baldwin wrote: > On Wednesday 07 January 2009 4:52:47 pm Marius Strobl wrote: > > Author: marius > > Date: Wed Jan 7 21:52:47 2009 > > New Revision: 186878 > > URL: http://svn.freebsd.org/changeset/base/186878 > > > > Log: > > Make the whole initiator mode part of mpt(4) endian-clean, > > specifically SPI controllers now also work in big-endian > > machines and some conversions relevant for FC and SAS > > controllers as well as support for ILP32 machines which all > > were omitted in previous attempts are now also implemented. > > The IOCTL-interface is intentionally left (and where needed > > actually changed) to be completely little-endian as otherwise > > we would have to add conversion code for every possible > > configuration page to mpt(4), which didn't seem the right > > thing to do, neither did converting only half of the user- > > interface to the native byte order. > > This change was tested on amd64 (SAS+SPI), i386 (SAS) and > > sparc64 (SAS+SPI). Due to lack of the necessary hardware > > the target mode code is still left to be made endian-clean. > > > > Reviewed by: scottl > > MFC after: 1 month > > If you wish to test the mpt_user interface on a big-endian machine > you may use //depot/jhb/raid/usr.sbin/mptutil/... > > It is likely going to need a lot of sprinkled htole*() and letoh*() > though. Hi John, great to hear that! I just checked out mptutil on 7.0 and it works fine with a bunch of Dell PERC 5iR :) Do you mind if i grab the sources and create a port of it? I guess many people are eagerly waiting to monitor their mpt arrays as stated on several lists. This would also give mptutil a much greater base of testers. Best regards Patrick