From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: petkovbb@gmail.com
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: IDE S.M.A.R.T. ioctl errors
Date: Mon, 28 Jul 2008 16:44:38 +0200 [thread overview]
Message-ID: <200807281644.38419.bzolnier@gmail.com> (raw)
In-Reply-To: <20080728060133.GA14007@gollum.tnic>
Hi,
On Monday 28 July 2008, Borislav Petkov wrote:
[...]
> [ 32.918048] ide_cmd_ioctl: args[0]: 0xb0, args[1]: 0x1, args[2]: 0xd5 args[3]: 0x1
> [ 32.918164] hdd: status error: status=0x58 { DriveReady SeekComplete DataRequest }
> [ 32.918392] ide: failed opcode was: 0xb0
> [ 32.918491] hdd: drive not ready for command
> [ 32.918618] hdd: status error: status=0x58 { DriveReady SeekComplete DataRequest }
> [ 32.918844] ide: failed opcode was: 0xea
> [ 32.918949] hdd: drive not ready for command
> ...
>
> and this is "caused" by
> ide-use-correct-data-phase-for-smart-read-data-log-in-ide_cmd_ioctl.patch. This
> happens, IMHO, because when you do ATA_CMD_SMART from userspace ioctl, one of
> the cases is that the tf->feature flags have values which are inconsistent with
> the ATA/ATAPI v.7 spec (6.54.5 SMART READ DATA):
>
> "If the device does not support this command, if SMART is disabled, or if the
> values in the Features, LBA Mid, or LBA High registers are invalid, the device
> shall return command aborted."
>
> For example this one:
>
> [ 30.499581] ide_cmd_ioctl: args[0]: 0xb0, args[1]: 0x1, args[2]: 0xd1 args[3]: 0x1
> [ 30.516111] hda: task_no_data_intr: status=0x58 { DriveReady SeekComplete DataRequest }
> [ 30.516387] ide: failed opcode was: 0xb0
>
> However, the case with the SMART_READ_LOG looks correct above: args[2] = 0xd5
> which is the tf->feature flag, cmd = 0xb0 (ATA_CMD_SMART). This one fails too, though.
Thanks for spotting it.
It seems that ide_cmd_ioctl() ->data_phase change is not as obvious as
I previously thought. Since the patch is quite low-prio (it prepares
the code for future changes) I just dropped it until we learn more about
the underlying issues.
Bart
next prev parent reply other threads:[~2008-07-28 14:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-28 6:01 IDE S.M.A.R.T. ioctl errors Borislav Petkov
2008-07-28 14:44 ` Bartlomiej Zolnierkiewicz [this message]
2008-07-28 16:16 ` Boris Petkov
2008-07-28 16:22 ` Bartlomiej Zolnierkiewicz
2008-07-28 21:55 ` Mark Lord
2008-08-02 16:38 ` Bartlomiej Zolnierkiewicz
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=200807281644.38419.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=petkovbb@gmail.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 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).