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)
Thu, Apr 18, 7:11 AM
Unknown Object (File)
Fri, Mar 29, 12:21 PM
Unknown Object (File)
Feb 28 2024, 4:36 AM
Unknown Object (File)
Feb 7 2024, 7:10 PM
Unknown Object (File)
Dec 22 2023, 10:25 PM
Unknown Object (File)
Dec 15 2023, 9:37 PM
Unknown Object (File)
Dec 6 2023, 10:26 PM
Unknown Object (File)
Oct 27 2023, 7:57 PM
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.