Page MenuHomeFreeBSD

sfxge: retry VF vAdaptor allocation if it fails because of no EVB port yet
ClosedPublic

Authored by arybchik on Dec 1 2015, 7:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 3, 8:59 PM
Unknown Object (File)
Jan 29 2024, 3:39 PM
Unknown Object (File)
Dec 26 2023, 9:40 PM
Unknown Object (File)
Dec 20 2023, 12:53 AM
Unknown Object (File)
Nov 28 2023, 2:10 PM
Unknown Object (File)
Nov 4 2023, 1:45 AM
Unknown Object (File)
Oct 28 2023, 3:19 AM
Unknown Object (File)
Oct 26 2023, 4:32 PM
Subscribers

Details

Summary

After an MC reboot, a VF driver may reset before the PF driver has
finished bringing everything back up. This includes the VFs EVB port.
MC_CMD_VADAPTOR_ALLOC is the first MCDI call after an MC reboot to
require the EVB port, so if it fails with MC_CMD_ERR_NO_EVB_PORT,
retry the command a few times after waiting a while.

Submitted by: Mark Spender <mspender at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days

Test Plan

Driver build tested. Module loaded/unloaded.
sfxge FreeBSD driver does not support VFs yet, so it is just a preparation.

Diff Detail

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

Event Timeline

arybchik retitled this revision from to sfxge: retry VF vAdaptor allocation if it fails because of no EVB port yet.
arybchik updated this object.
arybchik edited the test plan for this revision. (Show Details)
arybchik added reviewers: gnn, philip, bz, np.
philip edited edge metadata.
This revision is now accepted and ready to land.Dec 1 2015, 8:33 AM
This revision was automatically updated to reflect the committed changes.