From owner-freebsd-stable@freebsd.org Tue Mar 10 20:27:10 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 BC8CC26F6EB for ; Tue, 10 Mar 2020 20:27:10 +0000 (UTC) (envelope-from mario.olofo@gmail.com) Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) (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 48cRTS1x93z4mZT for ; Tue, 10 Mar 2020 20:27:08 +0000 (UTC) (envelope-from mario.olofo@gmail.com) Received: by mail-qk1-x743.google.com with SMTP id d8so9690436qka.2 for ; Tue, 10 Mar 2020 13:27:07 -0700 (PDT) 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=4VQTvsdL9HHPwi1oxVdBFr+rGyJ/lNOdHXtg0N172n4=; b=TMi2cCnZmIRkMV3MPY7lHFHvHuxAs3MpxH//LlUdwUW+26iPmFxpmfuz1KsO8G1XS/ wIwMO2jvvvYii7YgBDIg0oD5PK1CwA8v2dBAAPp5Y4yqragraW5mQ/EW69CB7mHvLG1n xcyMo9P6l9o1dUjngErZYLW8Ay+iTgU1MA0QcTaoKRk0pKlm8pxlMdG0rBXweiUBFcbj 2QHII1PnzIgB5RsoN6ly/oxyAxgroVD5k9DkruyjFP7uew9BHfNE58mpQjXFUiXcsv3l HU+fZ8ocfkupwr9tZ1rdSQf4r7TAHNBHmoyJ6JXbKzxvT16gTDkYeO9fc7NEQRT0Z6sl 9Frg== 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=4VQTvsdL9HHPwi1oxVdBFr+rGyJ/lNOdHXtg0N172n4=; b=guuhSy+DGjySJ2K/6q0+gvj8COJfYFBVGcQKa6U6ZABN4V8rHbGcq7M+oVCFMHU4u1 ztwIMqc8sHmdgTwQ7SMXWhtGbiBLeORx9gPz4Slrudhsu/icqq+8LyoV64wDRe51iFwT Mm+vjspdcmZfV1s9wpOaZg9Qm4aJD5xmUvav7GlCF7nmhfcfJVNaaMrUySutlH+bccSV N+55h3uyF3Xht/rnrcJka+SdrwDkxu4nvH7jhlhhbwdYSkYCze/x4mFUQbRhgSAAKvm1 Sh70iMMovRZ63UINgztNd1EMPzb8wSx8hYPnu5vzxL5nvQV7I4TktZW3TFPY57huTsvN hOEw== X-Gm-Message-State: ANhLgQ0pAzZPf509OKZDiuF0byd0tOFd69aU4u8ojbwbh54t5oxoOZnV iqlRx7tJ7BqpIhdGmxuTkI1aZPENXXN98+tqTGw= X-Google-Smtp-Source: ADFU+vsWZjy6nF2GOqoHrG8/sHgZ68IuVHuhqqgXBBguXFqyMB8Q+SH8N8sktRV080TwCdxHtxncijPnBg3KRU4kzdg= X-Received: by 2002:a05:620a:522:: with SMTP id h2mr21206689qkh.260.1583872027517; Tue, 10 Mar 2020 13:27:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mario Olofo Date: Tue, 10 Mar 2020 17:26:56 -0300 Message-ID: Subject: Re: Running FreeBSD on M.2 SSD To: Rebecca Cran Cc: Warner Losh , Mark Linimon , FreeBSD Stable , Karl Denninger X-Rspamd-Queue-Id: 48cRTS1x93z4mZT X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=TMi2cCnZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marioolofo@gmail.com designates 2607:f8b0:4864:20::743 as permitted sender) smtp.mailfrom=marioolofo@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[3]; RCPT_COUNT_FIVE(0.00)[5]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (1.73), ipnet: 2607:f8b0::/32(-1.85), asn: 15169(-1.65), country: US(-0.05)]; 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)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; 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)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.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]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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: Tue, 10 Mar 2020 20:27:10 -0000 Hi Rebecca, I checked when I had the problem but the machine was up to date. I already solved this problem with the fix in the bugzilla and a lot of help from the great people here to try to narrow down the problem, but the little detail is that the installer wasn't using the ZFS volumes as 4k. So before the setup for partitions I entered the command line, loaded the ZFS driver and added the ashift=3D12 sysctl to it, so it installed the volumes as 4k, and after that I rebuilt the kernel with the patch (quirks =3D 0x03) =3D) Thank you, Mario Em ter., 10 de mar. de 2020 =C3=A0s 17:06, Rebecca Cran escreveu: > > >> On Feb 26, 2020, at 9:20 PM, Warner Losh wrote: > >> > >> =EF=BB=BFOn Wed, Feb 26, 2020, 8:54 PM Mario Olofo > wrote: > >> > >> Hello Mark, > >> Yes, I think that it's related to the WD Green SSD. > >> Today I found this bug on FreeBSD's bugzilla: > >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225666 > >> Tried to reinstall and recompile the kernel with the patch but it didn= 't > >> work, I continue to see corrupted data. > >> I think that the only way to be really sure about the corrupted data i= s > to > >> reinstall again but already boot with the quirks configured, but the > >> kern.cam.ada.X.quirks don't seems to exists on FreeBSD 12, > >> so I have a probability of corruption between installation and > compilation > >> of the patched kernel... > >> Don't know what more to do... > > > > What happens if you disable TRIM? > > Also, have you checked to see if there=E2=80=99s a firmware update availa= ble? > > Rebecca > >