RPXLite 823 PCMCIA troubles
Mark,
One thing to note about PCMCIA I/O region accesses on the 823...
If the access is to a 16-bit port, the PCMCIA controller needs to see an acknowledgement from the card on the IOIS16_B pin. However when the processor is configured for debugging (full trace, etc) this pin is unavailable. It's muxed with some other debug function (VFLS, I think?). Check your settings in the SIUMCR register. If the core never gets this acknowledge on the 16 bit access, it might generate a bus error, which would show up as a machine check.
There are only two solutions for this hardware shortcoming. Either setup the SIUMCR to give up your trace capability (which isn't very useful w/ virtual memory anyway), or don't do 16-bit accesses in PCMCIA I/O space.
Hope that helps.
-Brian Kuschak
Quoted 74 lines · --- "Mark S. Mathews
Howdy Folks,
Ok, the wlan PCMCIA card is working....but only after an ugly hack.
Basically, I modified
the MachineCheck function to ignore the exception (just return) if the
faulting address (contents of DAR) falls in the iomapped range we've
established for the PCMCIA card.Any opinions on our solution?
I'd still like to know what's causing these exceptions, but that's for
another day.-Mark
Quoted 5 lines · Dan Malek
Quoted 1 line · Mark S. Mathews
Hmmmm. The way ours "works for awhile", I'm
wondering if there's a
Quoted 1 line
Quoted 1 line
problem w/ the way the 8xx is handling the WAIT#
when the MMU is enabled
Quoted 3 lines
Quoted 1 line
(?)
Shouldn't be the problem. The MMU appears (on
block diagrams
Quoted 1 line
anyway :-) to be far enough removed from the
memory controller
Quoted 4 lines
for this to happen.
Quoted 1 line
This is good to know. Our card supports I/O or
memory access to the
Quoted 1 line
Quoted 1 line
shared memory. We'll shift over to the I/O and
try that.
Quoted 2 lines
The version I have running on my PowerBook only
uses I/O.....
Quoted 4 lines
or am I mistaken?
Quoted 1 line
We've been running _lots_ of experiments with
the timing settings. So far
Quoted 3 lines
Quoted 1 line
3,10,6 seems to work best....but it still fails.
Thanks. I'll keep those numbers around.....there
are others
Quoted 4 lines
I would rather see.....:-).
Quoted 1 line
I've seen the 'guarded' thing around in the
sources, but I'm not sure what
Quoted 3 lines
Quoted 1 line
it's all about. Guess I should look. ;-)
I just fixed it. I'll send it to you privately as
well as
Quoted 1 line
post it on the ppc.kernel.org server. I hope it
corrects
Quoted 6 lines
something.
-- Dan
Quoted 10 lines
Mark S. Mathews
AbsoluteValue Software Web:
http://www.absoval.comP.O. Box 941149 e-mail: [email protected] Maitland, FL 32794-1149 Phone: 407.644.8582 USA Fax: 407.539.1294
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Thanks Brian,
This suggestion is most definitely an important note for future reference.
Unfortunately, this card only supports 8-bit transfers and the troubles were especially bad in the common memory region.
Thanks again,
-Mark
Quoted 21 lines · Brian Kuschak
Mark,
One thing to note about PCMCIA I/O region accesses on the 823...
If the access is to a 16-bit port, the PCMCIA controller needs to see an acknowledgement from the card on the
IOIS16_Bpin. However when the processor is configured for debugging (full trace, etc) this pin is unavailable. It's muxed with some other debug function (VFLS, I think?). Check your settings in the SIUMCR register. If the core never gets this acknowledge on the 16 bit access, it might generate a bus error, which would show up as a machine check.There are only two solutions for this hardware shortcoming. Either setup the SIUMCR to give up your trace capability (which isn't very useful w/ virtual memory anyway), or don't do 16-bit accesses in PCMCIA I/O space.
Quoted 91 lines
Hope that helps.
-Brian KuschakQuoted 84 lines · --- "Mark S. Mathews
Howdy Folks,
Ok, the wlan PCMCIA card is working....but only after an ugly hack.
Basically, I modified
the MachineCheck function to ignore the exception (just return) if the
faulting address (contents of DAR) falls in the iomapped range we've
established for the PCMCIA card.Any opinions on our solution?
I'd still like to know what's causing these exceptions, but that's for
another day.-Mark
Quoted 5 lines · Dan Malek
Quoted 1 line · Mark S. Mathews
Hmmmm. The way ours "works for awhile", I'm
wondering if there's a
Quoted 1 line
Quoted 1 line
problem w/ the way the 8xx is handling the WAIT#
when the MMU is enabled
Quoted 3 lines
Quoted 1 line
(?)
Shouldn't be the problem. The MMU appears (on
block diagrams
Quoted 1 line
anyway :-) to be far enough removed from the
memory controller
Quoted 4 lines
for this to happen.
Quoted 1 line
This is good to know. Our card supports I/O or
memory access to the
Quoted 1 line
Quoted 1 line
shared memory. We'll shift over to the I/O and
try that.
Quoted 2 lines
The version I have running on my PowerBook only
uses I/O.....
Quoted 4 lines
or am I mistaken?
Quoted 1 line
We've been running _lots_ of experiments with
the timing settings. So far
Quoted 3 lines
Quoted 1 line
3,10,6 seems to work best....but it still fails.
Thanks. I'll keep those numbers around.....there
are others
Quoted 4 lines
I would rather see.....:-).
Quoted 1 line
I've seen the 'guarded' thing around in the
sources, but I'm not sure what
Quoted 3 lines
Quoted 1 line
it's all about. Guess I should look. ;-)
I just fixed it. I'll send it to you privately as
well as
Quoted 1 line
post it on the ppc.kernel.org server. I hope it
corrects
Quoted 6 lines
something.
-- DanMark S. Mathews
AbsoluteValue Software Web:
http://www.absoval.comP.O. Box 941149 e-mail: [email protected] Maitland, FL 32794-1149 Phone: 407.644.8582 USA Fax: 407.539.1294
Mark S. Mathews
AbsoluteValue Software Web: http://www.absoval.com P.O. Box 941149 e-mail: [email protected] Maitland, FL 32794-1149 Phone: 407.644.8582 USA Fax: 407.539.1294
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/