[haiku-commits] Re: BRANCH xyzzy-github.x86_64 - src/add-ons/kernel/busses/usb build/jam

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 6 Aug 2012 15:41:14 +0200

2012/8/6 Alex Smith <alex@xxxxxxxxxxxxxxxx>:
> I think only xhci supports 64-bit physical addresses. Rene already changed
> the stack to use phys_addr_t over addr_t/void* for physical addresses, I
> guess there just needs to be a way for the *hci modules to indicate to the
> stack whether they support 64-bit physical addresses when asking it to
> allocate memory.

EHCI supports them (see ext_buffer_phy
http://cgit.haiku-os.org/haiku/tree/src/add-ons/kernel/busses/usb/ehci_hardware.h#n136).
These fields are only described in Appendix B of the spec.

I think the memory pool is at the moment allocated at stack creation,
there is no "on-demand" memory allocation. We could eventually delay
the allocation until all *hci modules have indicated their
constraints.
Anyway, I know that for instance max memory chunk size is currently
too low for XHCI: a pool for each bus driver would probably be better.

Bye,
Jérôme

Other related posts: