From owner-freebsd-hackers@freebsd.org Fri Jul 12 23:33:36 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5CE2C15D9AF0 for ; Fri, 12 Jul 2019 23:33:36 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (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 6ACC291587 for ; Fri, 12 Jul 2019 23:33:35 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by mail-io1-xd31.google.com with SMTP id s7so23927823iob.11 for ; Fri, 12 Jul 2019 16:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cODSSI3CTTbg1Y2e+YNGYrQ9gLiNzg9v5HKFcn6xKr0=; b=WQ9sjzvxqQt+lIXB8DasyFX3HpddhHP+UFkxDcj/FBH9Z3hkXqu9mtcLD6l21D9sCh S1IsW5E7aPOyqkcMZb3Ll96NOpqgQ0jpHDyfVbhVuC3aENJK8kNV4bpeUpO5EV9FEr3e 5jUUsxzX6Gp8rqwr0B7TKZMu2dsye4yzZz7S3UPr11BdPYEns7WvXkh74xRaVpxkyy4Z TFBnUAb9tZqOg7leZTdARgtW2NXlxwN5YvJHNkz9poSINBJ4x676qdehjD0QgUnrjw+i 8G7k31MeAzO4XhiT/AtAVcVjgJqhi71Tx9VMcRGY3885rmxUopMo0UmWiXHttkqqLJwM kEIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cODSSI3CTTbg1Y2e+YNGYrQ9gLiNzg9v5HKFcn6xKr0=; b=VOqH4J7xRQaJkWGjVaRfspFBC/n+jZ6tcSU5asjHmZ4s0zlUCDhPfifZk7WcZFXTjQ dT36+JSG5z+dPqFBBxySZ6RwEq9OsEOSumipaPOfxxpBPPJmH+UI8tOuK/xxy9Y7XXJ+ 943cLWA/GOYBLtZl4BdEGEq9aYNurg4fGknjms2VSFcjQggecs101wzIdOtRGRaRyQyJ 0aGpIh4/laWOy6xqyyFSS7sV/jA5WQ6E1PCkB2aICIZ8d12W0ARD00IEyiaGKVdtAbX3 lFeNbksylpiiDCUi4fgqZPuj7ttrXHaof9H7P05gFvo5ocrHLbWNDMW4qzlxnaUZTZJO Zx4A== X-Gm-Message-State: APjAAAUvZiiKR8VTwTkG7xBrjhuROgjwCQyServ3dH3HX3tSq4HCDH5S mrcmXhfx7/fxgCz046qI2477DdoD4VKdplnhD7O2 X-Google-Smtp-Source: APXvYqwRGVpEKeOdNcgqUhTvNMXHJ2zD6efrhGUqLB52Gb1pERIuXjiCRNuVozaaSmsw+Ss5EuWptL0IrheOmwiWX6s= X-Received: by 2002:a5e:cb06:: with SMTP id p6mr13452003iom.79.1562974414388; Fri, 12 Jul 2019 16:33:34 -0700 (PDT) MIME-Version: 1.0 From: Zaphod Beeblebrox Date: Fri, 12 Jul 2019 19:33:22 -0400 Message-ID: Subject: 4k sector support (not good?) To: FreeBSD Hackers X-Rspamd-Queue-Id: 6ACC291587 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=WQ9sjzvx; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of zbeeble@gmail.com designates 2607:f8b0:4864:20::d31 as permitted sender) smtp.mailfrom=zbeeble@gmail.com X-Spamd-Result: default: False [-6.23 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.20)[-0.196,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; SUBJECT_HAS_QUESTION(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)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.02)[ip: (-9.43), ipnet: 2607:f8b0::/32(-3.18), asn: 15169(-2.45), country: US(-0.06)]; RCVD_IN_DNSWL_NONE(0.00)[1.3.d.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] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 12 Jul 2019 23:33:36 -0000 So I have 6 drives that have 4k sectors. They are: ST2000NX0243 I first tried talking to them with an old MFI passthru controller. I think that is not FreeBSD's fault --- the MFI didn't want them. Now on the motherboard, I have ahci2: port 0xa050-0xa057,0xa040-0xa043,0xa030-0xa037,0xa020-0xa023,0xa000-0xa01f mem 0xfe610000-0xfe6107ff irq 40 at device 0.0 on pci7 ahci2: AHCI v1.20 with 8 6Gbps ports, Port Multiplier not supported ... which will attach the drives, but kick out all kinds of probe errors. Smartctl can read the drives on this controller. In a PCIe slot I have: ahci3@pci0:0:17:0: class=0x010601 card=0x84dd1043 chip=0x43911002 rev=0x40 hdr=0x00 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]' which attaches the devices, kicks out a lot of errors and smartctl can't read the drives on this controller. now... on the motherboard controller, I can say: [1:16:316]root@run:~> gpart show ada7 gpart: No such geom: ada7. [1:17:317]root@run:~> gpart create -s GPT ada7 gpart: Input/output error [1:18:318]root@run:~> dmesg | tail -40 (ada7:ahcich16:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 01 00 00 00 40 00 00 00 00 00 00 (ada7:ahcich16:0:0:0): CAM status: ATA Status Error (ada7:ahcich16:0:0:0): ATA status: 41 (DRDY ERR), error: 04 (ABRT ) (ada7:ahcich16:0:0:0): RES: 41 04 00 00 00 00 00 00 00 01 00 (ada7:ahcich16:0:0:0): Retrying command, 3 more tries remain (ada7:ahcich16:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 01 00 00 00 40 00 00 00 00 00 00 (ada7:ahcich16:0:0:0): CAM status: ATA Status Error (ada7:ahcich16:0:0:0): ATA status: 41 (DRDY ERR), error: 04 (ABRT ) (ada7:ahcich16:0:0:0): RES: 41 04 00 00 00 00 00 00 00 01 00 (ada7:ahcich16:0:0:0): Retrying command, 2 more tries remain (ada7:ahcich16:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 01 00 00 00 40 00 00 00 00 00 00 (ada7:ahcich16:0:0:0): CAM status: ATA Status Error (ada7:ahcich16:0:0:0): ATA status: 41 (DRDY ERR), error: 04 (ABRT ) (ada7:ahcich16:0:0:0): RES: 41 04 00 00 00 00 00 00 00 01 00 (ada7:ahcich16:0:0:0): Retrying command, 1 more tries remain (ada7:ahcich16:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 01 00 00 00 40 00 00 00 00 00 00 (ada7:ahcich16:0:0:0): CAM status: ATA Status Error (ada7:ahcich16:0:0:0): ATA status: 41 (DRDY ERR), error: 04 (ABRT ) (ada7:ahcich16:0:0:0): RES: 41 04 00 00 00 00 00 00 00 01 00 (ada7:ahcich16:0:0:0): Retrying command, 0 more tries remain (ada7:ahcich16:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 01 00 00 00 40 00 00 00 00 00 00 (ada7:ahcich16:0:0:0): CAM status: ATA Status Error (ada7:ahcich16:0:0:0): ATA status: 41 (DRDY ERR), error: 04 (ABRT ) (ada7:ahcich16:0:0:0): RES: 41 04 00 00 00 00 00 00 00 01 00 (ada7:ahcich16:0:0:0): Error 5, Retries exhausted