PINE64
NVMe-related crashes and instability, plus a solution - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Pinebook Pro Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=116)
+--- Thread: NVMe-related crashes and instability, plus a solution (/showthread.php?tid=11683)

Pages: 1 2


RE: NVMe-related crashes and instability, plus a solution - dangowrt - 11-01-2021

(10-13-2020, 08:47 AM)Jojonintendo Wrote: Edit: it works in the end. After setting the kernel parameter it does indeed disable APST, which by default sets the drive to its most powerful state. However after that I can correctly force the PS 2 and have a working system, no longer crashing no matter the workload (been trying to crash it for 2-3 hours now with heavy IO). Even setting it to PS 1 still works, however I don't notice any improvement in responsiveness nor peak performance, so I prefer to stay at ~3W (PS 2) vs 4.2W (PS 1). If the PBP is plugged to the wall, then I can use the PS 0 as much as i want and it doesn't crash, so it definitely was a power issue.

Can you elaborate more on what you did to prevent these crashes?
I've recently installed Samsung SSD 970 EVO Plus 1TB (brand new, up-to-date firmware) in my Pinebook Pro (recent batch, arrived April 2021).
I'm running Manjaro with Linux 5.14.12-1-MANJARO-ARM. From what it looks, the unstable 2 GHz OPP has already been removed upstream and also the override of `max-link-speed` has been removed, resulting in value `1` like it should be.

Yet, unfortunately, the laptop crashes immediately once I even just try to carefully access the SSD (it took several attempts for mkfs, now mount and subsequent ls of the empty drive is enough to cause immediate Oops), with a stack-trace similar to the one in this post (searching for ` arm64_serror_panic` is what brought me here...).

I've tried setting `nvme_core.default_ps_max_latency_us=0` which results in APSTE being disabled. Also that doesn't make any difference when it comes to stability.

I've double checked the hardware connection and it looks quite ok (the flat-cable is slightly too long it seems, I'd say about 0.7mm, but it's fully inserted on both ends and I've used this type of PCB connector before...)

How do you force the drive into a specific power state?

According to `smartctl` the drive has Op state 0 with 7.80W, state 1 with 6.00W and state 2 with 3.40W. As I'm not expecting to get anywhere near the possible performance of the drive with the Pinebook Pro now only supporting PCIe Gen 1, I believe forcing or limiting it into state 2 might be a good idea.

Edit 1: found hints that ribbon cable cleanness might be the issue, cleaned all contacts of both ends as well as the contacts of the M.2 SSD module with isopropanol => situation unchanged.


RE: NVMe-related crashes and instability, plus a solution - josmo - 12-08-2021

...don't know if rehashing same old questions on about which nvme (dramless) is lowest on power consumption (idle) for the pbp to post in this thread is appropriate ,
but if anybody has a suggestion ? i was contemplating of acquiring a wd blue 550/750 in 500g ,hynix Gold P31 1TB/500g or a Patriot P300 in 500g ,they are all gen3
the best deal I've seen is with the wd blue 550 ($43 us) but read some horrible stats on idle performance
even with ps2 under 2w in the wiki post.


RE: NVMe-related crashes and instability, plus a solution - tophneal - 12-09-2021

(12-08-2021, 11:04 PM)josmo Wrote: ...don't know if rehashing same old questions on about which nvme (dramless) is lowest on power consumption (idle) for the pbp to post in this thread is appropriate ,
but if anybody has a suggestion ?  i was contemplating of acquiring  a wd blue 550/750 in 500g ,hynix Gold P31 1TB/500g or a Patriot P300 in 500g ,they are all gen3
the best deal I've seen is with the wd blue 550 ($43 us) but read some horrible stats on idle performance
even with ps2 under 2w in the wiki post.

please see the wiki page for noted working nvme ssds https://wiki.pine64.org/wiki/Pinebook_Pro_Hardware_Accessory_Compatibility#NVMe_SSD_drives


RE: NVMe-related crashes and instability, plus a solution - josmo - 12-10-2021

Hey thanks, I've been going through that list and been reading about their issues and the rk3399's limitation with nvme drives...just wondered what consensus there is  for the sweet spot for the nvme drive ,like maybe the Crucial P2 500GB
CT500P2SSD8 for an example ?
low power consumption is  most important for me

ps: I finally opted for the hynix Gold P31 ssd pcie nvme 500GB
seems to work nicely with arch and tow-boot Smile