Skip to content

Commit

Permalink
acpi_tables: Fix VIOT endpoint_id remapping
Browse files Browse the repository at this point in the history
For non-zero segment remappings it's very likely that target
endpoint identifiers namespace will start at 0, without requester
segment number encoded in the translation request.

Signed-off-by: Tomasz Jeznach <tjeznach@rivosinc.com>
  • Loading branch information
tjeznach committed Mar 25, 2024
1 parent 76e8552 commit 42e9318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl Aml for PciRange {
sink.byte(ViotEntryType::PciRange as u8);
sink.byte(0); // reserved
sink.word(Self::len() as u16);
sink.dword(self.first.as_endpoint());
sink.dword(self.first.as_bdf() as u32);
sink.word(self.first.segment);
sink.word(self.last.segment);
sink.word(self.first.as_bdf());
Expand Down

0 comments on commit 42e9318

Please sign in to comment.