Page MenuHomeFreeBSD

Provide simple bus_dma stubs for USB/loader/kshim library
ClosedPublic

Authored by wma on Nov 30 2015, 8:42 AM.
Tags
None
Referenced Files
F83086494: D4314.id12586.diff
Mon, May 6, 2:44 AM
Unknown Object (File)
Sat, May 4, 5:02 AM
Unknown Object (File)
Wed, May 1, 9:52 AM
Unknown Object (File)
Sat, Apr 27, 8:37 AM
Unknown Object (File)
Sat, Apr 27, 8:37 AM
Unknown Object (File)
Sat, Apr 27, 8:37 AM
Unknown Object (File)
Wed, Apr 24, 5:52 PM
Unknown Object (File)
Sat, Apr 20, 12:11 PM
Subscribers
None

Details

Summary
  • Simple bus space stubs require the VA-PA mapping to be identical.
  • Only one DMA buffer in chain is supported.
  • Fully IO-coherent (or device/non-cacheable) memory is required

This change is required to make one of Broadcom's EHCI drivers working with kshim.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

wma_semihalf.com retitled this revision from to Provide simple bus_dma stubs for USB/loader/kshim library.
wma_semihalf.com updated this object.
wma_semihalf.com edited the test plan for this revision. (Show Details)

Can you have a look at the comments given?

sys/boot/kshim/bsd_kernel.c
82

Typo here?
& ~(dmat->alignement - 1)

95

(uintptr_t) instead of (uint32_t) ??

sys/boot/kshim/bsd_kernel.h
610

Minor style issue here: <tab> after #define

sys/boot/kshim/bsd_kernel.c
97

ds_len should be equal to "buflen" ??

wma added a reviewer: wma_semihalf.com.
hselasky edited edge metadata.

Please build test with amd64 and i386 before committing.

make buildenv TARGET_ARCH=i386
make -C ....

make buildenv TARGET_ARCH=amd64
make -C ....

Thank you!

--HPS

This revision is now accepted and ready to land.Jan 21 2016, 8:28 AM

Thanks. There is a problem with compilation, but I'll fix it in a separate changeset since it's present in a generic part and then commit this one.

This revision was automatically updated to reflect the committed changes.