Page MenuHomeFreeBSD

[POWERPC] add bus_map_resource and bus_unmap_resource DEVMETHODs
ClosedPublic

Authored by alfredo on Jan 6 2021, 11:12 PM.
Referenced Files
F166293070: D28012.diff
Wed, Aug 12, 5:22 PM
Unknown Object (File)
Tue, Aug 11, 8:54 AM
Unknown Object (File)
Sat, Aug 8, 5:00 PM
Unknown Object (File)
Sat, Aug 8, 4:57 PM
Unknown Object (File)
Sat, Aug 8, 4:39 PM
Unknown Object (File)
Sat, Aug 8, 11:18 AM
Unknown Object (File)
Tue, Aug 4, 12:00 AM
Unknown Object (File)
Mon, Aug 3, 11:59 PM

Details

Summary

Implements bus_map_resource and bus_unmap_resource DEVMETHODs on powerpc architectures, highly inspired on amd64 platform code.

This is required by virtio-modern (1.x) drivers already commited to main branch.

Test Plan

Tested on powerpc64 QEMU VM with virtio patches not published for review yet

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37332
Build 34221: arc lint + arc unit

Event Timeline

sys/powerpc/powerpc/nexus.c
339

actually part of this statement is wrong, (I mixed things with another issue from virtio-modern code)

Use of bs_be_tag here actually makes virtio driver (net) crash/panic during attachment.

alfredo edited the test plan for this revision. (Show Details)

bus tag now match platform endian

sys/powerpc/powerpc/nexus.c
311

Missing ident

alfredo edited the summary of this revision. (Show Details)

fix ident

This revision is now accepted and ready to land.Mar 28 2021, 2:48 AM