From: "Joel Soete" <soete.joel@tiscali.be>
To: "Randolph Chung" <randolph@tausq.org>,
parisc-linux@lists.parisc-linux.org
Subject: RE: [parisc-linux] Spinlock patch, take 2
Date: Fri, 19 Mar 2004 15:30:43 +0100 [thread overview]
Message-ID: <40561EAF000035FA@ocpmta1.freegates.net> (raw)
In-Reply-To: <20040315063318.GC2384@tausq.org>
>
> Here's another version of my spinlock patch against 2.6.4. It optimizes
>spinlocks used for atomic operations by putting the atomic locks into a
>special section that is guaranteed to be 16-byte aligned, so no runtime
>alignment is needed. Build-tested against 2.6.4. Comments?
>
Ongoing to try to apply it against 2.6.[45] and encounter very early a pb
which seems to be solved by following patch:
--- include/asm-parisc/smp.h.orig 2004-01-28 08:24:41.000000000 +0100
+++ include/asm-parisc/smp.h 2004-03-19 11:34:04.078456992 +0100
@@ -54,7 +54,7 @@
#define smp_processor_id() (current_thread_info()->cpu)
#define cpu_online(cpu) cpu_isset(cpu, cpu_online_map)
-#define cpu_possible_map cpu_present_map
+#define cpu_possible_map cpu_present_mask
#endif /* CONFIG_SMP */
=========><=========
Is it correct?
But using c3k config and adding smp support to 2.6.5-rc1, I encounter this
ld pb:
gcc -Wp,-MD,drivers/usb/core/.devices.o.d -nostdinc -iwithprefix include
-D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mno-space-regs -mfast-indirect-calls
-mdisable-fpregs -ffunction-sections -march=2.0 -mschedule=8000 -O2 -fomit-frame-pointer
-DKBUILD_BASENAME=devices -DKBUILD_MODNAME=usbcore -c -o drivers/usb/core/devices.o
drivers/usb/core/devices.c
ld -r -o drivers/usb/core/usbcore.o drivers/usb/core/usb.o drivers/usb/core/hub.o
drivers/usb/core/hcd.o drivers/usb/core/urb.o drivers/usb/core/message.o
drivers/usb/core/config.o drivers/usb/core/file.o drivers/usb/core/buffer.o
drivers/usb/core/driverfs.o drivers/usb/core/hcd-pci.o drivers/usb/core/devio.o
drivers/usb/core/inode.o drivers/usb/core/devices.o
Inconsistency detected by ld.so: dynamic-link.h: 164: elf_get_dynamic_info:
Assertion `info[9]->d_un.d_val == sizeof (Elf32_Rela)' failed!
make[3]: *** [drivers/usb/core/usbcore.o] Error 127
make[2]: *** [drivers/usb/core] Error 2
Any idea? (the same kernel 2.6.5-rc1 + same patches but with a500 config
+smp compiles well :) )
Thanks in advance,
Joel
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 /mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
next prev parent reply other threads:[~2004-03-19 14:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-15 6:33 [parisc-linux] Spinlock patch, take 2 Randolph Chung
2004-03-15 7:37 ` Carlos O'Donell
2004-03-15 7:43 ` Randolph Chung
2004-03-19 14:30 ` Joel Soete [this message]
2004-03-19 16:27 ` Joel Soete
2004-03-25 7:28 ` Randolph Chung
2004-03-25 6:00 ` Grant Grundler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40561EAF000035FA@ocpmta1.freegates.net \
--to=soete.joel@tiscali.be \
--cc=parisc-linux@lists.parisc-linux.org \
--cc=randolph@tausq.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.