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
Unknown Object (File)
Sat, Nov 30, 6:11 PM
Unknown Object (File)
Nov 24 2024, 12:58 PM
Unknown Object (File)
Nov 8 2024, 6:13 PM
Unknown Object (File)
Nov 4 2024, 5:31 PM
Unknown Object (File)
Nov 4 2024, 5:30 PM
Unknown Object (File)
Nov 4 2024, 5:30 PM
Unknown Object (File)
Nov 4 2024, 5:30 PM
Unknown Object (File)
Nov 4 2024, 5:07 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #10586)

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

95 ↗(On Diff #10586)

(uintptr_t) instead of (uint32_t) ??

sys/boot/kshim/bsd_kernel.h
610 ↗(On Diff #10586)

Minor style issue here: <tab> after #define

sys/boot/kshim/bsd_kernel.c
97 ↗(On Diff #10586)

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.