Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Alex Natalsson <harmoniesworlds@gmail.com>
Cc: stable@vger.kernel.org, regressions@lists.linux.dev
Subject: Re: echo mem > /sys/power/state write error "Device or resource busy" on Amlogic A311D device
Date: Fri, 10 Jun 2022 12:30:35 +0200	[thread overview]
Message-ID: <YqMdS+3qpYHfWN9f@kroah.com> (raw)
In-Reply-To: <CADs9LoMEF86Fp2-0ji7d9CNA5F=8ArwPWnj09h_Cwo6poNsWVA@mail.gmail.com>

On Fri, Jun 10, 2022 at 01:18:56PM +0300, Alex Natalsson wrote:
> Hello friends.
> Suspend to RAM on Amlogic A311D chip (Khadas VIM3 SBC) was broken with
> 5.17.13 and with 5.18.2 it also presents.
> 
> When I trying do this I recieve error message:
> VIM3 ~ # LANG=C echo mem > /sys/power/state
> [  952.824117] PM: suspend entry (deep)
> [  952.828333] Filesystems sync: 0.003 seconds
> [  952.829473] Freezing user space processes ...
> [  972.833509] Freezing of tasks failed after 20.003 seconds (1 tasks
> refusing to freeze, wq_busy=0):
> [  972.841178] task:mplayer         state:D stack:    0 pid:  779
> ppid:   736 flags:0x00000205
> [  972.849457] Call trace:
> [  972.851868]  __switch_to+0xf8/0x150
> [  972.855315]  __schedule+0x1f8/0x570
> [  972.858758]  schedule+0x48/0xc0
> [  972.861856]  schedule_preempt_disabled+0x10/0x20
> [  972.866417]  __mutex_lock.constprop.0+0x158/0x590
> [  972.871071]  __mutex_lock_slowpath+0x14/0x20
> [  972.875296]  mutex_lock+0x5c/0x70
> [  972.878573]  dpcm_fe_dai_open+0x44/0x194
> [  972.882456]  snd_pcm_open_substream+0xa4/0x174
> [  972.886857]  snd_pcm_open.part.0+0xd8/0x1dc
> [  972.890994]  snd_pcm_playback_open+0x64/0x94
> [  972.895223]  snd_open+0xac/0x1d0
> [  972.898411]  chrdev_open+0xdc/0x2c4
> [  972.901861]  do_dentry_open+0x12c/0x380
> [  972.905652]  vfs_open+0x30/0x3c
> [  972.908758]  do_open+0x1e4/0x3a0
> [  972.911948]  path_openat+0x10c/0x280
> [  972.915486]  do_filp_open+0x80/0x130
> [  972.919019]  do_sys_openat2+0xb4/0x170
> [  972.922731]  __arm64_sys_openat+0x64/0xb0
> [  972.926700]  invoke_syscall+0x48/0x114
> [  972.930421]  el0_svc_common.constprop.0+0xd4/0xfc
> [  972.935070]  do_el0_svc+0x28/0x90
> [  972.938347]  el0_svc+0x34/0xb0
> [  972.941367]  el0t_64_sync_handler+0xa4/0x130
> [  972.945595]  el0t_64_sync+0x18c/0x190
> 
> [  972.950674] OOM killer enabled.
> [  972.953781] Restarting tasks ... done.
> -bash: echo: write error: Device or resource busy
> VIM3 ~ :( #
> 
> With 5.16.2 kernel version suspend to RAM is working, but system very
> slow after resume.
> 

Can you use 'git bisect' to track down the offending commit?

And does 5.19-rc1 also have this issue?

thanks,

greg k-h

  reply	other threads:[~2022-06-10 10:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-10 10:18 echo mem > /sys/power/state write error "Device or resource busy" on Amlogic A311D device Alex Natalsson
2022-06-10 10:30 ` Greg KH [this message]
2022-06-10 15:04   ` Alex Natalsson
2022-06-25 15:01   ` Alex Natalsson
2022-06-25 16:44     ` Greg KH
2022-06-26  7:49       ` Alex Natalsson

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=YqMdS+3qpYHfWN9f@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=harmoniesworlds@gmail.com \
    --cc=regressions@lists.linux.dev \
    --cc=stable@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox