From owner-freebsd-hardware@FreeBSD.ORG Sun Jul 24 06:13:06 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 E00951065675; Sun, 24 Jul 2011 06:13:06 +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 7E0E18FC14; Sun, 24 Jul 2011 06:13:06 +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 A22394AC31; Sun, 24 Jul 2011 10:13:04 +0400 (MSD) Date: Sun, 24 Jul 2011 10:12:57 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <125242768.20110724101257@serebryakov.spb.ru> To: Alexander Motin In-Reply-To: <4E2B4B38.70207@FreeBSD.org> References: <1981757790.20110720013856@serebryakov.spb.ru> <4E29A3D6.1080609@FreeBSD.org> <2710115660.20110723004620@serebryakov.spb.ru> <4E2B4B38.70207@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: lev@FreeBSD.org, 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: Sun, 24 Jul 2011 06:13:07 -0000 Hello, Alexander. You wrote 24 =E8=FE=EB=FF 2011 =E3., 2:29:12: >> 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? About one and half hour -- server stopped to respond on HTTP/SSH/SMTP/POP3 (but responded to pings and traceroute), I've requested access to remote console, tech support provide such access and all this process takes more than hour. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-hardware@FreeBSD.ORG Sun Jul 24 23:18:58 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 86C30106566B for ; Sun, 24 Jul 2011 23:18:58 +0000 (UTC) (envelope-from m-zdgxzg46Tlb6bzUIQTgB_w46U0EpBnA7zT-48ro4VI2@bounce.linkedin.com) Received: from maile-bc.linkedin.com (maile-bc.linkedin.com [216.52.242.166]) by mx1.freebsd.org (Postfix) with ESMTP id 638048FC16 for ; Sun, 24 Jul 2011 23:18:58 +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=KwNMJfbC6ai0nwsi7nm549Dbp6mNDiuki2deRa+jtn/5nruz9brUVQLeS5Qk9W+o yqfvSveg1cJ0FboPAxsppQYaR7Lc/zAYpVzd4G2TLBmQRSFF/1K49c8HL/46I2Ss DKIM-Signature: v=1; a=rsa-sha1; d=linkedin.com; s=proddkim; c=relaxed/relaxed; q=dns/txt; i=@linkedin.com; t=1311549538; h=From:Subject:Date:To:MIME-Version:Content-Type:X-LinkedIn-Class:X-LinkedIn-fbl: X-LinkedIn-Template; bh=uMcV/hrGNsi7RfWhYeCb8JRpqOE=; b=tirknX6cUGfIZENu6nBSAExtmfespn6ujpqpIIgJ6JJE5DOPljs4b4H6PK8SXF3L d/zOQiMOD0Q8GUHTjPcxjCglLpdHNeCMY31wEJ4QmzVB15OKaiSqdn/ft62EOhLF; Sender: messages-noreply@bounce.linkedin.com Date: Sun, 24 Jul 2011 23:18:58 +0000 (UTC) From: LinkedIn Today To: Chunlin Yao Message-ID: <557267996.38282754.1311549538075.JavaMail.app@ela4-app0103.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: 7bit 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, 24 Jul 2011 23:18:58 -0000 The week's most popular industry news: Computer Software -------------------- Computer Software Google Plus Deleting Accounts En Masse: No Clear Answers - zdnet.com (274 shares) A number of Google+ accounts have been deleted in the last 24 hours as the new social network struggles with real name policy. http://www.linkedin.com/e/8y5tt7-gqimqcd3-5l/nab/654657403/0Mcj8Udz0ScPoIcjsUcPkUdjkSb34OdP4Rc3oRdyMMcjcMcP0SdjoIcP0QdPkSd3kS/true/weekly/eml-tod-b-ttle-4/ Google Plus Has A Problem. Fear Not: I Have A Solution - techcrunch.com (159 shares) .Google Plus is terrific. I don't think it will ever be more than the Pepsi to Facebook's Coke, alas, but it's much slicker and better designed. It's too bad that the service has sacrificed a pile of goodwill over the last week... http://www.linkedin.com/e/8y5tt7-gqimqcd3-5l/nab/656030310/0Mcj8Udz0ScPoIcjsUcPkUdjkSb34OdP4Rc3oRdyMMcjcMcP0SdjoIcP0QdPkSd3kS/true/weekly/eml-tod-b-ttle-4/ Leaked: iPhone 5 "Assistant" Is Enhanced Crowd-Sourcing Voice Control Based on Siri - gizmodo.com (10 shares) Although it's not currently available in the iOS 5 developer beta, a new leak has indicated a curious voice control feature called Assistant could be making its way into the mysterious iPhone 5 when it launches. Sorry, "if" it... http://www.linkedin.com/e/8y5tt7-gqimqcd3-5l/nab/656051721/0Mcj8Udz0ScPoIcjsUcPkUdjkSb34OdP4Rc3oRdyMMcjcMcP0SdjoIcP0QdPkSd3kS/true/weekly/eml-tod-b-ttle-4/ Cartoon: Pyramid Schemes - readwriteweb.com (30 shares) It isn't hard to find people willing to make absolutely firm predictions about technology and social media, each one asserted with total certainty. Facebook will be around forever, and Google+ is doomed. Google+ is the future,... http://www.linkedin.com/e/8y5tt7-gqimqcd3-5l/nab/655853871/0Mcj8Udz0ScPoIcjsUcPkUdjkSb34OdP4Rc3oRdyMMcjcMcP0SdjoIcP0QdPkSd3kS/true/weekly/eml-tod-b-ttle-4/ Why Google spent almost a billion on infrastructure in Q2 - gigaom.com (15 shares) Google spent $917 million on infrastructure during the second quarter, continuing an upward trend that helps ensure new services like Google+ keep running. It's the eight consecutive quarter of increased capital expenditures... http://www.linkedin.com/e/8y5tt7-gqimqcd3-5l/nab/636068210/0Mcj8Udz0ScPoIcjsUcPkUdjkSb34OdP4Rc3oRdyMMcjcMcP0SdjoIcP0QdPkSd3kS/true/weekly/eml-tod-b-ttle-4/ From owner-freebsd-hardware@FreeBSD.ORG Mon Jul 25 11:07: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 D02011065672 for ; Mon, 25 Jul 2011 11:07:07 +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 A56948FC1F for ; Mon, 25 Jul 2011 11:07:07 +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 p6PB77Rj046381 for ; Mon, 25 Jul 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6PB77KM046377 for freebsd-hardware@FreeBSD.org; Mon, 25 Jul 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Jul 2011 11:07:07 GMT Message-Id: <201107251107.p6PB77KM046377@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, 25 Jul 2011 11:07:07 -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 Mon Jul 25 21:13:12 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 17F6F106564A for ; Mon, 25 Jul 2011 21:13:12 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from emh03.mail.saunalahti.fi (emh03.mail.saunalahti.fi [62.142.5.109]) by mx1.freebsd.org (Postfix) with ESMTP id BEB558FC0A for ; Mon, 25 Jul 2011 21:13:11 +0000 (UTC) Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96]) by emh03-2.mail.saunalahti.fi (Postfix) with SMTP id 7E392EBC70; Mon, 25 Jul 2011 23:56:33 +0300 (EEST) Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by vs3-12.mail.saunalahti.fi ([62.142.5.96]) with SMTP (gateway) id A07D4481694; Mon, 25 Jul 2011 23:56:33 +0300 Received: from [192.168.255.126] (e82-103-198-108.elisa-laajakaista.fi [82.103.198.108]) by emh03.mail.saunalahti.fi (Postfix) with ESMTP id 65EBD158A64; Mon, 25 Jul 2011 23:56:31 +0300 (EEST) Message-ID: <4E2DD87E.1030402@kapsi.fi> Date: Mon, 25 Jul 2011 23:56:30 +0300 From: Arto Pekkanen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fi; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-hardware@freebsd.org X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: VAMS Subject: Looking for an inexpensive pci-e SATA controller for FreeBSD 8.2 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, 25 Jul 2011 21:13:12 -0000 I need a reasonably priced PCI-E controller for my Via Epia NAS project. The motherboard I will be using has only 2 SATA ports, and would require at least 2 more. Due to where I live (Finland) my options are very limited. Currently I've managed to find two manufacturers with reasonably priced products: DeLock and Promise. These two devices would be perfect - DeLock SX-109A: http://www.jimmspc-store.fi/tuote/SX-109A - Promise FastTrak TX2650: http://www.jimmspc-store.fi/tuote/PROM-202 Do these work with FreeBSD 8.2? And if they do, which driver do they use? I've already browsed thru the hardware notes and googled my ass off without finding any sure facts. So if anyone knows if these two would work, please do tell. Other suggestions also appreciated. -- Arto Pekkanen ksym@IRCnet From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 26 20:17:35 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 0517E106566B; Tue, 26 Jul 2011 20:17:35 +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 5780D8FC14; Tue, 26 Jul 2011 20:17:33 +0000 (UTC) Received: by eya28 with SMTP id 28so1349515eya.21 for ; Tue, 26 Jul 2011 13:17:33 -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; bh=PnN5/TSbVst58NoLRjJhOJg+eFhVQtZBmDRjnENIWGQ=; b=TzfIBmAn4BS/wDaucmjx79kvoJF9x4P5mj2oRtbwQxED9z4xrX8Af1LczRSaltvjDU y2oC1u/XhSMw1BHumI20J/tTRPMmkCk5VmgqTOLN/BYTAnlOGQbVMzXh8nG9/XnS8tau rTLPXLbSkpMLLreqb/3dP6aHOxPh5mrfDFXTY= Received: by 10.204.14.66 with SMTP id f2mr189126bka.195.1311711453031; Tue, 26 Jul 2011 13:17:33 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id z23sm146325bks.10.2011.07.26.13.17.30 (version=SSLv3 cipher=OTHER); Tue, 26 Jul 2011 13:17:31 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E2F20CB.30906@FreeBSD.org> Date: Tue, 26 Jul 2011 23:17:15 +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> <4E2B4B38.70207@FreeBSD.org> <125242768.20110724101257@serebryakov.spb.ru> In-Reply-To: <125242768.20110724101257@serebryakov.spb.ru> X-Enigmail-Version: 0.96.0 Content-Type: multipart/mixed; boundary="------------040609030808030904090208" 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: Tue, 26 Jul 2011 20:17:35 -0000 This is a multi-part message in MIME format. --------------040609030808030904090208 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Lev Serebryakov wrote: > You wrote 24 èþëÿ 2011 ã., 2:29:12: >>> 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? > About one and half hour -- server stopped to respond on > HTTP/SSH/SMTP/POP3 (but responded to pings and traceroute), I've > requested access to remote console, tech support provide such access > and all this process takes more than hour. Not sure it is related to your case, but attached patch fixes timeout handling problem I've found while testing Marvell 88SE912x controller. In my test scenario without this patch some commands could stuck inside controller infinitely. -- Alexander Motin --------------040609030808030904090208 Content-Type: text/plain; name="ahci_wrong_ccs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ahci_wrong_ccs.patch" Index: dev/ahci/ahci.c =================================================================== --- dev/ahci/ahci.c (revision 224305) +++ dev/ahci/ahci.c (working copy) @@ -1879,12 +1879,13 @@ device_printf(dev, "Poll timeout on slot %d port %d\n", slot->slot, port); device_printf(dev, "is %08x cs %08x ss %08x " - "rs %08x tfd %02x serr %08x\n", + "rs %08x tfd %02x serr %08x cmd %08x\n", ATA_INL(ch->r_mem, AHCI_P_IS), ATA_INL(ch->r_mem, AHCI_P_CI), ATA_INL(ch->r_mem, AHCI_P_SACT), ch->rslots, ATA_INL(ch->r_mem, AHCI_P_TFD), - ATA_INL(ch->r_mem, AHCI_P_SERR)); + ATA_INL(ch->r_mem, AHCI_P_SERR), + ATA_INL(ch->r_mem, AHCI_P_CMD)); et = AHCI_ERR_TIMEOUT; } @@ -1960,8 +1961,12 @@ ccs = (ATA_INL(ch->r_mem, AHCI_P_CMD) & AHCI_P_CMD_CCS_MASK) >> AHCI_P_CMD_CCS_SHIFT; if ((sstatus & (1 << slot->slot)) != 0 || ccs == slot->slot || - ch->fbs_enabled) + ch->fbs_enabled || ch->wrongccs) slot->state = AHCI_SLOT_EXECUTING; + else if ((ch->rslots & (1 << ccs)) == 0) { + ch->wrongccs = 1; + slot->state = AHCI_SLOT_EXECUTING; + } callout_reset(&slot->timeout, (int)slot->ccb->ccb_h.timeout * hz / 2000, @@ -1971,10 +1976,12 @@ device_printf(dev, "Timeout on slot %d port %d\n", slot->slot, slot->ccb->ccb_h.target_id & 0x0f); - device_printf(dev, "is %08x cs %08x ss %08x rs %08x tfd %02x serr %08x\n", + device_printf(dev, "is %08x cs %08x ss %08x rs %08x tfd %02x " + "serr %08x cmd %08x\n", ATA_INL(ch->r_mem, AHCI_P_IS), ATA_INL(ch->r_mem, AHCI_P_CI), ATA_INL(ch->r_mem, AHCI_P_SACT), ch->rslots, - ATA_INL(ch->r_mem, AHCI_P_TFD), ATA_INL(ch->r_mem, AHCI_P_SERR)); + ATA_INL(ch->r_mem, AHCI_P_TFD), ATA_INL(ch->r_mem, AHCI_P_SERR), + ATA_INL(ch->r_mem, AHCI_P_CMD)); /* Handle frozen command. */ if (ch->frozen) { @@ -1987,7 +1994,7 @@ } xpt_done(fccb); } - if (!ch->fbs_enabled) { + if (!ch->fbs_enabled && !ch->wrongccs) { /* Without FBS we know real timeout source. */ ch->fatalerr = 1; /* Handle command with timeout. */ @@ -2585,6 +2592,7 @@ xpt_release_simq(ch->sim, TRUE); ch->eslots = 0; ch->toslots = 0; + ch->wrongccs = 0; ch->fatalerr = 0; /* Tell the XPT about the event */ xpt_async(AC_BUS_RESET, ch->path, NULL); Index: dev/ahci/ahci.h =================================================================== --- dev/ahci/ahci.h (revision 224305) +++ dev/ahci/ahci.h (working copy) @@ -426,6 +426,7 @@ int resetting; /* Hard-reset in progress. */ int resetpolldiv; /* Hard-reset poll divider. */ int listening; /* SUD bit is cleared. */ + int wrongccs; /* CCS field in CMD was wrong */ union ccb *frozen; /* Frozen command */ struct callout pm_timer; /* Power management events */ struct callout reset_timer; /* Hard-reset timeout */ --------------040609030808030904090208--