From owner-freebsd-current@freebsd.org Tue Aug 27 23:42:08 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 53D5FCB391 for ; Tue, 27 Aug 2019 23:42:08 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46J54w0YTwz4VGB for ; Tue, 27 Aug 2019 23:42:08 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: by mailman.nyi.freebsd.org (Postfix) id 13001CB390; Tue, 27 Aug 2019 23:42:08 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 12C70CB38E for ; Tue, 27 Aug 2019 23:42:08 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.protected-networks.net (mail.protected-networks.net [202.12.127.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.protected-networks.net", Issuer "Protected Networks CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46J54v0Zmjz4VG7; Tue, 27 Aug 2019 23:42:06 +0000 (UTC) (envelope-from imb@protected-networks.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= protected-networks.net; h=content-transfer-encoding :content-language:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject; s=201508; t=1566949317; bh=eUV6gb4I 8cHCXfCNX/jfbYrRC1LAsLaTOya8YfTV8hw=; b=iAw+KEmHFJKLVamMS08NB7IY gS/QcjC67Q67KOKgnpb8CaV8EtOJrG+nxP5J7oAOxSJX0+YKiPqG0zKhqDxnAhIw 1MJxtj5kkPu1Vosey9ejSw8jkBGo5SzskTOBPgv5nS1MkxpVQokmBWRcp6H3ya2k LP5Dx37wBDnBCfUV0GU= Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [192.168.1.10]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: imb@mail.protected-networks.net) by mail.protected-networks.net (Postfix) with ESMTPSA id CB83027B60; Tue, 27 Aug 2019 19:41:57 -0400 (EDT) Subject: Re: ses no longer attaches To: Niclas Zeising , imp@FreeBSD.org Cc: current@FreeBSD.org References: <90483961-9da2-fba1-21da-c38b28e99e06@freebsd.org> <41c91917-13c2-f3a7-d8fd-6464c2ce3c6d@freebsd.org> From: Michael Butler Message-ID: <3d769833-8e94-8922-2d95-16d25407f38c@protected-networks.net> Date: Tue, 27 Aug 2019 19:41:57 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.0 MIME-Version: 1.0 In-Reply-To: <41c91917-13c2-f3a7-d8fd-6464c2ce3c6d@freebsd.org> Content-Type: text/plain; charset=windows-1252 Content-Language: en-NZ Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 46J54v0Zmjz4VG7 X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=protected-networks.net header.s=201508 header.b=iAw+KEmH; dmarc=none; spf=pass (mx1.freebsd.org: domain of imb@protected-networks.net designates 202.12.127.228 as permitted sender) smtp.mailfrom=imb@protected-networks.net X-Spamd-Result: default: False [-7.18 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[protected-networks.net:s=201508]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[protected-networks.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[protected-networks.net:+]; NEURAL_HAM_SHORT(-0.96)[-0.958,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-3.72)[ip: (-9.79), ipnet: 202.12.127.0/24(-4.89), asn: 5716(-3.87), country: US(-0.05)]; ASN(0.00)[asn:5716, ipnet:202.12.127.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Aug 2019 23:42:08 -0000 On 2019-08-27 19:15, Niclas Zeising wrote: > On 2019-08-28 00:38, Alexander Motin wrote: >> Hi. >> >> On 27.08.2019 18:03, Niclas Zeising wrote: >>> I have an issue where the ses driver no longer attaches.  Last known >>> good version was r351188, r351544 is broken.  In that interval, >>> something happened.  I haven't had time to bisect yet. >> >> I would appreciate some details, like dmesg, error messages, etc.  On my >> test systems I see no problems. >> > > Hi! > I did some more digging. r351355 is ok, while r351356 is bad.  This is > Warner's (CC:d) commit to add RST support to nvme, however, I'm using a > ssd drive connected to ahci. > > What happens is that the ses driver doesn't attach to the AHCI SGPIO > enclosure.  This is on a laptop with an ssd (not an nvme) drive.  I have > the same issue on another computer as well.  On the broken kernel, > sesutil status complains about "No SES devices found", on the working > kernel it reports "ok". I can confirm this behaviour (haven't checked versioning) .. working kernel yields .. Aug 20 17:40:06 toshi kernel: ses0 at ahciem0 bus 0 scbus4 target 0 lun 0 Aug 20 17:40:06 toshi kernel: ses0: SEMB S-E-S 2.00 device Aug 20 17:40:06 toshi kernel: ses0: SEMB SES Device Aug 20 17:40:06 toshi kernel: ses0: ada0,pass0 in 'Slot 00', SATA Slot: scbus0 target 0 Aug 20 17:40:06 toshi kernel: ses0: ada1,pass1 in 'Slot 01', SATA Slot: scbus1 target 0 [ .. other stuff .. ] Aug 20 17:40:06 toshi kernel: ses0 at ahciem0 bus 0 scbus4 target 0 lun 0 Aug 20 17:40:06 toshi kernel: ses0: SEMB S-E-S 2.00 device Aug 20 17:40:06 toshi kernel: ses0: SEMB SES Device Aug 20 17:40:06 toshi kernel: ses0: ada0,pass0 in 'Slot 00', SATA Slot: scbus0 target 0 Aug 20 17:40:06 toshi kernel: ses0: ada1,pass1 in 'Slot 01', SATA Slot: scbus1 target 0 .. non working reports .. Aug 27 11:06:28 toshi kernel: ahciem0: at channel 2147483647 on ahci0 Aug 27 11:06:28 toshi kernel: device_attach: ahciem0 attach returned 6 imb