Skip to contentSkip to conversation

spinlock consolidation, v2

PATCH Grant Grundler 1 participant 1 message Jun 8, 2005 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 1 line · Joel Soete

error: structure has no member named `lock'

...

Quoted 12 lines

the pb is this hunk:

include/asm-parisc/processor.h 6 Jun 2005 04:32:36 -0000 renamed from include/asm-parisc/processor.h-orig 20 May 2005 00:05:13 -0000 +1 -1
@@ -87,7 +88,7 @@ struct cpuinfo_parisc {
        unsigned long hpa;          /* Host Physical address */
        unsigned long txn_addr;     /* MMIO addr of EIR or id_eid */
 #ifdef CONFIG_SMP
-       spinlock_t lock;            /* synchronization for ipi's */
+       raw_spinlock_t pending_lock;  /* protect sender/receiver races */
        unsigned long pending_ipi;  /* bitmap of type ipi_message_type */
        unsigned long ipi_count;    /* number ipi Interrupts */
 #endif
Quoted 1 line

====<>====

Sorry - my bad. That chunk is not in my source tree. I've respun the patch without that bit.
See -03 in the same location.

Quoted 4 lines

Freeing unused kernel memory: Badness in smp_call_function at /Develop/linux-2.6.12-rc5-pa3-050606_4Consolidate/arch/parisc/kernel/0

Backtrace:
 [<1011604c>] smp_call_function+0x6c/0x384
 [<10106024>] flush_data_cache+0x24/0x40

...

This is not a real problem. We have a paranoid WARN_ON in the code and it's been warning us about this one case for a long time now.

Quoted 4 lines

364k freed
[...]

hanging?

What was the last output?

Quoted 4 lines

The analayse of a TOC giving me following info:
----------------- Processor 0 TOC Information ------------------- GR[02] == rp = 0000000010276d7c
Func: uart_shutdown, Off: 0xbc, Addr: 0x10276d7c

...

Quoted 6 lines

Parse IAOQ = 0x0000000010158b80 for CPU[0]
Func: synchronize_irq, Off: 0x18, Addr: 0x10158b80

GR[02] == rp = 0000000010195000
Func: chrdev_open, Off: 0xe0, Addr: 0x10195000

...

Quoted 2 lines

Parse IAOQ = 0x0000000010104404 for CPU[1]
Func: lock_kernel, Off: 0x34, Addr: 0x10104404

I'm not sure what the issue is here.
Let me respin the patch so that I know the lock is correctly declared.

grant
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux