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)
Mon, Dec 9, 7:15 AM
Unknown Object (File)
Sat, Nov 23, 6:50 AM
Unknown Object (File)
Sat, Nov 23, 3:34 AM
Unknown Object (File)
Oct 13 2024, 6:08 PM
Unknown Object (File)
Oct 2 2024, 4:12 PM
Unknown Object (File)
Sep 29 2024, 4:24 PM
Unknown Object (File)
Sep 27 2024, 4:59 AM
Unknown Object (File)
Sep 27 2024, 4:59 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.