From: Grant Grundler <grundler@parisc-linux.org>
To: Joel Soete <soete.joel@tiscali.be>
Cc: PARISC list <parisc-linux@lists.parisc-linux.org>
Subject: Re: [parisc-linux] B2k and CONFIG_PDC_CONSOLE pb: followup
Date: Wed, 21 Jan 2004 22:31:12 -0700 [thread overview]
Message-ID: <20040122053112.GB6468@colo.lackof.org> (raw)
In-Reply-To: <400CB89F00001978@ocpmta2.freegates.net>
On Wed, Jan 21, 2004 at 07:03:05PM +0100, Joel Soete wrote:
> Hi all,
>
> On the my b2k when I add 'CONFIG_PDC_CONSOLE' the system hang just after
> "Searching for devices..." leting the led CDROM continuously bright ???
>
> With some printk, I reach to figure out that is at the pdc_suspend_usb()
> point where the boot hang. I try to bypass this and so it boot well.
yup - that's fixed in 2.6 slightly better.
Look for pdc_io_reset_devices() in drivers/parisc/sba_iommu.c.
You can backport and test that change to 2.4, I'd be happy to apply it.
The problem is if suckyio USB (or any device) is still doing DMA when
we reprogram the IOMMU, it will cause an HPMC. The reason is we
are fundementally changing how DMA works (non-coherent to coherent)
and PDC doesn't reprogram the suckyIo USB accordingly.
C3000 (and related systems) provides a special PDC call to disable USB.
"ccio" (eg C200) systems can have the same problem with LAN boot.
> I also try to bypass this memcpy (and restore pdc_suspend_usb() call) and
> it boot also well.
I think you've just prevented either PDC or Linux from using a PDC device.
> In sumary, on the b2k, this early memcpy() seems to break something in the
> later pdc_suspend_usb() call.
It's the other way around. pdc_suspend_usb() is breaking PDC_CONSOLE.
See email related to linux-2.6 c3000 serial console problems late last year.
AFAIK, the memcpy just enables the PDC to use a serial console.
But pdc_suspend_usb() apperently blows away the whole suckyio chip
and thus PDC can no longer use suckyio serial either. Hrmm..I thought
there was a IO_RESET_AND_CLEAR pdc call in that same chunk of code.
Anyway, Figuring out some additional info could help:
(a) know which devices might have DMA enabled when the OS gets control
(b) disable just the DMA
(c) detect when PDC_CONSOLE wants to use a device whose DMA we've disabled
hth
grant
next prev parent reply other threads:[~2004-01-22 5:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-21 18:03 [parisc-linux] B2k and CONFIG_PDC_CONSOLE pb: followup Joel Soete
2004-01-22 5:31 ` Grant Grundler [this message]
2004-01-22 15:18 ` Joel Soete
2004-01-23 18:54 ` Joel Soete
2004-01-23 19:45 ` Grant Grundler
2004-01-24 11:12 ` Joel Soete
2004-01-24 21:03 ` Grant Grundler
2004-01-26 17:00 ` [parisc-linux] A fix for B2k and CONFIG_PDC_CONSOLE pb Joel Soete
2004-01-26 17:25 ` Matthew Wilcox
2004-01-26 18:20 ` Joel Soete
2004-01-26 18:38 ` Joel Soete
2004-01-27 17:17 ` Joel Soete
-- strict thread matches above, loose matches on Subject: below --
2004-01-22 18:54 [parisc-linux] B2k and CONFIG_PDC_CONSOLE pb: followup Joel Soete
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=20040122053112.GB6468@colo.lackof.org \
--to=grundler@parisc-linux.org \
--cc=parisc-linux@lists.parisc-linux.org \
--cc=soete.joel@tiscali.be \
/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