Page MenuHomeFreeBSD

pcib: Only apply ARI translation to a bridge's own secondary bus
Needs ReviewPublic

Authored by ojanerif_amd.com on Fri, Sep 25, 8:31 PM.
Tags
None
Referenced Files
F173558905: D60033.diff
Sat, Sep 26, 8:34 PM
F173543235: D60033.id187710.diff
Sat, Sep 26, 5:56 PM
F173495208: D60033.id.diff
Sat, Sep 26, 8:53 AM
F173472058: D60033.diff
Sat, Sep 26, 4:51 AM
Subscribers

Details

Summary

ARI changes RID interpretation only for the device on a downstream
port's secondary bus. pcib_xlate_ari() applied that translation to
every config access through an ARI-enabled bridge, including cycles
forwarded to a subordinate bus.

A non-zero slot on a subordinate bus then panics an INVARIANTS kernel
and is misrouted otherwise. Translate only when the access targets
this bridge's secondary bus.

Sponsored by: AMD

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped