Bug 192246 - [cam] scsi_sense_only_sbuf printfs are noisy at boot in certain scenarios (like dealing with cd(4))
Summary: [cam] scsi_sense_only_sbuf printfs are noisy at boot in certain scenarios (li...
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-29 18:19 UTC by Enji Cooper
Modified: 2014-07-29 19:58 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer freebsd_triage 2014-07-29 18:19:10 UTC
I've seen "Medium not present - tray closed" types of messages frequently at boot post-9.x dealing with cd(4).

These messages are valuable for debugging real errors dealing with ses(4), etc, but they're noisy with cd(4) when there isn't media present in the drive tray (for instance).

This is a low-ish/medium-ish priority bug as improving this would "polish" kernel boot printouts.

(cd0:ahcich1:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich1:0:0:0): SCSI status: Check Condition
(cd0:ahcich1:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
(cd0:ahcich1:0:0:0): Raw sense 0-17: 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00
(cd0:ahcich1:0:0:0): Error 6, Unretryable error
(cd0:ahcich1:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 
(cd0:ahcich1:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich1:0:0:0): SCSI status: Check Condition
(cd0:ahcich1:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
(cd0:ahcich1:0:0:0): Raw sense 0-17: 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00
(cd0:ahcich1:0:0:0): Error 6, Unretryable error
(cd0:ahcich1:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 
(cd0:ahcich1:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich1:0:0:0): SCSI status: Check Condition
(cd0:ahcich1:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
(cd0:ahcich1:0:0:0): Raw sense 0-17: 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00
(cd0:ahcich1:0:0:0): Error 6, Unretryable error
(cd0:ahcich1:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 
(cd0:ahcich1:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich1:0:0:0): SCSI status: Check Condition
(cd0:ahcich1:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
(cd0:ahcich1:0:0:0): Raw sense 0-17: 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00
(cd0:ahcich1:0:0:0): Error 6, Unretryable error
(cd0:ahcich1:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 
(cd0:ahcich1:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich1:0:0:0): SCSI status: Check Condition
(cd0:ahcich1:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
(cd0:ahcich1:0:0:0): Raw sense 0-17: 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00
(cd0:ahcich1:0:0:0): Error 6, Unretryable error
(cd0:ahcich1:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 
(cd0:ahcich1:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich1:0:0:0): SCSI status: Check Condition
(cd0:ahcich1:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
(cd0:ahcich1:0:0:0): Raw sense 0-17: 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00
(cd0:ahcich1:0:0:0): Error 6, Unretryable error
Timecounter "TSC" frequency 1995237816 Hz quality 1000
(cd0:ahcich1:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 
uhub1: (cd0:ahcich1:0:0:0): CAM status: SCSI Status Error
4 ports with 4 removable, self powered
(cd0:ahcich1:0:0:0): SCSI status: Check Condition
(cd0:ahcich1:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
(cd0:ahcich1:0:0:0): Raw sense 0-17: 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00
(cd0:ahcich1:0:0:0): Error 6, Unretryable error
WARNING: WITNESS option enabled, expect reduced performance.
(cd0:ahcich1:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 
(cd0:ahcich1:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich1:0:0:0): SCSI status: Check Condition
(cd0:ahcich1:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
(cd0:ahcich1:0:0:0): Raw sense 0-17: 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00
(cd0:ahcich1:0:0:0): Error 6, Unretryable error
(cd0:ahcich1:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 
(cd0:ahcich1:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich1:0:0:0): SCSI status: Check Condition
(cd0:ahcich1:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
(cd0:ahcich1:0:0:0): Raw sense 0-17: 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00
(cd0:ahcich1:0:0:0): Error 6, Unretryable error
(cd0:ahcich1:0:0:0): READ CAPACITY. CDB: 25 00 00 00 00 00 00 00 00 00 
(cd0:ahcich1:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich1:0:0:0): SCSI status: Check Condition
(cd0:ahcich1:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
(cd0:ahcich1:0:0:0): Raw sense 0-17: 70 00 02 00 00 00 00 0a 00 00 00 00 3a 01 00 00 00 00
(cd0:ahcich1:0:0:0): Error 6, Unretryable error
Comment 1 Alexander Motin freebsd_committer freebsd_triage 2014-07-29 19:43:27 UTC
That looks quite odd to me. I don't remember I've seen such messages when tested it last time. And the message "Raw sense" I can't even find in sources. Am I looking wrong? Is it clean FreeBSD?
Comment 2 Enji Cooper freebsd_committer freebsd_triage 2014-07-29 19:56:07 UTC
(In reply to Alexander Motin from comment #1)
> That looks quite odd to me. I don't remember I've seen such messages when
> tested it last time. And the message "Raw sense" I can't even find in
> sources. Am I looking wrong? Is it clean FreeBSD?

Good question. Some of the extra debug output is coming a custom kernel (sorry... can't share the sources :/), so it might not be 100% valid on vanilla FreeBSD.
Comment 3 Enji Cooper freebsd_committer freebsd_triage 2014-07-29 19:58:27 UTC
I'll close this bug and see if I can repro this with a vanilla kernel.