Re: realtime-preempt for MIPS - compile problem with rwsem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ryan,

First, whenever sending mail about the -rt patch, always CC Ingo (and
perhaps Thomas Gliexner and myself).

On Tue, 20 Jun 2006, Ryan McAvoy wrote:

> I have been trying to get the realtime-preempt patches working on a
> MIPs processor with the 2.6.15 (and subsequently the 2.6.16) kernel.

2.6.15 had lots of problems with -rt.  Mainly the patch went through some
major rework, and Ingo was busy getting mutexes into mainline.  So the
2.6.15-rtX was sort of neglected.  It would be best to use 2.6.16-rtX and
maybe even 2.6.17-rtX

Which also comes the question: Which -rt patch are you actually trying?

>
> One problem I am having is as follows:
>
> - The mips configuration specifically disables
> CONFIG_RWSEM_GENERIC_SPINLOCK when CONFIG_PREEMPT_RT is on

That's a bug.  It should enable it not disable it.

> - This causes the include/asm-mips/rwsem.h to be included by
> include/linux/rwsem.h.
> - include/asm-mips/rwsem.h calls rwsem_down_read_failed which is
> implemented in lib/rwsem.c
> - rwsem.c is only compiled if CONFIG_RWSEM_XCHGADD_ALGORITHM is on.
> This option is also disabled if CONFIG_PREEMPT_RT is on.
>
> To summarise, if CONFIG_PREEMPT_RT is on, then the mips specific
> rwsem.h is included, but at the same time, it prevents inclusion of
> lib/rwsem.c which is needed by the mips rwsem.h.
>
> Does anyone have a solution to this.

Yep, try the following patch: (completey untested since I don't have a
mips machine).

-- Steve

Signed-off-by: Steven Rostedt <[email protected]>

Index: linux-2.6.16-rt25/arch/mips/Kconfig
===================================================================
--- linux-2.6.16-rt25.orig/arch/mips/Kconfig	2006-06-21 04:02:54.000000000 -0400
+++ linux-2.6.16-rt25/arch/mips/Kconfig	2006-06-21 04:03:29.000000000 -0400
@@ -798,7 +798,7 @@ source "kernel/Kconfig.preempt"

 config RWSEM_GENERIC_SPINLOCK
 	bool
-	depends on !PREEMPT_RT
+	depends on PREEMPT_RT
 	default y

 config RWSEM_XCHGADD_ALGORITHM

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux