ada(4) and ahci(4) quirk printing

Jeremy Chadwick jdc at koitsu.org
Mon Apr 22 05:14:54 UTC 2013


I've written the following patches and done the following testing (see
the results.*.txt files):

http://jdc.koitsu.org/freebsd/quirk_printing/

Important: these are against stable/9 r249715.

Folks are welcome to try these; I've tested about as best as I can.

Questions/comments for Alexander and Kenneth:

1. I'm not sure if the location of where I added the printf() code is
correct or not,

2. Not sure if loader.conf(5) forced-quirks would show up here or not,

3. It would be nice to have the same for SCSI da(4).  I took a stab at
this but the printing code I wrote never got called (or the quirks entry
I added wasn't right, not sure which),

4. I strongly believe quirk printing should be shown *without* verbose
booting.  I say this because I noticed some of the CAPAB printf()s only
get shown if bootverbose is true.  In fact, it's what prompted me to
open PR 178040 ("My Intel 320 and 510-series SSDs don't show 4K quirks,
yet advertise 512 logical and physical in IDENTIFY?!  PR time!").

P.S. -- I know the printf() method with %b looks a weird, but it's
easier than allocating some memory for a variable-length buffer and a
case statement + strcat(), or risk calling printf() for each quirks
repeatedly (re: interspersed kernel output).

-- 
| Jeremy Chadwick                                   jdc at koitsu.org |
| UNIX Systems Administrator                http://jdc.koitsu.org/ |
| Mountain View, CA, US                                            |
| Making life hard for others since 1977.             PGP 4BD6C0CB |



More information about the freebsd-stable mailing list