Re: Question about calculate trbs in xhci

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi Mathias:

>
> In xhci-ring.c,  static int xhci_queue_isoc_tx():
>
> /* Calculate TRB length */
>   trb_buff_len = TRB_MAX_BUFF_SIZE - (addr & ((1 << TRB_MAX_BUFF_SHIFT) - 1));
>
> where  addr = start_addr + urb->iso_frame_desc[i].offset;
>
> this limits the trb_buff_len to stop the trb buffer at TRB_MAX_BUFF_SIZE boundary
Yes, you are right.
the above is make sure trb buffer will not cross over
TRB_MAX_BUFF_SIZE boundary.
But it still possible to cross the page boundary for ISO trb, right?
(suppose page boundary is 4KB, TRB_MAX_BUFF_SIZE is 64KB)

appreciate your kind help,
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux