From owner-freebsd-hackers@freebsd.org Sat Jul 13 04:56:45 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 5D15215DFD34 for ; Sat, 13 Jul 2019 04:56:45 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (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 812136D7D7 for ; Sat, 13 Jul 2019 04:56:44 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by mail-io1-xd2a.google.com with SMTP id f4so24917408ioh.6 for ; Fri, 12 Jul 2019 21:56:44 -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; bh=wxgGdnmOhL2WjMZYOtEZD3GH5K7mPUxiXvDwogMuheE=; b=cjmy8hftomKGIk823CyiQco7GbxzKFX1RoawiuZ+Amjx08DqcdMJIAQJ6iNEAMKgMs 5kbbAi/sXuPZTsMdkumvTePjLd69pnf5yoP4GKzNdZ+JHeMsYn5s3EFZFvbkFnyb2qiQ oVD4rIC5fuyFUzWxxQACzDOIAWExL68lStlKpp61eyMZmr2FIWC3dAJ5hd2Syvx4fyf+ ulnZL+JSOSUQYXHvrnMS6sU3Xz9R4EeC7moX4OlgaWVchyqNgzTCbjIfkCqcd/a3OGhi pMd7KPt1QwNpdeYJteBs9vjw0B9aHt4UaNQahC7T4RLGO+ii3bsUjbz1kHoVt9NEYa2W vRDg== 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; bh=wxgGdnmOhL2WjMZYOtEZD3GH5K7mPUxiXvDwogMuheE=; b=HAh+6I74VX8XYaqpqiKYM1stj47TwjGBVBHV7wBP7vBt8MtmJCaiI/cXp1TVOTTpQ1 aiMhUVlAQ7kVkeLTebb+PflHY5v+qmV0SeCCfLpsKryMDh3Ufzk+hNoyGsOEeunHfwaa WTy1Ax8dXU0Gdv2K09RPiXKekaeqUo4MvlF4IigvOlu1tcAfndR/MM8LxxJGQ8oIILJW u/fVdMUe6Snc4CW0Q1rYLkMUhuNRtWtOz+eQi2O6MWJSUlB8/nT7OLHTqJhHfd+s0yYl thTjlV6NLTLzRBM3b4iqTMu8jN9v/Vk0wBFWW1APOYRAk5uMgWYy+4IQXJJ9mypbitnR DK4A== X-Gm-Message-State: APjAAAX/QqCM5qM9fzLDJhY17HJhCcESpzyw4jBrY+3zxHCX+n7qeAps 67TPy8m8AW8apHoNGcGIf6PB4S23qMmHTBIth2JfWEE= X-Google-Smtp-Source: APXvYqyfza/cTuQfyc84xKjc7PgrR/PjWtAOMWSxYm/cws4JMp0RhLkSlVjhh5NTtPtKXyDbkBKejsxFXMnXmyfY6YU= X-Received: by 2002:a5e:cb06:: with SMTP id p6mr14359086iom.79.1562993803290; Fri, 12 Jul 2019 21:56:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zaphod Beeblebrox Date: Sat, 13 Jul 2019 00:56:30 -0400 Message-ID: Subject: Re: 4k sector support (not good?) To: FreeBSD Hackers X-Rspamd-Queue-Id: 812136D7D7 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=cjmy8hft; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of zbeeble@gmail.com designates 2607:f8b0:4864:20::d2a as permitted sender) smtp.mailfrom=zbeeble@gmail.com X-Spamd-Result: default: False [-6.86 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.92)[-0.921,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(-2.93)[ip: (-8.95), ipnet: 2607:f8b0::/32(-3.18), asn: 15169(-2.45), country: US(-0.06)]; RCVD_IN_DNSWL_NONE(0.00)[a.2.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: Sat, 13 Jul 2019 04:56:45 -0000 Replying to my own message to add data. Attaching the drives to a SAS controller that probes up with mps, they attach without complaint, but read and write give: (da1:mps0:0:12:0): SCSI status: Check Condition (da1:mps0:0:12:0): SCSI sense: ILLEGAL REQUEST asc:74,79 (Security conflict in translated device) (da1:mps0:0:12:0): Error 13, Unretryable error (da1:mps0:0:12:0): READ(10). CDB: 28 00 00 00 00 00 00 00 01 00 (da1:mps0:0:12:0): CAM status: SCSI Status Error (da1:mps0:0:12:0): SCSI status: Check Condition (da1:mps0:0:12:0): SCSI sense: ILLEGAL REQUEST asc:74,79 (Security conflict in translated device) (da1:mps0:0:12:0): Error 13, Unretryable error (da1:mps0:0:12:0): WRITE(10). CDB: 2a 00 00 00 00 00 00 00 01 00 (da1:mps0:0:12:0): CAM status: SCSI Status Error (da1:mps0:0:12:0): SCSI status: Check Condition (da1:mps0:0:12:0): SCSI sense: ILLEGAL REQUEST asc:74,79 (Security conflict in translated device) (da1:mps0:0:12:0): Error 13, Unretryable error ... now this drive is a ST2000NX0243. The ST2000NX0248 is an encrypted drive, but the 243 is not. ... so what's this error. Also... I'm no SCSI speaker, but reading the manual for the drive, 28 and 2a are not commands it lists. 20 and 24 (for read and read extended) and 30 and 34 (for write and write extended). Help? On Fri, Jul 12, 2019 at 7:33 PM Zaphod Beeblebrox wrote: > 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 >