public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: Jemma Denson <jdenson@gmail.com>
Cc: linux-media@vger.kernel.org, Antti Palosaari <crope@iki.fi>,
	Patrick Boettcher <patrick.boettcher@posteo.de>
Subject: Re: DVBv5 qos/stats driver implementation
Date: Tue, 5 May 2015 12:27:02 -0300	[thread overview]
Message-ID: <20150505122702.44269b54@recife.lan> (raw)
In-Reply-To: <5548D2FF.3050100@gmail.com>

Em Tue, 05 May 2015 15:26:07 +0100
Jemma Denson <jdenson@gmail.com> escreveu:

> Mauro/Antti,
> 
> Myself and Patrick are currently in the process of bringing an old out 
> of tree frontend driver into shape for inclusion, and one of the issues 
> raised by Mauro was the requirement for the new DVBv5 stats method. I've 
> noticed there seems to be two different ways of going around this - one 
> is to run through the collection and cache filling process during the 
> calls to read_status (as in dib7000p/dib8000p), and the other is to poll 
> independently every couple of seconds via schedule_delayed_work (as in 
> af9033, rtl2830/2832).
> 
> Is there any reason for the two different ways - is it just a coding 
> preference or is there some specifics to how these frontends need to be 
> implemented?

Hi Jemma,

It is basically coding preference. 

The DVB has already a thread that calls the frontend driver on every
3 seconds, at most (or when an event occurs). So, I don't see any need
for the drivers to start another thread to update status, as 3 seconds
is generally good enough for status update, then the frontend is
already locked, and the events can make status to update earlier during
device lock phase. Also, if needed, it won't be hard to add core support
to adjust the kthread delay time.

The driver may also skip an update if needed. So, I don't see much
gain on having a per-driver thread.

Having a per-driver thread should work too, although it is an overkill
for me to have two status kthreads running (one provided by the core,
and another by the driver).

Regards,
Mauro

      reply	other threads:[~2015-05-05 15:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-05 14:26 DVBv5 qos/stats driver implementation Jemma Denson
2015-05-05 15:27 ` Mauro Carvalho Chehab [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=20150505122702.44269b54@recife.lan \
    --to=mchehab@osg.samsung.com \
    --cc=crope@iki.fi \
    --cc=jdenson@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=patrick.boettcher@posteo.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox