Page MenuHomeFreeBSD

x86/iommu/amd_reg.h: AMD IOMMU registers definitions
ClosedPublic

Authored by kib on Tue, Oct 22, 8:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 9:58 PM
Unknown Object (File)
Wed, Nov 6, 9:58 PM
Unknown Object (File)
Wed, Nov 6, 9:58 PM
Unknown Object (File)
Wed, Nov 6, 9:57 PM
Unknown Object (File)
Tue, Nov 5, 7:59 AM
Unknown Object (File)
Sun, Nov 3, 2:03 AM
Unknown Object (File)
Sat, Nov 2, 11:47 PM
Unknown Object (File)
Sat, Nov 2, 7:20 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Tue, Oct 22, 8:21 PM
kib added a child revision: D47256: AMD IOMMU driver.
sys/x86/iommu/amd_reg.h
306–307

These are 16 bits are they not?

687

there's a reserved bit missing between vnr and vevent?

kib marked 2 inline comments as done.

Fix several mistakes in re-typing

I've now looked through all the structs except amdiommu_cmd_generic and amdiommu_event_generic. I've only done a spot-check of the #defines, did not find any issues yet.

sys/x86/iommu/amd_reg.h
394

missing reserved bits between dest and vector?

638

is there missing padding before op here?

also maybe I'm looking at a spec with a typo as it suggests op is 5 bits for reset_vmmio

kib marked an inline comment as done.Mon, Oct 28, 1:07 AM
kib added inline comments.
sys/x86/iommu/amd_reg.h
394

This is from fig. 15 (table 20) on page 89, rev. 3.09.

Can you point out the bits numbers for the reserved field you mean there?

638

It is op and rsrv2 which should be swapped.

sys/x86/iommu/amd_reg.h
394

Hmm, I guess I was looking at a vapic case somehow

I looked over the structs and spot-checked some #defines.

This revision is now accepted and ready to land.Fri, Nov 1, 2:33 PM
This revision was automatically updated to reflect the committed changes.
kib marked an inline comment as done.