forked from M-Labs/nac3
satman: fix dma reporting wrong destination
This commit is contained in:
parent
f4ceca464f
commit
e451598a06
|
@ -124,24 +124,23 @@ fn process_aux_packet(
|
|||
#[cfg(not(has_drtio_routing))]
|
||||
let hop = 0;
|
||||
|
||||
if hop == 0 {
|
||||
if let Some(status) = dma_manager.check_state() {
|
||||
info!(
|
||||
"playback done, error: {}, channel: {}, timestamp: {}",
|
||||
status.error, status.channel, status.timestamp
|
||||
);
|
||||
return drtioaux::send(
|
||||
drtioaux::send(
|
||||
0,
|
||||
&drtioaux::Packet::DmaPlaybackStatus {
|
||||
destination: *_rank,
|
||||
destination: _destination,
|
||||
id: status.id,
|
||||
error: status.error,
|
||||
channel: status.channel,
|
||||
timestamp: status.timestamp,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
if hop == 0 {
|
||||
)?;
|
||||
} else {
|
||||
let errors;
|
||||
unsafe {
|
||||
errors = csr::drtiosat::rtio_error_read();
|
||||
|
@ -171,6 +170,7 @@ fn process_aux_packet(
|
|||
drtioaux::send(0, &drtioaux::Packet::DestinationOkReply)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(has_drtio_routing)]
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue