NVMe-related crashes and instability, plus a solution
#11
(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.
  Reply
#12
...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.
  Reply
#13
(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_Pr...SSD_drives
  Reply
#14
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
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  NVMe drives not detected mattpenn 10 1,145 Yesterday, 12:37 PM
Last Post: mattpenn
  Anyone selling a spare NVMe adapter in Europe? tom.tomasz 2 130 01-03-2022, 07:57 AM
Last Post: tom.tomasz
  NVme intall usage? tkudog 1 358 11-08-2021, 10:42 AM
Last Post: tkudog
  NVMe SSD testing methodology halogen 1 877 07-22-2021, 05:57 PM
Last Post: calinb
Question Battery stops charging and NVMe and other media disconnect randomly Eey0zu6O 4 1,446 07-09-2021, 08:45 PM
Last Post: moonwalkers
  nvme drive disappears after about an hour of uptime codebreaker 25 15,053 02-09-2021, 11:32 PM
Last Post: dsimic
  NVME SPI Update not booting SD Card WZ9V 5 3,033 10-18-2020, 08:36 PM
Last Post: wdt
  Possible to upgrade PBP with NVMe M.2 1TB SSD from Sabrent? kkdao 15 9,695 08-22-2020, 05:20 AM
Last Post: kkdao
  LTE adapter via NVMe grego 2 2,788 07-08-2020, 01:37 PM
Last Post: manawyrm
  Pro NVMe adapter Does not fit ! ? bcnaz 110 63,274 07-03-2020, 10:51 PM
Last Post: xmixahlx

Forum Jump:


Users browsing this thread: 1 Guest(s)