From owner-freebsd-hackers@freebsd.org Fri Sep 13 06:02:43 2019 Return-Path: Delivered-To: freebsd-hackers@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 CAE19E6A85 for ; Fri, 13 Sep 2019 06:02:43 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46V4mf6t0dz4C8h for ; Fri, 13 Sep 2019 06:02:42 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from sslproxy06.your-server.de ([78.46.172.3]) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1i8efH-0006cp-QP for freebsd-hackers@freebsd.org; Fri, 13 Sep 2019 08:02:39 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy06.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1i8efH-000QOQ-M2 for freebsd-hackers@freebsd.org; Fri, 13 Sep 2019 08:02:39 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 221BB2A000F for ; Fri, 13 Sep 2019 08:02:47 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 47NpKIazSbE7 for ; Fri, 13 Sep 2019 08:02:46 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id B6E272A1682 for ; Fri, 13 Sep 2019 08:02:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id o_98KaV4SxoI for ; Fri, 13 Sep 2019 08:02:46 +0200 (CEST) Received: from huber-nb-linux.suse (unknown [192.168.96.161]) by mail.embedded-brains.de (Postfix) with ESMTPSA id A14752A000F for ; Fri, 13 Sep 2019 08:02:46 +0200 (CEST) To: FreeBSD From: Sebastian Huber Subject: Problems with port of NVMe support Message-ID: Date: Fri, 13 Sep 2019 08:02:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.101.4/25570/Thu Sep 12 10:22:52 2019) X-Rspamd-Queue-Id: 46V4mf6t0dz4C8h X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of sebastian.huber@embedded-brains.de designates 85.10.215.148 as permitted sender) smtp.mailfrom=sebastian.huber@embedded-brains.de X-Spamd-Result: default: False [-2.42 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_SEVEN(0.00)[8]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:85.10.215.148:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[embedded-brains.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[148.215.10.85.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; IP_SCORE(-0.12)[ipnet: 85.10.192.0/18(1.19), asn: 24940(-1.79), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:85.10.192.0/18, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; HAS_X_AS(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Sep 2019 06:02:43 -0000 Hello, I port currently the NVMe support from FreeBSD to RTEMS. Basically, it=20 works. I can issue administration commands and some IO commands (e.g.=20 FLUSH). I use this SSD for testing: $ nvmecontrol identify nvme0 Controller Capabilities/Features =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Vendor ID: 8086 Subsystem Vendor ID: 8086 Serial Number: PHM27390006S280AGN Model Number: INTEL SSDPE21D280GA Firmware Version: E2010325 Recommended Arb Burst: 0 IEEE OUI Identifier: e4 d2 5c Multi-Path I/O Capabilities: Not Supported Max Data Transfer Size: 131072 Controller ID: 0x0000 Version: 0.0.0 My problem is now, that every WRITE transfer ends up in a DATA TRANSFER=20 ERROR: nvme0: WRITE sqid:1 cid:127 nsid:1 lba:0 len:8 nvme0: DATA TRANSFER ERROR (00/04) sqid:1 cid:127 cdw0:0 nvme0: async event occurred (type 0x0, info 0x04, page 0x01) Every READ transfer ends up in a UNRECOVERED READ ERROR: nvme0: READ sqid:1 cid:127 nsid:1 lba:0 len:8 nvme0: UNRECOVERED READ ERROR (02/81) sqid:1 cid:127 cdw0:0 nvme0: async event occurred (type 0x0, info 0x04, page 0x01) I see the transfers in the error log: $ nvmecontrol logpage -p 1 nvme0=20 =20 Error Information Log=20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 =20 Entry 01=20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=20 =20 Error count: 2546=20 =20 Submission queue ID: 1=20 =20 Command ID: 32512=20 =20 Status:=20 =20 Phase tag: 0=20 =20 Status code: 129=20 =20 Status code type: 2=20 =20 More: 1=20 =20 DNR: 1=20 =20 Error location: 0=20 =20 LBA: 0=20 =20 Namespace ID: 1=20 =20 Vendor specific info: 0=20 =20 Transport type: 0=20 =20 Command specific info:0=20 =20 Transport specific: 0=20 =20 Entry 02=20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=20 =20 Error count: 2545=20 =20 Submission queue ID: 1=20 =20 Command ID: 32512=20 =20 Status:=20 =20 Phase tag: 0=20 =20 Status code: 4=20 =20 Status code type: 0=20 =20 More: 1=20 =20 DNR: 1=20 =20 Error location: 0=20 =20 LBA: 0=20 =20 Namespace ID: 1=20 =20 Vendor specific info: 0=20 =20 Transport type: 0=20 =20 Command specific info:0=20 =20 Transport specific: 0 From the NVMe specification I didn't get any hints what the error=20 reason could be. Maybe someone has a hint for me. The platform is a=20 T4240 PowerPC (big-endian). --=20 Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesch=C3=A4ftliche Mitteilung im Sinne des EHUG= .