From nobody Sat Oct 9 18:58:18 2021 X-Original-To: freebsd-hardware@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4784212DB6DE for ; Sat, 9 Oct 2021 18:58:33 +0000 (UTC) (envelope-from youngsjrp@gmail.com) Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4HRZ8Q6zj1z4R3H for ; Sat, 9 Oct 2021 18:58:30 +0000 (UTC) (envelope-from youngsjrp@gmail.com) Received: by mail-pl1-x634.google.com with SMTP id x8so8349230plv.8 for ; Sat, 09 Oct 2021 11:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=KDRhunHa1ZA/opMrreyq8sK1xXQKy8bBddkvqrf4+/c=; b=oqqSB1KoTgQclfQpwhVSZNpqwG8RgdWh2m543QPGNE2Z6LQPDl6vjEPYbmygiddqjF bBXED6ZqoyG6XIFwr4afzYecruAu2MbOphsk9N5s87RQxf1QsCNAbDxLBUOFoh9buto3 KjkPEFJ09hfGxcAR7ptG4xROgoi43GBJaIbdSdV6v9fe+4AUVlAsmL9IRv9fZOe9e0m4 uALZnRP46/4MCjZd0qlMngCoHZOa4GV2sI0k1LNihutcdCos4DxLaDmEqtjymB8Xlx5d KiAJ05sdCJqs3TUaulFw47amS+q2hOGT8emUpQWSZCsXUy8iCN3SpuRtfB8GlRr6d9r0 Ouew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KDRhunHa1ZA/opMrreyq8sK1xXQKy8bBddkvqrf4+/c=; b=U8StLRE6450ZILtiwX1cnzcyZceeAvq+d5Rtx5cUq6gLaEL1Vj9tKycY/icMMswxme D3qJbn1iSx295TaWWHEZMd6jJLpM0SpJ59yDY9gL4DPxXimJpvX8Knm8PRgX2LkCDdj5 v9NL5P+/A1jbvYBIKw3mgkX2nZTtwEWZR0tjBpkcIVgWKN9NYgS5bcOihFBlJN3K9oXG fgieACGAHKtf543WYij7VdVI4RMxe/2BvIwkdQWHz1OtXWC85bBoeCUvfOsvdQKA2Ve6 YMcazKXhiY5ijKAfl2QiVfv86yqlVD3paS/Vrf7scQs4yveYckwy7/f69Td55IajSSEo RZCQ== X-Gm-Message-State: AOAM531psaxASArKjTcNArp+NcMmBGeolf/b9QUEtlRbWs0PDsafBMYd 2eha3WDnFdsSVkR0b+NUup4b3FVtgr6BwpaR+oL1fOFakqE= X-Google-Smtp-Source: ABdhPJwGJJ+U19sJKYHogEXdS5+35tYeGkDhVuvxSC77k3LJTw4bho2z/2k4G3n49RH3Ypp9oDg1SccHiyk5Qy6sqik= X-Received: by 2002:a17:90b:3852:: with SMTP id nl18mr19243475pjb.94.1633805909654; Sat, 09 Oct 2021 11:58:29 -0700 (PDT) List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org MIME-Version: 1.0 From: Victor Volpe Date: Sat, 9 Oct 2021 15:58:18 -0300 Message-ID: Subject: M.2 SATA randomly detached only on FreeBSD To: freebsd-hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4HRZ8Q6zj1z4R3H X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=oqqSB1Ko; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of youngsjrp@gmail.com designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=youngsjrp@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hardware@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::634:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N Hi folks, This is my last resource, hope that someone can help me. I bought a new Samsung EVO 860 M.2 SATA for my home server. Everything looked good at the first boot on Windows, and tests with CrystalDiskInfo and CrystalDiskMark were all fine. The problems started when I tried to do a FreeBSD fresh install. Installation ran ok, but before the first reboot I quickly saw the "detached" message on the white bold text. System booted up, and I started to install the packages and make the configs. When I ran bonnie++ the "detached" message was shown again and the system crashed. Tried to make a new installation, but the message keeps showing up randomly before, during or after the install. Back to Windows with the reparted and formatted disk, it worked fine even with file transfers, benchmarks and so. *** NO ERRORS BEFORE *** Oct 8 15:31:17 kernel: ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 Oct 8 15:31:17 kernel: ada1: s/n S413NS0R904336X detached Oct 8 15:31:17 kernel: (ada1:ahcich1:0:0:0): Periph destroyed Oct 8 15:31:19 kernel: ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 Oct 8 15:31:19 kernel: ada1: ACS-4 ATA SATA 3.x device Oct 8 15:31:19 kernel: ada1: Serial Number S413NS0R904336X Oct 8 15:31:19 kernel: ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) Oct 8 15:31:19 kernel: ada1: Command Queueing enabled Oct 8 15:31:19 kernel: ada1: 238475MB (488397168 512 byte sectors) I had tried everything I could: UFS/ZFS, BIOS factory settings reset, new RAM modules, newer FreeBSD versions (13 and 14) and so on. The problem happens only on FreeBSD! Windows and Linux work normally, with full device throughput (550MB/s). My SSD is beginning to wear out because of many repartitions/reformats I tried. Windows (Booted up from an external Kingston SSD on USB3 Port): - Full S.M.A.R.T. Test OK - Samguns Magician Extended Surface Test OK - Sustained Write Test (moving large files to the drive until it get full) OK PartedMagic (Slackware Linux) (Booted up from a SanDisk Ultra Stick on USB3 Port): - Full S.M.A.R.T. Test OK - DD Write Zeros OK - Military Grade Wipe OK Thanks.