freebsd-skq/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
amr_disk.c
amr_linux.c
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