Re: [Xenomai] imx6q xenomai ipipe-3.0-imx6q

2014-03-27 Thread 嵌入式工程师
This is my logs Starting kernel ... Linux version 3.0.43 (lucid@ubuntu) (gcc version 4.4.4 (4.4.4_09.06.2010) ) #5 SMP PREEMPT Thu Mar 27 19:41:48 PDT 2014 CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache Machi

Re: [Xenomai] Rescnt imbalance in rtdm_mutex_timedlock

2014-03-27 Thread Lowell Gilbert
Jan Kiszka writes: > On 2014-03-27 19:24, Philippe Gerum wrote: >> On 03/27/2014 07:04 PM, Jan Kiszka wrote: >>> if (unlikely(...)) - locks are generally unlikely to be contended >>> (unless something is suboptimally designed at the user site). >>> >> >> I'm unsure we really need to take a chan

Re: [Xenomai] Raspberry Pi Xenomai Linux + Minimal Raspian Net Install Guide

2014-03-27 Thread Adam Vaughan
Actually, I forgot I also copy over kernel sources. So that, the kernel headers, and the Raspbian package build-essential should be removed to cut down on the size, if you're cross-compiling everything. Removing the kernel sources alone brings the disk usage to 320 MB. Anyway, I need to focus on

Re: [Xenomai] Raspberry Pi - 3.10.34

2014-03-27 Thread Gilles Chanteperdrix
On 03/27/2014 04:33 PM, Lowell Gilbert wrote: Gregory Dymarek writes: To get kernel 3.10.34 to work the ipipe patch needs updating. (ipipe-3.8.x does not apply cleanly). What is the process to release a new ipipe patch for 3.10.34? Or what is the alternative? The source control trees are e

Re: [Xenomai] Rescnt imbalance in rtdm_mutex_timedlock

2014-03-27 Thread Gilles Chanteperdrix
On 03/27/2014 07:31 PM, Jan Kiszka wrote: On 2014-03-27 19:24, Philippe Gerum wrote: On 03/27/2014 07:04 PM, Jan Kiszka wrote: On 2014-03-27 17:26, Philippe Gerum wrote: On 03/27/2014 04:02 PM, Henri Roosen wrote: On Thu, Mar 27, 2014 at 10:41 AM, Philippe Gerum mailto:r...@xenomai.org>> w

Re: [Xenomai] Rescnt imbalance in rtdm_mutex_timedlock

2014-03-27 Thread Gilles Chanteperdrix
On 03/27/2014 07:24 PM, Philippe Gerum wrote: I'm unsure we really need to take a chance at giving such hint. Modern CPUs tend to have branch prediction right. Not to mention the fact that the compiler may not use the information used by likely/unlikely, or may not be able use it in a sensible

Re: [Xenomai] Rescnt imbalance in rtdm_mutex_timedlock

2014-03-27 Thread Jan Kiszka
EIDRM; >>>> >>>> - else if (likely(xnsynch_owner(&mutex->__synch_base) == >>>> NULL)) >>>> - xnsynch_set_owner(&mutex->__synch_base, >>>> curr_thread); >>>> -

Re: [Xenomai] Rescnt imbalance in rtdm_mutex_timedlock

2014-03-27 Thread Philippe Gerum
On 03/27/2014 07:04 PM, Jan Kiszka wrote: On 2014-03-27 17:26, Philippe Gerum wrote: On 03/27/2014 04:02 PM, Henri Roosen wrote: On Thu, Mar 27, 2014 at 10:41 AM, Philippe Gerum mailto:r...@xenomai.org>> wrote: On 03/27/2014 12:07 AM, Gilles Chanteperdrix wrote: On 03/26/2014

Re: [Xenomai] Raspberry Pi Xenomai Linux + Minimal Raspian Net Install Guide

2014-03-27 Thread Adam Vaughan
I wrote this guide as if I was starting from scratch. I thought it would be helpful. I don't intend for it to cover everyone's use case, but it covers all the steps to get a basic install working. I'm not aware of any other guide that talks about the recent 3.8.13 patches for Xenomai which Gille

Re: [Xenomai] Rescnt imbalance in rtdm_mutex_timedlock

2014-03-27 Thread Jan Kiszka
ff --git a/ksrc/skins/rtdm/drvlib.c b/ksrc/skins/rtdm/drvlib.c > index 391d45f..aa85d11 100644 > --- a/ksrc/skins/rtdm/drvlib.c > +++ b/ksrc/skins/rtdm/drvlib.c > @@ -1538,9 +1538,7 @@ int rtdm_mutex_timedlock(rtdm_mutex_t *mutex, > nanosecs_rel_t timeout, > if (unlikely(xnsynch_test_flags(&mutex->synch_base, > RTDM_SYNCH_DELETED))) > err = -EIDRM; > - else if (likely(xnsynch_owner(&mutex->synch_base) == NULL)) > - xnsynch_set_owner(&mutex->synch_base, curr_thread); > - else { > + else if (!xnsynch_try_grab(&mutex->synch_base, curr_thread)) { > /* Redefinition to clarify XENO_ASSERT output */ > #define mutex_owner xnsynch_owner(&mutex->synch_base) > XENO_ASSERT(RTDM, mutex_owner != curr_thread, > Looks good otherwise. Jan -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140327/6f8e6a10/attachment.sig> ___ Xenomai mailing list Xenomai@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai

Re: [Xenomai] Rescnt imbalance in rtdm_mutex_timedlock

2014-03-27 Thread Philippe Gerum
On 03/27/2014 04:02 PM, Henri Roosen wrote: > > > > On Thu, Mar 27, 2014 at 10:41 AM, Philippe Gerum > wrote: > > On 03/27/2014 12:07 AM, Gilles Chanteperdrix wrote: > > On 03/26/2014 05:49 PM, Henri Roosen wrote: > > On Tue, Mar 25, 2014 at 1

Re: [Xenomai] Raspberry Pi - 3.10.34

2014-03-27 Thread Lowell Gilbert
Gregory Dymarek writes: > To get kernel 3.10.34 to work the ipipe patch needs updating. > (ipipe-3.8.x does not apply cleanly). > > What is the process to release a new ipipe patch for 3.10.34? > > Or what is the alternative? The source control trees are easily available, so there are a lot of o

Re: [Xenomai] Rescnt imbalance in rtdm_mutex_timedlock

2014-03-27 Thread Henri Roosen
On Thu, Mar 27, 2014 at 10:41 AM, Philippe Gerum wrote: > On 03/27/2014 12:07 AM, Gilles Chanteperdrix wrote: > >> On 03/26/2014 05:49 PM, Henri Roosen wrote: >> >>> On Tue, Mar 25, 2014 at 12:45 PM, Erwin Pranz >>> wrote: >>> >>> Hello, I am using rtdm_mutex_lock/rtdm_mutex_unlock in

[Xenomai] Raspberry Pi - 3.10.34

2014-03-27 Thread Gregory Dymarek
To get kernel 3.10.34 to work the ipipe patch needs updating. (ipipe-3.8.x does not apply cleanly). What is the process to release a new ipipe patch for 3.10.34? Or what is the alternative? Thanks, Gregory ___ Xenomai mailing list Xenomai@xenomai.org

Re: [Xenomai] imx6q xenomai ipipe-3.0-imx6q

2014-03-27 Thread Gilles Chanteperdrix
On 03/27/2014 06:24 AM, 嵌入式工程师 wrote: > I do as you said ,the result is the matter still has ,but when i change > > UIMAGE arch/arm/boot/uImage > Image Name: Linux-3.0.43-ge13355f > Created: Thu Mar 27 11:07:59 2014 > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size:34

Re: [Xenomai] Raspberry Pi Xenomai Linux + Minimal Raspian Net Install Guide

2014-03-27 Thread Paul
Going to highlight a couple of issues: On Wednesday 26 March 2014, Adam Vaughan wrote: > So its all in one place, I've also attached is an updated guide for > minimal Raspbian and Xenomai with the attached patch. > === > // Automatical

[Xenomai] Real time driver

2014-03-27 Thread Ilesh Patel
Hello, How to turn NON-RT Linux driver stack into real time for RTDM ? If we use real time semaphore lock instead of NON real time semaphore then it will improve the performance of driver ? --Ilesh ___ Xenomai mailing list Xenomai@xenomai.org http://ww

Re: [Xenomai] Rescnt imbalance in rtdm_mutex_timedlock

2014-03-27 Thread Philippe Gerum
On 03/27/2014 12:07 AM, Gilles Chanteperdrix wrote: On 03/26/2014 05:49 PM, Henri Roosen wrote: On Tue, Mar 25, 2014 at 12:45 PM, Erwin Pranz wrote: Hello, I am using rtdm_mutex_lock/rtdm_mutex_unlock in a rtdm driver and I get a signal SIGDEBUG_MIGRATE_PRIOINV when I call the driver from a p