From owner-freebsd-hardware@freebsd.org Thu Oct 27 16:58:20 2016 Return-Path: Delivered-To: freebsd-hardware@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 CD25FC241B4; Thu, 27 Oct 2016 16:58:20 +0000 (UTC) (envelope-from cipher_nl@hotmail.com) Received: from BAY004-OMC1S23.hotmail.com (bay004-omc1s23.hotmail.com [65.54.190.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A47CEF58; Thu, 27 Oct 2016 16:58:20 +0000 (UTC) (envelope-from cipher_nl@hotmail.com) Received: from EUR03-VE1-obe.outbound.protection.outlook.com ([65.54.190.59]) by BAY004-OMC1S23.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 27 Oct 2016 09:57:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bdgmIE4On5Gi1aPc1RnaS4f/dzEYkMTtFFJ8s2njDdQ=; b=S+oEyJLfGRAFy4PEHEYju2blH29urJ8ThWguQ14vEXIE423zU/Z0vnWSBPeRDiMA4QOFpBU5UR0MfdJT9+XgoSfAGRhEpDDs7Fg3/1iZ1lZgWCSXVFneyeg+g34l6LEdqwG+qPtgDeMLXXw//a+OX64BCFB7Hl4qq1qKqt5CDYyjl8txTIRWAMvXmCN9+WwngFaFPiolBYhB6ncSFrkeqO39Drm5ia+0FzP9409BEo6fz82p9F17a/czA0tUrm+99i6JBCZaKeKeo81g0YvFwPnm2W60UByHZrs+f1Vq40N1/CvzDDcV6cklcTISH0yA3Z8eH8g6kvB78GBUnBRmag== Received: from VE1EUR03FT045.eop-EUR03.prod.protection.outlook.com (10.152.18.58) by VE1EUR03HT012.eop-EUR03.prod.protection.outlook.com (10.152.18.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.5; Thu, 27 Oct 2016 16:57:12 +0000 Received: from DB5PR08MB0664.eurprd08.prod.outlook.com (10.152.18.52) by VE1EUR03FT045.mail.protection.outlook.com (10.152.19.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.5 via Frontend Transport; Thu, 27 Oct 2016 16:57:11 +0000 Received: from DB5PR08MB0664.eurprd08.prod.outlook.com ([10.169.33.14]) by DB5PR08MB0664.eurprd08.prod.outlook.com ([10.169.33.14]) with mapi id 15.01.0693.009; Thu, 27 Oct 2016 16:57:11 +0000 From: "D. E" To: "freebsd-current@freebsd.org" , "freebsd-hardware@freebsd.org" Subject: DeLock 10x SATA AHCI controller not working properly Thread-Topic: DeLock 10x SATA AHCI controller not working properly Thread-Index: AQHSMHCviPHyPq4yz0a1wHBT6JyVeQ== Date: Thu, 27 Oct 2016 16:57:11 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=hotmail.com; x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [p/jfwkVuh8J6eZHDupn/Ii5/64W351Kr] x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; VE1EUR03HT012; 6:2tVW1ZtOScBiOMoOCE2ZGaFZwEd/A7APw2+akrxZak01Mfh968+GSVOrtntZq47/pr23ID2vlcjAnLJp00irGxueWEMA4QEV4jj8k24+xbWsn+DJIcmNUl4C/CcsMAgNWrRORdIKFO1UB6x+0mA4lkUUmOcLY+6zgvbcYsQaEzS0C+e0V07rcjZKUQDzLSL11zslwXA9jY9/dBN6slnUuw/nBCM3V7Zme+3lcbpH6nQYHPv4WFiDj3wRclN8ZgTKyjJbXiliQCZQKpnNxkIjrFjLNcQpgy/bl92HJThHzpUxtBvQJLSGfYo4qfMZmdS7; 5:N5M/PSXHJsk/T50SjQsIiSgDZ62F5CptbZGEEkz6JHRNV4xEFZIKB3rLVTFPOLdJf1gY5F2KwCQVHW5CXas9jaqKemB4O1rzH4cqURFoy23YiD4Xkbs3TWRWskAUZAzR8UQqinGt7NeP6VCjTNzK1g==; 24:m7AQo1z5QS/Z8mxkiieweRIKgZdolhqJDDvwNjE43mTm/tmrVe9+I90SGPIVd79Wy01tESwWjWDs0hC8AH+MAxR59PdeE/ZnqoHnSwyF+BM=; 7:KpdBxFlIVrgYSogjiz3RM7I1LJkuowjtTA0zASfH6GhSMKaRCUHAVglVCce98m8AbxLRwwztgXMyyXQAjl47YZZXxK2//I+es4KwEfqkM778wEQ+aZMnfi4JwdxGx1qwwY3RTGcyDv50k36PNNwFQzv9cXcs7loqSQCcmU5FvkB8zXPZ9xLq8hnVm7m7J0uhlSNUO6WIuVzYTBqo05pBaqIpBq/+oR/YofQQOU1/ymW/UEEEzi0OwMZMsbVRPF30x9rsS0VMF2cBvkDq3dpwfIroyu8bVBy6o2S14mtevtifZiaqYPbtU3XPZG8wjhPKO+tG0Dh1g1nkvs+xd4TYz4s31x2ntWkmKluf+PyWN8I= x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR03HT012; H:DB5PR08MB0664.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: da53c847-c1a2-4c16-8513-08d3fe8a4b98 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1603103081)(1601125047); SRVR:VE1EUR03HT012; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046); SRVR:VE1EUR03HT012; BCL:0; PCL:0; RULEID:; SRVR:VE1EUR03HT012; x-forefront-prvs: 0108A997B2 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2016 16:57:11.5679 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR03HT012 X-OriginalArrivalTime: 27 Oct 2016 16:57:15.0428 (UTC) FILETIME=[2B607640:01D23073] X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2016 16:58:20 -0000 Dear list, I hope you guys can help me with my new AHCI controller that doesn't work w= ell with FreeBSD yet. *** Introduction I have bought this very neat $80 SATA AHCI controller: http://www.delock.co= m/produkte/G_89384/merkmale.html This controller is PCI-express 2.0 with 2 lanes, so 1GB/s bandwidth shared = across 10 ports. For just $80 this is a great deal! It is also VERY power e= fficient, unlike SAS adapters which can use up to 8W when doing nothing. Th= e controller itself it a 2-port Asmedia AHCI SATA controller with two port = multipliers on it. Thus, each 5 ports are sharing one SATA/600 link. It pus= hes beyond 900MB/s when fully utilised. The controller is detected by FreeBSD 11.0-RELEASE-p1 amd64 as a regular AH= CI controller. It appears to work, in that it detects the disks that are co= nnected to it and it can do I/O. *** The problem This controller generates various I/O errors and timeouts. But only in spec= ific circumstances, where I think that NCQ or simultaneous access is a fact= or. Because when i start a simple dd read command for each harddrive connec= ted to the controller, there are no errors or timeouts in the dmesg. But wh= en importing a pool, creating a pool or scrubbing a pool that is empty, tim= eouts and I/O errors are 100% reproducable in just a few seconds. This is a= fter dd commands have been running for hours straight without any hickup. In other words, I believe this controller needs some kind of quirk. The con= troller is reported to be working properly on Linux. *** What I already tried I tried disabling MSI and MSI-X interrupts. I tried disabling NCQ although = with limited effect: ZFS can be tuned to use one outstanding I/O, but I sti= ll got errors now and then. Is there any way of doing some easy quirks to localize the problem and also= get this controller working reliably, albeit slower? *** Example errors when working with ZFS: ahcich7: Timeout on slot 23 port 0 ahcich7: is 00000000 cs 00000000 ss 00000000 rs 00800000 tfd 50 serr 000000= 00 cmd 0004cf17 (ada9:ahcich7:0:0:0): READ_DMA. ACB: c8 00 00 ff 02 40 00 00 00 00 00 00 (ada9:ahcich7:0:0:0): CAM status: Command timeout (ada9:ahcich7:0:0:0): Retrying command ahcich17: Timeout on slot 30 port 0 ahcich17: is 00000000 cs 00000000 ss 00000000 rs 40000000 tfd 50 serr 00000= 000 cmd 0004c317 (aprobe0:ahcich17:0:0:0): SETFEATURES SET TRANSFER MODE. ACB: ef 03 00 00 0= 0 40 00 00 00 00 46 00 (aprobe0:ahcich17:0:0:0): CAM status: Command timeout (aprobe0:ahcich17:0:0:0): Retrying command *** Detection logs: # pciconf -lv ahci1@pci0:4:0:0: class=3D0x010601 card=3D0x10601b21 chip=3D0x06251b21 rev= =3D0x01 hdr=3D0x00 vendor =3D 'ASMedia Technology Inc.' class =3D mass storage subclass =3D SATA # dmesg pci4: on pcib4 ahci1: mem 0xfdafe000-0xfdafffff irq 16 at device 0.= 0 on pci4 ahci1: AHCI v1.31 with 12 6Gbps ports, Port Multiplier not supported ahcich6: at channel 0 on ahci1 ahcich7: at channel 1 on ahci1 ahcich10: at channel 4 on ahci1 ahcich11: at channel 5 on ahci1 ahcich12: at channel 6 on ahci1 ahcich13: at channel 7 on ahci1 ahcich14: at channel 8 on ahci1 ahcich15: at channel 9 on ahci1 ahcich16: at channel 10 on ahci1 ahcich17: at channel 11 on ahci1 # devinfo -r pci4 pcib4 bus numbers: 4 ahci1 Interrupt request lines: 0x109 pcib4 memory window: 0xfdafe000-0xfdafffff ahcich6 I/O memory addresses: 0xfdafe100-0xfdafe17f ahcich7 I/O memory addresses: 0xfdafe180-0xfdafe1ff ahcich10 I/O memory addresses: 0xfdafe300-0xfdafe37f ahcich11 I/O memory addresses: 0xfdafe380-0xfdafe3ff ahcich12 I/O memory addresses: 0xfdafe400-0xfdafe47f ahcich13 I/O memory addresses: 0xfdafe480-0xfdafe4ff ahcich14 I/O memory addresses: 0xfdafe500-0xfdafe57f ahcich15 I/O memory addresses: 0xfdafe580-0xfdafe5ff ahcich16 I/O memory addresses: 0xfdafe600-0xfdafe67f ahcich17 I/O memory addresses: 0xfdafe680-0xfdafe6ff PS. please click 'Reply All' when replying, since I am not subscribed to th= e list, meaning that I cannot easily reply on your reply unless you also se= nd it to my email directly, using 'Reply All'. Thanks!=