Skip to contentSkip to conversation

linux carlos

parisc-linux Joel Soete 2 participants 2 messages Aug 28, 2003

lore
Share & tools
lore

Joel Soete

author
#0 lore raw

Hi Grant,

Quoted 3 lines

AFAIK, a cacheline will get loaded as "shared clean" until someone writes to it - which is when the cacheline ping-pong starts.

Mhh would it not request some kind of ipc between cpu for cache management?

But to avoid usage of cache would it be possible to access global kernel's variable with absolute addressing mode? Is it feasible?

...

btw scaning code related to SMP I find in smp.c a very draft of an 'ipi_init()' but unfortunately 'Ignore for now. *May* need this "hook" to register IPI handler'..., interesting isn't it :).
Is there any other platform inplementing such stuff (I try to scan 2.4 src but not found anywhere else) or some reference on to implement it?

Quoted 6 lines

PAT PDC (L-/N-class and A500) have hard coded numbers for CPUs. parisc-linux only uses logical CPU numbers to avoid sparsely populated arrays. parisc-linux can get the "Physical CPU #" from PAT PDC. See code inside USE_PAT_CPUID in arch/parisc/kernel/processor.c. You might hack that code a bit so you can correlate logic to physical CPU numbers.

Ah see better now, it answers to another question.

Thanks,
Joel

-------------------------------------------------------------------------
Tiscali ADSL, seulement 35 eur/mois et le modem est inclus...abonnez-vous!
http://reg.tiscali.be/default.asp?lg=fr

#1 lore raw
Quoted 7 lines · Joel Soete

Hi Grant,

Quoted 3 lines

AFAIK, a cacheline will get loaded as "shared clean" until someone writes to it - which is when the cacheline ping-pong starts.

Mhh would it not request some kind of ipc between cpu for cache management?

no.
IIRC instructions for purging the cache are broadcast to other CPUs.

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.

Quoted 3 lines

btw scaning code related to SMP I find in smp.c a very draft of an 'ipi_init()' but unfortunately 'Ignore for now. *May* need this "hook" to register IPI handler'..., interesting isn't it :).

I wrote that. ipi_init and comments can be deleted. I haven't seen a need for ipi_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.

Quoted 2 lines

Is there any other platform inplementing such stuff (I try to scan 2.4 src but not found anywhere else) or some reference on to implement it?

it == ?
IPI is implemented.

grant