Comment 13 for bug 1805816

Revision history for this message
David Pol (daviubu) wrote :

I have the same problem on Thinkpad X1 Carbon 5th gen with NVMe drive. I get read-only rootfs every time I suspend my laptop (e.g. by closing the laptop's lid).

Things were fine under Ubuntu Xenial 16.04. Once I upgraded to the latest LTS 18.04 the problem started. I was using the toshiba NVMe drive (256GB). Then I upgraded to the following drive (samsung ssd 970 evo 500GB) however the problem persisted:

# nvme id-ctrl /dev/nvme0
NVME Identify Controller:
vid : 0x144d
ssvid : 0x144d
sn : S4EVNG0M217854Y
mn : Samsung SSD 970 EVO Plus 500GB
fr : 1B2QEXM7
rab : 2
ieee : 002538
cmic : 0
mdts : 9
cntlid : 4
ver : 10300
rtd3r : 30d40
rtd3e : 7a1200
oaes : 0
ctratt : 0
oacs : 0x17
acl : 7
aerl : 3
frmw : 0x16
lpa : 0x3
elpe : 63
npss : 4
avscc : 0x1
apsta : 0x1
wctemp : 358
cctemp : 358
mtfa : 0
hmpre : 0
hmmin : 0
tnvmcap : 500107862016
unvmcap : 0
rpmbs : 0
edstt : 35
dsto : 0
fwug : 0
kas : 0
hctma : 0x1
mntmt : 356
mxtmt : 358
sanicap : 0
hmminds : 0
hmmaxd : 0
sqes : 0x66
cqes : 0x44
maxcmd : 0
nn : 1
oncs : 0x5f
fuses : 0
fna : 0x5
vwc : 0x1
awun : 1023
awupf : 0
nvscc : 1
acwu : 0
sgls : 0
subnqn :
ioccsz : 0
iorcsz : 0
icdoff : 0
ctrattr : 0
msdbd : 0
ps 0 : mp:7.80W operational enlat:0 exlat:0 rrt:0 rrl:0
          rwt:0 rwl:0 idle_power:- active_power:-
ps 1 : mp:6.00W operational enlat:0 exlat:0 rrt:1 rrl:1
          rwt:1 rwl:1 idle_power:- active_power:-
ps 2 : mp:3.40W operational enlat:0 exlat:0 rrt:2 rrl:2
          rwt:2 rwl:2 idle_power:- active_power:-
ps 3 : mp:0.0700W non-operational enlat:210 exlat:1200 rrt:3 rrl:3
          rwt:3 rwl:3 idle_power:- active_power:-
ps 4 : mp:0.0100W non-operational enlat:2000 exlat:8000 rrt:4 rrl:4
          rwt:4 rwl:4 idle_power:- active_power:-

I tried different kernels. 4.15.18 , 4.20.17 , 5.1.15.
Currently on:
 4.15.18-041518-generic #201804190330 SMP Thu Apr 19 07:34:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

None seem to fix it.

I tried the suggested solution by setting nvme_core.default_ps_max_latency_us=
to 5500, 200, and 0
Currently using:
nvme_core.default_ps_max_latency_us=0

APST is now disabled:

# nvme get-feature -f 0x0c -H /dev/nvme0
get-feature:0xc (Autonomous Power State Transition), Current value:00000000
 Autonomous Power State Transition Enable (APSTE): Disabled
 Auto PST Entries .................
 Entry[ 0]
 .................
 Idle Time Prior to Transition (ITPT): 0 ms
 Idle Transition Power State (ITPS): 0

The problem persists however.... As soon as I close the lid / suspend the laptop, it won't recover from this suspend, instead it hangs with the black screen with

EXT4-fs error (device nvme0n1p2) : I/O error while writing superblock
and so on...

Is there any solution to this yet?

Thanks