From owner-freebsd-scsi@freebsd.org Tue Dec 1 22:56:12 2015 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D26D3A3E56F for ; Tue, 1 Dec 2015 22:56:12 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B488A19BB for ; Tue, 1 Dec 2015 22:56:12 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.200.208] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 9FA311928D7; Tue, 1 Dec 2015 22:56:10 +0000 (UTC) Subject: Re: ciss(4) HP Smart Array P840 To: Jonathon Reinhart , freebsd-scsi@freebsd.org References: <20151120.084410.74714437.sthaug@nethelp.no> <30640027-5C49-4AC0-9BAF-7E6208F7DD13@yahoo.com> From: Sean Bruno Message-ID: <565E258A.7000907@freebsd.org> Date: Tue, 1 Dec 2015 14:56:10 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 22:56:12 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 > ------------------------------------------------------------------------------------------------------------------------------------------------------ > > fcae8e0 Appears to be the winner here, adding JBOD / HBA mode > support. If you're happy with the results, I can totally do the merge back to stable/9 for you. But does that actually help you out here? sean > > I've done my best to apply those patches to TrueOS 9.3.1-STABLE, > and I'm building it now. > > After those commits, the only difference between FreeBSD "master" > and my branch is: > > diff -u freebsd/sys/dev/ciss/ciss.c trueos/sys/dev/ciss/ciss.c --- > freebsd/sys/dev/ciss/ciss.c 2015-11-23 17:53:43.119544620 -0500 +++ > trueos/sys/dev/ciss/ciss.c 2015-11-24 10:51:50.609160463 -0500 @@ > -4388,17 +4388,11 @@ DB_COMMAND(ciss_prt, db_ciss_prt) { struct > ciss_softc *sc; - devclass_t dc; - int maxciss, i; > > - dc = devclass_find("ciss"); - if ( dc == NULL ) { - > printf("%s: can't find devclass!\n", __func__); - return; - > } - maxciss = devclass_get_maxunit(dc); - for (i = 0; i < > maxciss; i++) { - sc = devclass_get_softc(dc, i); + sc = > devclass_get_softc(devclass_find("ciss"), 0); + if (sc == NULL) > { + printf("no ciss controllers\n"); + } else { > ciss_print_adapter(sc); } > > > If anyone, namely Sean, be willing to take a look at my diff, I > would greatly appreciate it: > > https://github.com/trueos/trueos/compare/9.3.1-STABLE...JonathonReinhart:update-ciss-to-latest > > You'll see there is one commit that I made, and that is the one > I'm unsure of. > > Thank you for your time, Jonathon Reinhart > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJWXiVVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5ksYoH/1kau/Bz3QQNWz4VsNVMsd/h aJdE76TjB8E/+SSYfTOMSx09r05Ld4wOxtLDLvmcyOZX1JXNwhqR/whbtPo8CXI7 yHnQKRcWlNTA22pT42P7vQpPKE2NfBqUyg3YJAhpwak91xPT//bEhipXFWHrimCE RKEVso8U8FcLzBrvGtuPLHKGAO/Q15RO/j3x9cDcVTulKWa23dMrJ/qoX6qu226/ odV63sPRKUDrwW4DJzzLep9Q4bEShy/2z4RuRBpSXHWa9iRqWB8wh3RVO9+tyPVE OfBq6KfZ1y7sSxXTe1ntZqY3P/nXhp0tAy+heEU+sHJSYHWxvmtnKtRC89zamXU= =9uLw -----END PGP SIGNATURE-----