From nobody Tue Oct 06 07:51:26 2026 X-Original-To: dev-commits-src-branches@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 4hzT3M11Tgz6cWQm for ; Tue, 06 Oct 2026 07:51:27 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hzT3L6R7Vz4H8H for ; Tue, 06 Oct 2026 07:51:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791273086; 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=Bxsp9Oz9oYlyVZpf8ZmCaO9ECq/oJK2Fl/rWAfKLvNw=; b=e8kCwagdWEnYmEkck9xQXPO08LZNh6/8oNQZUxgSFIzqgDm8ch7HKQOnfnyq7LI0DwQSGI KiIT2pyoll76iwLBBoU316Zvht5Ip+VuwJnNrfj8RN2o8TP/GzfUXrxbd+eZwGqeXxH+6g cRRmOz+zpgRO9ol6gtiDNDhU04JCUfGqrgADMkCZcvHuEyl/VaESU+/3hJZdC/8wrOGd4E Wn5S7Sda6Aun2jpNyTwISaPJTw/b6mHerW6V9YNgQqdTogmEnvC2UGCc3chDrW6bKn06FZ 4S/5oZJcVVTQsYYQmX8zzzZ37Q6Ny+lXz7JBwPU6FYjCVdTo4fcK4SfXUQz8YA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791273086; b=mykb2VutZmaFvj0YOxieGjujXZGFyqxgwKoxj3veSl3SaXIKVT3ukKunxJe9sENLCQuU4A K1Dq8q/JXtwKKypi7yoWPBVq6gw6x5QApc7ui6ZtLDFM2ot3ObqC6BnmDE3hKGD1TP2MkG k1Zkpu31rdo53ATyai6FDss1FeUUo8T5PRudJKyTovHNhvEi1ztHMKMSYrdXUqvtQYmchq z+WGjml7dEdOHEJXG6PFw0L7PXRXMFzIrZlrKIigGEpenHvy8LlcelZeAgSIucYChQEwNN DWOq9jZ7kcUOun54ve7vCmUxVGqNuBnNuq+nBzE3ISKvIkRhCI/4biQrK7jkxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791273086; 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=Bxsp9Oz9oYlyVZpf8ZmCaO9ECq/oJK2Fl/rWAfKLvNw=; b=UVZko8Q+TeW8yCmNCf3BKHnDtU128hwi2QD05tUMZG1lxt+mCZgxL5gLp+xwLMdvnccYlF w6KYJTAdamlX7WQbbvDn51hL89z8VtywBtY4Ewl8J5hAz+fcUjI+Bv/1cFZpsGQghfp8fu zbTLiP7A8Ngz1HOroU0DqvhhZ7Z+RIjqZOYI/3Z8DpIzD6VcS3frFDMmDlpLcTEhcBs3cH LpvEFOHMT7QME5a33nhT9RgKY2z0OHZsbSHeFP7b7JbTORbyymsebYjiJNqq1f7W3x3BEe QMkC9iF8vK5E9Owx5iaPCYupdsbnKkADazw1VaxSUSoSGkq4TiHj0ABPdXRNFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hzT3L5WjGzxpM for ; Tue, 06 Oct 2026 07:51:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 18529 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 06 Oct 2026 07:51:26 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jaeyoon Choi Subject: git: 5f607128c9fb - stable/15 - ufshci: report the highest LUN number in the path inquiry List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jaeyoon X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 5f607128c9fb20d487b8b040a65172a9bd83387e Auto-Submitted: auto-generated Date: Tue, 06 Oct 2026 07:51:26 +0000 Message-Id: <6ac4a87e.18529.4cf18efc@gitrepo.freebsd.org> The branch stable/15 has been updated by jaeyoon: URL: https://cgit.FreeBSD.org/src/commit/?id=5f607128c9fb20d487b8b040a65172a9bd83387e commit 5f607128c9fb20d487b8b040a65172a9bd83387e Author: Jaeyoon Choi AuthorDate: 2026-08-18 05:09:21 +0000 Commit: Jaeyoon Choi CommitDate: 2026-10-06 06:28:04 +0000 ufshci: report the highest LUN number in the path inquiry cpi->max_lun is an inclusive upper bound, but the driver reported the LUN count (8 or 32), so CAM probed one nonexistent LUN past the end. Reviewed by: imp (mentor) Sponsored by: Samsung Electronics Differential Revision: https://reviews.freebsd.org/D58820 (cherry picked from commit 68091ebf0a72b58424e6b57d6ff9687af9043003) --- sys/dev/ufshci/ufshci_sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ufshci/ufshci_sim.c b/sys/dev/ufshci/ufshci_sim.c index 8ac47fc4a2dc..2d9a425f6439 100644 --- a/sys/dev/ufshci/ufshci_sim.c +++ b/sys/dev/ufshci/ufshci_sim.c @@ -271,7 +271,7 @@ ufshci_cam_action(struct cam_sim *sim, union ccb *ccb) cpi->hba_misc = need_scan_wluns | PIM_UNMAPPED | PIM_NO_6_BYTE; cpi->hba_eng_cnt = 0; cpi->max_target = 0; - cpi->max_lun = ctrlr->max_lun_count; + cpi->max_lun = ctrlr->max_lun_count - 1; cpi->async_flags = 0; cpi->maxio = ctrlr->max_xfer_size; cpi->initiator_id = 1;