Skip to content

Commit

Permalink
11362 xhci dma segment comment needs work
Browse files Browse the repository at this point in the history
Reviewed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Jason King <jbk@joyent.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
  • Loading branch information
rmustacc committed Jul 12, 2019
1 parent ef82684 commit 15ee7bd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions usr/src/uts/common/io/usb/hcd/xhci/xhci_dma.c
Expand Up @@ -10,7 +10,7 @@
*/

/*
* Copyright (c) 2018, Joyent, Inc.
* Copyright 2019, Joyent, Inc.
*/

/*
Expand Down Expand Up @@ -78,9 +78,10 @@ xhci_dma_transfer_attr(xhci_t *xhcip, ddi_dma_attr_t *attrp, uint_t sgl)
/*
* The alignment and segment are related. The alignment describes the
* alignment of the PA. The segment describes a boundary that the DMA
* allocation cannot cross. In other words, for a given chunk of memory
* it cannot cross a 64-byte boundary. However, the physical address
* only needs to be aligned to align bytes.
* allocation cannot cross. In other words, for a given chunk of
* allocated DMA memory, the allocated buffer cannot cross a 64k aligned
* boundary. However, the physical address only needs to be aligned to
* 64 bytes.
*/
attrp->dma_attr_align = XHCI_DMA_ALIGN;
attrp->dma_attr_seg = XHCI_TRB_MAX_TRANSFER - 1;
Expand Down

0 comments on commit 15ee7bd

Please sign in to comment.