Re: kernel panic in fib_rules_lookup [2.6.27.7 vendor-patched]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joe Buehler
Date: Tuesday, October 26, 2010 - 6:29 am

Eric Dumazet wrote:


I'm looking at the LINUX source at the moment and not liking what I see
in include/asm-mips/barrier.h:

#define smp_mb()	__asm__ __volatile__(__WEAK_ORDERING_MB : : :"memory")
#ifdef CONFIG_CPU_CAVIUM_OCTEON
#define smp_rmb()	barrier()
#define smp_wmb()	barrier()
#else
#define smp_rmb()	__asm__ __volatile__(__WEAK_ORDERING_MB : : :"memory")
#define smp_wmb()	__asm__ __volatile__(__WEAK_ORDERING_MB : : :"memory")
#endif

The Octeon documentation explicitly says that neither loads nor stores
need execute in program order, so the definitions for smp_rmb and
smp_wmb appear to be wrong wrong wrong.

It appears that smp_wmb should be making use of SYNCW and smp_rmb should
be making use of SYNC.

Should I pursue this question on the main LINUX kernel list?

Joe Buehler
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: kernel panic in fib_rules_lookup [2.6.27.7 vendor-patched], "Oleg A. Arkhangelsky", (Sat Oct 23, 10:37 am)
Re: kernel panic in fib_rules_lookup [2.6.27.7 vendor-patched], Joe Buehler, (Tue Oct 26, 6:29 am)