ioat: wait for self-test completion
authorDan Williams <dan.j.williams@intel.com>
Thu, 4 Dec 2008 00:16:55 +0000 (17:16 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Jan 2009 17:44:04 +0000 (09:44 -0800)
commit3eb62a1a8c1655cf88e44158938a28ef774fdc08
treeed90083bbafe751f0babeb08a056585435379882
parentad4efe4fc5363e79bf6db87b012b73189806f4c7
ioat: wait for self-test completion

commit 532d3b1f86f41834a25373e3ded981d68e4ce17f upstream.

As part of the ioat_dma self-test it performs a printk from a completion
callback.  Depending on the system console configuration this output can
take longer than a millisecond causing the self-test to fail.  Introduce a
completion with a generous timeout to mitigate this failure.

Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/dma/ioat_dma.c