linux carlos
Quoted 4 lines
no.
IIRC instructions for purging the cache are broadcast to other CPUs.
That is the first thing I would like to check (as the first signal I notice is a itlb miss fault and the piminfo of the 2d cpu seems to show a crash on a branch instruction [cmpb iirc], I presume that during the init of the second cpu this last tries to access a page which was just purged by the first. This is also why I would like to find the psw of this second cpu in the mentionned pimfinfo :) )
Quoted 7 lines
Quoted 2 lines
But to avoid usage of cache would it be possible to access global kernel's variable with absolute addressing mode? Is it feasible?
Since the caches use virtual indices, it would make sense when using physically addresses to bypass the cache. But I don't know if that's really the case or not. I would expect that described in the PA2.0 Arch book.
I don't yet browse all the book but at a first glance ldda and stda are available (respectively load and store doubleword absolute)...
Quoted 5 lines
Quoted 4 lines
btw scaning cod
related to SMP I find insmp.ca very draft of
an 'ipi_init()' but unfortunately 'Ignore for now. *May* need this "hook" to register IPI handler'..., interesting isn't it :).
Quoted 9 lines
I wrote that.
ipi_initand comments can be deleted. I haven't see a need foripi_init(). When I originally implemented the SMP support I thought it might be.The IPI handler is statically "hooked" (aka registered) in
arch/parisc/kernel/irq.c:cpu_irq_actions[]See
ipi_interrupt()for IPI implementation.
Allright (clear)
Quoted 2 lines
Quoted 2 lines
Is there any other platform inplementing such stuff (I try to scan 2.4
src
Quoted 4 lines
Quoted 1 line
but not found anywhere else) or some reference on to implement it?
it == ?
IPI is implemented.
I continue so.
BTW here is a small 2.6 back port that may be you could co safely:
processor.c renamed from processor.c.orig +3 -3
@@ -370,9 +370,9 @@ };static struct parisc_driver cpu_driver = { - name:"CPU" , - id_table: processor_tbl, - probe: processor_probe + .name ="CPU" , + .id_table = processor_tbl, + .probe = pprocessor_probe };/**
Many thanks again for your attention,
Joel
-------------------------------------------------------------------------
Tiscali ADSL, seulement 35 eur/mois et le modem est inclus...abonnez-vous!
http://reg.tiscali.be/default.asp?lg=fr
processor.c renamed from processor.c.orig +3 -3
@@ -370,9 +370,9 @@ };static struct parisc_driver cpu_driver = { - name:"CPU" , - id_table: processor_tbl, - probe: processor_probe + .name ="CPU" , + .id_table = processor_tbl, + .probe = pprocessor_probe };/**
I haven't really been following this thread, so I don't know what problem you're actually trying to solve, but I'd like to point out a few aspects of the PA-RISC processor architecture.
Comments mixed with the original text, below.
-- Jim
HP Itanium/PA-RISC Processor Architect
Quoted 13 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Joel Soete
Sent: Thursday, August 28, 2003 9:08 AM
To: Grant Grundler
Cc: [email protected]
Subject: Re: [parisc-linux] Re: [parisc-linux-cvs] linux carlosQuoted 3 lines
no.
IIRC instructions for purging the cache are broadcast to other CPUs.
If you use fdc, fic, or pdc, then they are broadcast to other processors, but fdce and fice are not.
Quoted 19 lines
That is the first thing I would like to check (as the first signal I notice
is a itlb miss fault and the piminfo of the 2d cpu seems to show a crash
on a branch instruction [cmpb iirc], I presume that during the init of the
second cpu this last tries to access a page which was just purged by the
first. This is also why I would like to find the psw of this second cpu
in the mentionned pimfinfo :) )Quoted 1 line
Quoted 1 line
But to avoid usage of cache would it be possible to access
global kernel's
Quoted 5 lines
Quoted 1 line
variable with absolute addressing mode? Is it feasible?
Since the caches use virtual indices, it would make sense when using physically addresses to bypass the cache. But I don't know if that's really the case or not. I would expect that described in the
Quoted 6 lines
PA2.0 Arch
Quoted 1 line
book.
I don't yet browse all the book but at a first glance ldda and stda are available
(respectively load and store doubleword absolute)...
While you can use ldda and stda to access memory using absolute (physical) addresses instead of virtual, these instructions do *not* bypass the cache. And because PA processors use virtually-indexed caches, the rules for mixing virtual and absolute accesses, and have them all remain cache-coherent, are complicated. If you really need to do this, then you'll have to read and understand all of Appendix F, "TLB and Cache Control", in the PA-RISC 2.0 Architecture manual (the "Kane" book).
Quoted 57 lines
Quoted 5 lines
Quoted 4 lines
btw scaning cod
related to SMP I find insmp.ca very draft of
an 'ipi_init()' but unfortunately 'Ignore for now. *May* need this "hook" to register IPI handler'..., interesting isn't it :).Quoted 9 lines
I wrote that.
ipi_initand comments can be deleted. I haven't see a need foripi_init(). When I originally implemented the SMP support I thought it might be.The IPI handler is statically "hooked" (aka registered) in
arch/parisc/kernel/irq.c:cpu_irq_actions[]See
ipi_interrupt()for IPI implementation.Allright (clear)
Quoted 2 lines
Quoted 2 lines
Is there any other platform inplementing such stuff (I try
to scan 2.4
srcQuoted 4 lines
Quoted 1 line
but not found anywhere else) or some reference on to implement it?
it == ?
IPI is implemented.I continue so.
BTW here is a small 2.6 back port that may be you could co safely:
processor.c renamed from processor.c.orig +3
-3@@ -370,9 +370,9 @@ };static struct parisc_driver cpu_driver = { - name:"CPU" , - id_table: processor_tbl, - probe: processor_probe + .name ="CPU" , + .id_table = processor_tbl, + .probe = pprocessor_probe };/** Many thanks again for your attention,
Joel--------------------------------------------------------------
-----------
Tiscali ADSL, seulement 35 eur/mois et le modem est inclus...abonnez-vous!
http://reg.tiscali.be/default.asp?lg=fr
Hi Jim,
Well come :)
Quoted 4 lines
I haven't really been following this thread, so I don't know what problem you're actually trying to solve, but I'd like to point out a few aspects of the PA-RISC processor architecture.
To be short, the pa linux kernel boot well on A model as SMP (Multiprocessor mode) but panic on L/N model. And a pb in tlb management is suspected.
Quoted 8 lines
Comments mixed with the original text, below.
-- Jim
Quoted 1 line
HP Itanium/PA-RISC Processor Architect
If you use fdc, fic, or pdc, then they are broadcast to other processors, but fdce and fice are not.
Thanks I will check if such a code is used.
Quoted 8 lines
While you can use ldda and stda to access memory using absolute (physical) addresses instead of virtual, these instructions do *not* bypass the cache. And because PA processors use virtually-indexed caches, the rules for mixing virtual and absolute accesses, and have them all remain cache-coherent, are complicated. If you really need to do this, then you'll have to read and understand all of Appendix F, "TLB and Cache Control", in the PA-RISC 2.0 Architecture manual (the "Kane" book).
Yes, very accurate reference, but imo it is not a course on PA-RISC asm (I mean, as a beginner, as i am, would like to find with some trial example showing what is good and trivial errors to not commit).
Thanks for your clear comments,
Joel
-------------------------------------------------------------------------
Tiscali ADSL, seulement 35 eur/mois et le modem est inclus...abonnez-vous!
http://reg.tiscali.be/default.asp?lg=fr