One curious thing I note, probably irrelevant, is that after resume,
there is lots of stuff recorded in the logs that seem to be about
suspending...... e.g. Freezing remaing tasks after the computer has
resumed...

ul 25 01:42:58 phs08 systemd[1]: Reached target Sleep.
Jul 25 01:42:58 phs08 systemd[1]: Starting Suspend...
Jul 25 01:42:58 phs08 systemd-sleep[5315]: Failed to connect to non-global 
ctrl_ifname: (nil)  error: No such file or directory
Jul 25 01:42:58 phs08 systemd-sleep[5316]: 
/lib/systemd/system-sleep/wpasupplicant failed with error code 255.
Jul 25 01:42:58 phs08 systemd-sleep[5315]: Suspending system...

System is now sleeping, system wakes....

Jul 25 01:43:33 phs08 kernel: [  735.437613] PM: Syncing filesystems ... done.
Jul 25 01:43:33 phs08 kernel: [  735.469300] PM: Preparing system for sleep 
(mem)
Jul 25 01:43:33 phs08 kernel: [  735.469480] Freezing user space processes ... 
(elapsed 0.002 seconds) done.
Jul 25 01:43:33 phs08 kernel: [  735.471929] Freezing remaining freezable tasks 
... (elapsed 0.001 seconds) done.
Jul 25 01:43:33 phs08 kernel: [  735.473849] PM: Suspending system (mem)
Jul 25 01:43:33 phs08 kernel: [  735.473869] Suspending console(s) (use 
no_console_suspend to debug)
Jul 25 01:43:33 phs08 kernel: [  735.474317] sd 1:0:0:0: [sdb] Synchronizing 
SCSI cache
Jul 25 01:43:33 phs08 kernel: [  735.474394] sd 1:0:0:0: [sdb] Stopping disk
Jul 25 01:43:33 phs08 kernel: [  735.474620] sd 0:0:0:0: [sda] Synchronizing 
SCSI cache
Jul 25 01:43:33 phs08 kernel: [  735.482777] sd 0:0:0:0: [sda] Stopping disk
Jul 25 01:43:33 phs08 kernel: [  735.483625] i8042 kbd 00:04: System wakeup 
enabled by ACPI
Jul 25 01:43:33 phs08 kernel: [  735.483765] nouveau 0000:27:00.0: DRM: 
suspending console...
Jul 25 01:43:33 phs08 kernel: [  735.483771] nouveau 0000:27:00.0: DRM: 
suspending display...
Jul 25 01:43:33 phs08 kernel: [  735.505047] nouveau 0000:27:00.0: DRM: 
evicting buffers...
Jul 25 01:43:33 phs08 kernel: [  735.580082] nouveau 0000:27:00.0: DRM: waiting 
for kernel channels to go idle...
Jul 25 01:43:33 phs08 kernel: [  735.580105] nouveau 0000:27:00.0: DRM: 
suspending fence...
Jul 25 01:43:33 phs08 kernel: [  735.581462] nouveau 0000:27:00.0: DRM: 
suspending object tree...
Jul 25 01:43:33 phs08 kernel: [  737.956791] PM: suspend of devices complete 
after 2482.515 msecs
Jul 25 01:43:33 phs08 kernel: [  737.957846] PM: late suspend of devices 
complete after 1.050 msecs
Jul 25 01:43:33 phs08 kernel: [  737.958651] xhci_hcd 0000:28:00.3: System 
wakeup enabled by ACPI
Jul 25 01:43:33 phs08 kernel: [  737.959028] xhci_hcd 0000:22:00.0: System 
wakeup enabled by ACPI
Jul 25 01:43:33 phs08 kernel: [  737.959043] r8169 0000:25:00.0: System wakeup 
enabled by ACPI
Jul 25 01:43:33 phs08 kernel: [  737.959044] xhci_hcd 0000:03:00.0: System 
wakeup enabled by ACPI
Jul 25 01:43:33 phs08 kernel: [  743.441059] PM: noirq suspend of devices 
complete after 5482.825 msecs
Jul 25 01:43:33 phs08 kernel: [  743.441087] ACPI: Preparing to enter system 
sleep state S3
Jul 25 01:43:33 phs08 kernel: [  743.761477] PM: Saving platform NVS memory
Jul 25 01:43:33 phs08 kernel: [  743.761495] Disabling non-boot CPUs ...

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1705748

Title:
  Samsung SSD 960 EVO 500GB refused to change power state

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Originally thought my issue was same as this:
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1678184
  but requested to report as separate bug

  System becomes unusable at seemingly random times but especially after
  resume from suspend due to disk 'disappearing' becoming inaccessible,
  with hundreds of I/O errors logged.

  After viewing the above bug report yesterday as a quick temporary fix I added 
kernel param, updated grub, etc with:
  GRUB_CMDLINE_LINUX_DEFAULT="nvme_core.default_ps_max_latency_us=0"

  System appears to have been stable for the last day, but is presumably
  using more power than it should.

  System, drive details below:

  M2 nvme drive: Samsung SSD 960 EVO 500GB

  Ubuntu 4.10.0-26.30~16.04.1-generic 4.10.17

  M/B Asus Prime B350m-A
  Ryzen 1600 cpu

  Jul 20 16:32:59 phs08 kernel: [ 190.893571] INVALID_DEVICE_REQUEST 
