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
F174511878: D23668.id69152.diff
Sat, Oct 3, 8:06 PM
Unknown Object (File)
Fri, Oct 2, 1:14 PM
Unknown Object (File)
Wed, Sep 30, 7:13 PM
Unknown Object (File)
Mon, Sep 28, 1:06 AM
Unknown Object (File)
Fri, Sep 25, 11:19 PM
Unknown Object (File)
Fri, Sep 18, 5:37 PM
Unknown Object (File)
Wed, Sep 16, 11:40 AM
Unknown Object (File)
Mon, Sep 14, 3:23 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.