Comment 95 for bug 445852

Revision history for this message
rogmorri (frontporsche) wrote : Re: SSD stall during boot

It seems that if I do this as root....

  int k = open("/dev/sda", O_WRONLY|O_LARGEFILE);
  ioctl(k,BLKFLSBUF,0);
  close(k);

...then 15~30 seconds later I see this on the console ...

[33458.988232] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[33458.994551] ata2.00: BMDMA stat 0x4
[33459.001646] ata2.00: cmd ca/00:08:ef:00:40/00:00:00:00:00/e0 tag 0 dma 4096 out
[33459.001657] res 58/00:08:ef:00:40/00:00:00:00:00/e0 Emask 0x2 (HSM violation)
[33459.014157] ata2.00: status: { DRDY DRQ }

but dmesg shows a bit more....

[33458.988145] ata2: lost interrupt (Status 0x58)
[33458.988232] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[33458.994551] ata2.00: BMDMA stat 0x4
[33459.001646] ata2.00: cmd ca/00:08:ef:00:40/00:00:00:00:00/e0 tag 0 dma 4096 out
[33459.001657] res 58/00:08:ef:00:40/00:00:00:00:00/e0 Emask 0x2 (HSM violation)
[33459.014157] ata2.00: status: { DRDY DRQ }
[33459.021056] ata2: soft resetting link
[33459.228490] ata2.00: configured for UDMA/66
[33459.228528] ata2: EH complete

I gleaned those 3 lines of code from doing "strace parted"