Opened 3 years ago

Last modified 2 years ago

#13778 new bug

"check_sense: encountered DEFERRED ERROR - bye, bye" spams syslog

Reported by: waddlesplash Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Drivers/Disk Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


As in title:

KERN: check_sense: encountered DEFERRED ERROR - bye, bye
KERN: Last message repeated 4 times.
KERN: Last message repeated 2 times.

Attaching syslog. Let me know if additional tracing would help in some way.

Attachments (1)

syslog (301.9 KB ) - added by waddlesplash 3 years ago.

Download all attachments as: .zip

Change History (5)

by waddlesplash, 3 years ago

Attachment: syslog added


comment:1 by korli, 3 years ago

As in

Seems like it's AHCI related?

KERN: ahci: Probe: port 1 link speed 1.5Gb/s
1411	KERN: ahci: sata_request::finish ATA command 0xa0 failed: status 0x51, error 0x20
1412	KERN: ahci: sata_request::finish ATAPI packet 25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (len 10)
1413	KERN: check_sense: encountered DEFERRED ERROR - bye, bye

comment:2 by diver, 3 years ago

Looks like a dupe of #13559.

comment:3 by waddlesplash, 2 years ago

Here's our code that runs that command:

Here's the equivalent module from FreeBSD:

It looks like FreeBSD sets bytes 7 and 15 also for 0xa0 (ATA_PACKET_CMD) with constants ("use LBA addressing" / "4 head bits"), and we don't. It also looks like they mask the length differently -- they just set bytes 5 and 6 to the length and length >> 8, while we also mask off 0xff.

comment:4 by waddlesplash, 2 years ago

<PulkoMandy> the masks make no difference if you are putting things into bytes anyways
<PulkoMandy> they do fis[1] = (ccb->ccb_h.target_id & 0x0f); and we don't
Note: See TracTickets for help on using tickets.