From nobody Mon Feb 19 10:27:35 2024 X-Original-To: dev-commits-src-main@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 4Tddyc1MZZz5BNvN; Mon, 19 Feb 2024 10:27:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tddyc0RQkz4kW7; Mon, 19 Feb 2024 10:27:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708338456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bkmo+vPpuO421DgvS68IQxxmW1yLqfFhmmIK9Fd9pdY=; b=froziOJArgthv9KRuToIg/AonvG9JvbBsgbPHHCPkbC1JGaNDdukLi+GTw2oslF3+Dt6e9 10CllK3v03/RbXre0cOA74e324Log8IfDXNp1VclPb4ik5Ws/wYVmnsAP2yPVTIdfnhECO 4QdAekn7eTn9LTjvA9Sntwwo+EOakHajiT7PLcvje8M/tYadQYtMOMdfoiPzeol3B6FMPG CxcJpkghpqQTI+cBCP3szoj+jvd+TzN7eZvfwJQuL7WSkLmrJUnhZGXAm5sh1QD2NOukG/ cZl4iZKg0GIPBBEJmw+ke2bc5lUrefs74h4RL9E5MCkpjRwo4tUqZtvAM2AMMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708338456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bkmo+vPpuO421DgvS68IQxxmW1yLqfFhmmIK9Fd9pdY=; b=Tlp4BT3iRWawTQNf0da3q6FsDWnyQB/56ZOAv9clzvL061vnG1yQwmEqGTcdPo9VAH780k TNALjcVAxJeXHrn3RqotEM2KBxcT7ZS0TaVNoFUJC9nbFoufF4+MCuX6Itsi0IQ5jqPKRs pn2F++hBBmWelKI7pRHkD4y0k2VoxAc96pmWh/Ygk7NKFW2RmBFV1TmsbfIci4VsoF81Is /2pGei7OGqhkv8Dczg9bvtKQw6G59hOrFYzCuCk8eo5uVjGRnnOXZ3VAmy8/CWLLq58EsM +7fRqArPEXTjiq6LXArJM6jMNvaZPbtmmm9UWaTBEmknyKfKS9WfVi9B9/BG5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708338456; a=rsa-sha256; cv=none; b=oqxmYuYEj0pzSyNklgz98UQp4WrNmzYCc1Kf+WLYiGQ3fZmmcfoXZjYoy5JZEj8Ns14rlG u/mcFccWGu8G/ZrDvusRYWJrvIDR3KS8LL7g9kmDaNNV5Rwe2YTBrubeMsxCRnsk1W/yBf quMt/Ap4fl+qKM1qF0TSHgaujCHgsTr4HbD/hTO03ZwHpDWufCPrjpkJiBwHYQ3vFlkvqR uP6wndMtyO9vTifPgUxSSX7VV2kQvrw68VS1ruxJbv7FNs8P1sLCLJveJZ9IgTFcOQrC6H Ubd891Hhnz2D4BCi/ULGP4HQCQvC/CmF8fDVzRhU0mXW2VgiO/qo9geHYudyfA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tddyb6bl9zWwH; Mon, 19 Feb 2024 10:27:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41JARZ5W052312; Mon, 19 Feb 2024 10:27:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41JARZST052309; Mon, 19 Feb 2024 10:27:35 GMT (envelope-from git) Date: Mon, 19 Feb 2024 10:27:35 GMT Message-Id: <202402191027.41JARZST052309@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andriy Gapon Subject: git: b7dce5b8e988 - main - scsi_da: add 4K quirks for Samsung SSD 860 and 870 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b7dce5b8e988f47784c55aa096541deda7b1aaeb Auto-Submitted: auto-generated The branch main has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=b7dce5b8e988f47784c55aa096541deda7b1aaeb commit b7dce5b8e988f47784c55aa096541deda7b1aaeb Author: Andriy Gapon AuthorDate: 2024-02-19 10:16:47 +0000 Commit: Andriy Gapon CommitDate: 2024-02-19 10:16:47 +0000 scsi_da: add 4K quirks for Samsung SSD 860 and 870 Although the actual flash page size is either 8K or 16K for those devices (according to different sources of various reliability), they seem to be optimized for the "industry-standard" emulated 4K block size. To do: consolidate very similar Samsung SSD entries for 830 - 870 models. MFC after: 2 weeks --- sys/cam/scsi/scsi_da.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index d578e4ccb712..9b3d706d6168 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -1395,6 +1395,22 @@ static struct da_quirk_entry da_quirk_table[] = { T_DIRECT, SIP_MEDIA_FIXED, "ATA", "Samsung SSD 850*", "*" }, /*quirks*/DA_Q_4K }, + { + /* + * Samsung 860 SSDs + * 4k optimised & trim only works in 4k requests + 4k aligned + */ + { T_DIRECT, SIP_MEDIA_FIXED, "ATA", "Samsung SSD 860*", "*" }, + /*quirks*/DA_Q_4K + }, + { + /* + * Samsung 870 SSDs + * 4k optimised & trim only works in 4k requests + 4k aligned + */ + { T_DIRECT, SIP_MEDIA_FIXED, "ATA", "Samsung SSD 870*", "*" }, + /*quirks*/DA_Q_4K + }, { /* * Samsung 843T Series SSDs (MZ7WD*)