Page MenuHomeFreeBSD

Make SGE parameter handling more VF-friendly.
ClosedPublic

Authored by jhb on Aug 11 2016, 7:03 PM.

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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; 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.