From nobody Wed Nov 08 22:43:38 2023 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 4SQg9R0LlQz50dhv; Wed, 8 Nov 2023 22:43:39 +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 4SQg9Q6sHGz4kZq; Wed, 8 Nov 2023 22:43:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699483419; 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=eR9/toA2GPrIMP3PqaIdi08i/naGq81lmMhY2xfAIzM=; b=LyX8fmtycFHYJShiMxARYhbV9JcAUCDi9KAy2k9a4ll8f2GM3QNJau9WjmuJ0zEgmjQ/eh nP9mmxr8ycfKWRApRePx0IMZQSMyOht4POa4zwsYVYHfWk2AlT+X3uzDmJoR30p9ygQn4T VWfFDxqBz7+BIf/aSNX2qj8/KzisYvNcZL8iKpTWm0WaBPFIf2072XeaqXym9EpMcKHAh6 yQ0PwyxvdZDG7xRQZEe4y0uPzrZs+NKHAS5TyXkao54voQBVJ5m3tCxjKLCTWjZZos8B4z R+b7HlZFQ39abX0gKwjeQlKQBmViVNMFSLeXI5pLF45WTzbwCfei7pBxGcxi0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699483419; 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=eR9/toA2GPrIMP3PqaIdi08i/naGq81lmMhY2xfAIzM=; b=IZV1kkoclwkRghn4xN19xz9NihN0/6g8/BgifmoaKVdA1i0Ms2BJzeTXXkswOwnV0/eLr6 LTrqxq2HGgu9D4nm0V5Q2v9IuZPuBcevvdEjtDxZ2mCJs3w7RVLNNWFQml9xokh+FsqVGp BKPQG4WpgxJ/WHZF4mLdRNYId+wsTsjC9JY/fsS3dI95f/0ww6uYEv9EpZbLyEupHZEn1C oGoFN2cvVQgDvmJXCnzRb3FVIjlaW9d4+UmJb3y+H29bUFaRVAkDsGBVVM+qN6iUkDN4kp mjL5CDN2lMFsMzVjF09fsg9LeJaswPA4iqg1xGYNFCp0DWWUGuf/tZ6CcP2snw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699483419; a=rsa-sha256; cv=none; b=jwCmyQpsc448Mw4ztGrt412zb9XG3gg62kSlq1nSM98laDSZvdbS5X/apW3N5cQUh0mahd PFHhOtCfG73UsGmlF7yI4ANfrMxjq+VPK56lVzSB8U85aq3Pb/4OM/OpvvaBbSXiQFQ44r lYJ4HhfzAF5JYPUCVhefbSFyKczf1Zf2Z+QlqvbLxv5GUTkJON9BWrnIqOOX9k8quGYuQw n74eS1athnhhtOajqHtCA4oqnMWJpvHwZNIdCfm99WP1hoQmi0bGNDA0R2qou5VSQz5Qth aVrgBGvKHRMXEV+mfXZZ3VTEnM7+u/ULS9mcL6KnmM3m3M7eavBTfY8uqd68Vg== 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 4SQg9Q5wgvzrYx; Wed, 8 Nov 2023 22:43:38 +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 3A8MhcNM079290; Wed, 8 Nov 2023 22:43:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A8Mhc71079287; Wed, 8 Nov 2023 22:43:38 GMT (envelope-from git) Date: Wed, 8 Nov 2023 22:43:38 GMT Message-Id: <202311082243.3A8Mhc71079287@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: b2b381d365fc - main - cam: Add human readable statuses for some CAM_ status values. 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b2b381d365fc214a7d4ab126f57a7f86f0f1df5e Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=b2b381d365fc214a7d4ab126f57a7f86f0f1df5e commit b2b381d365fc214a7d4ab126f57a7f86f0f1df5e Author: Warner Losh AuthorDate: 2023-11-08 22:38:16 +0000 Commit: Warner Losh CommitDate: 2023-11-08 22:38:16 +0000 cam: Add human readable statuses for some CAM_ status values. CAM_NVME_STATUS and CAM_REQ_SOFTTIMEOUT were missing, though the latter hasn't been used yet. The former is being used and showing up in dmesg output as Unknown 0x420. Fixes: f564de00f794 Fixes: 774ab87cf27b Sponsored by: Netflix --- sys/cam/cam.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/cam/cam.c b/sys/cam/cam.c index 09bef8ee3a83..01a5b3c3b36c 100644 --- a/sys/cam/cam.c +++ b/sys/cam/cam.c @@ -87,10 +87,12 @@ const struct cam_status_entry cam_status_table[] = { { CAM_REQ_TERMIO, "CCB request terminated by the host" }, { CAM_UNREC_HBA_ERROR, "Unrecoverable Host Bus Adapter Error" }, { CAM_REQ_TOO_BIG, "The request was too large for this host" }, - { CAM_REQUEUE_REQ, "Unconditionally Re-queue Request", }, + { CAM_REQUEUE_REQ, "Unconditionally Re-queue Request" }, { CAM_ATA_STATUS_ERROR, "ATA Status Error" }, { CAM_SCSI_IT_NEXUS_LOST,"Initiator/Target Nexus Lost" }, { CAM_SMP_STATUS_ERROR, "SMP Status Error" }, + { CAM_REQ_SOFTTIMEOUT, "Completed w/o error, but took too long" }, + { CAM_NVME_STATUS_ERROR, "NVME Status Error" }, { CAM_IDE, "Initiator Detected Error Message Received" }, { CAM_RESRC_UNAVAIL, "Resource Unavailable" }, { CAM_UNACKED_EVENT, "Unacknowledged Event by Host" },