From: viresh kumar <viresh.kumar@st.com>
To: "Eric D. Mudama" <edmudama@bounceswoosh.org>
Cc: Viresh Kumar <viresh.nitj@gmail.com>, Tejun Heo <tj@kernel.org>,
"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
Shiraz HASHIM <shiraz.hashim@st.com>,
Armando VISCONTI <armando.visconti@st.com>,
amitgoel <amit.goel@st.com>
Subject: Re: MWDMA Issue: sda: unknown partition table
Date: Wed, 2 Feb 2011 09:13:46 +0530 [thread overview]
Message-ID: <4D48D2F2.20907@st.com> (raw)
In-Reply-To: <20110201175925.GA20794@bounceswoosh.org>
On 02/01/2011 11:29 PM, Eric D. Mudama wrote:
> On Tue, Feb 1 at 21:02, Viresh Kumar wrote:
>> But i am facing another issue now. I am getting following error
>> sometimes, when i
>> copy > 10 MB of data to CF card.
>>
>> ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
>> ata1.00: BMDMA stat 0x5
>> ata1.00: failed command: WRITE DMA
>> ata1.00: cmd ca/00:00:3f:7f:3c/00:00:00:00:00/e0 tag 0 dma 131072 out
>> res d0/00:00:3f:7f:3c/00:00:00:00:00/e0 Emask 0x2 (HSM violation)
>> ata1.00: status: { Busy }
>>
>>
>> I debugged it further and found that after data is transferred,
>> altstatus register is returning status 0xd0, which means ATA_BUSY.
>>
>> I am not sure why this must be returned by card after data is transferred?
>
> Did you wait for the interrupt? Or is this polling alt status
> immediately after completing the data transfer?
I waited for this interrupt:
INTRQ_Int: This is the direct assignment of the CF/CF+ Interface pin 37 (INTRQ) when the
Interface is operating in TrueIDE Mode. This is the Interrupt from the Card.
The Software must read the ATA Status Register to find the source of Interrupt.
And i think that is sufficient enough.
>
> If I remember correctly (been a long time), there's a busy phase after
> the last word is transferred, until the command actually completes.
> This may or may not generate an interrupt. Eventually, the alt status
> register should transition to a status without the HOB set (0xD0->0x50
> most of the time) when the command has finished, and a read of the
> regular status register should clear an outstanding interrupt.
>
Just to get over this doubt, i will try place a small udelay after data is transferred
and before framework is communicated for successful xfer.
--
viresh
next prev parent reply other threads:[~2011-02-02 3:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-21 10:09 MWDMA Issue: sda: unknown partition table viresh kumar
2011-01-21 10:14 ` Tejun Heo
2011-01-21 10:28 ` viresh kumar
2011-01-21 11:59 ` viresh kumar
2011-01-21 16:39 ` Tejun Heo
2011-01-22 4:08 ` Viresh Kumar
2011-01-22 11:45 ` Tejun Heo
2011-01-24 11:20 ` viresh kumar
2011-02-01 15:32 ` Viresh Kumar
2011-02-01 17:59 ` Eric D. Mudama
2011-02-02 3:43 ` viresh kumar [this message]
2011-02-02 5:55 ` Eric D. Mudama
2011-02-02 5:58 ` viresh kumar
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=4D48D2F2.20907@st.com \
--to=viresh.kumar@st.com \
--cc=amit.goel@st.com \
--cc=armando.visconti@st.com \
--cc=edmudama@bounceswoosh.org \
--cc=linux-ide@vger.kernel.org \
--cc=shiraz.hashim@st.com \
--cc=tj@kernel.org \
--cc=viresh.nitj@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).