* Machine Check question
@ 2003-04-10 8:32 Ira Weiny
2003-04-10 22:31 ` Paul Mackerras
0 siblings, 1 reply; 5+ messages in thread
From: Ira Weiny @ 2003-04-10 8:32 UTC (permalink / raw)
To: linuxppc
I have put some more effort into my Microdrive (PCMCIA IDE) problem.
What I don't understand is, if a machine check is the CPU flagging an incorrect
address reference, what does a Power Mac do to make that address range valid in
the MMU? (Or whatever is flagging that error when the address goes out on the
bus?)
I have searched all over for some function but I don't see it. It would seem
to me that ioremap would do this.
The way I figure it I have one kernel which uses an address to access
the IDE registers on the card. And now the new kernel uses the same address
and it machine checks. (Both address are 0x170-0x177) I am concluding that
there is something not set up right in the new kernel. However, I don't see
anything which ioremap's those addresses in either kernel. I see
request_resource but AFAICT that just keeps a software mapping of the resources
and does not actually set up any page tables or what not that would be causing
the machine check.
I guess I am fighting this more so that I might learn once and for all how the
virtual memory system works on these pmacs...
I have read the IO-mapping.txt doc and I understand it in principle but I would
like to learn more...
So.. I do some more digging and find that really all the ide calls are just
"IN_BYTE" and "OUT_BYTE" calls. They just add _IO_BASE to the address which
is... isa_io_base and call (in/out)_8 which is an inline assembly call for
the actual operation.
So this is very confusing. If I have the same address given to the same
function and dereferenced, why would one give me a machine check and the other
not?
During my digs I have found some interesting things most notably
"pcibios_fixup_cardbus" has some major differences between the two versions. I
don't think this would have anything to do with a machine check but... If a
PCI device was not configured correctly would it "refuse" an address maped to
it and could that cause a machine check? If so then pcibios_fixup_cardbus
might be suspect.
"check_for_io_childs" called by "do_fixup_p2p_level" seems more likely a
problem. But I can't trace it to anything so I am not sure if it is being run.
I also have the following in my messages file.
kernel: Can't get bus-range for /pci@f2000000/cardbus@1a
That seems suspicious. But following that leads to "fixup_one_level_bus_range"
which once again does not seem to make any mappings. (Unless it is store and
done later, which is what I would hope someone could tell me?)
Well that is enough for this message I am sure. Thanks in advance for any
clues you all might have...
Thanks,
Ira Weiny
iweiny@acm.org
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Machine Check question
2003-04-10 8:32 Machine Check question Ira Weiny
@ 2003-04-10 22:31 ` Paul Mackerras
2003-04-12 22:05 ` Ira Weiny
2003-04-24 4:38 ` Ira Weiny
0 siblings, 2 replies; 5+ messages in thread
From: Paul Mackerras @ 2003-04-10 22:31 UTC (permalink / raw)
To: Ira Weiny; +Cc: linuxppc
Ira Weiny writes:
> I have put some more effort into my Microdrive (PCMCIA IDE) problem.
What sort of machine do you have? There is a known problem on tibooks
where the IDE subsystem ends up trying to use powermac-IDE functions
on PCMCIA IDE drives.
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Machine Check question
2003-04-10 22:31 ` Paul Mackerras
@ 2003-04-12 22:05 ` Ira Weiny
2003-04-24 4:38 ` Ira Weiny
1 sibling, 0 replies; 5+ messages in thread
From: Ira Weiny @ 2003-04-12 22:05 UTC (permalink / raw)
To: linuxppc
On Fri, 11 Apr 2003 08:31:51 +1000 (EST)
Paul Mackerras <paulus@samba.org> wrote:
> Ira Weiny writes:
>
> > I have put some more effort into my Microdrive (PCMCIA IDE) problem.
>
> What sort of machine do you have? There is a known problem on tibooks
> where the IDE subsystem ends up trying to use powermac-IDE functions
> on PCMCIA IDE drives.
>
> Paul.
Yes this is a TiBook. 500Mhz about 2 years old...
[root@batwing2 iweiny]# cat /proc/cpuinfo
cpu : 7410, altivec supported
temperature : 10-12 C (uncalibrated)
clock : 500MHz
revision : 17.3 (pvr 800c 1103)
bogomips : 996.14
machine : PowerBook3,2
motherboard : PowerBook3,2 MacRISC2 MacRISC Power Macintosh
detected as : 71 (PowerBook Titanium)
pmac flags : 0000000b
L2 cache : 1024K unified
memory : 512MB
pmac-generation : NewWorld
[root@batwing2 iweiny]#
I assume the problem does not have a solution? If so I would be most
interested in trying to figure it out. Or is there a work around?
This worked on my 2.4.14-pre7-ben0.
Thanks,
Ira Weiny
iweiny@acm.org
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Machine Check question
2003-04-10 22:31 ` Paul Mackerras
2003-04-12 22:05 ` Ira Weiny
@ 2003-04-24 4:38 ` Ira Weiny
2003-05-22 4:29 ` Paul Mackerras
1 sibling, 1 reply; 5+ messages in thread
From: Ira Weiny @ 2003-04-24 4:38 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
On Fri, 11 Apr 2003 08:31:51 +1000 (EST)
Paul Mackerras <paulus@samba.org> wrote:
>
> Ira Weiny writes:
>
> > I have put some more effort into my Microdrive (PCMCIA IDE) problem.
>
> What sort of machine do you have? There is a known problem on tibooks
> where the IDE subsystem ends up trying to use powermac-IDE functions
> on PCMCIA IDE drives.
>
Is this only on the TiBooks?
Why would this not be a problem on other pmac laptops?
BTW, this is a TiBook.
Ira
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Machine Check question
2003-04-24 4:38 ` Ira Weiny
@ 2003-05-22 4:29 ` Paul Mackerras
0 siblings, 0 replies; 5+ messages in thread
From: Paul Mackerras @ 2003-05-22 4:29 UTC (permalink / raw)
To: Ira Weiny; +Cc: linuxppc-dev
Ira Weiny writes:
> Is this only on the TiBooks?
>
> Why would this not be a problem on other pmac laptops?
>
> BTW, this is a TiBook.
The problem arises when you have an IDE interface with no attached
drives. Whether this happens depends on the chipset, so it could be a
problem on other pmac laptops. Ben H. has a patch to fix the problem
which he is trying to get accepted.
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-05-22 4:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-10 8:32 Machine Check question Ira Weiny
2003-04-10 22:31 ` Paul Mackerras
2003-04-12 22:05 ` Ira Weiny
2003-04-24 4:38 ` Ira Weiny
2003-05-22 4:29 ` Paul Mackerras
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).