9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: jmk@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] ATA next
Date: Thu, 22 Jan 2004 14:13:38 -0500	[thread overview]
Message-ID: <907d91e4f24372b364912eadff65de96@plan9.bell-labs.com> (raw)
In-Reply-To: <20040122201917.E28365@cackle.proxima.alt.za>

On Thu Jan 22 13:20:42 EST 2004, lucio@proxima.alt.za wrote:
> On Thu, Jan 22, 2004 at 10:22:37AM -0500, jmk@plan9.bell-labs.com wrote:
> >
> > The code in sdata.c/atawctl() could perhaps be a little smarter and
> > not allow dmactl to be set if ctlr->prdt is nil, then at least you'd get
> > an error when you tried to set dma on, not later when you actually
> > tried some data transfers. Something like
> >
> There didn't use to be a noticeable problem with the kernel dating
> back a year or more ago.  I didn't put it to the test, but I always
> assumed that DMA was permissible.  It's a recent-ish change that
> seems to have (erroneously, I believe) detected that the disk/controller
> is not DMA capable.  Is it not just an issue that DMA is (accidentally)
> no longer supported on non-PCI systems?  Must I try another old
> computer to check?

You are just confused. The ATA driver has never done non-PCI dma on the PC.
If you looked at the comment in the driver where the 'disabling dma' was coming
from you'd see that it's the drive which is saying it can do DMA, even although
there is no hardware that the driver knows how to use to do it.

>
> While on the subject of that particular host, it also seems to have
> developed an affinity for (once I enabled the warning message):
>
> 	cpu0: spurious interrupt 39, last 0
>
> which immediately precedes each of those annoying blank lines.  Since
> the newer kernel these have become very frequent, the previous kernel
> would have one or two blank lines in an hour, at a rough guess, now
> they occur every few seconds.  The message is in "pc/trap.c".

Again, if you looked at the code you identified in trap.c you'd see that
someone attempted to disable the 'spurious interrupt' messages but left in
the final 'print("\n");'

>
> Never having promoted myself from the 8088 which I knew really well, I
> have no idea what would give rise to interrupt 39 (0x27 to save you
> working it out), and in a new, extremely frequent number.

On a uniprocessor machine using the i8259 interrupt controller, Plan 9
offsets the interrupt vectors by 32 ('VectorPIC' in io.h). So the IRQ (which
is what you are thinking is 39) is 7. For an explanantion I again refer you
to a comment in trap.c, just above the 'spurious interrupt' code.
>
> I suspect all IDE hosts do it to a greater or lesser degree and DMA
> also seems to have a bearing.  But I'm none the wiser as to why.
>
> ++L


  reply	other threads:[~2004-01-22 19:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-22 14:23 Lucio De Re
2004-01-22 15:22 ` jmk
2004-01-22 18:19   ` Lucio De Re
2004-01-22 19:13     ` jmk [this message]
2004-01-23  5:19       ` Lucio De Re
2004-01-23  9:11         ` Charles Forsyth
2004-01-23  9:37           ` Lucio De Re
2004-01-23 16:38           ` jmk
2004-01-23 16:47             ` C H Forsyth
2004-01-22 15:53 ` David Presotto
2004-01-22 18:36   ` Lucio De Re
2004-01-22 19:53     ` David Presotto
2004-01-23  5:55       ` [9fans] imap4d operation (Was: ATA next) Lucio De Re
2004-01-23 16:39         ` David Presotto
2004-01-22 20:10     ` [9fans] ATA next David Presotto
2004-01-23  7:11       ` Lucio De Re
2004-01-23  9:00         ` Lucio De Re
2004-01-23 16:37         ` David Presotto

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=907d91e4f24372b364912eadff65de96@plan9.bell-labs.com \
    --to=jmk@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /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).