CONFIG_SMP update
[ This was posted to the CVS mailing list - I thought it
might be of general interest. -ggg
]
CVSROOT: /home/cvs/parisc
Module name: linux
Changes by: grundler 01/01/26 17:33:29
Modified files:
arch/parisc/kernel: Makefile head.S irq.c pdc.c setup.c smp.c arch/parisc64/kernel: Makefile head.S arch/parisc64/lib: Makefile
include/asm-parisc: pdc.h
Log message:
Two sets of fixes here: Makefiles and round two of CONFIG_SMP
First the news :^) (it's 11 now Matt ;^)
hppa64 won't build on head:
o hppa64-linux-gcc is broken. Workaround is to define lock in spinlock_t as unsigned long and change __ldcw() macro to use ldcd isns. amodra has fixed gcc in the devel branch but some other problems prevent him from making that mainline at the moment.
o parisc64 Makefile complete the merge for those files.
o problem is pbus_set_ranges() isn't defined.
Looks like we picked up the new drivers/pci stuff anyway. *sigh*. I'll look at this first thing next week.
parisc* Makefiles weren't using proper rules to generate .o from .S files. This is a first hack. Willy will follow up with "clean" versions.
Second round of CONFIG_SMP fixes. I now have both CPU's "online" and in wide-mode. IPI isn't working. And removing the mdelay's in smp.c exposes a race condition I haven't figured out yet. (it's not pdc calls or console output - unless our spinlocks are broken). If anyone wants to look at either problem, I suggest with a 2-way j5k running 32-bit to remove some of the variables.
Quoted 3 lines · Grant Grundler
o problem is
pbus_set_ranges()isn't defined.
Looks like we picked up the newdrivers/pcistuff anyway. *sigh*. I'll look at this first thing next week.
damn. i deliberately excluded all the changes to drivers/pci (except those required to build successfully). But I forgot to exclude the changes to include/linux/pci.h. Looking over it, the only problem is with:
-void pdev_assign_unassigned_resources(struct pci_dev *dev); -void pci_set_bus_ranges(void);
+void pdev_enable_device(struct pci_dev *);
+void pdev_sort_resources(struct pci_dev *, struct resource_list *, u32); +unsigned long pci_bridge_check_io(struct pci_dev *);
err... except that you said `pbus_set_ranges()'. I can still see it:
setup-bus.c:pbus_set_ranges(struct pci_bus *bus, struct pbus_set_ranges_data *outer)
so I'm not sure exactly what problem you're experiencing.
Quoted 2 lines
parisc* Makefiles weren't using proper rules to generate .o from .S files. This is a first hack. Willy will follow up with "clean" versions.
Yup, just cleaning up now.
Quoted 2 lines
(it's not pdc calls or console output - unless our spinlocks are broken).
well, that could be. anyone fresh want to look at the spinlock code. did i get the sense of the test wrong?
Signature · 1 line
Revolutions do not require corporate support.
Quoted 3 lines · Grant Grundler
o problem is
pbus_set_ranges()isn't defined.
Looks like we picked up the newdrivers/pcistuff anyway. *sigh*. I'll look at this first thing next week.
Wait, I figured it out. The new-style Makefile only includes setup-bus.c if CONFIG_ARM or CONFIG_ALPHA is defined. Soadding
obj-$(CONFIG_PARISC) += setup-bus.c
should do the trick. i'll test that in a moment and if the 64-bit kernel compiles, i'll commit it.
Signature · 1 line
Revolutions do not require corporate support.