device=00:00.0 address=0xfffffffdf8000000 flags=0x0a00]
  Jul 20 16:33:05 phs08 kernel: [ 197.010928] nvme 0000:01:00.0: controller is 
down; will reset: CSTS=0xffffffff, PCI_STATUS=0xffff
  Jul 20 16:33:05 phs08 kernel: [ 197.046980] pci_raw_set_power_state: 4 
callbacks suppressed
  Jul 20 16:33:05 phs08 kernel: [ 197.046985] nvme 0000:01:00.0: Refused to 
change power state, currently in D3
  Jul 20 16:33:05 phs08 kernel: [ 197.047163] nvme nvme0: Removing after probe 
failure status: -19
  Jul 20 16:33:05 phs08 kernel: [ 197.047182] nvme0n1: detected capacity change 
from 500107862016 to 0
  Jul 20 16:33:05 phs08 kernel: [ 197.047793] blk_update_request: I/O error, 
dev nvme0n1, sector 0

  
  nvme list

  /dev/nvme0n1 S3EUNX0J305518L Samsung SSD 960 EVO 500GB 1.2 1 125.20 GB
  / 500.11 GB 512 B + 0 B 2B7QCXE7

  sudo nvme id-ctrl /dev/nvme0

  NVME Identify Controller:
  vid : 0x144d
  ssvid : 0x144d
  sn : S3EUNX0J305518L
  mn : Samsung SSD 960 EVO 500GB
  fr : 2B7QCXE7
  rab : 2
  ieee : 002538
  cmic : 0
  mdts : 9
  cntlid : 2
  ver : 10200
  rtd3r : 7a120
  rtd3e : 4c4b40
  oaes : 0
  oacs : 0x7
  acl : 7
  aerl : 3
  frmw : 0x16
  lpa : 0x3
  elpe : 63
  npss : 4
  avscc : 0x1
  apsta : 0x1
  wctemp : 350
  cctemp : 352
  mtfa : 0
  hmpre : 0
  hmmin : 0
  tnvmcap : 500107862016
  unvmcap : 0
  rpmbs : 0
  sqes : 0x66
  cqes : 0x44
  nn : 1
  oncs : 0x1f
  fuses : 0
  fna : 0x5
  vwc : 0x1
  awun : 255
  awupf : 0
  nvscc : 1
  acwu : 0
  sgls : 0
  ps 0 : mp:6.04W operational enlat:0 exlat:0 rrt:0 rrl:0
            rwt:0 rwl:0 idle_power:- active_power:-
  ps 1 : mp:5.09W operational enlat:0 exlat:0 rrt:1 rrl:1
            rwt:1 rwl:1 idle_power:- active_power:-
  ps 2 : mp:4.08W operational enlat:0 exlat:0 rrt:2 rrl:2
            rwt:2 rwl:2 idle_power:- active_power:-
  ps 3 : mp:0.0400W non-operational enlat:210 exlat:1500 rrt:3 rrl:3
            rwt:3 rwl:3 idle_power:- active_power:-
  ps 4 : mp:0.0050W non-operational enlat:2200 exlat:6000 rrt:4 rrl:4
            rwt:4 rwl:4 idle_power:- active_power:-
  --- 
  ApportVersion: 2.20.1-0ubuntu2.10
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  drgrumpy   2192 F.... pulseaudio
   /dev/snd/pcmC1D0p:   drgrumpy   2192 F...m pulseaudio
   /dev/snd/controlC1:  drgrumpy   2192 F.... pulseaudio
  DistroRelease: Linux 18.2
  EcryptfsInUse: Yes
  HibernationDevice: RESUME=UUID=a6896cdd-6bac-4e7f-9e13-55460859c3ec
  InstallationDate: Installed on 2017-07-06 (15 days ago)
  InstallationMedia: Linux Mint 18.2 "Sonya" - Release amd64 20170628
  IwConfig:
   lo        no wireless extensions.
   
   enp37s0   no wireless extensions.
  MachineType: System manufacturer System Product Name
  Package: linux (not installed)
  ProcEnviron:
   LANGUAGE=en_GB:en
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 nouveaufb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.10.0-26-generic 
root=UUID=f7ae652b-cbf6-48b8-bc6a-d3963957ab57 ro 
nvme_core.default_ps_max_latency_us=0
  ProcVersionSignature: Ubuntu 4.10.0-26.30~16.04.1-generic 4.10.17
  PulseList:
   Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not 
accessible: Permission denied
   No PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-4.10.0-26-generic N/A
   linux-backports-modules-4.10.0-26-generic  N/A
   linux-firmware                             1.157.11
  RfKill:
   
  Tags:  sonya
  Uname: Linux 4.10.0-26-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:
   
  _MarkForUpload: True
  dmi.bios.date: 06/20/2017
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 0805
  dmi.board.asset.tag: Default string
  dmi.board.name: PRIME B350M-A
  dmi.board.vendor: ASUSTeK COMPUTER INC.
  dmi.board.version: Rev X.0x
  dmi.chassis.asset.tag: Default string
  dmi.chassis.type: 3
  dmi.chassis.vendor: Default string
  dmi.chassis.version: Default string
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr0805:bd06/20/2017:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnPRIMEB350M-A:rvrRevX.0x:cvnDefaultstring:ct3:cvrDefaultstring:
  dmi.product.name: System Product Name
  dmi.product.version: System Version
  dmi.sys.vendor: System manufacturer

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1705748/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to