[Bug 260200] AHCI emulation throws CAM errors when backed by -t malloc memory disk devices

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 04 Dec 2021 06:10:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260200

            Bug ID: 260200
           Summary: AHCI emulation throws CAM errors when backed by  -t
                    malloc memory disk devices
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: editor@callfortesting.org

If a bhyve emulated AHCI device is backed by a 'mdconfig -t malloc' memory disk
device, variations on this simple fio(1) test:

fio --name=bhyve --rw=write --runtime=1 --time_based --filename=/dev/ada0
--bs=512b --size=512b

Produces these errors logged in the system messages:

(ada0:ahcich0:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00
(ada0:ahcich0:0:0:0): CAM status: ATA Status Error
(ada0:ahcich0:0:0:0): ATA status: 41 (DRDY ERR), error: 04 (ABRT )
(ada0:ahcich0:0:0:0): RES: 41 04 00 00 00 40 00 00 00 00 00
(ada0:ahcich0:0:0:0): Retrying command, 0 more tries remain
(ada0:ahcich0:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00
(ada0:ahcich0:0:0:0): CAM status: ATA Status Error
(ada0:ahcich0:0:0:0): ATA status: 41 (DRDY ERR), error: 04 (ABRT )
(ada0:ahcich0:0:0:0): RES: 41 04 00 00 00 40 00 00 00 00 00
(ada0:ahcich0:0:0:0): Error 5, Retries exhausted
(ada0:ahcich0:0:0:0): Synchronize cache failed

The error is consistent with repeat runs and variations on the fio syntax.

The virtio-blk and nvme devices do not exhibit this behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.