ioat_test.c (292229) | ioat_test.c (297746) |
---|---|
1/*- 2 * Copyright (C) 2012 Intel Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (C) 2012 Intel Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/ioat/ioat_test.c 292229 2015-12-14 22:02:01Z cem $"); | 28__FBSDID("$FreeBSD: head/sys/dev/ioat/ioat_test.c 297746 2016-04-09 13:15:34Z cem $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <sys/ioccom.h> 35#include <sys/kernel.h> 36#include <sys/lock.h> --- 346 unchanged lines hidden (view full) --- 383 384 if (test->testkind >= IOAT_NUM_TESTKINDS) { 385 ioat_test_log(0, "Invalid kind %u\n", 386 (unsigned)test->testkind); 387 test->status[IOAT_TEST_INVALID_INPUT]++; 388 return; 389 } 390 | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <sys/ioccom.h> 35#include <sys/kernel.h> 36#include <sys/lock.h> --- 346 unchanged lines hidden (view full) --- 383 384 if (test->testkind >= IOAT_NUM_TESTKINDS) { 385 ioat_test_log(0, "Invalid kind %u\n", 386 (unsigned)test->testkind); 387 test->status[IOAT_TEST_INVALID_INPUT]++; 388 return; 389 } 390 |
391 dmaengine = ioat_get_dmaengine(test->channel_index); | 391 dmaengine = ioat_get_dmaengine(test->channel_index, M_NOWAIT); |
392 if (dmaengine == NULL) { 393 ioat_test_log(0, "Couldn't acquire dmaengine\n"); 394 test->status[IOAT_TEST_NO_DMA_ENGINE]++; 395 return; 396 } 397 ioat = to_ioat_softc(dmaengine); 398 399 if (test->testkind == IOAT_TEST_FILL && --- 194 unchanged lines hidden --- | 392 if (dmaengine == NULL) { 393 ioat_test_log(0, "Couldn't acquire dmaengine\n"); 394 test->status[IOAT_TEST_NO_DMA_ENGINE]++; 395 return; 396 } 397 ioat = to_ioat_softc(dmaengine); 398 399 if (test->testkind == IOAT_TEST_FILL && --- 194 unchanged lines hidden --- |