← Back to team overview

kernel-packages team mailing list archive

[Bug 1338706] Re: Samsung SSD 840 failed to get NCQ Send/Recv Log Emask 0x1 failed to set xfermode (err_mask=0x40) on upstream kernels >= 3.12


I've updated to the latest kernel via Vivid Proposed (linux-image-
extra-3.19.0-22-generic   3.19.0-22.22) which per commit log should fix
the error, but I still see it:

$ dmesg | grep ata
[    0.000000] BIOS-e820: [mem 0x00000000c8f9e000-0x00000000c8ffffff] ACPI data
[    0.000000] ACPI: SSDT 0x00000000C8FE6258 0003D2 (v01 SataRe SataTabl 00001000 INTL 20120711)
[    0.000000] Memory: 8056616K/8291736K available (8001K kernel code, 1232K rwdata, 3752K rodata, 1408K init, 1300K bss, 235120K reserved, 0K cma-reserved)
[    0.233271] ACPI : EC: GPE = 0x10, I/O: command/status = 0x934, data = 0x930
[    0.233500] libata version 3.00 loaded.
[    0.573463] Write protecting the kernel read-only data: 12288k
[    0.613795] ata1: SATA max UDMA/133 abar m2048@0xf7d3a000 port 0xf7d3a100 irq 28
[    0.613798] ata2: SATA max UDMA/133 abar m2048@0xf7d3a000 port 0xf7d3a180 irq 28
[    0.613800] ata3: SATA max UDMA/133 abar m2048@0xf7d3a000 port 0xf7d3a200 irq 28
[    0.613801] ata4: DUMMY
[    0.613802] ata5: DUMMY
[    0.932913] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    0.933919] ata1.00: failed to get NCQ Send/Recv Log Emask 0x1
[    0.933922] ata1.00: ATA-9: Samsung SSD 840 Series, DXT09B0Q, max UDMA/133
[    0.933924] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    0.934365] ata1.00: failed to get NCQ Send/Recv Log Emask 0x1
[    0.934369] ata1.00: configured for UDMA/133
[    0.934578] ata1.00: Enabling discard_zeroes_data
[    0.934724] ata1.00: Enabling discard_zeroes_data
[    0.935481] ata1.00: Enabling discard_zeroes_data
[    1.252796] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    1.255611] ata2.00: ATAPI: HL-DT-ST DVD+/-RW GU90N, A100, max UDMA/100
[    1.260480] ata2.00: configured for UDMA/100
[    1.604669] ata3: SATA link down (SStatus 0 SControl 300)
[    1.630033] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    1.848143] systemd[1]: Starting Increase datagram queue length...
[    1.858239] systemd[1]: Started Increase datagram queue length.
[    3.471525] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)

I'm on an old Samsung SSD840 (first series) (not EVO or PRO)

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  Samsung SSD 840 failed to get NCQ Send/Recv Log Emask 0x1 failed to
  set xfermode (err_mask=0x40) on upstream kernels >= 3.12

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Trusty:
  Fix Committed
Status in linux source package in Utopic:
  Fix Committed
Status in linux source package in Vivid:
  Fix Committed
Status in linux source package in Wily:
  Fix Released

Bug description:

   * Users with Samsung 8** SSD drives see miscellaneous errors and
  warning messages in the logs depending on the firmware level of the
  drive while booting or after running trim.

  [Test Case]

   * Run this script, and then check logs for errors.

  git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  for i in {0..10} ; do
   cp -r linux linux$i
  rm -rf linux*
  echo "sudo fstrim requires your password"
  sudo fstrim ./

  [Regression Potential]

   * There is very little regression potential as this change simply
  prevents NCQ trim from being used on Samsung 8** drives.

  [Other Info]

   * Commit is upstream.
   * Greatly increasing the timeout for the drives seems to relieve the timeout errors.  This may be due to trimming large numbers of sectors with single commands.  It may be prudent for future upstream to break up large trims into multiple requests on smaller regions.

  ===============Original Bug description ==================================
  Samsung SSD 840 Series failed to get NCQ Send/Recv Log Emask 0x1.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: linux-image-3.13.0-30-generic 3.13.0-30.55
  ProcVersionSignature: Ubuntu 3.13.0-30.55-generic
  Uname: Linux 3.13.0-30-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.2
  Architecture: amd64
   /dev/snd/controlC0:  user       2131 F.... pulseaudio
  CurrentDesktop: Unity
  Date: Mon Jul  7 20:01:28 2014
  HibernationDevice: RESUME=UUID=685afcb7-7aa6-4048-af15-091d3bcd3b35
  InstallationDate: Installed on 2014-06-22 (14 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
   eth0      no wireless extensions.

   lo        no wireless extensions.
  MachineType: System manufacturer System Product Name
  ProcFB: 0 nouveaufb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.13.0-30-generic root=UUID=d7c2e1cb-d046-460c-83b8-0cfbb330d095 ro quiet splash vt.handoff=7
   linux-restricted-modules-3.13.0-30-generic N/A
   linux-backports-modules-3.13.0-30-generic  N/A
   linux-firmware                             1.127.4

  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 09/10/2010
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 0901
  dmi.board.asset.tag: To Be Filled By O.E.M.
  dmi.board.name: M3N78-EM
  dmi.board.vendor: ASUSTeK Computer INC.
  dmi.board.version: Rev X.0x
  dmi.chassis.asset.tag: Asset-1234567890
  dmi.chassis.type: 3
  dmi.chassis.vendor: Chassis Manufacture
  dmi.chassis.version: Chassis Version
  dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0901:bd09/10/2010:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnM3N78-EM:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
  dmi.product.name: System Product Name
  dmi.product.version: System Version
  dmi.sys.vendor: System manufacturer

To manage notifications about this bug go to: