From nobody Sat Mar 16 15:16:13 2024 X-Original-To: dev-commits-src-all@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 4Txl7f44tTz5F1NN; Sat, 16 Mar 2024 15:16:14 +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 4Txl7f16ZVz4G1Q; Sat, 16 Mar 2024 15:16:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710602174; 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=hXHkl9TgHquos59pwF1hb6O//9sIkJ0fJ4xpM4X1WAk=; b=dZSgGb3X30Se6WWSbDHcGyAT9YT4nmcPhFXsGFFYzeEPlypnpJJ+K57eOTBa2CNffs+QJO 3HbNTnz2+zkcACQgLLyvh/7ZKFmXOHwQyPiFTCoOQtw6wgqnm4uMyEqYRAVfpwpHD7aA0E lRStW2kgjPx0JsetEg9/Aq1LxZJXieiA/c0UcY2fQXuYI3gWm7BVFG7vFZYSula1sQ8pAM cl5e6VdTANv+khSSV/ir8HfQgHI1VRvrwdKN6tUsUlN7fTydOmbbMVO4TxP+uqvNFWJJrX VWQLHf+IM9ScNEZpvixxScvAlzlXRvU3BCki+V48hhr8YRSgwIUO7z+ccVCIRg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710602174; a=rsa-sha256; cv=none; b=YSm/202TXLmaMcLsYr/3R1HPolJ9ym/G51xfu+x4hD1c6k5Rq3cmfTY+bAzJMePoRmVtT8 ohFWCSgOX0OsrQdBIaIZ7hzwakHIxGVryyrIvokbRa4TvtgTSnqqSKVo8l9gzI7wmKVV/W 2ClP1DAedToEFQv1+kopExXGm6n4wSh9CcK2qq8chrbntrSQ3hFQ1ZQkWHPS2a6a8BGX8C KTYGtSVPxD5SNquzxbAD/8uAysI61Q+WTTcg20HghkgQ0uQEdVEIHr7Hb+BgF4d31c1G6q aPEwy+5cq7anRtA4ZbBTyvUlWh0M7wC0vcuqj7MhKA5x62H0TzknSZKud1Gp9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710602174; 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=hXHkl9TgHquos59pwF1hb6O//9sIkJ0fJ4xpM4X1WAk=; b=ed9wjJ7n+G5KMuqit2VbDVKTneJiYUxtCpNLmlbkqT+O2CdME6SrU66YqNTx/TlFQIHJRP up7f0fzoHjd7+j4v2au/N9CH4qKQdfLe5+vWsSxNz6DQvzyW3t9mIVt/wtghn++H5bol1s OVf2o3NChEPaWVXaj4m0ZImEVSLclMwvc6fYu10NvPednCFfBL5xFGjrQxhE5R4yFy/Txm GXELod9kTFrM3tw7XWqccMJukiiCEA8wfGigwZ5Y8DLO4/aJ4OjXq7CRB1RgFlCPIE1uEO 34JXlTelsXKpr4dPrXTx7Ox/csa2TZ3+glmScSusMjsq3HJd/RWLSpYfmX0Pxw== 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 4Txl7f0hPTz10V8; Sat, 16 Mar 2024 15:16:14 +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 42GFGD0D062609; Sat, 16 Mar 2024 15:16:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42GFGDkl062606; Sat, 16 Mar 2024 15:16:13 GMT (envelope-from git) Date: Sat, 16 Mar 2024 15:16:13 GMT Message-Id: <202403161516.42GFGDkl062606@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 50aa22323424 - stable/14 - scsi_da: add 4K quirks for Samsung SSD 860 and 870 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 50aa22323424ccea00ef5d8f24e729a480cc77eb Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=50aa22323424ccea00ef5d8f24e729a480cc77eb commit 50aa22323424ccea00ef5d8f24e729a480cc77eb Author: Andriy Gapon AuthorDate: 2024-02-19 10:16:47 +0000 Commit: Andriy Gapon CommitDate: 2024-03-16 15:12:53 +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. (cherry picked from commit b7dce5b8e988f47784c55aa096541deda7b1aaeb) --- 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 df44d2279fbe..ae691520e157 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -1396,6 +1396,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*)