From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Alex Gonzalez <langabe@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [libata/sata_sil] Error on startup
Date: Sat, 13 Sep 2008 16:55:13 +0400 [thread overview]
Message-ID: <48CBB831.9030403@ru.mvista.com> (raw)
In-Reply-To: <c58a7a270809120427p2af9885eo9cbc2d4455372882@mail.gmail.com>
Hello.
Alex Gonzalez wrote:
> I am seeing a problem with libata and the sata_sil driver. I was
> redirected here from the lkml so I hope it's the correct list for
> this.
>
> I am running a 2.6.21 SMP mips kernel and on some occasions the kernel
> halts on startup. This only happens at boot time, that is, once the
> system is running it never exhibits the problem.
>
> The problem occurs when trying to read the partitions from the SATA
> drive, on the first call to read_dev_sector(). As I understand it, the
> code finishes doing a sync_page() which starts an asynchronous I/O
> operation and sleeps until awaken by an interrupt generated by the
> SATA device.
>
> I have followed the code through until the call to ata_bmdma_start(),
> where it does:
>
> iowrite8(dmactl | ATA_DMA_START, ap->ioaddr.bmdma_addr + ATA_DMA_CMD);
>
> On a working case, the device interrupts and the flow continues. On a
> non working case, there is a delay of 5 or 6 seconds, and then a
> series of calls to sil_freeze(), ata_bmdma_error_handler() and ata_bmdma_stop().
>
> I am about to delve into the ATA specs to try to understand this
>
ATA spec. itself won't avail here, it doesn't cover host's DMA
support. You probably want to read the part concerning "PCI
Compatibility and PCI-Native Mode Bus Master Adapters" pf this document:
http://www.t13.org/Documents/UploadedDocuments/project/d1510r1-Host-Adapter.pdf
> interaction, but has anybody seen this behavior before? Please CC me
> on replies.
>
Generally, DMA timeouts are seen quite frequently...
MBR, Sergei
next prev parent reply other threads:[~2008-09-13 12:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-12 10:34 [libata/sata_sil] Error on startup Alex Gonzalez
2008-09-12 11:24 ` Ben Dooks
2008-09-12 11:27 ` Alex Gonzalez
2008-09-13 12:55 ` Sergei Shtylyov [this message]
2008-09-13 17:23 ` Alex Gonzalez
2008-09-15 8:57 ` Tejun Heo
2008-09-15 9:49 ` Alex Gonzalez
2008-09-15 10:10 ` Tejun Heo
2008-09-15 10:20 ` Alex Gonzalez
2008-09-15 10:24 ` Tejun Heo
2008-09-15 15:53 ` Alex Gonzalez
2008-09-16 10:13 ` Sergei Shtylyov
2008-09-18 10:30 ` Alex Gonzalez
2008-11-10 10:02 ` Alex Gonzalez
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=48CBB831.9030403@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=langabe@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 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.