From nobody Mon Aug 10 02:31:32 2026 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 4hJJfY2K1vz6pVWn for ; Mon, 10 Aug 2026 02:31:33 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hJJfX5Ywxz401c for ; Mon, 10 Aug 2026 02:31:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786329092; 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=ujBo8kxq061ZZecfLkyatOUFY9C5eZpSPRjOjv/GFPM=; b=MCV7lfoxGoYxvwP8imBnZsfRNrlr+gXbrELVGqsly/YR9nslstunhO/n3GVRG1+phUpIPi RnwA6QkvO9nvnJ5R3FVOu/CmAYq3LFua7FdLkiqyyO7Ln6EBL/HbKnQHuyV7zzklmdULiR 0f470Hv+OSddOnaXqJ6SMseuWoNqpXn0mp3v/O+7GhqJhJCYXEtMWuIwWxwNOcO9Z59VO0 pkXc43Xxsy8/eZjkSZdA8qgPQCpotHFcSMUYDib+LQ26umGRotYsEWLT6WNrieb+JVYSBD lOoDcduKnTAejqGYvs5GfteDFicaZE/QuaGiasVXG8NHuDaDHtbQVfSTcJACww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786329092; a=rsa-sha256; cv=none; b=ynFzlS/SVaSCfOBRFdo5G7l6rvhZ/RqrGExx17vK1Yzt93Fn02Eo3p+NB7OrIXaWWXvKJN yhkVLrmpcIQiQfVi/fIandf13w/ddRqmXfSHM0/Fkteg8eFhg5yNsvH6vzx3z5jZ7jPJsp wnStzWLqAmDdUQjY4RyYUo5eFxIx2u38F4ULyFoDdIA/7rrr56YLv9HQIXRAvjtR3ZcAff /h7ksMKLPtfeSXTDfzcrmzpl+9Xm1ECJly448FTheK+Gc/CA0c/ZlOBrIK6gMwp3Ahnb+T K6OolD204nEQgCI7TqorcsOjD+OKE2r4/fZKFm5HEWUvHXZ9KBs7AxShJMt2Xw== 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=1786329092; 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=ujBo8kxq061ZZecfLkyatOUFY9C5eZpSPRjOjv/GFPM=; b=bDAYR7TTfkajn1GRUSlFszBXMpiofF/YfM2zo1/ybdLx8MytuD5fH7+ur94PDbALIJd/0j Lc1se8v20gwUGbrUJU2HqFKrZWQ8egz8N8hCzEuVMfAnZ2vYf4jn5CDlYw0Ps93OMGVUYE Zqkuq9fnO6J3F57De+pkPWrEBWL8NwuGJsp7unPsDVhvnwdmSFGVZ+HlQkfBFI1Q4JxtCg p2JMUd6D/+KbojIgdZBc7l+SnqXOAuLDIkG4WiEcbYsGC+9MbLJRo4cO2RpTGvBqLhTq+Z RIgdUMjIDj21cWTdKB4uDpbo12bSik66uSt68fd5ZggsTfdqg2/B7hlH8loqwg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hJJfX4JjKzqp2 for ; Mon, 10 Aug 2026 02:31:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1e419 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 10 Aug 2026 02:31:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jaeyoon Choi Subject: git: aaf0e80e684d - main - ufshci: release the CCB after sending a start stop unit command 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: aaf0e80e684da35cd527491243583467ae7c75cb Auto-Submitted: auto-generated Date: Mon, 10 Aug 2026 02:31:32 +0000 Message-Id: <6a793804.1e419.6a9f7da2@gitrepo.freebsd.org> The branch main has been updated by jaeyoon: URL: https://cgit.FreeBSD.org/src/commit/?id=aaf0e80e684da35cd527491243583467ae7c75cb commit aaf0e80e684da35cd527491243583467ae7c75cb Author: Jaeyoon Choi AuthorDate: 2026-08-10 01:51:30 +0000 Commit: Jaeyoon Choi CommitDate: 2026-08-10 02:28:53 +0000 ufshci: release the CCB after sending a start stop unit command ufshci_sim_send_ssu() got a CCB from cam_periph_getccb() but never returned it. Each call leaked the CCB and one slot of the device's CCB allocation budget. When the budget runs out, the next cam_periph_getccb() waits forever and the suspend path hangs. Release the CCB while the periph lock is still held, as the other CAM periph drivers do. Sponsored by: Samsung Electronics Reviewed by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D58669 --- sys/dev/ufshci/ufshci_sim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/ufshci/ufshci_sim.c b/sys/dev/ufshci/ufshci_sim.c index 4a106a6c7b8a..e40079b23354 100644 --- a/sys/dev/ufshci/ufshci_sim.c +++ b/sys/dev/ufshci/ufshci_sim.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -542,6 +543,8 @@ ufshci_sim_send_ssu(struct ufshci_controller *ctrlr, bool start, err = cam_periph_runccb(ccb, NULL, 0, SF_RETRY_UA, NULL); + xpt_release_ccb(ccb); + cam_periph_unlock(periph); /* Release periph reference */ cam_periph_release(periph);