From: Petr Vandrovec <petr@vandrovec.name>
To: Tejun Heo <htejun@gmail.com>
Cc: Ryan Power <rpower@sysreset.com>,
Robert Hancock <hancockr@shaw.ca>,
linux-ide@vger.kernel.org
Subject: Re: [PATCH] Unbreak build of PMP with ACPI disabled
Date: Sat, 14 Jul 2007 05:13:57 -0700 [thread overview]
Message-ID: <4698BE05.2080003@vandrovec.name> (raw)
In-Reply-To: <4698356D.60605@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2161 bytes --]
Tejun Heo wrote:
> Ryan Power wrote:
>> I'm also experiencing this problem on a with the sata_nv module. I
>> suspect that it may at least not be controller dependant, as it's also
>> occurring on my silicon image controller (sata_sil, SiI3512). It looks
>> like something is zeroing out part of the return registers for the
>> overall smart status.
>>
>> Tested with Maxtor 6L300S0 and Western Digital WD3200JS drives on both
>> the sil and nv controllers. This was working in 2.6.21.6, but I haven't
>> had a chance to try and isolate the problem any further.
>
> Hmmm... Incidentally, Jeff told me yesterday he was seeing the same
> problem on sil. Maybe it's something in the core. I'll investigate.
What about attached patch? Seems to make my mcp61 happy... (it is sent
from Mozilla, so patch below is most probably whitespace challenged...
attachment should be fine)
Petr
Fix reported task file values in sense data
ata_tf_read was setting HOB bit when lba48 command was submitted, but
was not clearing it before reading "normal" data. Maybe it would be
better to just clear HOB bit immediately after reading upper halves
for lba48 command, but I just decided to clear HOB bit in each
ata_tf_read...
Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
---
commit de1eff411670a3e5dfadcc281754cb26035779fa
tree 5fbcc8f667a34aa9688ce3aa19b9c92944a12862
parent c2e8a9b937eb84d1b712874f458790d2df25641a
author Petr Vandrovec <petr@vandrovec.name> Sat, 14 Jul 2007 05:11:03 -0700
committer root <root@gwy.hsd1.ca.comcast.net> Sat, 14 Jul 2007 05:11:03
-0700
drivers/ata/libata-sff.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index a74afea..507ab69 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -196,6 +196,7 @@ void ata_tf_read(struct ata_port *ap, struct
ata_taskfile *t
f)
{
struct ata_ioports *ioaddr = &ap->ioaddr;
+ iowrite8(tf->ctl, ioaddr->ctl_addr);
tf->command = ata_check_status(ap);
tf->feature = ioread8(ioaddr->error_addr);
tf->nsect = ioread8(ioaddr->nsect_addr);
[-- Attachment #2: unbreak-smart --]
[-- Type: text/plain, Size: 1225 bytes --]
Fix reported task file values in sense data
ata_tf_read was setting HOB bit when lba48 command was submitted, but
was not clearing it before reading "normal" data. Maybe it would be
better to just clear HOB bit immediately after reading upper halves
for lba48 command, but I just decided to clear HOB bit in each
ata_tf_read...
Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
---
commit de1eff411670a3e5dfadcc281754cb26035779fa
tree 5fbcc8f667a34aa9688ce3aa19b9c92944a12862
parent c2e8a9b937eb84d1b712874f458790d2df25641a
author Petr Vandrovec <petr@vandrovec.name> Sat, 14 Jul 2007 05:11:03 -0700
committer root <root@gwy.hsd1.ca.comcast.net> Sat, 14 Jul 2007 05:11:03 -0700
drivers/ata/libata-sff.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index a74afea..507ab69 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -196,6 +196,7 @@ void ata_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
{
struct ata_ioports *ioaddr = &ap->ioaddr;
+ iowrite8(tf->ctl, ioaddr->ctl_addr);
tf->command = ata_check_status(ap);
tf->feature = ioread8(ioaddr->error_addr);
tf->nsect = ioread8(ioaddr->nsect_addr);
next prev parent reply other threads:[~2007-07-14 12:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-13 6:56 [PATCH] Unbreak build of PMP with ACPI disabled Petr Vandrovec
2007-07-13 7:09 ` Tejun Heo
2007-07-13 23:30 ` Robert Hancock
2007-07-14 0:00 ` Ryan Power
2007-07-14 2:31 ` Tejun Heo
2007-07-14 12:13 ` Petr Vandrovec [this message]
2007-07-16 3:38 ` Ryan Power
2007-07-16 10:32 ` Tejun Heo
2007-07-17 10:54 ` [PATCH] Fix SMART reporting on 2.6.22 Petr Vandrovec
2007-07-18 3:08 ` Tejun Heo
2007-07-20 11:44 ` Jeff Garzik
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=4698BE05.2080003@vandrovec.name \
--to=petr@vandrovec.name \
--cc=hancockr@shaw.ca \
--cc=htejun@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=rpower@sysreset.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).