All of lore.kernel.org
 help / color / mirror / Atom feed
* PM issue with Intel SST Atom driver
@ 2017-04-21 13:42 Takashi Iwai
  2017-04-24  5:01 ` Vinod Koul
  0 siblings, 1 reply; 16+ messages in thread
From: Takashi Iwai @ 2017-04-21 13:42 UTC (permalink / raw)
  To: Vinod Koul; +Cc: Liam Girdwood, alsa-devel, Pierre-Louis Bossart

Hi,

I noticed that the unstable PM behavior on my Cherrytrail laptop
actually comes from the sound driver.  First off, the atom/sst/sst.c
has the following suspend code:

static int intel_sst_suspend(struct device *dev)
{
....
	/*
	 * check if any stream is active and running
	 * they should already by suspend by soc_suspend
	 */
	for (i = 1; i <= ctx->info.max_streams; i++) {
		struct stream_info *stream = &ctx->streams[i];

		if (stream->status == STREAM_RUNNING) {
			dev_err(dev, "stream %d is running, can't suspend, abort\n", i);
			return -EBUSY;
		}
	}

This doesn't look good, and I actually hit this when I tried to
suspend while playing something.  In general, the driver shouldn't
reject at this point, because this is the PM suspend callback,
i.e. the user wants to suspend the device inevitably.  The driver
should return an error only when it faces to a fatal error.

But I wondered why this happened at all, and noticed that the machine
driver (in my case bytcr_rt5640) has no its own PM ops.  But hooking
the snd_soc_pm_ops there seems causing a hang up at suspend by some
reason.

Maybe this wasn't a big problem until now since the BYT/CHT didn't
support the suspend/resume properly in the past.  But now PM suspend
is supported on these devices, so the problem surfaced more often.

Could you guys check the status of these drivers?


thanks,

Takashi

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-04-25  3:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21 13:42 PM issue with Intel SST Atom driver Takashi Iwai
2017-04-24  5:01 ` Vinod Koul
2017-04-24  7:15   ` Takashi Iwai
2017-04-24  9:00     ` Takashi Iwai
2017-04-24  9:12       ` Vinod Koul
2017-04-24  9:43         ` Takashi Iwai
2017-04-24  9:52           ` Vinod Koul
2017-04-24  9:54             ` Takashi Iwai
2017-04-24 11:02               ` Vinod Koul
2017-04-24 14:22               ` Pierre-Louis Bossart
2017-04-24 16:27                 ` Vinod Koul
2017-04-24 18:32                   ` Takashi Iwai
2017-04-25  3:04                     ` Vinod Koul
2017-04-24 19:01                   ` Pierre-Louis Bossart
2017-04-25  3:06                     ` Vinod Koul
2017-04-24  9:09     ` Vinod Koul

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.