From 6667d029bb28f9a4d1cb7f3366aad23b59e7dca4 Mon Sep 17 00:00:00 2001 From: Hans Rosenfeld Date: Tue, 16 May 2017 16:56:11 +0200 Subject: [PATCH] 8624 xhci and nvme can't bind DMA memory with IOMMU enabled Reviewed by: Robert Mustacchi Reviewed by: Jerry Jelinek Reviewed by: Garrett D'Amore Approved by: Richard Lowe --- usr/src/uts/i86pc/io/rootnex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/src/uts/i86pc/io/rootnex.c b/usr/src/uts/i86pc/io/rootnex.c index 889c2f3300..3bd23a87bd 100644 --- a/usr/src/uts/i86pc/io/rootnex.c +++ b/usr/src/uts/i86pc/io/rootnex.c @@ -25,6 +25,7 @@ * Copyright 2011 Nexenta Systems, Inc. All rights reserved. * Copyright (c) 2011 Bayard G. Bell. All rights reserved. * Copyright 2012 Garrett D'Amore . All rights reserved. + * Copyright 2017 Joyent, Inc. */ /* @@ -2171,7 +2172,7 @@ out: */ if ((sinfo->si_copybuf_req == 0) && (sinfo->si_sgl_size <= (unsigned)attr->dma_attr_sgllen) && - (dmao->dmao_size < dma->dp_maxxfer)) { + (dmao->dmao_size <= dma->dp_maxxfer)) { fast: /* * If the driver supports FMA, insert the handle in the FMA DMA -- 2.11.4.GIT