git: b2b381d365fc - main - cam: Add human readable statuses for some CAM_ status values.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Nov 2023 22:43:38 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=b2b381d365fc214a7d4ab126f57a7f86f0f1df5e commit b2b381d365fc214a7d4ab126f57a7f86f0f1df5e Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2023-11-08 22:38:16 +0000 Commit: Warner Losh <imp@FreeBSD.org> 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" },