Skip to contentSkip to conversation

semaphores

parisc-linux Matthew Wilcox 2 participants 6 messages Jan 5, 2001 – Jan 15, 2001 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

ok, i've completely rewritten the semaphore code. please review.

arch/parisc/kernel/semaphore.c +66 -151
diff -urNX dontdiff linux-cvs/arch/parisc/kernel/semaphore.c linux-mine/arch/parisc/kernel/semaphore.c
@@ -1,15 +1,9 @@
 /*
- * Just taken from alpha implementation.
- * This can't work well, perhaps.
- */
-/*
- *  Generic semaphore code. Buyer beware. Do your own
- * specific changes in <asm/semaphore-helper.h>
+ * Semaphore implementation Copyright (c) 2001 Matthew Wilcox
  */
 
 #include <linux/sched.h>
-#include <asm/semaphore-helper.h>
-#include <asm/atomic.h>	/* for xchg() definitions */
+#include <linux/spinlock.h>
 
 /*
  * Semaphores are implemented using a two-way counter:
@@ -43,198 +37,119 @@
  */
 void __up(struct semaphore *sem)
 {
-	wake_one_more(sem);
 	wake_up(&sem->wait);
 }
 
-/*
- * Perform the "down" function.  Return zero for semaphore acquired,
- * return negative for signalled out of the function.
- *
- * If called from __down, the return is ignored and the wait loop is
- * not interruptible.  This means that a task waiting on a semaphore
- * using "down()" cannot be killed until someone does an "up()" on
- * the semaphore.
- *
- * If called from __down_interruptible, the return value gets checked
- * upon return.  If the return value is negative then the task continues
- * with the negative value in the return register (it can be tested by
- * the caller).
- *
- * Either form may be used in conjunction with "up()".
- *
- */
-
-
-#define DOWN_HEAD(task_state)						\
-									\
-									\
-	current->state = (task_state);					\
-	add_wait_queue(&sem->wait, &wait);				\
-									\
-	/*								\
-	 * Ok, we're set up.  sem->count is known to be less than zero	\
-	 * so we must wait.						\
-	 *								\
-	 * We can let go the lock for purposes of waiting.		\
-	 * We re-acquire it after awaking so as to protect		\
-	 * all semaphore operations.					\
-	 *								\
-	 * If "up()" is called before we call waking_non_zero() then	\
-	 * we will catch it right away.  If it is called later then	\
-	 * we will have to go through a wakeup cycle to catch it.	\
-	 *								\
-	 * Multiple waiters contend for the semaphore lock to see	\
-	 * who gets to gate through and who has to wait some more.	\
-	 */								\
-	for (;;) {
-
-#define DOWN_TAIL(task_state)			\
-		current->state = (task_state);	\
-	}					\
-	current->state = TASK_RUNNING;		\
-	remove_wait_queue(&sem->wait, &wait);
-
 void __down(struct semaphore * sem)
 {
 	DECLARE_WAITQUEUE(wait, current);
 
-	DOWN_HEAD(TASK_UNINTERRUPTIBLE)
-	if (waking_non_zero(sem))
-		break;
-	schedule();
-	DOWN_TAIL(TASK_UNINTERRUPTIBLE)
-}
-
-int __down_interruptible(struct semaphore * sem)
-{
-	DECLARE_WAITQUEUE(wait, current);
-	int ret = 0;
-
-	DOWN_HEAD(TASK_INTERRUPTIBLE)
-
-	ret = waking_non_zero_interruptible(sem, current);
-	if (ret)
-	{
-		if (ret == 1)
-			/* ret != 0 only if we get interrupted -arca */
-			ret = 0;
-		break;
-	}
-	schedule();
-	DOWN_TAIL(TASK_INTERRUPTIBLE)
-	return ret;
-}
-
-int __down_trylock(struct semaphore * sem)
-{
-	return waking_non_zero_trylock(sem);
-}
-
-
-/* Wait for the lock to become unbiased.  Readers
- * are non-exclusive. =)
- */
-void down_read_failed(struct rw_semaphore *sem)
-{
-	DECLARE_WAITQUEUE(wait, current);
-
-	__up_read(sem);	/* this takes care of granting the lock */
-
-	add_wait_queue(&sem->wait, &wait);
-
-	while (atomic_read(&sem->count) < 0) {
-		set_task_state(current, TASK_UNINTERRUPTIBLE);
-		if (atomic_read(&sem->count) >= 0)
+	/* protected by the sentry still -- use unlocked version */
+	__add_wait_queue_tail(&sem->wait, &wait);
+	spin_unlock(&sem->sentry);
+
+	for(;;) {
+		set_task_state(current, TASK_INTERRUPTIBLE | TASK_EXCLUSIVE);
+		/* we can _read_ this without the sentry */
+		if (sem->count > 0)
 			break;
 		schedule();
 	}
 
-	remove_wait_queue(&sem->wait, &wait);
+	spin_lock(&sem->sentry);
+	__remove_wait_queue(&sem->wait, &wait);
 	current->state = TASK_RUNNING;
 }
 
-void down_read_failed_biased(struct rw_semaphore *sem)
+int __down_interruptible(struct semaphore * sem)
 {
+	int ret = 0;
 	DECLARE_WAITQUEUE(wait, current);
 
-	add_wait_queue(&sem->wait, &wait);	/* put ourselves at the head of the list */
-
-	for (;;) {
-		if (sem->read_bias_granted && xchg(&sem->read_bias_granted, 0))
+	/* protected by the sentry still -- use unlocked version */
+	__add_wait_queue_tail(&sem->wait, &wait);
+	spin_unlock(&sem->sentry);
+
+	for(;;) {
+		set_task_state(current, TASK_INTERRUPTIBLE | TASK_EXCLUSIVE);
+		/* we can _read_ this without the sentry */
+		if (sem->count > 0)
 			break;
-		set_task_state(current, TASK_UNINTERRUPTIBLE);
-                if (!sem->read_bias_granted)
-			schedule();
+		if (signal_pending(current)) {
+			ret = -EINTR;
+			break;
+		}
+		schedule();
 	}
+	spin_lock(&sem->sentry);
 
-	remove_wait_queue(&sem->wait, &wait);
+	__remove_wait_queue(&sem->wait, &wait);
 	current->state = TASK_RUNNING;
+
+	return ret;
 }
 
+/* Read/write semaphores below this point */
 
-/* Wait for the lock to become unbiased. Since we're
- * a writer, we'll make ourselves exclusive.
- */
-void down_write_failed(struct rw_semaphore *sem)
+/* A writer already holds this lock, so we have to sleep. */
+void __down_read_failed(struct rw_semaphore *sem)
 {
 	DECLARE_WAITQUEUE(wait, current);
 
-	__up_write(sem);	/* this takes care of granting the lock */
-
-	add_wait_queue_exclusive(&sem->wait, &wait);
+	/* protected by the sentry still -- use unlocked version */
+	__add_wait_queue(&sem->readers, &wait);
+	spin_unlock(&sem->sentry);
 
-	while (atomic_read(&sem->count) < 0) {
-		set_task_state(current, TASK_UNINTERRUPTIBLE | TASK_EXCLUSIVE);
-		if (atomic_read(&sem->count) >= 0)
-			break;	/* we must attempt to aquire or bias the lock */
+	for(;;) {
+		set_task_state(current, TASK_UNINTERRUPTIBLE);
+		/* we can _read_ this without the sentry */
+		if (sem->rw_count > 0)
+			break;
 		schedule();
 	}
+	spin_lock(&sem->sentry);
 
-	remove_wait_queue(&sem->wait, &wait);
+	__remove_wait_queue(&sem->readers, &wait);
 	current->state = TASK_RUNNING;
 }
 
-void down_write_failed_biased(struct rw_semaphore *sem)
+/* Either a writer or some readers already hold this lock. */
+void __down_write_failed(struct rw_semaphore *sem)
 {
 	DECLARE_WAITQUEUE(wait, current);
 
-	add_wait_queue_exclusive(&sem->write_bias_wait, &wait);	/* put ourselves at the end of the list */
+	__add_wait_queue_tail(&sem->writers, &wait);
+	spin_unlock(&sem->sentry);
 
-	for (;;) {
-		if (sem->write_bias_granted && xchg(&sem->write_bias_granted, 0))
-			break;
+	for(;;) {
 		set_task_state(current, TASK_UNINTERRUPTIBLE | TASK_EXCLUSIVE);
-		if (!sem->write_bias_granted)
-			schedule();
+		/* we can _read_ this without the sentry */
+		if (sem->rw_count >= 0)
+			break;
+		schedule();
 	}
 
-	remove_wait_queue(&sem->write_bias_wait, &wait);
+	spin_lock(&sem->sentry);
+	__remove_wait_queue(&sem->writers, &wait);
 	current->state = TASK_RUNNING;
-
-	/* if the lock is currently unbiased, awaken the sleepers
-	 * FIXME: this wakes up the readers early in a bit of a
-	 * stampede -> bad!
-	 */
-	if (atomic_read(&sem->count) >= 0)
-		wake_up(&sem->wait);
 }
 
-
-/* Called when someone has done an up that transitioned from
- * negative to non-negative, meaning that the lock has been
- * granted to whomever owned the bias.
+/* Called when a writer has raised the semaphore.  There may still be
+ * other writers waiting, but the readers have priority now.
  */
 void rwsem_wake_readers(struct rw_semaphore *sem)
 {
-	if (xchg(&sem->read_bias_granted, 1))
-		BUG();
-	wake_up(&sem->wait);
+	/* We only reset the BIAS if no writers are waiting. */
+	if (!waitqueue_active(&sem->writers))
+		sem->rw_count += RW_LOCK_BIAS;
+
+	wake_up(&sem->readers);
 }
 
+/* Called when the last reader has raised the semaphore.  Other readers
+ * may be blocked until this point, but the writer gets priority now.
+ */
 void rwsem_wake_writer(struct rw_semaphore *sem)
 {
-	if (xchg(&sem->write_bias_granted, 1))
-		BUG();
-	wake_up(&sem->write_bias_wait);
+	wake_up(&sem->writers);
 }
include/asm-parisc/semaphore-helper.h +0 -89

89 lines not on this page · raw message

include/asm-parisc/semaphore.h +85 -112

347 lines not on this page · raw message

include/asm-parisc/spinlock.h +9 -5
diff -urNX dontdiff linux-cvs/include/asm-parisc/spinlock.h linux-mine/include/asm-parisc/spinlock.h
@@ -3,13 +3,10 @@
 
 #include <asm/system.h>
 
-/* if you're going to use out-of-line slowpaths, use .section .lock.text,
- * not .text.lock or the -ffunction-sections monster will eat you alive
+/* Note that PA-RISC has to use `1' to mean unlocked and `0' to mean locked
+ * since it only has load-and-zero.
  */
 
-/* we seem to be the only architecture that uses 0 to mean locked - but we
- * have to.  prumpf */
-
 #undef SPIN_LOCK_UNLOCKED
 #define SPIN_LOCK_UNLOCKED (spinlock_t) { 1 }
 
@@ -17,8 +14,15 @@
 
 #define spin_unlock_wait(x)	do { barrier(); } while(((volatile spinlock_t *)(x))->lock == 1)
 
+#if 1
+#define spin_lock(x) do { \
+	while (__ldcw (&(x)->lock) == 0) \
+		while (((volatile int)(x)->lock) == 0) ; } while (0)
+
+#else
 #define spin_lock(x) \
 	do { while(__ldcw(&(x)->lock) == 0); } while(0)
+#endif
 	
 #define spin_unlock(x) \
 	do { (x)->lock = 1; } while(0)
Signature · 1 line
Revolutions do not require corporate support.
#1 lore raw

ok, bug found: i wasn't reenabling irqs if it had to sleep. this patch should fix that bug, but obviously there may be more. Please someone test this, I don't have access to any PA-RISC machines here in Sydney. It's chockablock with debugging printk's, obviously i'll take those out before committing this.

Index: arch/parisc/kernel/process.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/process.c,v retrieving revision 1.26

process.c +0 -2
diff -u -p -r1.26 process.c
@@ -40,8 +40,6 @@
 #include <asm/gsc.h>
 #include <asm/processor.h>
 
-spinlock_t semaphore_wake_lock = SPIN_LOCK_UNLOCKED;
-
 #ifdef __LP64__
 /* The 64-bit code should work equally well in 32-bit land but I didn't
  * want to take the time to confirm that.  -PB

Index: arch/parisc/kernel/semaphore.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/semaphore.c,v retrieving revision 1.3

semaphore.c +71 -151

284 lines not on this page · raw message

Index: include/asm-parisc/semaphore.h
===================================================================
RCS file: /home/cvs/parisc/linux/include/asm-parisc/semaphore.h,v retrieving revision 1.5

semaphore.h +108 -128

372 lines not on this page · raw message

Index: include/asm-parisc/spinlock.h
===================================================================
RCS file: /home/cvs/parisc/linux/include/asm-parisc/spinlock.h,v retrieving revision 1.5

spinlock.h +9 -5
diff -u -p -r1.5 spinlock.h
@@ -3,13 +3,10 @@
 
 #include <asm/system.h>
 
-/* if you're going to use out-of-line slowpaths, use .section .lock.text,
- * not .text.lock or the -ffunction-sections monster will eat you alive
+/* Note that PA-RISC has to use `1' to mean unlocked and `0' to mean locked
+ * since it only has load-and-zero.
  */
 
-/* we seem to be the only architecture that uses 0 to mean locked - but we
- * have to.  prumpf */
-
 #undef SPIN_LOCK_UNLOCKED
 #define SPIN_LOCK_UNLOCKED (spinlock_t) { 1 }
 
@@ -17,8 +14,15 @@
 
 #define spin_unlock_wait(x)	do { barrier(); } while(((volatile spinlock_t *)(x))->lock == 1)
 
+#if 1
+#define spin_lock(x) do { \
+	while (__ldcw (&(x)->lock) == 0) \
+		while (((volatile int)(x)->lock) == 0) ; } while (0)
+
+#else
 #define spin_lock(x) \
 	do { while(__ldcw(&(x)->lock) == 0); } while(0)
+#endif
 	
 #define spin_unlock(x) \
 	do { (x)->lock = 1; } while(0)

Index: kernel/ksyms.c
===================================================================
RCS file: /home/cvs/parisc/linux/kernel/ksyms.c,v
retrieving revision 1.6

ksyms.c +2 -0
diff -u -p -r1.6 ksyms.c
@@ -496,7 +496,9 @@ EXPORT_SYMBOL(is_bad_inode);
 EXPORT_SYMBOL(event);
 EXPORT_SYMBOL(__down);
 EXPORT_SYMBOL(__down_interruptible);
+#ifndef CONFIG_PARISC
 EXPORT_SYMBOL(__down_trylock);
+#endif
 EXPORT_SYMBOL(__up);
 EXPORT_SYMBOL(brw_page);
 
Signature · 1 line
Revolutions do not require corporate support.
#2 lore raw
Quoted 4 lines · Matthew Wilcox

ok, bug found: i wasn't reenabling irqs if it had to sleep. this patch should fix that bug, but obviously there may be more. Please someone test this, I don't have access to any PA-RISC machines here in Sydney.

Tested on A500 and 64-bit wedges after kswapd.
Here's the output.

grant

Main Menu: Enter command or menu > bo lan
Interact with IPL (Y, N, or Cancel)?> n

Booting...
Network Station Address 00306e-03799f
System IP Address 15.8.80.77
Server IP Address 15.8.81.247

Boot IO Dependent Code (IODC) revision 2

HARD Booted.
palo ipl grundler@hpisp747 Wed Dec 27 14:27:46 PST 2000
0/vmlinux 2701749 bytes @ 0x6800
0/palo-cmdline '0/vmlinux HOME=/ TERM=linux root=/dev/nfs nfsroot=15.8.81.247:/'
Kernel: partition 0 file /vmlinux
ELF64 executable

Entry 00100000 first 00100000 n 4
Segment 0 load 00100000 size 1652568 mediaptr 0x1000
Segment 1 load 00294000 size 421808 mediaptr 0x195000
Segment 2 load 002fc000 size 101936 mediaptr 0x1fc000
Segment 3 load 00318000 size 16384 mediaptr 0x215000
branching to kernel entry point 0x00100000
Set default PSW W bit to 1
PDC Console Initialized
The 64-bit Kernel has started...
Enabled FP coprocessor
If this is the LAST MESSAGE YOU SEE, you're probably using
32-bit millicode by mistake.
Free memory starts at: 0xc035f000 start_parisc(0x504d70,0x504d70,0x0,0x0)
PALO command line: 'HOME=/ TERM=linux root=/dev/nfs nfsroot=15.8.81.247:/tftpbo' PALO initrd 0-0

model   00005cb0 00000491 00000000 00000001 23355fdc 100000f0 00000008 000000b22
vers    00000300                                                                
cpuid   0000022a                                                                
CPUID   vers 17 rev 10                                                          
model   9000/800/A500-44                                                        

Searching for devices in PDC firmware... processor hpa 0xfffffffffffa0000 Found devices:
1. Crescendo 440 (0) at 0xfffffffffffa0000, versions 0x5cb, 0x0, 0x4, 0x0, 0x91
2. Crescendo 440 (0) at 0xfffffffffffa2000, versions 0x5cb, 0x0, 0x4, 0x0, 0x91
3. Crescendo Memory (1) at 0xfffffffffed08000, versions 0x9b, 0x0, 0x9, 0x0, 0x0
4. Astro BC Runway Port (12) at 0xfffffffffed00000, versions 0x582, 0x0, 0xb, 00
5. Elroy PCI Bridge (13) at 0xfffffffffed30000, versions 0x782, 0x0, 0xa, 0x0, 0
6. Elroy PCI Bridge (13) at 0xfffffffffed34000, versions 0x782, 0x0, 0xa, 0x0, 0
7. Elroy PCI Bridge (13) at 0xfffffffffed38000, versions 0x782, 0x0, 0xa, 0x0, 0
8. Elroy PCI Bridge (13) at 0xfffffffffed3c000, versions 0x782, 0x0, 0xa, 0x0, 0 That's a total of 8 devices.
CONFIG_SMP disabled - not claiming addional CPUs
Warning : device (0, 0x5cb, 0x0, 0x4, 0x0) NOT claimed by CPU PARISC CPU(s): 1 x PA8500 (PCX-W) at 440.000000 MHz
Linux version 2.4.0-test10 (grundler@hpisp747) (gcc version 2.96 20000925 (expe1 free_bootmem(0x361000, 0xfc9f000)
initrd: 00000000-00000000
pagetable_init
On node 0 totalpages: 65536
zone(0): 32768 pages.
zone(1): 32768 pages.
zone(2): 0 pages.
Kernel command line: HOME=/ TERM=linux root=/dev/nfs nfsroot=15.8.81.247:/tftpb0 trap_init
Calibrating delay loop... 878.18 BogoMIPS
Memory: 249452k available

down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
Dentry-cache hash table entries: 32768 (order: 7, 524288 bytes)                 
Buffer-cache hash table entries: 16384 (order: 5, 131072 bytes)                 
Page-cache hash table entries: 65536 (order: 7, 524288 bytes)                   
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
Inode-cache hash table entries: 16384 (order: 6, 262144 bytes)                  
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       

POSIX conformance testing by UNIFIX
lba version TR4.0 (0x5) found at 0xfffffffffed30000 lba range[2] : ignoring GMMIO (0xfffffff804000000)
PCI: dev PCI device 1000:000b type 64-bit
PCI: dev PCI device 1000:000b type 64-bit
PCI: dev PCI device 1000:000b type 64-bit
PCI: dev PCI device 1000:000b type 64-bit
lba version TR4.0 (0x5) found at 0xfffffffffed34000 lba range[2] : ignoring GMMIO (0xfffffff904000000) lba version TR4.0 (0x5) found at 0xfffffffffed38000 lba range[2] : ignoring GMMIO (0xfffffffa04000000)
PCI: dev PCI device 1000:000b type 64-bit
PCI: dev PCI device 1000:000b type 64-bit
PCI: dev PCI device 1000:000b type 64-bit
PCI: dev PCI device 1000:000b type 64-bit
lba version TR4.0 (0x5) found at 0xfffffffffed3c000 lba range[2] : ignoring GMMIO (0xfffffffb04000000) PCI : ignoring 30:00.0 PCI-PCI bridge - I/O BASE not configured PCI : ignoring 30:02.0 PCI-PCI bridge - I/O BASE not configured
PCI: dev PCI device 1000:000b type 64-bit
PCI: dev PCI device 1000:000b type 64-bit
PCI: dev PCI device 1000:000b type 64-bit
PCI: dev PCI device 1000:000b type 64-bit
SBA found Astro 2.1 at 0xfffffffffed00000
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039

down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
down     00000000c0327d70                                                       
up       00000000c0327d70                                                       
end_up   00000000c0327d70                                                       
Starting kswapd v1.8                                                            
down     00000000cfff0988                                                       
up       00000000cfff0988                                                       
end_up   00000000cfff0988                                                       
#3 lore raw

thanks for trying this, grant. i'll continue trying to debug this when i'm back from oz and have a machine to hand again. trying to debug this by proxy just isn't going to work.

of course anyone who wants to is welcome to try debugging it.

Signature · 1 line
Revolutions do not require corporate support.
#4 lore raw
Quoted 3 lines · Matthew Wilcox

thanks for trying this, grant. i'll continue trying to debug this when i'm back from oz and have a machine to hand again. trying to debug this by proxy just isn't going to work.

Yeah...but it might not be your bug. I uploaded a new PDC (40.50) on my A500 and rebuilt using TOB (w/o your semaphore patch) and built from scratch. System hangs after "swapon" hits a break isns. If interested, I can send you more details. jsm/rhirst/amodra already have details.

enjoy .au!
grant

Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253

#5 lore raw
Quoted 9 lines · Grant Grundler
Quoted 3 lines · Matthew Wilcox

thanks for trying this, grant. i'll continue trying to debug this when i'm back from oz and have a machine to hand again. trying to debug this by proxy just isn't going to work.

Yeah...but it might not be your bug. I uploaded a new PDC (40.50) on my A500 and rebuilt using TOB (w/o your semaphore patch) and built from scratch. System hangs after "swapon" hits a break isns. If interested, I can send you more details. jsm/rhirst/amodra already have details.

I think it is my bug because that's where it used to hang on my 712.

Signature · 1 line
Revolutions do not require corporate support.