From: Axel Waggershauser <awagger@web.de>
To: linux-kernel@vger.kernel.org
Subject: Problems getting dma working with the sc1200.c ide driver
Date: Tue, 10 Feb 2004 13:30:56 +0100 [thread overview]
Message-ID: <1076416255.1676.6.camel@strand.wg> (raw)
Hi,
I have the <subject> problem and tried to contact Mark Lord, which seems
to be the author of the driver. There is no response yet, so I decided to
post it here...
I have a peace of hardware called "X-board" in front of me (if your are
interested: http://www.jumptec.de/product/data/xboard/xb-861.html). It is
based on the Geode SC1200 cpu. This module is plugged into a development
board which I connected a standard IDE drive to.
I tried to get dma access working with a 2.4 and the 2.6.2 kernel without
success. The 2.6.2 kernel compiled with CONFIG_IDEDMA_PCI_AUTO=y hangs at
boot with the last line on the screen containing
"sc1200_set_xfer_mode(UDMA2)". Both kernel versions compiled without
CONFIG_IDEDMA_PCI_AUTO=y boot fine, but trying to enable dma with hdparm
after boot fails with "SC1200: set xfer mode failure". I took a look at the
2.6.2 driver code and found that if IDEDMA_PCI_AUTO is not configured every
attempt to enable dma later on fails because sc1200_autoselect_dma_mode()
returns 0 since hwif->autodma is false. So without the IDEDMA_PCI_AUTO option
(which locks my machine) there seems to be no way to enable dma, or is there?
I did not further try to track down the lockup, yet. I could start debugging
this on the level of "inserting printks". I have no knowledge of the IDE
part of the kernel, though.
I have seen lines like:
if (!((d->device == PCI_DEVICE_ID_CYRIX_5530_IDE && d->vendor == PCI_VENDOR_ID_CYRIX)
||(d->device == PCI_DEVICE_ID_NS_SCx200_IDE && d->vendor == PCI_VENDOR_ID_NS)))
{
hwif->autodma = 0;
}
which I do not understand in their context but made me suspect that
dma is not really expected to work on this setup.
I would appreciate any help or hints to a solution.
Thanks,
Axel.
next reply other threads:[~2004-02-10 12:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-10 12:30 Axel Waggershauser [this message]
2004-02-10 14:45 Axel Waggershauser
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=1076416255.1676.6.camel@strand.wg \
--to=awagger@web.de \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®