From owner-freebsd-stable@freebsd.org Thu Dec 29 11:05:08 2016 Return-Path: Delivered-To: freebsd-stable@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 3240AC9668D for ; Thu, 29 Dec 2016 11:05:08 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 952BC101A for ; Thu, 29 Dec 2016 11:05:07 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id uBTB4vQm036888 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 29 Dec 2016 12:04:57 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id uBTB4vCf036885 for ; Thu, 29 Dec 2016 12:04:57 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Thu, 29 Dec 2016 12:04:56 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: FreeBSD stable Subject: Strange dtrace warning on running svn, perl and other programs on stable/10 r310494 Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2016 11:05:08 -0000 I keep getting these warnings whenever I run svn, perl, and other programs. WARNING: number of probes fixed does not match the number of defined probes (16 != 18, respectively) WARNING: some probes might not fire or your program might crash They also clobber the building of security/vpnc. Some "clever" Perl script is being used to produce a .c file on stdout and a .h file on stderr while building vpnc. Any chance of getting rid of the messages, or at least disabling them? This is on stable/10, r310494. /etc/make.conf contains: STRIP= CFLAGS+=-fno-omit-frame-pointer WITH_CTF=1 WITH_SSP_PORTS=yes This particular system will soon be upgraded to stable/11, r310770. Maybe my troubles will disappear once the transition is complete. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-stable@freebsd.org Thu Dec 29 11:14:59 2016 Return-Path: Delivered-To: freebsd-stable@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 ED9CDC968A4; Thu, 29 Dec 2016 11:14:59 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8CB72145B; Thu, 29 Dec 2016 11:14:59 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (ezra.dcm1.omnilan.net [IPv6:2a00:e10:2800::a135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id uBTBEvG2083238; Thu, 29 Dec 2016 12:14:57 +0100 (CET) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (titan.inop.mo1.omnilan.net [IPv6:2001:a60:f0bb:1::3:1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 7806F3AD; Thu, 29 Dec 2016 12:14:57 +0100 (CET) Message-ID: <5864F030.4050204@omnilan.de> Date: Thu, 29 Dec 2016 12:14:56 +0100 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Alexander Motin CC: FreeBSD Stable , freebsd-virtualization@freebsd.org Subject: Re: ASM1062 AHCI timeouts, ppt(4) BAR aligning [Was: Re: svn commit: r309251 - head/sys/dev/ahci] References: <201611281623.uASGNWoA056995@repo.freebsd.org> <5864CADD.6020805@omnilan.de> <8c37d73e-59dc-3ca2-cab0-941a525f4d44@FreeBSD.org> In-Reply-To: <8c37d73e-59dc-3ca2-cab0-941a525f4d44@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]); Thu, 29 Dec 2016 12:14:57 +0100 (CET) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: ; Sender-helo: mh0.gentlemail.de; ) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2016 11:15:00 -0000 Bezüglich Alexander Motin's Nachricht vom 29.12.2016 11:32 (localtime): > On 29.12.2016 10:35, Harry Schmalzbauer wrote: >> I'd like to report that this doesn't fix timeouts for me (applied to >> 11-stable). >> >> For example my REV120 works without problems on Intel-AHCI but not on >> ASM1062-AHCI. >> Even attaching gives different output. Both look fine at first: >> # cd0 at ahcich0 bus 0 scbus5 target 0 lun 0 >> # cd0: Removable CD-ROM SCSI device >> # cd0: Serial Number 0C1E4D046E5DFF18 >> # cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO >> 8192bytes) >> >> When attached to the Intel-AHCI, it's followed by >> + cd0: Attempt to query device size failed: NOT READY, Medium not present >> while attaching to ASM1062 it reads (!?) >> - cd0: 0MB (1 0 byte sectors) >> >> Then these timeouts occur: >> ahcich7: Timeout on slot 11 port 0 >> ahcich7: is 00000000 cs 00000c00 ss 00000000 rs 00000c00 tfd 6051 serr >> 00000000 cmd 0004cb17 >> ahcich7: Timeout on slot 24 port 0 >> ahcich7: is 00000000 cs 01800000 ss 00000000 rs 01800000 tfd 2051 serr >> 00000000 cmd 0004d817 >> ahcich7: Timeout on slot 6 port 0 >> ahcich7: is 00000000 cs 00000060 ss 00000000 rs 00000060 tfd 2051 serr >> 00000000 cmd 0004c617 >> ahcich7: Timeout on slot 20 port 0 >> ahcich7: is 00000000 cs 00180000 ss 00000000 rs 00180000 tfd 2051 serr >> 00000000 cmd 0004d417 >> >> Also IDENT (via camcontrol) "hangs" for 20 seconds, but finally succeeds. > > I think problem may be different in your case. The HBA still reports > that command is not completed by the device. Unfortunately I don't have > those fancy drives to try, but I'll try to reproduce it with regular CD > drive when I get back home after short New Year holidays. Oic, then I need to test the patch with regular SSD usage! I have had problems with the asm1062 when I used it for a "roaming" SSD, backing virtio-blk/ahci,hd:/dev/ada4. After some mentionable I/O there were _always_ outages which I don't remember exactly, but moving the SSD from asm-ahci to intel-ahci made them vanish. I'll see if these are now solved for the ASM1062. Otherwise I'll report. >> Btw: I already found out that extending ppt(4) to support unaligned base >> address register wouldn't be too easy. >> Initially I added that ASM1062 card to use it for byhve(8) passthrough. >> Unfortunately that doesn't work: >> bhyve: passthru device 6/0/0 BAR 5: base 0xc3e10000 or size 0x200 not … > > I believe it is bhyve bug, since these values are just what hardware > reports. BAR size of 512 bytes indeed does not align to 4K, but that is > not our problem. :) > >> Are there any recommendations for AHCI (SATA-PCIe) controller >> cards/chips that do work (both, for byhve passthrough and also as plain >> AHCI provider)? > > Please don't mix multiple unrelated questions in one email. Yes, sorry, I should have sent that in two different mails. Took the wrong route because I thought others who are possibly searching/trying low-power SATA passthrough controllers could find this (useful)... > There is very little reasonable external AHCI controllers on the market > now. I am not sure anything other then Marvell and ASmedia were > released at all in last years since 6Gbps SATA came out. Marvell and > ASmedia probably worth each other, while later Marvell may be slightly > better on functionality (number of ports and FBS PMP support), but they > are both desktop products. If you need this in server environment -- > think about about SAS adapter like LSI. Or just use on-board Intel > AHCI, since they are probably the best om reliability you may get out of > SATA. Thanks for your hints! Usually I go with LSI2008 for such cases, but this time the additional 7W power consumption for only _one_ roaming SATA-SSD seemd inappropriate. Furthermore, I only have one spare slot, so I got a card with the ASM1062 and an Etron EJ168 USB 3.0 combined. That was exactly what I'd want to have as passthrough for my guest :-) Hopefully bhyve(8)/ppt will make that possible in the future. Thanks, -harry