Skip to contentSkip to conversation

x86 with xenomai patch

Xenomai 嵌入式工程师 3 participants 6 messages Jan 8, 2014 – Sep 4, 2014

lore
Share & tools
lore
#0 lore raw

I use kernal-3.4.6 and kernal-3.8.13 with xenomai-2.6.3 x86 patches .

  x x                                                           General setup  --->                                                                                                      x x  
  x x                                                       [*] Enable loadable module support  --->                                                                                     x x  
  x x                                                       -*- Enable the block layer  --->                                                                                             x x  
  x x                                                           Real-time sub-system  --->                                                                                               x x  
  x x                                                           Processor type and features  --->                                                                                        x x  
  x x                                                           Power management and ACPI options  --->                                                                                  x x  
  x x                                                           Bus options (PCI etc.)  --->                                                                                             x x  
  x x                                                           Executable file formats / Emulations  --->                                                                               x x  
  x x                                                       [*] Networking support  --->                                                                                                 x x  
  x x                                                           Device Drivers  --->                                                                                                     x x  
  x x                                                           Firmware Drivers  --->                                                                                                   x x  
  x x                                                           File systems  --->                                                                                                       x x  
  x x                                                           Kernel hacking  --->                                                                                                     x x  
  x x                                                           Security options  --->                                                                                                   x x  
  x x                                                       -*- Cryptographic API  --->                                                                                                  x x  
  x x                                                       [*] Virtualization  --->                                                                                                     x x  
  x x                                                           Library routines  --->                                                                                                   x x  
  x x                                                       ---                                                                                                                          x x  
  x x                                                           Load an Alternate Configuration File                                                                                     x x  

x x Save an Alternate Configuration File

  x x                                                       [*] Xenomai                                                                                                                  x x  
  x x                                                       <*> Nucleus                                                                                                                  x x  
  x x                                                       [*]   Pervasive real-time support in user-space                                                                              x x  
  x x                                                       [ ]     Priority coupling support (DEPRECATED)                                                                               x x  
  x x                                                       -*-   Optimize as pipeline head (DEPRECATED)                                                                                 x x  
  x x                                                       [ ]   Extra scheduling classes                                                                                               x x  
  x x                                                       (32)  Number of pipe devices                                                                                                 x x  
  x x                                                       (512) Number of registry slots                                                                                               x x  
  x x                                                       (256) Size of the system heap (Kb)                                                                                           x x  
  x x                                                       (128) Size of the private stack pool (Kb)                                                                                    x x  
  x x                                                       (12)  Size of private semaphores heap (Kb)                                                                                   x x  
  x x                                                       (12)  Size of global semaphores heap (Kb)                                                                                    x x  
  x x                                                       [*]   Statistics collection                                                                                                  x x  
  x x                                                       [*]   Debug support                                                                                                          x x  
  x x                                                       [ ]     Nucleus Debugging support                                                                                            x x  
  x x                                                       [*]     Spinlocks Debugging support                                                                                          x x  
  x x                                                       [ ]     Queue Debugging support                                                                                              x x  
  x x                                                       [ ]     Registry Debugging support                                                                                           x x  
  x x                                                       [ ]     Timer Debugging support                                                                                              x x  
  x x                                                       [*]     Detect mutexes held in relaxed sections                                                                              x x  
  x x                                                       [*]     Watchdog support                                                                                                     x x  
  x x                                                       (4)       Watchdog timeout                                                                                                   x x  
  x x                                                       [ ]   Shared interrupts                                                                                                      x x  
  x x                                                             Timing  --->                                                                                                           x x  
  x x                                                             Scalability  --->                                                                                                      x x  

x x Machine --->

Kernel has been compiled. But when I use xenomai source package generates real-time testing tools to test.The latency tools works well with no load. But when I start the opengl tools gfxgears the real-time will be very bad with kernal mode priority 99 100us。 I do not kenow where I have been wrong.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ??1.png
Type: image/png
Size: 476253 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140108/551ab266/attachment.png>

#1 lore raw
Quoted 7 lines · 嵌入式工程师

I use kernal-3.4.6 and kernal-3.8.13 with xenomai-2.6.3 x86 patches . (...)
Kernel has been compiled. But when I use xenomai source package generates real-time testing tools to test.The latency tools works well with no load. But when I start the opengl tools gfxgears the real-time will be very bad with kernal mode priority 99 100us。 I do not kenow where I have been wrong.

If you are using the graphic chip integrated into Intel processors, this has only be fixed recently in the kernel (it works on 3.10, but not on older kernel). If you want to stay with 3.4, see:

http://www.xenomai.org/documentation/xenomai-2.6/html/TROUBLESHOOTING/#_the_latency_test_shows_high_latencies

Signature · 1 line
                                                                Gilles.
#2 lore raw

Thanks I will have a try!

Quoted 17 lines · 在 2014-01-08 16:17:24,"Gilles Chanteperdrix"…
Quoted 7 lines · 嵌入式工程师

I use kernal-3.4.6 and kernal-3.8.13 with xenomai-2.6.3 x86 patches . (...)
Kernel has been compiled. But when I use xenomai source package generates real-time testing tools to test.The latency tools works well with no load. But when I start the opengl tools gfxgears the real-time will be very bad with kernal mode priority 99 100us。 I do not kenow where I have been wrong.

If you are using the graphic chip integrated into Intel processors, this has only be fixed recently in the kernel (it works on 3.10, but not on older kernel). If you want to stay with 3.4, see:

http://www.xenomai.org/documentation/xenomai-2.6/html/TROUBLESHOOTING/#_the_latency_test_shows_high_latencies

Signature · 1 line
                                                               Gilles.
#3 lore raw
In reply to 嵌入式工程师
Quoted 2 lines · 嵌入式工程师

I use kernal-3.4.6 and kernal-3.8.13 with xenomai-2.6.3 x86 patches .

If your graphic hardware is based on Intel's i915 chipset, you will need these two patches on top of 3.8:

http://git.xenomai.org/ipipe.git/?h=ipipe-3.8

7aa1bd6 Revert "drm/i915: Workaround incoherence between fences and LLC across multiple CPUs" 08d4be4 drm/i915: Fix incoherence with fence updates on Sandybridge+

Signature · 1 line
Philippe.
author
#4 lore raw

dear Philippe:<br/>Thanks i use the patches you tell me ,but if i turn on i915 with smp and use one glxgears it about 30~40 us delay .When I start much more glxgears the latency to achieve 120 us and I test it just one hour. I do not if it is normal.<br/> thanks !<br/><br/>---<br/>eric

Quoted 15 lines · 在 2014-01-08 05:23:11,"Philippe Gerum" <[email protected]> 写道:
Quoted 2 lines · 嵌入式工程师

I use kernal-3.4.6 and kernal-3.8.13 with xenomai-2.6.3 x86 patches .

If your graphic hardware is based on Intel's i915 chipset, you will need these two patches on top of 3.8:

http://git.xenomai.org/ipipe.git/?h=ipipe-3.8

7aa1bd6 Revert "drm/i915: Workaround incoherence between fences and LLC across multiple CPUs"
08d4be4 drm/i915: Fix incoherence with fence updates on Sandybridge+

Signature · 1 line
Philippe.
author
#5 lore raw
In reply to Philippe Gerum

在 2014-01-08 05:23:11,"Philippe Gerum" <[email protected]> 写道:

dear Philippe:
Thanks i use the patches you tell me ,but if i turn on i915 with smp and use one glxgears it about 30~40 us delay .When I start much more glxgears the latency to achieve 120 us and I test it just one hour. I do not know if it is normal. thanks !
---
eric