diff options
author | scottl <scottl@FreeBSD.org> | 2002-08-30 05:02:07 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2002-08-30 05:02:07 +0000 |
commit | 5dd468cbf6805147d92bfda61d11aaa4c68e5725 (patch) | |
tree | 835685f294d45206d76aab6779ca15884205ab30 /sys/dev/aac/aac.c | |
parent | c3bdd669c3f39a9ac1166f5ca537aca7b8beff2b (diff) | |
download | FreeBSD-src-5dd468cbf6805147d92bfda61d11aaa4c68e5725.zip FreeBSD-src-5dd468cbf6805147d92bfda61d11aaa4c68e5725.tar.gz |
The aac driver needs 256K of contiguous physical memory in order to
attach. If it can't get that (highly likely if loaded as a module on
a system that's been up for a while), give a more descriptive error
message.
Also clean up some nearby style nits.
MFC after: 2 days
Diffstat (limited to 'sys/dev/aac/aac.c')
-rw-r--r-- | sys/dev/aac/aac.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c index 6192550..218ce44 100644 --- a/sys/dev/aac/aac.c +++ b/sys/dev/aac/aac.c @@ -1115,8 +1115,9 @@ aac_alloc_commands(struct aac_softc *sc) /* allocate the FIBs in DMAable memory and load them */ if (bus_dmamem_alloc(sc->aac_fib_dmat, (void **)&sc->aac_fibs, - BUS_DMA_NOWAIT, &sc->aac_fibmap)) { - return(ENOMEM); + BUS_DMA_NOWAIT, &sc->aac_fibmap)) { + printf("Not enough contiguous memory available.\n"); + return (ENOMEM); } bus_dmamap_load(sc->aac_fib_dmat, sc->aac_fibmap, sc->aac_fibs, AAC_FIB_COUNT * sizeof(struct aac_fib), @@ -1132,7 +1133,7 @@ aac_alloc_commands(struct aac_softc *sc) if (!bus_dmamap_create(sc->aac_buffer_dmat, 0, &cm->cm_datamap)) aac_release_command(cm); } - return(0); + return (0); } /* |