Bug 191135

Summary: [hptrr] [patch] probe hptrr INQUIRY CDB: 12 00 00 00 24 00 CAM status: Invalid Target ID Error 22
Product: Base System Reporter: conzales_demon
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: conzales_demon, scottl
Priority: ---    
Version: 10.0-RELEASE   
Hardware: Any   
OS: Any   
Description Flags
original file and modified version 'hptrr_osm_bsd.c' FreeBSD10-RELEASE none

Description conzales_demon 2014-06-17 20:58:40 UTC
Created attachment 143880 [details]
original file and modified version 'hptrr_osm_bsd.c' FreeBSD10-RELEASE

I'm not a programmer so if this is a messy bug report: "Don't shoot the messenger!" ;)
'probe hptrr INQUIRY CDB: 12 00 00 00 24 00 CAM status: Invalid Target ID Error 22'

The message above scrolls endlessly on the terminal during booting after POST. The problem doesn't only exist with the 'hptrr' driver but other 'scsi/cam' drivers as well (twa -- 3ware). More info on 'twa' here: https://groups.google.com/forum/#!msg/fa.freebsd.stable/BbK2Q9SFca0/VimqyyD1a2oJ

Please do a diff on the two files I sent with this report as it was the solution for me. I don't get the message anymore and everthing works fine. The solution is not mine, I only applied it to the hptrr-driver. Since I'm not a programmer I can not predict if the changes bring any problems with stability or reliability (data corruption etc.)

So it would be great if somebody with storage driver knowledge could look at the solution. The few lines changed were recommended by somebody with the same problem only with a different CAM-driver. If can find the original message and posted solution (that i copied) I'll post it here.

This problem started after I installed FreeBSD 9.2-RELEASE, 10-RELEASE still has it. I believe 8.4-RELEASE didn't have this problem.
Comment 1 conzales_demon 2014-06-17 21:15:55 UTC
I believe I got the fix from here (hpt27 driver):