From: Axel Belinfante <Axel.Belinfante@cs.utwente.nl>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] MK5002MPL pc card power on problem (digital hinote 2000)
Date: Wed, 17 Mar 2004 11:45:09 +0100 [thread overview]
Message-ID: <200403171045.i2HAj9W28710@zamenhof.cs.utwente.nl> (raw)
In-Reply-To: Your message of "Wed, 17 Mar 2004 00:36:31 +0100." <200403162336.i2GNaVY22060@zamenhof.cs.utwente.nl>
playing with timing in slotena did not help, so far.
of course, the MK5002MPL works in a toshiba tecra 8000.
of course, an orinico wavelan card works in digital hinote ultra 2000.
below follow some symptoms, a hypothesis, a suggestion,
and some hardware details at the end.
I have no idea where to look further, so suggestions
of things to try are welcome.
Axel.
symptoms:
with the MK5002MPL in a digital hinote ultra 2000,
(configured to use #y instead of #Y -- pccard0=disabled in plan9.ini)
booting with card inserted hangs after the apm0 line is printed.
booting without card works, then inserting card and doing
cat '#y'/pcm?ctl freezes the machine.
hypothesis:
my guess is that slotena fails to put power to the
card without noticing that it fails. I base this on
the result of print statements added to slotinfo.
So, a bit later an attempt is done to read (config?)
info from the card and then it freezes in
/sys/src/9/port/cis.c:/^readc
when it tries to execute
*x = cis->cisbase[cis->cisskip*cis->cispos];
I guess at that point it tries to access memory from the
card and fails because the card has no power.
suggestion:
Just as a safety precaution, to avoid the freeze
due to a hanging readc, I'm tempted to suggest an
additional check in slotena, to bail out (with a warning?)
if pp->occupied && !pp->powered
Maybe it is sufficient to set pp->enabled only
if above condition holds.
However, I do not know much about this,
and have no idea what could break when doing that.
hardware:
Unfortunately I do not have the machine here at work so
cannot report details reported by kernel about hardware.
(I thought I saved, cannot find back)
It has an internal pc card (network/modem), and
a dual external slot. Some info from memory, some from
digital legacy support doc from the website.
9load recognizes two some #Y TI .... (1131 acc. to doc)
The interesting thing is that the kernel reporst two
different #y (pcmcia) 'mode' controllers.
One of the two is reported as a i82365, other I don't recall.
According to doc, for the internal slot there is a
CL-PD6722 dual slot pcmcia controller (of which 1 slot is used)
So, I guess there is a TI1131 for the external slot
(that also works in i82365 compatible mode?)
and a CL-PD6722 for the internal slot.
I wrote:
> I think I have traced the problem (good ol' print statements)
> to the card not getting power in
>
> /sys/src/9/pc/devi82365.c:/^slotena
>
> in the slotinfo called from slotena, only pp->occupied gets set,
> but none of the other values. The comment in the slotena code says
> that the wait's are empiral, so I'll just play a bit.
prev parent reply other threads:[~2004-03-17 10:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-16 23:36 Axel Belinfante
2004-03-17 10:45 ` Axel Belinfante [this message]
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=200403171045.i2HAj9W28710@zamenhof.cs.utwente.nl \
--to=axel.belinfante@cs.utwente.nl \
--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).