linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: "Eric D. Mudama" <edmudama@gmail.com>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>
Subject: Re: [PATCH 1/1] libata: dump full ATA firmware revision to dmesg
Date: Tue, 30 Jan 2007 19:43:08 -0500	[thread overview]
Message-ID: <45BFE61C.4050209@garzik.org> (raw)
In-Reply-To: <311601c90701301221o4cee44cat34547cf8891189ed@mail.gmail.com>

Eric D. Mudama wrote:
> SCSI only supports a 4-character firmware revision string, while ATA
> uses 8 characters.  Since it can be useful for debugging drive/host
> issues, and because not everyone has a working hdparm on their system,
> dump the full ATA firmware revision into dmesg at drive detection.
> Only affects ATA devices connected via libata, and not ATAPI (since
> they likely use SCSI conventions anyway).
> 
> Sample output from my dmesg:
> 
> ata1.00: ATA-7, max UDMA/133, 488395055 sectors: LBA48 NCQ (depth 0/32)
> ata1.00: ata1: dev 0 multi count 16
> ata1.00: ata1: Firmware Revision: 3.AAC
> ata1.00: configured for UDMA/133
> ata2.00: ATA-7, max UDMA/133, 195813072 sectors: LBA48 NCQ (depth 0/32)
> ata2.00: ata2: dev 0 multi count 16
> ata2.00: ata2: Firmware Revision: VA111910
> ata2.00: configured for UDMA/133
> scsi 0:0:0:0: Direct-Access     ATA      ST3250820AS      3.AA PQ: 0 
> ANSI: 5
> scsi 1:0:0:0: Direct-Access     ATA      Maxtor 6V100E0   VA11 PQ: 0 
> ANSI: 5
> 
> Signed-off-by: Eric D. Mudama <edmudama@gmail.com>

hmmmm.  While I agree that exposing the full firmware rev is a good 
thing to do, I'm a bit embarrassed as it is about libata's dmesg spam, 
and I try to resist increasing it.  As such, I think that firmware rev 
on a line all by itself is a bit "greedy" by those standards.

Additionally -- and this is not your fault since the previous line is 
the same -- the "ata2.00: ata2: [dev 0]" is redundant.  The "ata2.00" is 
all we really need to know which bus and device we're referring to.

I would rather revamp things to look something like

	...
	ata2.00: ATA-7, Maxtor 6V100E0, VA111910, max UDMA/133
	ata2.00: 195813072 sectors, multi 16, LBA48 NCQ (depth 0/32)
	...

I realize that's more work than just a simple addition, alas...

Regards,

	Jeff



      parent reply	other threads:[~2007-01-31  0:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-30 20:21 [PATCH 1/1] libata: dump full ATA firmware revision to dmesg Eric D. Mudama
2007-01-30 20:35 ` Eric D. Mudama
2007-01-31  0:43 ` Jeff Garzik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45BFE61C.4050209@garzik.org \
    --to=jeff@garzik.org \
    --cc=edmudama@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).