* FWD: [ECOS] Problem with PowerPC cache init order
@ 2004-06-21 9:58 Andrew Lunn
2004-06-21 10:21 ` Nick Garnett
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Lunn @ 2004-06-21 9:58 UTC (permalink / raw)
To: eCos Maintainers
Hi Folks
Could somebody who knows about PPC caches take a look at this patch.
Thanks
Andrew
----- Forwarded message from "Retallack, Mark (Siemens)" <mark.retallack@siemens.com> -----
From: "Retallack, Mark (Siemens)" <mark.retallack@siemens.com>
To: ecos-discuss@sources.redhat.com
Date: Mon, 14 Jun 2004 13:50:04 +0100
Subject: [ECOS] Problem with PowerPC cache init order
X-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham
version=2.63
I have found a problem with the PowerPC architecture hal.
The sequence for cache initialisation after reset (in hal_enable_caches)
should be:
unlock all
invalidate all
enable cache
Instead it is:
invalidate all
unlock all
enable cache
This can cause problems if there are sections of the cache that are locked
and contain invalid data. My target crashed with an exception when it needed
to do a copyback after a first time power up (not a pretty sight!!). The
copyback address was an invalid address.
I have attached a patch to fix the problem. This works for the MPC850, but I
do not know if it is correct for the complete PowerPC family.
<<my.patch>>
Mark Retallack
Graduate Engineer
Siemens Traffic Controls
Sopers Lane, Poole, Dorset. BH17 7ER. UK.
Tel: 01202 782844
Fax: 01202 782545
www.siemenstraffic.com
Committed to quality traffic solutions and service excellence
Siemens Traffic Controls is a division of Siemens plc. Registered No.
727817, England.
Registered office: Siemens House, Oldbury, Bracknell, Berkshire, RG12 8FZ.
This communication contains information which is confidential and
may also be privileged. It is for the exclusive use of the addressee.
If you are not the addressee please note that any distribution,
reproduction, copying, publication or use of this communication
or the information in it is prohibited. If you have received this
communication in error, please contact us immediately and also
delete the communication from your computer.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
----- End forwarded message -----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FWD: [ECOS] Problem with PowerPC cache init order
2004-06-21 9:58 FWD: [ECOS] Problem with PowerPC cache init order Andrew Lunn
@ 2004-06-21 10:21 ` Nick Garnett
2004-06-21 10:23 ` Andrew Lunn
2004-06-21 11:17 ` Gary Thomas
0 siblings, 2 replies; 4+ messages in thread
From: Nick Garnett @ 2004-06-21 10:21 UTC (permalink / raw)
To: Andrew Lunn; +Cc: eCos Maintainers
Andrew Lunn <andrew@lunn.ch> writes:
> Hi Folks
>
> Could somebody who knows about PPC caches take a look at this patch.
>
> Thanks
> Andrew
>
I think this is OK. It seems to make sense to me, however I also share
Mark's concern that this may not be applicable to all PowerPC parts.
Gary is probably more familiar with this code and the various PowerPC
variants than I am at present, so I was hoping that he would give it a
once over.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FWD: [ECOS] Problem with PowerPC cache init order
2004-06-21 10:21 ` Nick Garnett
@ 2004-06-21 10:23 ` Andrew Lunn
2004-06-21 11:17 ` Gary Thomas
1 sibling, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2004-06-21 10:23 UTC (permalink / raw)
To: Nick Garnett; +Cc: eCos Maintainers
On Mon, Jun 21, 2004 at 11:21:22AM +0100, Nick Garnett wrote:
> Andrew Lunn <andrew@lunn.ch> writes:
>
> > Hi Folks
> >
> > Could somebody who knows about PPC caches take a look at this patch.
> >
> > Thanks
> > Andrew
> >
>
> I think this is OK. It seems to make sense to me, however I also share
> Mark's concern that this may not be applicable to all PowerPC parts.
>
> Gary is probably more familiar with this code and the various PowerPC
> variants than I am at present, so I was hoping that he would give it a
> once over.
He is on Holiday at the moment. Hopefully he will take a look when he
is back.
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FWD: [ECOS] Problem with PowerPC cache init order
2004-06-21 10:21 ` Nick Garnett
2004-06-21 10:23 ` Andrew Lunn
@ 2004-06-21 11:17 ` Gary Thomas
1 sibling, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2004-06-21 11:17 UTC (permalink / raw)
To: Nick Garnett; +Cc: Andrew Lunn, eCos Maintainers
Nick Garnett said:
> Andrew Lunn <andrew@lunn.ch> writes:
>
>> Hi Folks
>>
>> Could somebody who knows about PPC caches take a look at this patch.
>>
>> Thanks
>> Andrew
>>
>
> I think this is OK. It seems to make sense to me, however I also share
> Mark's concern that this may not be applicable to all PowerPC parts.
>
> Gary is probably more familiar with this code and the various PowerPC
> variants than I am at present, so I was hoping that he would give it a
> once over.
I will, once I'm back from holiday (later in this week)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-21 11:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-21 9:58 FWD: [ECOS] Problem with PowerPC cache init order Andrew Lunn
2004-06-21 10:21 ` Nick Garnett
2004-06-21 10:23 ` Andrew Lunn
2004-06-21 11:17 ` Gary Thomas
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 read-only IMAP folder(s) and NNTP newsgroup(s).