Skip to content

Commit

Permalink
Fix 10G watchdog checks (#1464)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter authored Jul 18, 2023
1 parent 68d4310 commit db91285
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions task/monorail-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2021"

[dependencies]
drv-monorail-api = { path = "../../drv/monorail-api" }
drv-sidecar-mainboard-controller = { path = "../../drv/sidecar-mainboard-controller" }
drv-sidecar-front-io = { path = "../../drv/sidecar-front-io", features = ["phy_smi"], optional = true }
drv-sidecar-seq-api = { path = "../../drv/sidecar-seq-api", optional = true }
drv-spi-api = { path = "../../drv/spi-api" }
Expand Down
4 changes: 3 additions & 1 deletion task/monorail-server/src/bsp/sidecar_bc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use drv_sidecar_front_io::phy_smi::PhySmi;
use drv_sidecar_mainboard_controller::Reg;
use drv_sidecar_seq_api::{SeqError, Sequencer, TofinoSeqState};
use ringbuf::*;
use userlib::{hl::sleep_for, task_slot};
Expand Down Expand Up @@ -479,7 +480,8 @@ impl<'a, R: Vsc7448Rw> Bsp<'a, R> {
Ok(TofinoSeqState::A0) => {
match self.seq.tofino_pcie_hotplug_status() {
Ok(pcie_hotplug_status) => {
let host_reset = pcie_hotplug_status & 1;
let host_reset = pcie_hotplug_status
& Reg::PCIE_HOTPLUG_STATUS::HOST_RESET;
host_reset == 0
}
Err(e) => {
Expand Down

0 comments on commit db91285

Please sign in to comment.