Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
anyone has any experience with the acso patch? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Fri Aug 23, 2024 5:59 pm    Post subject: anyone has any experience with the acso patch? [solved] Reply with quote

Greetings,

I'm trying to split a specific device from it's iommu group using the asco patch.
I've compiled it against kernel 6.6.47 and booted. here is what dmesg says:
Code:
# dmesg  | grep -i acs
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-lts root=UUID=50eabd59-625c-4968-a492-86acf3ddde84 ro modules=sd-mod,usb-storage,ext4 quiet rootfstype=ext4 iommu=pt intel_iommu=on pcie_acs_override=id:8086:293e
[    0.000000] Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA
[    0.003355] ACPI: FACS 0x000000007FBDD000 000040
[    0.003379] ACPI: Reserving FACS table memory at [mem 0x7fbdd000-0x7fbdd03f]
[    0.116109] Kernel command line: BOOT_IMAGE=/vmlinuz-lts root=UUID=50eabd59-625c-4968-a492-86acf3ddde84 ro modules=sd-mod,usb-storage,ext4 quiet rootfstype=ext4 iommu=pt intel_iommu=on pcie_acs_override=id:8086:293e

and here is iommu layout:
Code:
# bash /media/usb/iommu.sh
Group 0:        [8086:29c0]     00:00.0  Host bridge                              82G33/G31/P35/P31 Express DRAM Controller
Group 1:        [1b36:000c]     00:01.0  PCI bridge                               QEMU PCIe Root port
Group 2:        [1b36:000c]     00:01.1  PCI bridge                               QEMU PCIe Root port
Group 3:        [1b36:000c]     00:01.2  PCI bridge                               QEMU PCIe Root port
Group 4:        [1b36:000c]     00:01.3  PCI bridge                               QEMU PCIe Root port
Group 5:        [1b36:000c]     00:01.4  PCI bridge                               QEMU PCIe Root port
Group 6:        [1b36:000c]     00:01.5  PCI bridge                               QEMU PCIe Root port
Group 7:        [1b36:000c]     00:01.6  PCI bridge                               QEMU PCIe Root port
Group 8:        [1b36:000c]     00:01.7  PCI bridge                               QEMU PCIe Root port
Group 9:        [1234:1111]     00:02.0  VGA compatible controller                Device 1111
Group 10:       [1b36:000c]     00:03.0  PCI bridge                               QEMU PCIe Root port
Group 11:       [1b36:000c]     00:03.1  PCI bridge                               QEMU PCIe Root port
Group 12:       [1b36:000c]     00:03.2  PCI bridge                               QEMU PCIe Root port
Group 13:       [1b36:000c]     00:03.3  PCI bridge                               QEMU PCIe Root port
Group 14:       [1b36:000c]     00:03.4  PCI bridge                               QEMU PCIe Root port
Group 15:       [1b36:000c]     00:03.5  PCI bridge                               QEMU PCIe Root port
Group 16:       [1b36:000c]     00:03.6  PCI bridge                               QEMU PCIe Root port
Group 17:       [1b36:000d]     00:14.0  USB controller                           QEMU XHCI Host Controller
USB:            [46f4:0001]              Bus 002 Device 003                       
USB:            [1d6b:0002]              Bus 001 Device 001                       
USB:            [0627:0001]              Bus 001 Device 002                       
USB:            [46f4:0001]              Bus 002 Device 002                       
USB:            [1d6b:0003]              Bus 002 Device 001                       
USB:            [46f4:0001]              Bus 002 Device 003                       
USB:            [1d6b:0002]              Bus 001 Device 001                       
USB:            [0627:0001]              Bus 001 Device 002                       
USB:            [46f4:0001]              Bus 002 Device 002                       
USB:            [1d6b:0003]              Bus 002 Device 001                       
Group 18:       [8086:2918]     00:1f.0  ISA bridge                               82801IB (ICH9) LPC Interface Controller
                [8086:2922]     00:1f.2  SATA controller                          82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode]
                [8086:2930]     00:1f.3  SMBus                                    82801I (ICH9 Family) SMBus Controller
                [8086:293e]     00:1f.4  Audio device                             82801I (ICH9 Family) HD Audio Controller
Group 19:       [8086:10c9] [R] 00:1f.6  Ethernet controller                      82576 Gigabit Network Connection
Group 20:       [8086:100e] [R] 01:00.0  Ethernet controller                      82540EM Gigabit Ethernet Controller
Group 21:       [8086:100e] [R] 02:00.0  Ethernet controller                      82540EM Gigabit Ethernet Controller
Group 22:       [8086:100e] [R] 03:00.0  Ethernet controller                      82540EM Gigabit Ethernet Controller
Group 23:       [1af4:1045] [R] 04:00.0  Unclassified device [00ff]               Virtio 1.0 memory balloon
Group 24:       [8086:100e] [R] 05:00.0  Ethernet controller                      82540EM Gigabit Ethernet Controller
Group 25:       [1af4:1044] [R] 06:00.0  Unclassified device [00ff]               Virtio 1.0 RNG
Group 26:       [1af4:1043] [R] 07:00.0  Communication controller                 Virtio 1.0 console
Group 27:       [1b36:000e] [R] 08:00.0  PCI bridge                               Device 000e
                [10ec:8139] [R] 09:07.0  Ethernet controller                      RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
Group 28:       [8086:2922] [R] 0b:00.0  SATA controller                          82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode]

8086:293e is the device I want to split and the tree is still the same as before the change.
has anyone being able to use the patch properly to split?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein


Last edited by DaggyStyle on Sat Aug 24, 2024 10:40 am; edited 1 time in total
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Sat Aug 24, 2024 10:40 am    Post subject: Reply with quote

added prints to the code, looks like all the devices has acs cap, I need to understand how and if it helps me.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum