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)
Feb 18 2024, 12:29 PM
Unknown Object (File)
Feb 11 2024, 12:53 AM
Unknown Object (File)
Jan 31 2024, 4:08 AM
Unknown Object (File)
Jan 28 2024, 2:56 PM
Unknown Object (File)
Jan 23 2024, 8:12 AM
Unknown Object (File)
Jan 17 2024, 11:22 AM
Unknown Object (File)
Dec 22 2023, 10:02 PM
Unknown Object (File)
Nov 14 2023, 3:42 AM
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.