You are not logged in.

#1 2020-07-15 05:20:43

plamco
Member
Registered: 2020-07-15
Posts: 5

nvme not detected

After upgrade to kernel 5.7.8 and lts-5.4.51 linux is not detecting nvme drive and won't boot with both linux and linux-lts

device is:
01:00.0 Non-Volatile memory controller: Silicon Motion, Inc. Device 2263 (rev 03)

Motherboard is Gigabyte J4005ND2P-CF

This happened again last year with some kernel versions until get fixed in next releases. And again now.
I had to rollback to kernel 5.7.7 to get it work..

Offline

#2 2020-07-16 20:07:07

maximtrp
Member
Registered: 2020-07-16
Posts: 1

Re: nvme not detected

I have the same issue with this NVM controller. I have tried the newest linux-hardened 5.7.9 kernel. It is not booting either. Even the latest linux-lts is not working.

Offline

#3 2020-07-16 21:07:21

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: nvme not detected

Is there an upstream bug report? (not the arch bug tracker)
Have you identified the commit that introduce the issue between 5.7.7 and 5.7.8 or 5.4.50 and 5.4.51?
Edit:
Between 5.7.7 and 5.7.8
The following are changes to the NVME subsystem
https://git.kernel.org/pub/scm/linux/ke … 9a637c77ee
https://git.kernel.org/pub/scm/linux/ke … 0a0b8b8536
https://git.kernel.org/pub/scm/linux/ke … 13210f4060
https://git.kernel.org/pub/scm/linux/ke … c16982e6d4
The following are commits to nvme-multipath
https://git.kernel.org/pub/scm/linux/ke … 0ea1c56cc0
https://git.kernel.org/pub/scm/linux/ke … 191a3310a2
https://git.kernel.org/pub/scm/linux/ke … 875f0ec616
See also Bisecting_bugs_with_Git and Patching_packages.

Last edited by loqs (2020-07-16 21:36:07)

Offline

#4 2020-07-17 17:57:12

EvilTak
Member
Registered: 2020-07-17
Posts: 3

Re: nvme not detected

Both the problem and the solution (downgrading to 5.7.7) applied to me as well. Interestingly, the kernel was able to detect one of the two NVMe drives installed in my system (`blkid` displayed the partitions on that drive), but not the drive that my root partition was on. Apparently OP made an upstream bug report, where a comment mentions the offending commit.

Offline

#5 2020-07-19 21:39:57

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Offline

#6 2020-07-19 21:58:16

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,281

Re: nvme not detected

Oh, for crying out loud. I fitted my first ever nvme drive today (these things are tiny), and it's taken hours to get my system booting again (user error - not hardware). Please don't tell me I have to keep my old SSD boot drive live for longer, before I add it to a SSD RAID.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#7 2020-07-22 03:20:31

sboyette
Member
Registered: 2019-08-07
Posts: 5

Re: nvme not detected

I just got bitten by this as well -- after getting bitten by it last year. Super fun times, to have kernel devs break your hardware *twice*.

Offline

#8 2020-07-22 10:40:58

plamco
Member
Registered: 2020-07-15
Posts: 5

Re: nvme not detected

I am just wondering if issue is fixed in 5.7.10

Offline

#9 2020-07-22 22:08:25

EvilTak
Member
Registered: 2020-07-17
Posts: 3

Re: nvme not detected

plamco wrote:

I am just wondering if issue is fixed in 5.7.10

Doesn't look like it.

Last edited by EvilTak (2020-07-22 22:08:37)

Offline

#10 2020-07-24 04:57:37

plamco
Member
Registered: 2020-07-15
Posts: 5

Re: nvme not detected

Unfortunately issue is not fixed in 5.7.10

Offline

#11 2020-07-30 21:34:46

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: nvme not detected

Please try https://git.kernel.org/pub/scm/linux/ke … a6f841417a on top of 5.7.11 or 5.8-rc7

Offline

#12 2020-08-01 01:58:52

Lindomar
Member
Registered: 2020-08-01
Posts: 4

Re: nvme not detected

To be able to start my system I'm using the "archiso" kernel 5.7.6-arch1-1

# uname -a
Linux archxhost 5.7.6-arch1-1 #1 SMP PREEMPT Thu, 25 Jun 2020 00:14:47 +0000 x86_64 GNU/Linux

Offline

#13 2020-08-01 03:30:35

Lindomar
Member
Registered: 2020-08-01
Posts: 4

Re: nvme not detected

https://gitlab.com/leendomar/boot-nvme-archlinux
My solution, I wish it to be temporary.

Offline

#14 2020-08-01 08:23:56

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: nvme not detected

You can obtain an older version of the kernel packages from the ALA,  then you can build the current version with patch applied.

Offline

#15 2020-08-01 21:44:02

Lindomar
Member
Registered: 2020-08-01
Posts: 4

Re: nvme not detected

loqs wrote:

You can obtain an older version of the kernel packages from the ALA,  then you can build the current version with patch applied.

Thanks, I didn't find the file.
it was much simpler.

Offline

#16 2020-08-01 22:00:58

Lindomar
Member
Registered: 2020-08-01
Posts: 4

Re: nvme not detected

loqs wrote:

Please try https://git.kernel.org/pub/scm/linux/ke … a6f841417a on top of 5.7.11 or 5.8-rc7

the patch you indicated, it worked for me

~ $ uname -a
Linux archxhost 5.7.12-arch1-1-custom #1 SMP PREEMPT Sat, 01 Aug 2020 18:36:32 +0000 x86_64 GNU/Linux

Offline

#17 2020-08-02 11:43:05

Theowhy
Member
Registered: 2020-08-02
Posts: 1

Re: nvme not detected

loqs wrote:

Please try https://git.kernel.org/pub/scm/linux/ke … a6f841417a on top of 5.7.11 or 5.8-rc7

The patch is also working for me on top of 5.7.11.

Offline

#18 2020-08-03 03:39:43

EvilTak
Member
Registered: 2020-07-17
Posts: 3

Re: nvme not detected

The patch has been introduced in 5.8, which was released 6 hours ago. The arch package for linux 5.8 isn't out yet, however.

Offline

#19 2020-08-03 13:46:00

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: nvme not detected

It is queued for 5.7.13 if the linux package has not switched to 5.8.

Offline

#20 2020-08-03 21:54:53

sboyette
Member
Registered: 2019-08-07
Posts: 5

Re: nvme not detected

loqs wrote:

It is queued for 5.7.13 if the linux package has not switched to 5.8.

Good to know. Thank you.

Offline

#21 2020-08-12 06:24:25

plamco
Member
Registered: 2020-07-15
Posts: 5

Re: nvme not detected

sboyette wrote:
loqs wrote:

It is queued for 5.7.13 if the linux package has not switched to 5.8.

Good to know. Thank you.

Is the patch introdused in linux-lts as well?

Offline

#22 2020-08-12 08:16:02

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: nvme not detected

plamco wrote:

Is the patch introdused in linux-lts as well?

Unfortunately not .  I suggest mailing the linux stable mailing listing stable@vger.kernel.org asking for 5bedd3afee8eb01ccd256f0cd2cc0fa6f841417a to be backported to 5.4.y to fix c64141c68f725068440fbc13eb63dbb283e99168 as it was backported to 5.7 as 02963f5752032ab987fae7b450d5e1e357e7425b to fix e2cb0c5635ecf7d8f2bde9971edbe00a0b8b8536.

Offline

#23 2020-08-15 13:14:24

plamco
Member
Registered: 2020-07-15
Posts: 5

Re: nvme not detected

Patch is queued in 5.4 stable so maybe in next release of linux-lts it will be introduced.
Also just upgraded to 5.8.1 and the issue is fixed. My controller works.

Offline

#24 2021-02-20 00:31:23

alex_bgoode
Member
Registered: 2021-02-20
Posts: 14

Re: nvme not detected

I have the same problem starting with 5.10. Anyone ran into this again?

Offline

#25 2021-02-20 00:50:21

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: nvme not detected

@alex_bgoode please post the full dmesg output from a 5.10 boot and a 5.4 boot.

Offline

Board footer

Powered by FluxBB