All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Greg Freemyer <greg.freemyer@gmail.com>
Cc: "Peter M. Petrakis" <peter.petrakis@canonical.com>,
	IDE/ATA development list <linux-ide@vger.kernel.org>,
	Mark Lord <kernel@teksavvy.com>
Subject: Re: Is there a reliable way to ID a SSD?
Date: Tue, 04 Jan 2011 19:05:36 -0500	[thread overview]
Message-ID: <yq1r5cstdtb.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <AANLkTi=Kv8f3e8zhSkDohkgJqOv+XKQ_dPR=aFbpzm27@mail.gmail.com> (Greg Freemyer's message of "Mon, 3 Jan 2011 17:50:51 -0500")

>>>>> "Greg" == Greg Freemyer <greg.freemyer@gmail.com> writes:

Greg> In the mean time I've found the hdparm also looks at word 217 and
Greg> reports SSD devices.  It has apparently been doing that since
Greg> v9.12 or so.  (spring 2009).

Yes. And the Linux kernel has had the sysfs parameter since 2.6.29 which
came out around the same time.


Greg> My current concern is that the logic is slowly diverging between
Greg> the kernel 2.6.36 implementation and the hdparm v9.36
Greg> implementation.

As Mark said: The whole point of hdparm is to talk directly to the
device. There never was convergence, nor should there be.


Greg> 1) The kernel routine ata_id_rotation_rate() (in ata.h) is only
Greg> trusting word 217 if its ATA7 or higher.

The standards bodies are glacially slow (ACS-2 still hasn't been
ratified, although it's close. Again. Maybe). Consequently most device
vendors "backport" features from the drafts. But obviously they can't
and won't report compliance with an unfinished standard.

There are plenty of SSD drives out there which claim ATA7 compliance and
which support word 217. The reason we have a version check in the first
place is to guard against legacy devices which have inadvertently put
garbage in word 217.

We have had the rotational flag in place for a couple of years and have
had very few reports about devices misrepresenting themselves. So I'm
not entirely convinced we need quirk handling for this. Your friendly
kernel developers already made sure the rotational flag can be
overridden from user space.

-- 
Martin K. Petersen	Oracle Linux Engineering

  parent reply	other threads:[~2011-01-05  0:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-30 15:58 Is there a reliable way to ID a SSD? Greg Freemyer
2011-01-03 19:30 ` Peter M. Petrakis
2011-01-03 21:24   ` Greg Freemyer
2011-01-03 22:03     ` Peter M. Petrakis
2011-01-03 22:50       ` Greg Freemyer
2011-01-04 15:47         ` Mark Lord
2011-01-04 16:22           ` Greg Freemyer
2011-01-05  0:05         ` Martin K. Petersen [this message]
2011-01-06 16:10       ` Jan Ceuleers
     [not found]         ` <AANLkTin1ZjPmbk1M=9-SGStU7zLUozwxX7Ddtu53xNE2@mail.gmail.com>
2011-01-06 18:40           ` Greg Freemyer
2011-01-06 18:55             ` Jeff Garzik
2011-01-06 19:31             ` Martin K. Petersen
2011-01-06 20:11               ` Greg Freemyer
2011-01-06 20:41               ` Jeff Garzik
2011-01-06 21:54                 ` Martin K. Petersen
2011-01-06 19:23         ` Martin K. Petersen
2011-01-06 20:49           ` Jan Ceuleers
2011-01-06 22:02             ` Martin K. Petersen

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=yq1r5cstdtb.fsf@sermon.lab.mkp.net \
    --to=martin.petersen@oracle.com \
    --cc=greg.freemyer@gmail.com \
    --cc=kernel@teksavvy.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=peter.petrakis@canonical.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.