From owner-freebsd-hardware@FreeBSD.ORG Sun Jul 17 20:27:17 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECD96106566C for ; Sun, 17 Jul 2011 20:27:17 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id B394D8FC13 for ; Sun, 17 Jul 2011 20:27:17 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:699c:2567:b544:4319]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 05FF24AC3A for ; Mon, 18 Jul 2011 00:27:16 +0400 (MSD) Date: Mon, 18 Jul 2011 00:27:15 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1352622184.20110718002715@serebryakov.spb.ru> To: "freebsd-hardware@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: SiI 3132 goes crazy and marks both disks as "Reserved" after each reboot X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2011 20:27:18 -0000 Hello, Freebsd-hardware. I've added SiI 3132-based controller with two SATA disks to system, and almost lost my sanity: "gstripe" configuration becomes lost after each reboot. After some investigation, I found, that after each reboot last sector of disk contains SiI meta-information instead of GEOM:STRIPE one. SiI RAID uitility shows disks as "Reserved disks," but refuse to delete RAID volume, as here is no one. How to reset this state? And where SiI controller store information (additional to last sector)? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-hardware@FreeBSD.ORG Sun Jul 17 23:11:49 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 025621065673 for ; Sun, 17 Jul 2011 23:11:49 +0000 (UTC) (envelope-from m-zdgxzg46Tlb6bzUIQTgB_w46U0EpBnA7zT-48ro4VI2@bounce.linkedin.com) Received: from maile-ae.linkedin.com (maile-ae.linkedin.com [69.28.147.168]) by mx1.freebsd.org (Postfix) with ESMTP id D28798FC12 for ; Sun, 17 Jul 2011 23:11:48 +0000 (UTC) DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=prod; d=linkedin.com; h=DKIM-Signature:Sender:Date:From:To:Message-ID:Subject:MIME-Version:Content-Type:X-LinkedIn-Template:X-LinkedIn-Class:X-LinkedIn-fbl; b=SZsbXjWqD2a/psvC4Zx6vDccS294+9ZhQ9vwtySpM3ixdoy0tRKq7zlmA2AmrnJg xM+Szzo5QMfgz9xezlkaoYm7uWqEPdECUaYg6TRGvgvzoTTNA3hxxr9PzAmgRg7I DKIM-Signature: v=1; a=rsa-sha1; d=linkedin.com; s=proddkim; c=relaxed/relaxed; q=dns/txt; i=@linkedin.com; t=1310944308; h=From:Subject:Date:To:MIME-Version:Content-Type:X-LinkedIn-Class:X-LinkedIn-fbl: X-LinkedIn-Template; bh=gys0+21iOyXdWq34qtobyTGTzs0=; b=PxlDwVOfmDhuue4sRtY7BgOqMgBspGGmiD8kMtMvm2MUcMwCy7bxfY3uNdTC+DjC DSdFRxGIeeZB3daSnDHFjJsu1x+iuQuPFf0xjfN8N1NWGhY9+TS8kFAx337jIMsi; Sender: messages-noreply@bounce.linkedin.com Date: Sun, 17 Jul 2011 23:11:48 +0000 (UTC) From: LinkedIn Today To: Chunlin Yao Message-ID: <1686541091.63580391.1310944308283.JavaMail.app@ela4-app0105.prod> MIME-Version: 1.0 X-LinkedIn-Template: at_a_glance X-LinkedIn-Class: LIN-NEWS X-LinkedIn-fbl: m-zdgxzg46Tlb6bzUIQTgB_w46U0EpBnA7zT-48ro4VI2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Top Headlines in Computer Software X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2011 23:11:49 -0000 The week's most popular industry news: Computer Software -------------------- =20 =20 =20 =20 =20 =20 =20 Computer Software =20 =20 Hadoop & Startups: Where Open Source Meets Business Data - techcrunch.com (= 209 shares) This guest post was written by Kovas Boguta, Head of Analytics at Weebly. I= n 2009, Kovas wrote a guest post=C2=A0about visualizing real-time social st= ructures. A decade ago, the open-source LAMP (Linux, Apache, MySQL, PHP/Py= thon)... http://www.linkedin.com/e/8y5tt7-gq8me62f-1p/nab/641175183/0Se3oRczgMd3oIe3= gRc3AMc3gSb3AMe34RcP4QdyMUd3sSej4Nd3oIcPwNdjsNcjgS/true/weekly/eml-tod-b-tt= le-4/ =20 Refuse to be Terrorized - wired.com (5 shares) Arresting would-be attackers becomes a pyrrhic victory if politicians and t= he media spread fear on the terrorists' behalf. Commentary by Bruce Schneie= r. http://www.linkedin.com/e/8y5tt7-gq8me62f-1p/nab/641196748/0Se3oRczgMd3oIe3= gRc3AMc3gSb3AMe34RcP4QdyMUd3sSej4Nd3oIcPwNdjsNcjgS/true/weekly/eml-tod-b-tt= le-4/ =20 Sharpen Lawn Mower Blades to Increase Efficiency, Lawn Health - lifehacker.= com (20 shares) Dull lawn mower blades don't cut grass, instead they crush and bruise it, l= eaving your lawn vulnerable to sun damage and disease. Every so often you = should sharpen your lawn mower's blades to keep it cutting efficiently. http://www.linkedin.com/e/8y5tt7-gq8me62f-1p/nab/641351809/0Se3oRczgMd3oIe3= gRc3AMc3gSb3AMe34RcP4QdyMUd3sSej4Nd3oIcPwNdjsNcjgS/true/weekly/eml-tod-b-tt= le-4/ =20 Want a Spotify US Invite? Here is how you get it. - gigaom.com (97 shares) Last week, Spotify launched in the United States with much fanfare. Many of= our readers pinged me asking for get an invitation to Spotify's music serv= ice. We talked to some folks over at Spotify and worked on getting you acce= ss. http://www.linkedin.com/e/8y5tt7-gq8me62f-1p/nab/640090548/0Se3oRczgMd3oIe3= gRc3AMc3gSb3AMe34RcP4QdyMUd3sSej4Nd3oIcPwNdjsNcjgS/true/weekly/eml-tod-b-tt= le-4/ =20 Zappedy Acquired By Groupon. What=E2=80=99s Zappedy? - techcrunch.com (207 = shares) An anonymous tipster tells us Zappedy, a company that offered various techn= ology products for local businesses, has been acquired by Groupon, informat= ion that turns out to be correct according to a message posted on the... http://www.linkedin.com/e/8y5tt7-gq8me62f-1p/nab/640425686/0Se3oRczgMd3oIe3= gRc3AMc3gSb3AMe34RcP4QdyMUd3sSej4Nd3oIcPwNdjsNcjgS/true/weekly/eml-tod-b-tt= le-4/ =20 =20 =20 =20 =20 =20 From owner-freebsd-hardware@FreeBSD.ORG Mon Jul 18 05:13:16 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87C21106564A; Mon, 18 Jul 2011 05:13:16 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id D988E8FC12; Mon, 18 Jul 2011 05:13:15 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p6I5DB2t002488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 17 Jul 2011 22:13:13 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p6I5DBf8002487; Sun, 17 Jul 2011 22:13:11 -0700 (PDT) Received: from fbsd81 ([192.168.200.81]) by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA08956; Sun, 17 Jul 11 22:08:59 PDT Date: Mon, 18 Jul 2011 05:09:24 -0700 From: perryh@pluto.rain.com To: lev@freebsd.org Message-Id: <4e242274.1QWXzsZLtmzggAeS%perryh@pluto.rain.com> References: <1352622184.20110718002715@serebryakov.spb.ru> In-Reply-To: <1352622184.20110718002715@serebryakov.spb.ru> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hardware@freebsd.org Subject: Re: SiI 3132 goes crazy and marks both disks as "Reserved" after each reboot X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2011 05:13:16 -0000 Lev Serebryakov wrote: > Hello, Freebsd-hardware. > > I've added SiI 3132-based controller with two SATA disks to > system, and almost lost my sanity: "gstripe" configuration > becomes lost after each reboot. After some investigation, > I found, that after each reboot last sector of disk contains > SiI meta-information instead of GEOM:STRIPE one. > > SiI RAID uitility shows disks as "Reserved disks," but refuse > to delete RAID volume, as here is no one. > > How to reset this state? And where SiI controller store > information (additional to last sector)? Dunno what-all else may be needed, but one way to preserve the SiI metadata would be, instead of gstriping the disks themselves, make a slice (MBR) or partition (GPT) on each disk -- a little smaller than the whole disk -- and gstripe those slices or partitions. From owner-freebsd-hardware@FreeBSD.ORG Mon Jul 18 07:03:13 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6D551065670 for ; Mon, 18 Jul 2011 07:03:13 +0000 (UTC) (envelope-from cam@eleventhhourfx.com) Received: from eleventhhourfx.com (Neuromancer-1-pt.tunnel.tserv15.lax1.ipv6.he.net [IPv6:2001:470:c:e3a::2]) by mx1.freebsd.org (Postfix) with ESMTP id C95608FC0C for ; Mon, 18 Jul 2011 07:03:13 +0000 (UTC) Received: from amuro.localnet (neo-zeon.de [173.228.7.225]) (authenticated bits=0) by eleventhhourfx.com (8.14.4/8.14.4) with ESMTP id p6I738E1097896 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 18 Jul 2011 00:03:08 -0700 (PDT) (envelope-from cam@eleventhhourfx.com) From: Cameron Berkenpas To: freebsd-hardware@freebsd.org Date: Mon, 18 Jul 2011 00:03:07 -0700 User-Agent: KMail/1.13.6 (Linux/2.6.39.3; KDE/4.6.5; x86_64; ; ) References: <1352622184.20110718002715@serebryakov.spb.ru> <4e242274.1QWXzsZLtmzggAeS%perryh@pluto.rain.com> In-Reply-To: <4e242274.1QWXzsZLtmzggAeS%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201107180003.07821.cam@eleventhhourfx.com> X-Spam-Status: No, score=-1.9 required=3.5 tests=BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eleventhhourfx.com Subject: Re: SiI 3132 goes crazy and marks both disks as "Reserved" after each reboot X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2011 07:03:14 -0000 On Monday, July 18, 2011 05:09:24 AM perryh@pluto.rain.com wrote: > Lev Serebryakov wrote: > > Hello, Freebsd-hardware. > > > > I've added SiI 3132-based controller with two SATA disks to > > > > system, and almost lost my sanity: "gstripe" configuration > > becomes lost after each reboot. After some investigation, > > I found, that after each reboot last sector of disk contains > > SiI meta-information instead of GEOM:STRIPE one. > > > > SiI RAID uitility shows disks as "Reserved disks," but refuse > > > > to delete RAID volume, as here is no one. > > > > How to reset this state? And where SiI controller store > > > > information (additional to last sector)? > > Dunno what-all else may be needed, but one way to preserve the SiI > metadata would be, instead of gstriping the disks themselves, make > a slice (MBR) or partition (GPT) on each disk -- a little smaller > than the whole disk -- and gstripe those slices or partitions. > _______________________________________________ > freebsd-hardware@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@freebsd.org" From owner-freebsd-hardware@FreeBSD.ORG Mon Jul 18 07:27:33 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69B89106564A; Mon, 18 Jul 2011 07:27:33 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id A5C548FC0A; Mon, 18 Jul 2011 07:27:31 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p6I7RTgR046316; Mon, 18 Jul 2011 10:27:29 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p6I7RRp7046315; Mon, 18 Jul 2011 10:27:27 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Ian Smith , freebsd-multimedia@freebsd.org Date: Mon, 18 Jul 2011 10:27:26 +0300 User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107061249.49637.achill@matrix.gatewaynet.com> <20110706212809.O84785@sola.nimnet.asn.au> In-Reply-To: <20110706212809.O84785@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201107181027.27546.achill@matrix.gatewaynet.com> Cc: Chris Hill , freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2011 07:27:33 -0000 Hello again, It worked! Just to recap on the hardware used and the architecture of the whole setup: Camera ( simple analog wired (coaxial cable)) is sending video to Kodicom K= MC-4400R video card the video is analyzed via Zoneminder, and a separate deamon in perl polls t= he shared memory with zoneminder to check for alarm/alert caused by motion detection. Upon motion detection, the daemon drives this USB relay board: http://cgi.ebay.co.uk/USB-8-Channel-Relay-Board-RS232-Serial-controlled-/28= 0591766649?_trksid=3Dp5197.m7&_trkparms=3Dalgo%3DLVI%26itu%3DUCI%26otn%3D1%= 26po%3DLVI%26ps%3D63%26clkid%3D1423565781848187460 (FTDI based), using simple echo commands like: #!/usr/local/bin/bash echo -e "\xFF\x01\x01" > /dev/cuaU0 sleep 1 echo -e "\xFF\x01\x00" > /dev/cuaU0 However, the above when tested with Ubuntu 11, didnt work out of the box un= til i set baudrate explicitly to 9600. In FreeBSD worked at once, just by running the above script. Now, two of the relay board NC outputs (circuits) are connected to the two = inputs (loops) in=20 http://www.visonic.com/Products/Wireless-Property-Protection/Universal-tran= smitter-mct-100 (the two circuits are defined as being "EOL" type, not NC) which in turn talks to=20 http://www.visonic.com/Products/Wireless-Property-Protection/PowerMaxPlus I have two cameras, and i use them as two separate zones. I think it works = good, and at least for interior spaces, i think motion detection via video is mor= e reliable than IR detectors, because in the summer IR struggle to detect motion when ambient temperature is close to the human temperature. (In exterior spaces, video motion detection is problematic due to large bi= rds, insects, etc, while exterior IR motion detection is by default unreliable) Thank you all! =CE=A3=CF=84=CE=B9=CF=82 Wednesday 06 July 2011 15:40:08 =CE=BF/=CE=B7 Ian = Smith =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Hi Achilleas, >=20 > Dropping multimedia@ cc as this seems pretty well 100% hardware .. but=20 > I'm not subscribed to hardware@ so please cc me from there. >=20 > On Wed, 6 Jul 2011, Achilleas Mantzios wrote: >=20 > > another thing that puzzles me is power. > > This board : http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-R= S232-Serial-Controlled-/110710333092?pt=3DUK_BOI_Electrical_Components_Supp= lies_ET&hash=3Ditem19c6d99ea4 > > needs VDC 12V supply=20 > > while this one : http://www.ebay.co.uk/itm/USB-Four-4-Relay-Module-Boa= rd-Home-Automation-/180646300804?pt=3DLH_DefaultDomain_0&hash=3Ditem2a0f5bc= c84 > > is self powered from USB. > >=20 > > batteries do not come cheap, and having an extra AC/DC adaptor is not = very good either ... >=20 > That 4-relay one might better suit your application then, if FreeBSD usb= =20 > recognises it. It seems to use the same (FTDI?) drivers under windows=20 > as the other one, but I know almost nought about USB device detection. >=20 > > another thing is the relay parameters, i see various figures : > > Relay parameters: 5V / 72mA, 15A/24VDC (120VAC), 10A/250VAC or > > Each switch 12VDC/15A or 240VAC/10A or > > Open (No) and Closed (NC) Contacts rated for voltages: 12VDC/15A; 24VD= C/15A; 125VAC/15A; 250VAC/10A > >=20 > > my specific application i want to drive is this wireless xmitter : > > http://www.visonic.com/Data/Uploads/MCT_100_Installer_Guide_English_DE= 2241U.pdf > > Should i assume my device that i want my relay to control will have vo= ltage of 3V? > >=20 > > for which Voltage/Ampere figures should i opt? are those figures cruci= al? >=20 > 5V / 72mA is the relay solenoid drive current. 4 of these switched on=20 > would use ~300mA, leaving 100mA for the other board circuitry. The 12V=20 > board's relays use the same drive power, 360mW, ie 12V @ 30mA. >=20 > The relay switched contacts are rated at 12VDC to 15A (180W) or 240VAC=20 > to 10A (2.4kW!), whereas your MCT 100 is only watching for NC contacts=20 > to open; closed circuit current will be a few mA at most and you won't=20 > see more than 5V over the open contacts .. ie, not an issue. >=20 > > thanx a lot >=20 > A pleasure. >=20 > cheers, Ian >=20 =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Mon Jul 18 09:45:16 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 873CD106566B; Mon, 18 Jul 2011 09:45:16 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 8F3A68FC1E; Mon, 18 Jul 2011 09:45:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id p6I9jBrC080442; Mon, 18 Jul 2011 19:45:12 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 18 Jul 2011 19:45:11 +1000 (EST) From: Ian Smith To: Achilleas Mantzios In-Reply-To: <201107181027.27546.achill@matrix.gatewaynet.com> Message-ID: <20110718192453.P94719@sola.nimnet.asn.au> References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107061249.49637.achill@matrix.gatewaynet.com> <20110706212809.O84785@sola.nimnet.asn.au> <201107181027.27546.achill@matrix.gatewaynet.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-multimedia@freebsd.org, Chris Hill , freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2011 09:45:16 -0000 On Mon, 18 Jul 2011, Achilleas Mantzios wrote: > Hello again, It worked! Excellent! > Just to recap on the hardware used and the architecture of the whole setup: > > Camera ( simple analog wired (coaxial cable)) is sending video to Kodicom KMC-4400R video card > the video is analyzed via Zoneminder, and a separate deamon in perl polls the shared memory > with zoneminder to check for alarm/alert caused by motion detection. > Upon motion detection, the daemon drives this USB relay board: > http://cgi.ebay.co.uk/USB-8-Channel-Relay-Board-RS232-Serial-controlled-/280591766649?_trksid=p5197.m7&_trkparms=algo%3DLVI%26itu%3DUCI%26otn%3D1%26po%3DLVI%26ps%3D63%26clkid%3D1423565781848187460 > (FTDI based), using simple echo commands like: > #!/usr/local/bin/bash > echo -e "\xFF\x01\x01" > /dev/cuaU0 > sleep 1 > echo -e "\xFF\x01\x00" > /dev/cuaU0 > However, the above when tested with Ubuntu 11, didnt work out of the > box until i set baudrate explicitly to 9600. > In FreeBSD worked at once, just by running the above script. That'll be because FreeBSD uses 9600 baud as the default serial rate. > Now, two of the relay board NC outputs (circuits) are connected to the two inputs (loops) in > http://www.visonic.com/Products/Wireless-Property-Protection/Universal-transmitter-mct-100 > (the two circuits are defined as being "EOL" type, not NC) > which in turn talks to > http://www.visonic.com/Products/Wireless-Property-Protection/PowerMaxPlus > > I have two cameras, and i use them as two separate zones. I think it works good, > and at least for interior spaces, i think motion detection via video is more reliable > than IR detectors, because in the summer IR struggle to detect motion when > ambient temperature is close to the human temperature. Indeed, in late summer here the humans would show up as cool spots :) > (In exterior spaces, video motion detection is problematic due to large birds, insects, etc, > while exterior IR motion detection is by default unreliable) > > Thank you all! Thanks for news and feedback. Good to know that those relay boards work erll with FreeBSD .. I have an upcoming project that could use these. cheers, Ian From owner-freebsd-hardware@FreeBSD.ORG Mon Jul 18 10:43:24 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEA9F1065672 for ; Mon, 18 Jul 2011 10:43:24 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8CD6A8FC13 for ; Mon, 18 Jul 2011 10:43:24 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:699c:2567:b544:4319]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id AD34A4AC68; Mon, 18 Jul 2011 12:14:46 +0400 (MSD) Date: Mon, 18 Jul 2011 12:14:35 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <3910736169.20110718121435@serebryakov.spb.ru> To: perryh@pluto.rain.com In-Reply-To: <4e242274.1QWXzsZLtmzggAeS%perryh@pluto.rain.com> References: <1352622184.20110718002715@serebryakov.spb.ru> <4e242274.1QWXzsZLtmzggAeS%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hardware@freebsd.org Subject: Re: SiI 3132 goes crazy and marks both disks as "Reserved" after each reboot X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2011 10:43:25 -0000 Hello, Perryh. You wrote 18 =E8=FE=EB=FF 2011 =E3., 16:09:24: >> How to reset this state? And where SiI controller store >> information (additional to last sector)? > Dunno what-all else may be needed, but one way to preserve the SiI > metadata would be, instead of gstriping the disks themselves, make > a slice (MBR) or partition (GPT) on each disk -- a little smaller > than the whole disk -- and gstripe those slices or partitions. My task is directly the opposite: I want make SiI 3132 to FORGET about all RAID-related stuff and to don't touch HDDs in any way and behave as simple SATA HBA. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-hardware@FreeBSD.ORG Mon Jul 18 11:07:03 2011 Return-Path: Delivered-To: freebsd-hardware@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7C231065675 for ; Mon, 18 Jul 2011 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AC7758FC1C for ; Mon, 18 Jul 2011 11:07:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p6IB73R3026787 for ; Mon, 18 Jul 2011 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6IB73qP026785 for freebsd-hardware@FreeBSD.org; Mon, 18 Jul 2011 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Jul 2011 11:07:03 GMT Message-Id: <201107181107.p6IB73qP026785@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-hardware@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-hardware@FreeBSD.org X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2011 11:07:03 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/156241 hardware [mfi] 'zfs send' does not prevents disks to suspend if 1 problem total. From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 19 11:09:43 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53C6E106566B; Tue, 19 Jul 2011 11:09:43 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ey0-f176.google.com (mail-ey0-f176.google.com [209.85.215.176]) by mx1.freebsd.org (Postfix) with ESMTP id B1D2B8FC15; Tue, 19 Jul 2011 11:09:42 +0000 (UTC) Received: by eya28 with SMTP id 28so3270496eya.21 for ; Tue, 19 Jul 2011 04:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :x-enigmail-version:content-type:content-transfer-encoding; bh=ogeys0ACoNWb1A63Q/MHA0QDxApdmwdksGdw19t8bcw=; b=HuGL6NsYhQJTkpn4LIi++wfzTH3RUbDEO5THcfdopMyH5oL8GtB9mnRrT5FiQdkMtx KXuMUtCJ8/4rzeeljgDITWjMxC43Mizdd9RWKoAuFNk7vU1R8BI8UUNaFS+X1t9h/mOx yb+ZokixfPH1qt0I4WKloPbINNTXTAgYZNkmQ= Received: by 10.213.9.145 with SMTP id l17mr2626779ebl.10.1311072205366; Tue, 19 Jul 2011 03:43:25 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id w9sm2644827eej.19.2011.07.19.03.43.23 (version=SSLv3 cipher=OTHER); Tue, 19 Jul 2011 03:43:24 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E255F64.30608@FreeBSD.org> Date: Tue, 19 Jul 2011 13:41:40 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: freebsd-x11@freebsd.org X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-hardware@freebsd.org Subject: USB HID support for xf86-input-mouse (including digitizers and touchscreens) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2011 11:09:43 -0000 Hi. Looking on xf86-input-mouse, I've found that it includes some code to support USB HID pointing devices directly using libusbhid library. But that code seemed like newer worked (at least on FreeBSD) and is quite limited. Same time that approach would allow us to override different limitation, now imposed by sysmouse protocol. For example, to support absolute coordinates, pressure force, multiple touches, etc. I've made a patch, rewriting it to support wide range of pointing devices. I've tested it with few mouses, digitizer and two touchscreens. To use it, you may: 1. Update installed packages to have x11-drivers/xf86-input-mouse of the version 1.6.0. 2. Download patch http://people.freebsd.org/~mav/patch-zz-input-mouse8 and put it into /usr/ports/x11-drivers/xf86-input-mouse/files 3. Rebuild and reinstall the driver. 4. Release the pointing device of ums driver, if needed (build kernel without ums). Device should be reported as uhidX. 5. Add to Xorg configuration: Section "InputDevice" Identifier "Panel1" Driver "mouse" Option "Protocol" "usb" Option "Device" "/dev/uhidX" EndSection ... Section "ServerLayout" ... InputDevice "Panel1" ... EndSection Some HID devices provide several first-level logical collections (subdevices), supported by the driver. In that case several of above devices should be added with different Identifier but same Device. For example, my Asus T101MT laptop's touchscreen has two usable logical collections: multi-touch touchscreen and it's mouse emulation. 6. In different operation modes device may report events via different of these collections. Due to present uhid(4) driver API limitation, it is impossible for the driver to switch them now. The only way now is to switch them directly via libusb with command line usbconfig -u 1 -a 3 do_request 0x21 0x09 0x0305 0x0000 0x0002 0x05 0x0Z where Z is value from 0 to 2, where 0 is a mouse emulation, 1 is a single-touch touch-screen and 2 -- native mode. And 05 is a feature report ID that includes the switch for my touchscreen. 7. Due to missing multitouch support in present Xorg (XInput 2.1 required), multiple touches are now mapped to right button press now. As any other button, it can be mapped to mouse wheel emulation by adding into the device section: Option "EmulateWheel" "on" Option "EmulateWheelButton" "3" <- right button Option "EmulateWheelInertia" "500" <- this may be tuned Option "XAxisMapping" "7 6" Option "YAxisMapping" "5 4" It allows to scroll with two fingers. 8. I was experimenting with a hack, mapping multiple touches into different pointers, using Multi-Pointer X technology, added from present Xinput 2.0. I indeed successfully had several separate pointers on screen, so multitouch touch screen itself is working fine. But I haven't found any practical use for it. If somebody heard about any application that has some useful support for MPX -- tell me please. I am not sure it will be the permanent solution and what are the chances to commit it upstream now. I am thinking about further changes at kernel level to implement it other way. But for existing systems I think it is an acceptable way to go. On any problems, send me Xorg.0.log and `usbhidctl -f /dev/uhidX -r` outputs. Thank you. Comments welcome. -- Alexander Motin From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 19 19:17:33 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FDA2106566B for ; Tue, 19 Jul 2011 19:17:33 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id CC8D48FC15 for ; Tue, 19 Jul 2011 19:17:32 +0000 (UTC) Received: (qmail 17998 invoked by uid 0); 19 Jul 2011 19:17:32 -0000 Received: from 67.206.184.3 by rms-us006.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Tue, 19 Jul 2011 19:17:28 +0000 From: "Dieter BSD" Message-ID: <20110719191730.105100@gmx.com> MIME-Version: 1.0 To: freebsd-hardware@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: eO4Qf3tBy1u0cEqNWWwng/9sZ2hlN8pC Subject: Re: SiI 3132 goes crazy and marks both disks as "Reserved" after each reboot X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2011 19:17:33 -0000 > I've added SiI 3132-based controller with two SATA disks to system, > and almost lost my sanity: "gstripe" configuration becomes lost after > each reboot. After some investigation, I found, that after each reboot > last sector of disk contains SiI meta-information instead of > GEOM:STRIPE one. I have a couple of SiI 3132 controllers (Masscool XWT-PCIE10) with GPT partitioned disks, and the last sectors still appear to contain the Sec GPT headers after several reboots. > How to reset this state? And where SiI controller store information > (additional to last sector)? I suspect your card's BIOS code.  You could see if your mainboard has an option to not run expansion card BIOS code.  You could see if there is a better version of BIOS code available for your card. If all else fails, you could create a backup copy of the last sector and have dd(1) restore it from rc.local or cron @reboot. From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 19 21:39:03 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8004106564A; Tue, 19 Jul 2011 21:39:03 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 330628FC16; Tue, 19 Jul 2011 21:39:02 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:d4eb:36bb:6cb8:7401]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id B45F14AC1C; Wed, 20 Jul 2011 01:38:59 +0400 (MSD) Date: Wed, 20 Jul 2011 01:38:56 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1981757790.20110720013856@serebryakov.spb.ru> To: freebsd-hardware@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------968014E387BE7D2" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Alexander Motin Subject: ahci.ko / geom_mirror / zfs hangs up system when one of HDDs fauilts. X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2011 21:39:03 -0000 ------------968014E387BE7D2 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Hello, Freebsd-hardware. I've have two identical live locks when HDD becomes broken on 8.2-STABLE system with two SATA HDDs withgmirror and ZFS on them. It is Hetzner-based server, so only access I have is LARA console, but symptoms are identical in both cases: HDD becomes bad, ahci.ko complains about timeouts, and after that server stops to respond on high-level access attempts (ssh/HTTP/SMTP), but can be pinged both with IPv4 and IPv6 addresses. HDDs are identical, and they are splitted into several (BSD)partions. Some partitions are mirrired with geom_mirror and one pair of partitions are added to (mirrored) ZFS pool like this (I proved output on rebooted one-HDD-only system, but, I think, it is clear how it looks when both HDDs are Ok): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # gmirror status onlyone# gmirror status Name Status Components mirror/root DEGRADED ada0s1a mirror/var DEGRADED ada0s1d mirror/tmp DEGRADED ada0s1e mirror/usr DEGRADED ada0s1f mirror/databases DEGRADED ada0s1g # zpool status pool: pool state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist= for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://www.sun.com/msg/ZFS-8000-2Q scrub: none requested config: NAME STATE READ WRITE CKSUM pool DEGRADED 0 0 0 mirror DEGRADED 0 0 0 ada0s1h ONLINE 0 0 0 ada0s1h UNAVAIL 0 0 0 cannot open errors: No known data errors =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Screenshot of LARA console in such case is attached. --=20 // Black Lion AKA Lev Serebryakov ------------968014E387BE7D2-- From owner-freebsd-hardware@FreeBSD.ORG Fri Jul 22 16:22:54 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BEC31065675 for ; Fri, 22 Jul 2011 16:22:54 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx1.freebsd.org (Postfix) with ESMTP id C9F348FC17 for ; Fri, 22 Jul 2011 16:22:53 +0000 (UTC) Received: by fxe6 with SMTP id 6so4142289fxe.17 for ; Fri, 22 Jul 2011 09:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=yW4s2bj6tbEOeAturR+p/iJwHTI2JAnB0YUcnGN85sA=; b=Uls+9v2YIzsJctJCp2YuA4L8eJ9WoOupPiwipILnPKtp5YpY4wFS0Qp9S7vbbP3E7Q FfJ3y3NsrHEtDlLSVnXHXwZ4VId/KQasEQbv+Uu2QTRibat9H3RcIS6vBZwTi/Kv6iI6 sQs6Z0Z5PnfjvtQ8iEEeFNoWwlhCmT/d4uink= Received: by 10.223.1.12 with SMTP id 12mr2268609fad.113.1311351772615; Fri, 22 Jul 2011 09:22:52 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id f7sm1387864faa.32.2011.07.22.09.22.50 (version=SSLv3 cipher=OTHER); Fri, 22 Jul 2011 09:22:51 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E29A3D6.1080609@FreeBSD.org> Date: Fri, 22 Jul 2011 19:22:46 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: lev@FreeBSD.org References: <1981757790.20110720013856@serebryakov.spb.ru> In-Reply-To: <1981757790.20110720013856@serebryakov.spb.ru> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 7bit Cc: freebsd-hardware@freebsd.org Subject: Re: ahci.ko / geom_mirror / zfs hangs up system when one of HDDs fauilts. X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2011 16:22:54 -0000 Lev Serebryakov wrote: > I've have two identical live locks when HDD becomes broken on > 8.2-STABLE system with two SATA HDDs withgmirror and ZFS on them. > > It is Hetzner-based server, so only access I have is LARA console, > but symptoms are identical in both cases: HDD becomes bad, ahci.ko > complains about timeouts, and after that server stops to respond on > high-level access attempts (ssh/HTTP/SMTP), but can be pinged both > with IPv4 and IPv6 addresses. > > HDDs are identical, and they are splitted into several (BSD)partions. > Some partitions are mirrired with geom_mirror and one pair of > partitions are added to (mirrored) ZFS pool like this (I proved output > on rebooted one-HDD-only system, but, I think, it is clear how it > looks when both HDDs are Ok): > > Screenshot of LARA console in such case is attached. Kernel messages look like if controller or device stuck, unable to complete some command and can't recover from that condition even after device hard reset. I don't see what driver can do about it, except being more aggressive in dropping faulty device after several consecutive timeouts. If that is not a wanted way out, start from updating card BIOS and devices firmware. -- Alexander Motin From owner-freebsd-hardware@FreeBSD.ORG Fri Jul 22 20:46:29 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A63C1065672; Fri, 22 Jul 2011 20:46:29 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 19F3D8FC12; Fri, 22 Jul 2011 20:46:29 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:d4eb:36bb:6cb8:7401]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id B95544AC31; Sat, 23 Jul 2011 00:46:26 +0400 (MSD) Date: Sat, 23 Jul 2011 00:46:20 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <2710115660.20110723004620@serebryakov.spb.ru> To: Alexander Motin In-Reply-To: <4E29A3D6.1080609@FreeBSD.org> References: <1981757790.20110720013856@serebryakov.spb.ru> <4E29A3D6.1080609@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hardware@freebsd.org Subject: Re: ahci.ko / geom_mirror / zfs hangs up system when one of HDDs fauilts. X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2011 20:46:29 -0000 Hello, Alexander. You wrote 22 =E8=FE=EB=FF 2011 =E3., 20:22:46: >> Screenshot of LARA console in such case is attached. > Kernel messages look like if controller or device stuck, unable to > complete some command and can't recover from that condition even after > device hard reset. I don't see what driver can do about it, except being > more aggressive in dropping faulty device after several consecutive > timeouts. If that is not a wanted way out, start from updating card BIOS > and devices firmware. It is very common hardware: ICH10 on MS-7522 (MSI X58 Platinum) motherboa= rd: ahci0: port 0xb000-0xb007,0xac00-0xac03,= 0xa880-0xa887,0xa800-0xa803,0xa480-0xa49f mem 0xf9ffa000-0xf9ffa7ff irq 19 = at device 31.2 on pci0 ahci0: [ITHREAD] ahci0: AHCI v1.20 with 6 3Gbps ports, Port Multiplier not supported And Samsung F3 drive: ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ATA-8 SATA 2.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 715404MB (1465149168 512 byte sectors: 16H 63S/T 16383C) I'm not sure, that it is possible to update firmware on these drives. And MoBo BIOS looks like latest one. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-hardware@FreeBSD.ORG Fri Jul 22 21:49:07 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C431C1065672 for ; Fri, 22 Jul 2011 21:49:07 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8A6C48FC1B for ; Fri, 22 Jul 2011 21:49:07 +0000 (UTC) Received: by gwb15 with SMTP id 15so2283245gwb.13 for ; Fri, 22 Jul 2011 14:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=B2R+azWvDZegosolU8HC16eZtc9Q9NUGADWhEuYpbH0=; b=jHm6oQVHehDc45YKxGJhQ3Bx4bhrrRcYCfoFdkDtaP4HrTm9TJGlxAWJss1hgX7Xeq C4/q2XGhv0P/AN2L6Mpr74q2F6BtRLFT8MMoWvcCrgksx+aGnEGaEVHhfXYkjjd49a9e c1h/DRhFMREznbSaHjZFHt3GiQTBK4Eg4jD10= MIME-Version: 1.0 Received: by 10.142.120.1 with SMTP id s1mr1078816wfc.252.1311369762553; Fri, 22 Jul 2011 14:22:42 -0700 (PDT) Received: by 10.142.201.1 with HTTP; Fri, 22 Jul 2011 14:22:42 -0700 (PDT) Date: Fri, 22 Jul 2011 17:22:42 -0400 Message-ID: From: grarpamp To: freebsd-hardware@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Silicon Image programming docs X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2011 21:49:07 -0000 Found some datasheets (programming docs) and board schematics for Silicon Image storage controllers. Since they don't seem to be publicly available, perhaps some of these docs will be useful. Bcc'd relevant fs and hackers lists. Reply to hardware I guess. # Overview http://www.siliconimage.com/products/family.aspx?id=3 http://www.siliconimage.com/docs/Site_PDFs/Product_Guide_3Q_2011.pdf # SiI0680 http://www.siliconimage.com/docs/SiI-DS-0069-C.pdf http://www.siliconimage.com/docs/SiI-SC-0094-A.PDF # SiI3114 http://www.siliconimage.com/docs/SiI-DS-0103-D.pdf http://www.siliconimage.com/docs/SiI-SC-0057-B.PDF # SiI3124 http://www.siliconimage.com/docs/SiI-DS-0160-C.pdf http://www.siliconimage.com/docs/312404_B00_092704.PDF # SiI3132 http://www.siliconimage.com/docs/SiI-DS-0136-B.pdf http://www.siliconimage.com/docs/SiI-DS-0138-E.pdf http://www.siliconimage.com/docs/SiI-SC-0097_doc.pdf # SiI3512 http://www.siliconimage.com/docs/SiI-DS-0102-D.pdf http://www.siliconimage.com/docs/SiI-DS-0107-C.pdf http://www.siliconimage.com/docs/SiI-SC-0056-B.PDF # SiI3531 http://www.siliconimage.com/docs/SiI-DS-0208-C.pdf http://www.siliconimage.com/docs/SiI-SC-215.PDF # SiI3726 http://www.siliconimage.com/docs/FINAL%20SiI3726%20Product%20Brief_02-16-2011.pdf http://www.siliconimage.com/docs/SiI-DS-0121-C1.pdf # SiI3811 http://www.siliconimage.com/docs/SiI3811_PB58_FINAL_8-17-06.pdf http://www.siliconimage.com/docs/SiI-SC-0231-A.PDF From owner-freebsd-hardware@FreeBSD.ORG Sat Jul 23 22:29:22 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E743A106566C; Sat, 23 Jul 2011 22:29:22 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx1.freebsd.org (Postfix) with ESMTP id 4196D8FC14; Sat, 23 Jul 2011 22:29:22 +0000 (UTC) Received: by fxe6 with SMTP id 6so5336171fxe.17 for ; Sat, 23 Jul 2011 15:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=j8UWQkZWBNzIOPG++EGZbAlHrVOkZ48j2N8YxW8VfSY=; b=xVnfbRmNvpaABhU91yGKFHEwuGvDWr7Gc9AJmfCJZdEvfMxS95b6oAue88ZitpounP 6npFJWkHXgGeBYU+r6g0rOrw9IkmSje/SbJLGa0CgGIisnNM2uV5iAQp5tagiXvC4nVq YXwjfVZIzdiHturB7W6rC2ZabW4dTvxwMZ9Uo= Received: by 10.223.68.22 with SMTP id t22mr4258090fai.145.1311460161235; Sat, 23 Jul 2011 15:29:21 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id f7sm2128263faa.8.2011.07.23.15.29.19 (version=SSLv3 cipher=OTHER); Sat, 23 Jul 2011 15:29:20 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E2B4B38.70207@FreeBSD.org> Date: Sun, 24 Jul 2011 01:29:12 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: lev@FreeBSD.org References: <1981757790.20110720013856@serebryakov.spb.ru> <4E29A3D6.1080609@FreeBSD.org> <2710115660.20110723004620@serebryakov.spb.ru> In-Reply-To: <2710115660.20110723004620@serebryakov.spb.ru> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: freebsd-hardware@freebsd.org Subject: Re: ahci.ko / geom_mirror / zfs hangs up system when one of HDDs fauilts. X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2011 22:29:23 -0000 Lev Serebryakov wrote: > Hello, Alexander. > You wrote 22 èþëÿ 2011 ã., 20:22:46: > >>> Screenshot of LARA console in such case is attached. >> Kernel messages look like if controller or device stuck, unable to >> complete some command and can't recover from that condition even after >> device hard reset. I don't see what driver can do about it, except being >> more aggressive in dropping faulty device after several consecutive >> timeouts. If that is not a wanted way out, start from updating card BIOS >> and devices firmware. > It is very common hardware: ICH10 on MS-7522 (MSI X58 Platinum) motherboard: > > ahci0: port 0xb000-0xb007,0xac00-0xac03,0xa880-0xa887,0xa800-0xa803,0xa480-0xa49f mem 0xf9ffa000-0xf9ffa7ff irq 19 at device 31.2 on pci0 > ahci0: [ITHREAD] > ahci0: AHCI v1.20 with 6 3Gbps ports, Port Multiplier not supported > > And Samsung F3 drive: > > ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 > ada1: ATA-8 SATA 2.x device > ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada1: Command Queueing enabled > ada1: 715404MB (1465149168 512 byte sectors: 16H 63S/T 16383C) > > I'm not sure, that it is possible to update firmware on these > drives. And MoBo BIOS looks like latest one. Then I have no idea what to do about the cause of errors. What's about consequences, I've tried to simulate alike problem (device detected, but doesn't respond). Recovery (dropping failed device) took a lot of time, but finally (after about 10 minutes) it succeeded and ZFS continued operation without that drive. After that I've just committed one patch to the HEAD and sent another one to freebsd-scsi@ for review. That, I hope, should significantly (down to 1-2 minutes) speedup that process. How long have you waited before and after making that screenshot? -- Alexander Motin