Skip to content

Commit

Permalink
Add eventor_sbus_dma_channels SoC config for 11.x J3AI in FBOSS
Browse files Browse the repository at this point in the history
Summary:
Add eventor_sbus_dma_channels SoC config for 11.x J3AI in FBOSS.

This will be reverted while integrating 12.0.0.3 and instead
will be added in the config directly.

Reviewed By: shri-khare, zechengh09

Differential Revision: D64310813

fbshipit-source-id: 177068a2e821b9588979c84248c11966a4b363c4
  • Loading branch information
simuthus-fb authored and facebook-github-bot committed Oct 15, 2024
1 parent 2b97991 commit 9a4b146
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fboss/agent/platforms/sai/SaiPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,17 @@ std::string SaiPlatform::getHwAsicConfig(
for (const auto& entry : commonConfigs) {
addNameValue(entry);
}

#if defined(SAI_VERSION_11_3_0_0_DNX_ODP)
if (getAsic()->isSupported(HwAsic::Feature::EVENTOR_PORT_FOR_SFLOW)) {
// Interim workaround for 11.0.0.14 as this SoC property is needed for
// J3AI 11.x but not for 12.x until 12.0.0.3.
// TODO: While integrating 12.0.0.3, this workaround needs to be removed
// and instead this SoC property would be added in config directly.
nameValStrs.push_back("eventor_sbus_dma_channels.BCM8889X=0,6,0,7");
}
#endif

/*
* Single NPU platfroms will not have any npu entries. In such cases,
* we can directly use the common config.
Expand Down

0 comments on commit 9a4b146

Please sign in to comment.