diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-11-24 13:16:28 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-11-24 13:16:28 +0000 |
commit | 8dd8546aae9ec7997f003d93dfe4f9a8f40176cc (patch) | |
tree | f2b8310fae1d27e1f124cd63ac4a40d78d41ae89 /sys/arch | |
parent | 1171d941058b2ad5b6327ed01fd56c5f900474bd (diff) |
The hypervisor on a SPARC T5-2 needs stricter alignment of the MSI message
queue.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/dev/msi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/msi.c b/sys/arch/sparc64/dev/msi.c index 5b8e5dd0336..8b12f1b4db0 100644 --- a/sys/arch/sparc64/dev/msi.c +++ b/sys/arch/sparc64/dev/msi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msi.c,v 1.2 2014/07/12 18:44:43 tedu Exp $ */ +/* $OpenBSD: msi.c,v 1.3 2014/11/24 13:16:27 kettenis Exp $ */ /* * Copyright (c) 2011 Mark Kettenis <kettenis@openbsd.org> * @@ -45,7 +45,7 @@ msi_eq_alloc(bus_dma_tag_t t, int msi_eq_size) BUS_DMA_NOWAIT | BUS_DMA_ALLOCNOW, &meq->meq_map) != 0) return (NULL); - if (bus_dmamem_alloc(t, size, PAGE_SIZE, 0, &meq->meq_seg, 1, + if (bus_dmamem_alloc(t, size, size, 0, &meq->meq_seg, 1, &nsegs, BUS_DMA_NOWAIT) != 0) goto destroy; |