freebsd-dev/sys/dev/amr
John Baldwin f8d6c20a0f Further adjust the workaround in r234501. Rounding all small requests up
to 32k swamped the controller causing firmware hangs.  Instead, round
requests smaller than 64k up to the next power of 2 as a general rule.
To handle the one known special case of a command that accepts a 12k
buffer returning a 24k-ish reply, round requests between 8k and 16k up
to 32k rather than 16k.  The result is that commands less than 8k should
now be rounded up to a smaller size (either 4k or 8k) rather than 32k.

PR:		kern/155658
Tested by:	Andreas Longwitz
MFC after:	1 week
2012-10-05 15:52:31 +00:00
..
amr_cam.c Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs. 2011-11-07 06:44:47 +00:00
amr_disk.c
amr_linux.c Second-to-last commit implementing Capsicum capabilities in the FreeBSD 2011-08-11 12:30:23 +00:00
amr_pci.c Essentially revert r239912. The amr_periodic function hadn't been armed in 2012-08-31 09:42:46 +00:00
amr_tables.h
amr.c Further adjust the workaround in r234501. Rounding all small requests up 2012-10-05 15:52:31 +00:00
amrio.h
amrreg.h
amrvar.h Essentially revert r239912. The amr_periodic function hadn't been armed in 2012-08-31 09:42:46 +00:00