From owner-freebsd-stable@freebsd.org Mon Feb 24 19:13:36 2020 Return-Path: Delivered-To: freebsd-stable@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 CB69A23FD31 for ; Mon, 24 Feb 2020 19:13:36 +0000 (UTC) (envelope-from mario.olofo@gmail.com) Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48RBYW4PMPz3FLs for ; Mon, 24 Feb 2020 19:13:35 +0000 (UTC) (envelope-from mario.olofo@gmail.com) Received: by mail-qk1-x744.google.com with SMTP id u124so9652302qkh.13 for ; Mon, 24 Feb 2020 11:13:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s32JYG52oZTBLZIpZbzqHg77H1o99hcd3BlFkNehj9Q=; b=ZBpvPL1bAo6lQyHDAWsX38IS584M4w4gUWH5X9518aF9e6StPVlIj55+trcy0w2ihA urxTAtnF/QGqU+4H8ZewowPELjp7R5+fB4vNWtZYAO43jg6hSVtOuBMvt8xy5lyJYSMC 7Rg1fsPgCYDMt4wFD+i5joAHvPx8dm1/AZ+OXnr5W1VV4CAfe6WZ7cTP0VB+Zi3eTTGM sIPqHXo/F1uesvwm4sdPFq7yOmGDvouk/fW3+kzN5xtq1TAj89l6e+Ny7olPR9jzsefU IfECt4Qt/Js3J+QmwEbssvgqJANluIAQsRBvT70gGbHjcSYWE8UUahaOXo/iGvmaXnIP xyTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s32JYG52oZTBLZIpZbzqHg77H1o99hcd3BlFkNehj9Q=; b=AEnnMEsz9NoviElNKnP+Y3pf+NOR/tN7Xg6mrZ5qJqnA7wHAEUZlTdks+Vr6rewE7m sb62j2Na9HjLwuRWQ9Ut/E4hK/RjjU5nLtBwkUsaTNALwz+HWdEQk38ygNrBkrXHiYPJ 428CTvCuUbWFW+ezlKIUQQJ6KQm+DOSKnkUZSyaalmZBRiBjZWuwQFpF7gTqUtLtCVkN Woo6/URUiYHQOKKXYpNkzCLHtGmhgDsWwnYju3A7e6P9dV0IVtreQil1+nJ9QKVcj/z9 4jJXpXutzDUZ/bL9zyJJwJtVmwuT0+NQKunO1MI5/LEE9oWMxbjZVJCqTCsPbVBvmXxx cudQ== X-Gm-Message-State: APjAAAUobXcvbWGec5p5P7NDoXYRwgFTcFGGTjnMHatHYc63dh7WrTqm DYXE0Unf4rYsGIr72ALjQ7h45lbPA/sMydFMlawtm8Oe X-Google-Smtp-Source: APXvYqxqbUokDNPSBuNT5ax/yzyP4PMXbxCoTWNZvs2568v4lLCYv5X6feKkVc7yRUsAUG5VWqZKZpHFOP+h/ldpqhg= X-Received: by 2002:a37:e507:: with SMTP id e7mr35524506qkg.358.1582571614559; Mon, 24 Feb 2020 11:13:34 -0800 (PST) MIME-Version: 1.0 References: <20200224144602.GA64065@phouka1.phouka.net> <437a5eae-03c8-737d-48bf-39e2e9163d6d@nomadlogic.org> In-Reply-To: <437a5eae-03c8-737d-48bf-39e2e9163d6d@nomadlogic.org> From: Mario Olofo Date: Mon, 24 Feb 2020 16:13:23 -0300 Message-ID: Subject: Re: Running FreeBSD on M.2 SSD To: Pete Wright Cc: John Kennedy , freebsd-stable@freebsd.org X-Rspamd-Queue-Id: 48RBYW4PMPz3FLs X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZBpvPL1b; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marioolofo@gmail.com designates 2607:f8b0:4864:20::744 as permitted sender) smtp.mailfrom=marioolofo@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[4.4.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (1.65), ipnet: 2607:f8b0::/32(-1.88), asn: 15169(-1.67), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2020 19:13:36 -0000 Hi Pete, The nvmecontrol devlist don't found any devices. pciconf -lv nvme0 didn't found anything either. The camcontrol devlist output was as follows: root@~ # camcontrol devlist at scbus0 target 0 lun 0 (ada0,pass0) at scbus1 target 0 lun 0 (ada1,pass1) at scbus2 target 0 lun 0 (pass2,da0) The dmesg | grep ada1 shows the following: Feb 24 18:54:31 kernel: ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 Feb 24 18:54:31 kernel: ada1: ACS-2 ATA SATA 3.x device Feb 24 18:54:31 kernel: ada1: Serial Number 183541800480 Feb 24 18:54:31 kernel: ada1: 600.00MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) Feb 24 18:54:31 kernel: ada1: Command Queueing enabled Feb 24 18:54:31 kernel: ada1:457872MB (937721856 512 byte sectors) Mario Em seg., 24 de fev. de 2020 =C3=A0s 15:27, Pete Wright escreveu: > > > On 2020-02-24 09:58, Mario Olofo wrote: > > Hello John, thank you for your reply. > > > > Yesterday I reinstalled the 12.1 on a VirtualBox virtual machine, did t= he > > same steps and it didn't corrupted the ZFS, so I think that the problem > is > > in the FreeBSD's driver for m.2 SSD. > > Besides the corruption of the filesystem, I forgot to mention that I > > noticed a little noise on disk writes on FreeBSD, but not on Linux or > > Windows. > > I found some old threads about incorrectly params for sector size for > > Samsung's SSD, but nothing about WD. > > If someone responsible for the driver need help to solve this problem, = I > > can reinstall the FreeBSD on my machine and compile a custom kernel to > > gather debug information. > > Unfortunately you haven't provided much in details regarding the > hardware you are running as far as FreeBSD see's it. I can confirm I > have had many systems using m.2 for quite a while and have had zero > issues. Could you provide some of these details? > > (assuming this is an NVMe device): > $ sudo nvmecontrol devlist > $ sudo pciconf -lv nvme0 > > if your device isn't NVMe and is a sata device then this info may be > helpful as well: > $ sudo camcontrol devlist > > and your dmesg will also probably be helpful here as well. I think > getting at least this basic info will help determine where the issue is > cropping up. > > cheers, > -pete > > -- > Pete Wright > pete@nomadlogic.org > @nomadlogicLA > >