From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4C2F715C.9050800@domain.hid> Date: Sat, 03 Jul 2010 19:20:28 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4C2F24CF.7090309@domain.hid> In-Reply-To: <4C2F24CF.7090309@domain.hid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] kernel warnings and oopses calling gpiolib functions from xenomai kernel space List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeremy Brown Cc: xenomai-help Gilles Chanteperdrix wrote: > Jeremy Brown wrote: >> Thanks in advance for any and all help! > > Hi, > > from your post, we can conclude that gpio_set_value is a Linux kernel > function which can yet not be used in Xenomai context (you could > probably even get more explicit messages by enabling I-pipe debugging). > I am going to try and propose a fix for this issue, will send you a > patch ASAP. > > Note that the issue is more an Adeos I-pipe issue than a Xenomai issue, > so I am more interested in knowing what version of adeos than what > version of Xenomai you are using. But chances that the problem exists > with all versions anyway. Could you try the following patch? diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 589a4bb..f1d85ff 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -195,7 +195,7 @@ struct gpio_bank { #endif u32 level_mask; u32 toggle_mask; - spinlock_t lock; + ipipe_spinlock_t lock; struct gpio_chip chip; struct clk *dbck; u32 mod_usage; -- Gilles.