From 42e93187a03622d06c2aa281a69516087dd155b5 Mon Sep 17 00:00:00 2001 From: Tomasz Jeznach Date: Tue, 19 Mar 2024 14:15:26 -0700 Subject: [PATCH] acpi_tables: Fix VIOT endpoint_id remapping 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 --- src/viot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viot.rs b/src/viot.rs index a5d2dfa..681f244 100644 --- a/src/viot.rs +++ b/src/viot.rs @@ -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());