All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: Hager Stefan <Stefan.Hager@ginzinger.com>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: CODA MJPG Decoder Problems after Wakeup/Resume
Date: Wed, 06 Apr 2022 11:28:06 +0200	[thread overview]
Message-ID: <5978f480edc49a49eea60b1122885d10543ae88b.camel@pengutronix.de> (raw)
In-Reply-To: <AM5PR06MB315348317AD584BA4709B37584E49@AM5PR06MB3153.eurprd06.prod.outlook.com>

Hi Stefan,

On Di, 2022-04-05 at 07:53 +0000, Hager Stefan wrote:
> Hi.
> 
> I observed a problem within the Coda MJPEG Decoder:
> 
> An MJPG Stream over Ethernet is decoded - and displayed to a screen
> afterwards - with 30 frames per second (as sent by the external
> source) on am i.MX6D 2 Core Processor.
> If the System was then sent so sleep ('$ echo mem >
> /sys/power/state') and woken up again, the stream is only decoded
> with a framerate of about 1 frame per second. This happens on each
> wakeup.

Which kernel version are you using and how are you driving coda-vpu
from userspace? Can you reproduce the issue without the network
streaming or display parts?

> Before going to sleep there were 30 Interrupts per Second on the
> Decoder, afterwards only 1 per Second. I also observed a kthread
> worker taking nearly 100% of one Core.

Could you use perf top to find out where the CPU time is spent?

> What could be the issue? How to resolve it?

Is the decoder still fed frames at 30 fps after resume? You could use
ftrace to trace the coda:*, v4l2:*, and vb2:* trace events to verify
this, and to check whether the hardware still is processing frames at
the expected speed.

regards
Philipp

      reply	other threads:[~2022-04-06 13:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-05  7:53 CODA MJPG Decoder Problems after Wakeup/Resume Hager Stefan
2022-04-06  9:28 ` Philipp Zabel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5978f480edc49a49eea60b1122885d10543ae88b.camel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=Stefan.Hager@ginzinger.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.