Hi Kelvin,                                                                      
                                                                                
                                             
                                                                                
                                                                                
                                                  
     In Comment #51, the command failed because `10000:03:00.0` is the NVMe 
drive that was just removed. The bridge that stays behind is `10000:00:05.0` 
(bus 00, not bus 03).                                                           
                                                                                
                                                          
                                                                                
                                                                                
                                                  
     The correct manual commands to reset the empty slots on the current kernel 
are:                                                                            
                                                  
                                                                                
                                                                                
                                                  
       echo 1 > /sys/bus/pci/devices/10000:00:03.0/reset_subordinate   # Slot 
65                                                                              
                                                    
       echo 1 > /sys/bus/pci/devices/10000:00:05.0/reset_subordinate   # Slot 
66                                                                              
                                                    
                                                                                
                                                                                
                                                  
     Alternatively, I built a test kernel [1] where the VMD driver does this 
reset automatically upon drive removal, so no manual commands are needed.  
                                                                                
                                                                                
                                                  
     To test:                                                                   
                                                                                
                                                  
     1. Boot normally (without iommu.strict=1).                                 
                                                                                
                                                  
     2. Unplug the drives. If using the current kernel, run the two commands 
above while the slots are empty. (If using the new kernel, it resets 
automatically).                                                 
     3. Replug the drives and check:                                            
                                                                                
                                                  
        nvme list                                                               
                                                                                
                                                  
        lsblk                                                                   
                                                                                
                                                  
     4. Repeat 3 cycles. 


https://drive.google.com/file/d/1nQbLM4vQP2qxFJ1Wa66udSzr2vhUhaVg/view?usp=sharing

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2148638

Title:
  ubuntu 26.04 - When the NVME hard drives were hot-swapped, the OS
  reported an error and some of the drives were not recognized.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2148638/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to