Western Digital SSD freezes on power saving

From: Frank Tornack
Date: Sun Jan 28 2024 - 07:36:41 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello Linux kernel developers and experts,

I have a question that I think is not tied to a specific distribution
and goes pretty deep into the Linux kernel. I hope you can help me
without subscribing to the mailing list and remember to include me in
the answer discussion.

In my old notebook I used an nvme-ssd from WD (wds500g1b0c-00s6u0),
which is affected by a well-known bug. I currently use the parameter
`nvme_core.default_ps_max_latency_us=0` to prevent the system from
freezing.

I would like to use a new SSD in my new notebook. However, as it is
difficult to sell used SSDs, I would like to continue using the old SSD
affected by the bug. I plan to move the SSD to a Thunderbolt enclosure
for this purpose. I think since Thunderbolt is based on PCIe, the same
energy saving measures and the associated bugs will probably apply.

In the hope that my new SSD doesn't have the same bug, I would prefer
not to disable the Powersafe in the laptop. Is there a way to set this
flag only for a specific SSD? By identifying it by name or serial
number?

I apologise prophylactically if my question is completely out of place
and thank you for your help. As a long-time Linux user, I would also
like to thank you in general. If you have any follow-up questions,
please do not hesitate to contact me.

- --
Frank Tornack <f-tornack@xxxxxxxxxxx>
Privat
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQSKs5ZJ/d3p8HqrcSZVreqZ0wXqzQUCZbZH7wAKCRBVreqZ0wXq
zcQkAPwMA+J3eO/S6T92Gsz9YBamYVHhwLlcUAG3qsYM2g8sRAD/UY+If8RlsT5V
uKg89rhH2bnWrVF9PKGU4ZamfHo8eQ0=
=gfie
-----END PGP SIGNATURE-----