← Back to team overview

kernel-packages team mailing list archive

[Bug 1591293] Re: kernel fails to boot from SSD on non AHCI chipset (NCQ unsupported)

 

** Summary changed:

- 16.10 kernel fails to boot from SSD on ASUS M2N68-AM SE
+ kernel fails to boot from SSD on non AHCI chipset (NCQ unsupported)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1591293

Title:
  kernel fails to boot from SSD on non AHCI chipset (NCQ unsupported)

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Ubuntu 16.04 64bits WON'T BOOT from a SSD Kinsgton Savage (2016) on chipset ASUS M2N68-AM SE (2010) with non-AHCI SATA2
  SATA Settings: 32 bit transfers: ENABLED,  AHCI mode: not available.
  Fresh installed system FREEZES inmediatly after starting to boot, PC looses its video signal.
  kern.log does not register anything.

  This motherboard does not support AHCI, but the SSD does.  Fresh
  installed 16.04 kernel does not disable NCQ (AHCI).

  Same system will slowly boot with errors when disabling 32 Bit transfers from BIOS, and freeze.
  Same PC boot ubuntustudio 12.04 live usb automatically disabling NCQ when SSD is connected.
  SAME SSD WILL BOOT without erros on chipset Intel Pinetrail-M with SATA3 and AHCI.
  (Same SSD and both PC boot fresh Windows 10 in sixteen seconds without any issue.)

  Other tests:
  SATA Settings: 32 BIT TRANSFER: DISABLED, AHCI: not available.
  System boots from SSD with ATA errors and taking some minutes when it should take some seconds.
  Kernel DOES NOT disable NCQ after failing (it does on 12.04 live, same PC)
  System becomes definetly unresponsive a few minutes after start up, mouse pointer still moves but does not respond to clicks, and PC has to be hard reset.
  (In the posterior boot, system cleans some orphan inodes for one of the dm-crypt volumes)

  kern.log:

  Jun  9 22:24:41 equipment kernel: [    0.000000] Linux version 4.4.0-21-generic (buildd@lgw01-21) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) ) #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 (Ubuntu 4.4.0-21.37-generic 4.4.6)
  Jun  9 22:24:41 equipment kernel: [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.4.0-21-generic root=UUID=88b24888-31fd-4a8e-98cd-f7e34b2bcc39 ro quiet splash
  ....
  Jun  9 22:24:41 equipment kernel: [    0.000000] DMI: System manufacturer System Product Name/M2N68-AM SE, BIOS 0804    07/26/2010
  ...
  Jun  9 22:24:41 equipment kernel: [    2.073694] ata4.00: ATA-9: KINGSTON SHSS37A480G, SAFM00.U, max UDMA/133
  Jun  9 22:24:41 equipment kernel: [    2.073697] ata4.00: 937703088 sectors, multi 16: LBA48 NCQ (depth 31/32)
  Jun  9 22:24:41 equipment kernel: [    2.073777] ata4.00: configured for UDMA/133
  Jun  9 22:24:41 equipment kernel: [    2.076892] ata3: SATA link down (SStatus 0 SControl 300)
  Jun  9 22:24:41 equipment kernel: [    2.077116] scsi 3:0:0:0: Direct-Access     ATA      KINGSTON SHSS37A 00.U PQ: 0 ANSI: 5
  Jun  9 22:24:41 equipment kernel: [    2.077421] sd 3:0:0:0: [sda] 937703088 512-byte logical blocks: (480 GB/447 GiB)
  Jun  9 22:24:41 equipment kernel: [    2.077494] sd 3:0:0:0: [sda] Write Protect is off
  Jun  9 22:24:41 equipment kernel: [    2.077496] sd 3:0:0:0: [sda] Mode Sense: 00 3a 00 00
  Jun  9 22:24:41 equipment kernel: [    2.077528] sd 3:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
  ...
  Jun  9 22:24:41 equipment kernel: [   33.997707] ata4.00: exception Emask 0x0 SAct 0x7ff4000 SErr 0x0 action 0x6 frozen
  Jun  9 22:24:41 equipment kernel: [   33.997731] ata4.00: failed command: READ FPDMA QUEUED
  Jun  9 22:24:41 equipment kernel: [   33.997742] ata4.00: cmd 60/08:70:f8:2f:80/00:00:11:00:00/40 tag 14 ncq 4096 in
  Jun  9 22:24:41 equipment kernel: [   33.997742]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  Jun  9 22:24:41 equipment kernel: [   33.997757] ata4.00: status: { DRDY }
  ... ( 1 time for each partition ) ...
  Jun  9 22:24:41 equipment kernel: [   33.998050] ata4.00: status: { DRDY }
  Jun  9 22:24:41 equipment kernel: [   33.998059] ata4: hard resetting link
  Jun  9 22:24:41 equipment kernel: [   34.317656] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
  Jun  9 22:24:41 equipment kernel: [   34.318498] ata4.00: configured for UDMA/133
  Jun  9 22:24:41 equipment kernel: [   34.318504] ata4.00: device reported invalid CHS sector 0
  ...
  Jun  9 22:24:41 equipment kernel: [   34.318524] ata4.00: device reported invalid CHS sector 0
  Jun  9 22:24:41 equipment kernel: [   34.318535] ata4: EH complete
  Jun  9 22:24:41 equipment kernel: [   64.970594] ata4.00: exception Emask 0x0 SAct 0x4fc00097 SErr 0x0 action 0x6 frozen
  Jun  9 22:24:41 equipment kernel: [   64.970612] ata4.00: failed command: READ FPDMA QUEUED
  Jun  9 22:24:41 equipment kernel: [   64.970623] ata4.00: cmd 60/08:00:80:7f:80/00:00:28:00:00/40 tag 0 ncq 4096 in
  Jun  9 22:24:41 equipment kernel: [   64.970623]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  Jun  9 22:24:41 equipment kernel: [   64.970638] ata4.00: status: { DRDY }
  ... (another time for each partition) ...
  Jun  9 22:24:41 equipment kernel: [   64.994812] ata4: hard resetting link
  Jun  9 22:24:41 equipment kernel: [   65.314544] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
  Jun  9 22:24:41 equipment kernel: [   65.315365] ata4.00: configured for UDMA/133
  Jun  9 22:24:41 equipment kernel: [   65.315368] ata4.00: device reported invalid CHS sector 0
  ... (another time for each partition)
  Jun  9 22:24:41 equipment kernel: [   65.315391] ata4: EH complete
  Jun  9 22:24:41 equipment kernel: [   95.943478] ata4.00: exception Emask 0x0 SAct 0x404403fe SErr 0x0 action 0x6 frozen
  Jun  9 22:24:41 equipment kernel: [   95.943852] ata4.00: failed command: READ FPDMA QUEUED
  Jun  9 22:24:41 equipment kernel: [   95.944688] ata4.00: cmd 60/08:08:e0:72:80/00:00:27:00:00/40 tag 1 ncq 4096 in
  Jun  9 22:24:41 equipment kernel: [   95.944688]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  Jun  9 22:24:41 equipment kernel: [   95.946796] ata4.00: status: { DRDY }
  ... (another time for each partition) ...
  Jun  9 22:24:41 equipment kernel: [  127.285212] ata4: EH complete
  Jun  9 22:24:41 equipment kernel: [  130.229590] random: nonblocking pool is initialized
  Jun  9 22:24:41 equipment kernel: [  138.186900] NET: Registered protocol family 38
  Jun  9 22:24:41 equipment kernel: [  148.716604] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
  Jun  9 22:24:41 equipment kernel: [  149.088932] lp: driver loaded but no devices found
  Jun  9 22:24:41 equipment kernel: [  149.097246] ppdev: user-space parallel port driver
  Jun  9 22:24:41 equipment kernel: [  149.254278] EXT4-fs (dm-0): re-mounted. Opts: errors=remount-ro
  ... (system finally boots, but freezes) ...


  ANOTHER TESTS:
  Ubuntu 16.04 64bits boot from SSD in a 2012 Intel Pinetrail-M with SATA3 ports, AHCI, and common BIOS. (non UEFI)
  SATA Settings:  AHCI mode: extended,  AHCI extension: enabled,  32 bit transfers: enabled OR disabled.
  System boots normally from SSD without any errors.

  kern.log:

  Jun  9 15:46:36 equipment kernel: [    0.000000] Linux version 4.4.0-21-generic (buildd@lgw01-21) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) ) #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 (Ubuntu 4.4.0-21.37-generic 4.4.6)
  Jun  9 15:46:36 equipment kernel: [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.4.0-21-generic root=UUID=88b24885-31fd-4a8e-98cd-f7e34b2bcc39 ro quiet splash vt.handoff=7
  ...
  Jun  9 16:36:54 equipment kernel: [    0.000000] DMI: Intel Corporation Pine Trail - M    /Pine Trail - M    , BIOS 6.00 09/28/2011
  ...
  Jun  9 15:46:36 equipment kernel: [    4.196178] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
  Jun  9 15:46:36 equipment kernel: [    4.196259] ata2: SATA link down (SStatus 0 SControl 300)
  Jun  9 15:46:36 equipment kernel: [    4.197128] ata1.00: ATA-9: KINGSTON SHSS37A480G, SAFM00.U, max UDMA/133
  Jun  9 15:46:36 equipment kernel: [    4.197136] ata1.00: 937703088 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
  Jun  9 15:46:36 equipment kernel: [    4.197403] ata1.00: configured for UDMA/133
  Jun  9 15:46:36 equipment kernel: [    4.197846] scsi 0:0:0:0: Direct-Access     ATA      KINGSTON SHSS37A 00.U PQ: 0 ANSI: 5
  Jun  9 15:46:36 equipment kernel: [    4.198578] sd 0:0:0:0: [sda] 937703088 512-byte logical blocks: (480 GB/447 GiB)
  Jun  9 15:46:36 equipment kernel: [    4.198612] sd 0:0:0:0: Attached scsi generic sg0 type 0
  Jun  9 15:46:36 equipment kernel: [    4.198981] sd 0:0:0:0: [sda] Write Protect is off
  Jun  9 15:46:36 equipment kernel: [    4.198996] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
  Jun  9 15:46:36 equipment kernel: [    4.199117] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
  Jun  9 15:46:36 equipment kernel: [    4.203108]  sda: sda1 sda2 < sda5 sda6 > sda3 sda4
  Jun  9 15:46:36 equipment kernel: [    4.206065] sd 0:0:0:0: [sda] Attached SCSI disk
  ...

  Then kernel finish booting and system works perfectly on Pine Trail M.

  I will try to disable NCQ by parameter in the kernel run command, as
  M2N68AM-SE is my everyday-work PC.

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