Page MenuHomeFreeBSD

Make SGE parameter handling more VF-friendly.
ClosedPublic

Authored by jhb on Aug 11 2016, 7:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 6, 2:42 PM
Unknown Object (File)
Thu, Jul 3, 4:05 AM
Unknown Object (File)
Fri, Jun 27, 12:02 AM
Unknown Object (File)
Thu, Jun 26, 4:52 PM
Unknown Object (File)
Jun 15 2025, 12:30 AM
Unknown Object (File)
Jun 10 2025, 11:39 AM
Unknown Object (File)
May 14 2025, 6:31 AM
Unknown Object (File)
Apr 30 2025, 3:37 AM
Subscribers

Details

Summary

Make SGE parameter handling more VF-friendly.

Add fields to hold the SGE control register and free list buffer sizes to
the sge_params structure. Populate these new fields in
t4_init_sge_params() for PF devices and change t4_read_chip_settings() to
pull these values out of the params structure instead of reading
registers directly. This will permit t4_read_chip_settings() to be reused
for VF devices which cannot read SGE registers directly.

While here, move the call to t4_init_sge_params() to
get_params__post_init(). The VF driver will populate the SGE parameters
structure via a different method before calling t4_read_chip_settings().

Test Plan
  • this change has been in use in the VF driver branch. Did very simple test of PF driver with this patch standalone.

Diff Detail

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

Event Timeline

jhb retitled this revision from to Make SGE parameter handling more VF-friendly..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: np.
np edited edge metadata.
This revision is now accepted and ready to land.Aug 13 2016, 9:20 PM
This revision was automatically updated to reflect the committed changes.