From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: Johannes Stezenbach <js@linuxtv.org>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [PATCH 0/6] some fixes and cleanups for the em28xx-based HVR-930C
Date: Mon, 29 Sep 2014 15:30:18 -0300 [thread overview]
Message-ID: <20140929153018.2f701689@recife.lan> (raw)
In-Reply-To: <20140929174430.GA18967@linuxtv.org>
Em Mon, 29 Sep 2014 19:44:30 +0200
Johannes Stezenbach <js@linuxtv.org> escreveu:
> Hi Mauro,
>
> On Sun, Sep 28, 2014 at 11:23:17PM -0300, Mauro Carvalho Chehab wrote:
> > This patch series addresses some issues with suspend2ram of devices
> > based on DRX-K.
> >
> > With this patch series, it is now possible to suspend to ram while
> > streaming. At resume, the stream will continue to play.
> >
> > While doing that, I added a few other changes:
> >
> > - I moved the init code to .init. That is an initial step to fix
> > suspend to disk;
> >
> > - There's a fix to an issue that happens at xc5000 removal (sent
> > already as a RFC patch);
> >
> > - A dprintk change at his logic to not require both a boot parameter and
> > a dynamic_printk enablement. It also re-adds __func__ to the printks,
> > that got previously removed;
> >
> > - It removes the unused mfe_sharing var from the dvb attach logic.
> >
> > Mauro Carvalho Chehab (6):
> > [media] em28xx: remove firmware before releasing xc5000 priv state
> > [media] drxk: Fix debug printks
> > [media] em28xx-dvb: remove unused mfe_sharing
> > [media] em28xx-dvb: handle to stop/start streaming at PM
> > [media] em28xx: move board-specific init code
> > [media] drxk: move device init code to .init callback
> >
> > drivers/media/dvb-frontends/drxk_hard.c | 117 ++++++++++++++++----------------
> > drivers/media/tuners/xc5000.c | 2 +-
> > drivers/media/usb/em28xx/em28xx-dvb.c | 45 ++++++++----
> > 3 files changed, 92 insertions(+), 72 deletions(-)
>
>
> Disregarding your mails from the "em28xx breaks after hibernate"
> that hibernate doesn't work for you, I decided to give these
> changes a try on top of today's media_tree.git
> (cf3167c -> 3.17.0-rc5-00741-g9a3fbd8), still inside qemu
> (can't upgrade/reboot my main machine right now).
Well, I think I was not clear: It doesn't work for me when
I power down the USB or the machine after suspended. If I keep
the device energized, it works ;)
> Works! For hibernate, using "echo reboot >/sys/power/disk", so
> the host driver cannot interfere with the qemu driver during hibernate.
> Qemu causes several USB resets to the device during
> hibernate -> resume, but the USB power is not cut.
> It works even while running dvbv5-zap and streaming to mplayer.
Thanks for testing it! it is great to have a separate test for
the patches.
Could I add a tested-by tag on those patches?
> I tried both suspend-to-ram and hibernate a couple of times,
> at least in Qemu it all works.
>
> There are a lot of drxk debug prints now enabled by default,
> not sure if that was intentional.
You're probably probing the device with debug=1, right?
Before the patches, debug=1 were not working well, because:
- it would require to also manually enable the debug lines via
dynamic_printk sysfs nodes;
- the called function where not displayed. Weveral printks there
are just dprintk(1, "\n"), used as a way to trace the drxk
driver. With the old way, this were just printing:
drxk: <empty line>
We should likely do some cleanup in some future, removing those
empty printks, as function trace can easily be done via perf,
and to remove the debug level, using just dynamic_printk.
Regards,
Mauro
next prev parent reply other threads:[~2014-09-29 18:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 2:23 [PATCH 0/6] some fixes and cleanups for the em28xx-based HVR-930C Mauro Carvalho Chehab
2014-09-29 2:23 ` [PATCH 1/6] [media] em28xx: remove firmware before releasing xc5000 priv state Mauro Carvalho Chehab
2014-09-29 2:23 ` [PATCH 2/6] [media] drxk: Fix debug printks Mauro Carvalho Chehab
2014-09-29 2:23 ` [PATCH 3/6] [media] em28xx-dvb: remove unused mfe_sharing Mauro Carvalho Chehab
2014-09-29 2:23 ` [PATCH 4/6] [media] em28xx-dvb: handle to stop/start streaming at PM Mauro Carvalho Chehab
2014-09-29 2:23 ` [PATCH 5/6] [media] em28xx: move board-specific init code Mauro Carvalho Chehab
2014-09-29 2:23 ` [PATCH 6/6] [media] drxk: move device init code to .init callback Mauro Carvalho Chehab
2014-09-29 17:44 ` [PATCH 0/6] some fixes and cleanups for the em28xx-based HVR-930C Johannes Stezenbach
2014-09-29 18:30 ` Mauro Carvalho Chehab [this message]
2014-09-29 18:44 ` Johannes Stezenbach
2014-09-30 7:38 ` Johannes Stezenbach
2014-09-30 9:14 ` Mauro Carvalho Chehab
2014-09-30 14:43 ` Antti Palosaari
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=20140929153018.2f701689@recife.lan \
--to=mchehab@osg.samsung.com \
--cc=js@linuxtv.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.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.