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, Oct 13, 1:03 AM
Unknown Object (File)
Tue, Oct 7, 12:30 PM
Unknown Object (File)
Tue, Sep 23, 7:08 AM
Unknown Object (File)
Sep 9 2025, 11:06 PM
Unknown Object (File)
Sep 9 2025, 8:35 AM
Unknown Object (File)
Aug 14 2025, 3:45 PM
Unknown Object (File)
Aug 13 2025, 6:29 AM
Unknown Object (File)
Aug 12 2025, 3:31 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.