Page MenuHomeFreeBSD

[aacraid] Add missing aac_unmap_command() call for SYNC mode
ClosedPublic

Authored by luporl on Feb 13 2020, 6:12 PM.
Referenced Files
Unknown Object (File)
Wed, Mar 25, 5:25 PM
Unknown Object (File)
Tue, Mar 24, 12:12 AM
Unknown Object (File)
Mon, Mar 23, 11:50 PM
Unknown Object (File)
Mon, Mar 23, 3:53 PM
Unknown Object (File)
Mon, Mar 23, 2:19 AM
Unknown Object (File)
Sun, Mar 22, 5:26 PM
Unknown Object (File)
Thu, Mar 19, 5:00 AM
Unknown Object (File)
Mon, Mar 16, 7:37 AM

Details

Summary

On a PowerPC64 with an Adaptec RAID Controller with PCI device ID 0x028d, after several read/write operations, the kernel was panic'ing in bus_dmamap_sync().
This was due to a missing aac_unmap_command() in the SYNC path.

There is a work in progress (PR 237463) to make aacraid driver compatible with big-endian/PowerPC, in which this issue was found.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29355
Build 27254: arc lint + arc unit

Event Timeline

Yes, the similar path in aac.c has

			aac_remove_busy(cm);
 			aac_unmap_command(cm);

Yes, the similar path in aac.c has

			aac_remove_busy(cm);
 			aac_unmap_command(cm);

Right, but as in aacraid.c sync commands don't call aac_enqueue_busy(cm), aac_remove_busy(cm) should not be called when they complete.

This revision is now accepted and ready to land.Mar 3 2020, 5:47 PM
This revision was automatically updated to reflect the committed changes.