linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: Antti Palosaari <crope@iki.fi>
Cc: Olli Salonen <olli.salonen@iki.fi>, linux-media@vger.kernel.org
Subject: Re: [PATCH 1/3] si2157: change command for sleep
Date: Thu, 18 Sep 2014 09:11:48 -0300	[thread overview]
Message-ID: <20140918091148.348669ce@recife.lan> (raw)
In-Reply-To: <541AC97B.1020508@iki.fi>

Hi Antti,

Em Thu, 18 Sep 2014 15:00:59 +0300
Antti Palosaari <crope@iki.fi> escreveu:

> On 09/18/2014 02:50 PM, Mauro Carvalho Chehab wrote:
> > Sorry, I misunderstood this patch.
> >
> > There are actually two different things, each requiring a different PM
> > setting:
> >
> > 1) to put the tuner to sleep while it is not in usage;
> >
> > 2) put the machine to suspend.
> >
> > This patch is for (1). That's FINE. I'll apply it.
> >
> > Yet, for (2), assuming a suspend to ram, the best is to save more
> > power.
> >
> > In the past, the DVB core didn't make any distinction between those
> > two, but we recently added a hook for suspend there.
> >
> > So, it makes sense to keep the tuner powerdown mode for suspend.
> 
> 
> I think old deep sleep should be used for suspend, whilst on warm state 
> that new is OK.

Agreed.

> I2C driver has suspend/resume support and it is one thing I am going to 
> study in near future.

The problem with an I2C core driven suspend/resume call is that the
suspend/resume order will be random. This will likely break support
on complex devices where resuming require a certain order to happen,
especially if the device is streaming.

> Currently I have 128GB SSD and no swap at all, so 
> I cannot test it now. I have already bought 256GB SSD and I am just 
> waiting for Fedora 21 alpha version, which I will install with proper 
> swap. Unfortunately they have delayed many times already Fedora 21 alpha...

Fedora 21 alpha will likely be too experimental for my taste ;)

The changes on Fedora next means that too much needs to be touched,
so, I'll likely wait for a few months after Fedora 21 release to
migrate most of my machines.

> I am not even sure if DVB frontend needs any special suspend/resume 
> handling, isn't it possible to use standard kernel PM here? (I already 
> added some initial PM to DVB FE ~2 years ago, but IIRC those will only 
> kill threads and so which are not allowed when suspend).

Well, dvb uses the standard Kernel PM. The way PM works on most places
is that the subsystem provides their own PM methods that are called
by the PM subsystem.

> So is there some reason DVB FE needs suspend/resume hooks?

Yes. See above.

Basically, at suspend, the tuner and demod should be stopped (including
all kthreads), and they need to be restarted and firmware may need to be
reloaded at resume time.

Regards,
Mauro

      reply	other threads:[~2014-09-18 12:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-25 18:07 [PATCH 1/3] si2157: change command for sleep Olli Salonen
2014-08-25 18:07 ` [PATCH 2/3] si2157: avoid firmware loading if it has been loaded previously Olli Salonen
2014-08-25 18:07 ` [PATCH 3/3] si2168: " Olli Salonen
2014-09-05  8:36   ` Antti Palosaari
2014-09-05 18:54     ` Olli Salonen
2014-09-06 17:36       ` Olli Salonen
2014-09-06 23:06         ` Antti Palosaari
2014-09-05  8:34 ` [PATCH 1/3] si2157: change command for sleep Antti Palosaari
2014-09-18 11:22   ` Mauro Carvalho Chehab
2014-09-18 11:50     ` Mauro Carvalho Chehab
2014-09-18 12:00       ` Antti Palosaari
2014-09-18 12:11         ` 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=20140918091148.348669ce@recife.lan \
    --to=mchehab@osg.samsung.com \
    --cc=crope@iki.fi \
    --cc=linux-media@vger.kernel.org \
    --cc=olli.salonen@iki.fi \
    /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;
as well as URLs for NNTP newsgroup(s).