Go to advanced search

by longo92
Wed Nov 27, 2019 10:04 am
Forum: C/C++
Topic: Timer interrupt per second limit
Replies: 7
Views: 162

Re: Timer interrupt per second limit

All my threads fail. As said the timer does not trigger inttetrupt, then everything is actually sleeping will sleep forever, also every command that use a sleep function will wait forever (command like top or a simple ping).
by longo92
Wed Nov 27, 2019 9:48 am
Forum: C/C++
Topic: Timer interrupt per second limit
Replies: 7
Views: 162

Re: Timer interrupt per second limit

I have 35 threads that sleeps using clock_nanosleep on CLOCK_MONOTONIC,in total i have 1200-1330 int/s.
by longo92
Wed Nov 27, 2019 9:33 am
Forum: C/C++
Topic: Timer interrupt per second limit
Replies: 7
Views: 162

Re: Timer interrupt per second limit

I have a set of periodic threads, which workload varies. My problem is that after a while the timer does not trigger interrupt (i check using cat /proc/interrupt). Has anything like this ever happened to you?
by longo92
Wed Nov 27, 2019 9:08 am
Forum: C/C++
Topic: Timer interrupt per second limit
Replies: 7
Views: 162

Timer interrupt per second limit

Hi,
is there a maximum limit on the number of interrupt per second which the system timer can handle?
by longo92
Fri Nov 15, 2019 1:37 pm
Forum: Advanced users
Topic: Freezing with RT-patch (Pi 3)
Replies: 23
Views: 8148

Re: Freezing with RT-patch (Pi 3)

Grazie mille Giuliano. I'm actually trying with your fix on cmdline.txt and seems working; i would like understand deeper the issue, do you know if there is a way to see (from linux command line) the last interrupt handler holding the cpu? Or to know if is Linux stalled on interrupt handler? Thanks
by longo92
Fri Nov 15, 2019 12:09 pm
Forum: Advanced users
Topic: Possible usb FIQ problem with system timer
Replies: 0
Views: 79

Possible usb FIQ problem with system timer

Hi, I'm discovering a similar problem in post: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=159170&p=1566453#p1566453 I'm using kernel 4.14 non-RT patched on a raspberry pi 0 W, i have the following issue: after some time the timer interrupts are not incremented (i check using "cat /proc/...
by longo92
Fri Nov 15, 2019 10:03 am
Forum: Advanced users
Topic: Freezing with RT-patch (Pi 3)
Replies: 23
Views: 8148

Re: Freezing with RT-patch (Pi 3)

Hi, i'm resuming this old post. I'm using kernel 4.14 non-RT patched on a raspberry pi 0 W, i have the following issue: after some time the timer interrupts are not incremented (i check using "cat /proc/interrupts"). i have a process in charge of recording, play and send/receive sound over network, ...
by longo92
Tue Oct 29, 2019 1:55 pm
Forum: Graphics, sound and multimedia
Topic: Full KMS vs Fake KMS vs Legacy driver
Replies: 10
Views: 1049

Re: Full KMS vs Fake KMS vs Legacy driver

I have two more questions about developing opengl application: 1) Regarding performance and power consumption: is better to use legacy or KMS? 2) Are those drivers transparent to the programmer (i.e., the executable is the same)? Or i must compile using different OpengGl library (instead of brcmGLES...
by longo92
Tue Oct 29, 2019 11:00 am
Forum: Graphics, sound and multimedia
Topic: Full KMS vs Fake KMS vs Legacy driver
Replies: 10
Views: 1049

Re: Full KMS vs Fake KMS vs Legacy driver

Ok, thanks for your explanation. can i found the source code of KMS drivers (both Fake and Full) here https://github.com/raspberrypi/linux/tree/rpi-4.19.y/drivers/gpu/drm/vc4, right? Instead is the legacy driver propetary closed-source (i.e., impossible to find the source code)? Thank you, Alessandro
by longo92
Mon Oct 28, 2019 3:13 pm
Forum: Graphics, sound and multimedia
Topic: Full KMS vs Fake KMS vs Legacy driver
Replies: 10
Views: 1049

Full KMS vs Fake KMS vs Legacy driver

Hi, i don't understand the differences between those drivers. Can you explain to me? AFAIK the Legacy driver is the one enabled by default. In https://github.com/raspberrypi/userland/tree/master/interface/khronos/glxx there is the implementation of Opengl ES, the opengl commands are sent by the clie...
by longo92
Tue Oct 15, 2019 1:21 pm
Forum: OpenGLES
Topic: Decoder and EGL image
Replies: 0
Views: 1153

Decoder and EGL image

Hi, i have two thread: -One is in charge of decoding an h264 stream. -The other is an opengl es 2.0 rendering thread. I set up the h264 decoder in order to have a mmal opaque buffers as output, then i pass them to a render thread (using an mmal queue) that transforms into textures rendered on a quad...
by longo92
Thu Aug 08, 2019 7:10 am
Forum: C/C++
Topic: Clock_nanosleep issues
Replies: 4
Views: 2625

Re: Clock_nanosleep issues

Sorry but the program is too compex (streaming video and audio app), the problem is that the timer doesn't trigger interrupts at some point in time (check /proc/interrupts), so my processes waiting in nanosleep cannot awake.
by longo92
Fri Jul 19, 2019 8:36 am
Forum: C/C++
Topic: sched: RT throttling activated
Replies: 3
Views: 733

sched: RT throttling activated

Hi, I have a raspberry pi 0 that runs two application: the first a video-straming app. (takes video from the rpi camera, encodes in H264 and streams) and the second an audio streaming app (takes audio throug a microphone via usb card device, encodes it using opus and then streams), both through webs...
by longo92
Wed Jul 03, 2019 3:48 pm
Forum: C/C++
Topic: Clock_nanosleep issues
Replies: 4
Views: 2625

Clock_nanosleep issues

Hi, i have a multi-threaded program with a certain number of periodic threads. The typical periodic thread code is the following: static void time_add_ms(struct timespec *t, int ms) { t->tv_sec += ms/1000; t->tv_nsec += (ms%1000)*1000000; if (t->tv_nsec > 1000000000) { t->tv_nsec -= 1000000000; t->t...
by longo92
Mon Mar 11, 2019 6:32 pm
Forum: Graphics programming
Topic: set the decode parameters using sps
Replies: 5
Views: 837

Re: set the decode parameters using sps

I mean if you don't know the resolution of the incoming streaming and you want infer at run time. Is there a way? For inpurt port is passing the sps/pps but what options for the output port?
by longo92
Mon Mar 11, 2019 5:02 pm
Forum: Graphics programming
Topic: set the decode parameters using sps
Replies: 5
Views: 837

Re: set the decode parameters using sps

OK, it works. For the output port is there a similar trick?
by longo92
Mon Mar 11, 2019 10:13 am
Forum: Graphics programming
Topic: set the decode parameters using sps
Replies: 5
Views: 837

set the decode parameters using sps

Hi, Is there a way to set the decoder width and heigth of the input/output port using the sps? I know that pass it in the extradata field in the format input port (like in the example https://github.com/raspberrypi/userland/blob/master/interface/mmal/test/examples/example_basic_2.c) is used to set t...
by longo92
Tue Mar 05, 2019 8:33 am
Forum: Graphics programming
Topic: passing the mmal opaque buffer header through IPC(named pipe)
Replies: 3
Views: 762

Re: passing the mmal opaque buffer header through IPC(named pipe)

When that pool is destroyed the underlying image is released. Even though you have copied the data or pointer from buffer->data it can no longer be interpreted. Ok let's start from a general question: since i get the mmal buffer header from the callback associated to the video port of camera compon...
by longo92
Mon Mar 04, 2019 3:46 pm
Forum: Graphics programming
Topic: passing the mmal opaque buffer header through IPC(named pipe)
Replies: 3
Views: 762

passing the mmal opaque buffer header through IPC(named pipe)

Hi, i have two programs A and Brunning in parallel: -The program A takes frame from camera as opaque buffer (with encoding variant i420) and passes the mmal buffer header through a named pipe to program B. -The program B takes such mmal buffer and uses it in an opengl ES 2.0 rendering (using the dat...
by longo92
Thu Jan 24, 2019 4:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: using both dpi and i2s on bank 0
Replies: 2
Views: 398

using both dpi and i2s on bank 0

Hi, someone knows ifit is possibile to use dpi18 (for controlling head-mounted display) and i2s (for microphone/speaker) placed on bank 0 ? From trails it seems that enabling dpi mode disables all the other peripherals. I tried to modify the /boot/config.txt without effect. Is there an option to ove...
by longo92
Fri Nov 09, 2018 2:09 pm
Forum: Graphics programming
Topic: Video decoder output port info
Replies: 3
Views: 3323

Re: Video decoder output port info

But the question is: why the opaque encoding is not listed as a supported encoding in the output port?
by longo92
Fri Nov 09, 2018 2:05 pm
Forum: Graphics programming
Topic: Video decoder output port info
Replies: 3
Views: 3323

Re: Video decoder output port info

Ok, i resolved: it's possibile to decode as opaque buffer and use the buffer as an EGL IMAGE. Fantastic.
by longo92
Wed Nov 07, 2018 1:23 pm
Forum: Graphics programming
Topic: Video decoder output port info
Replies: 3
Views: 3323

Video decoder output port info

HI, i have a file .h264 that is decoded using MMAL_COMPONENT_DEFAULT_VIDEO_DECODER. I want transform each decoded frame in an OpenGl ES texture. I know (and i tested) that there is a way to tranform each camera frame in an EGL image (and then use it as a texture) through opaque buffer (MMAL_ENCODING...
by longo92
Mon Oct 29, 2018 11:35 am
Forum: Graphics programming
Topic: MMAL_PARAMETER_RATECONTROL
Replies: 1
Views: 3442

MMAL_PARAMETER_RATECONTROL

What is MMAL_PARAMETER_RATECONTROL?
by longo92
Fri Oct 26, 2018 11:49 am
Forum: Graphics programming
Topic: MMAL Reziser input sets to opaque
Replies: 8
Views: 4557

Re: MMAL Reziser input sets to opaque

Thanks for your really precious and precise answer. I try and the isp, on my case, for resizing is much faster.

Go to advanced search