Page MenuHomeFreeBSD

Store the offset of the KDOORBELL and GTS registers in the softc.
ClosedPublic

Authored by jhb on Aug 1 2016, 9:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 5:50 PM
Unknown Object (File)
Mon, Apr 8, 10:45 PM
Unknown Object (File)
Mar 13 2024, 9:52 AM
Unknown Object (File)
Feb 21 2024, 6:20 PM
Unknown Object (File)
Jan 22 2024, 11:18 PM
Unknown Object (File)
Dec 20 2023, 5:26 AM
Unknown Object (File)
Dec 2 2023, 12:14 PM
Unknown Object (File)
Nov 9 2023, 6:16 PM
Subscribers

Details

Summary

Store the offset of the KDOORBELL and GTS registers in the softc.

VF devices use a different register layout than PF devices. Storing
the offset in a value in the softc allows code to be shared between the
PF and VF drivers.

Test Plan
  • compiled and booted a kernel and verified ping still works

Diff Detail

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

Event Timeline

jhb retitled this revision from to Store the offset of the KDOORBELL and GTS registers in the softc..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: np.
np edited edge metadata.

All egress queues including freelists use the BAR2 doorbell (aka UDB) and not the KDOORBELL by default. You might have to manually remove the setbit(&sc->doorbells, DOORBELL_UDB) in map_bar_2 to test this change for egress queues. See sysctl dev.t5nex.0.doorbells for the doorbells available to the driver.

This revision is now accepted and ready to land.Aug 1 2016, 9:40 PM
This revision was automatically updated to reflect the committed changes.