You are not logged in.

#1 2021-07-09 16:14:05

arch_kk_linux
Member
Registered: 2017-02-17
Posts: 54

cannot be used for peer-to-peer DMA as the client and provider...

HI,

I'm using Discrete GPU on my laptop. and  my dmesg log is flooded with warning messages as

[   35.460322] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:03:00.0) do not share an upstream bridge or whitelisted host bridge
...

I believe this is something related to IOMMU , I have googled and it seems my laptop does supports it.

My laptop hardware configuration:

Lenovo G50-70
Intel® Core™ i5-4258U CPU @ 2.40GHz × 4
AMD® Radeon hd 8500

[kk@mykk ~]$ sudo dmesg | grep -i -e DMAR -e IOMMU  log:

[sudo] password for kk: 
[    0.023702] ACPI: DMAR 0x00000000AAFCB000 0000B0 (v01 LENOVO CB-01    00000001 ACPI 00040000)
[    0.023733] ACPI: Reserving DMAR table memory at [mem 0xaafcb000-0xaafcb0af]
[    0.097139] DMAR: Host address width 39
[    0.097141] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
[    0.097147] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap c0000020660462 ecap f0101a
[    0.097150] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
[    0.097153] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008020660462 ecap f010da
[    0.097155] DMAR: RMRR base: 0x000000aae11000 end: 0x000000aae30fff
[    0.097158] DMAR: RMRR base: 0x000000ab800000 end: 0x000000af9fffff
[    0.097160] DMAR-IR: IOAPIC id 2 under DRHD base  0xfed91000 IOMMU 1
[    0.097162] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[    0.097164] DMAR-IR: Queued invalidation will be enabled to support x2apic and Intr-remapping.
[    0.097674] DMAR-IR: Enabled IRQ remapping in x2apic mode
[    0.197145] iommu: Default domain type: Translated 
[    0.438783] AMD-Vi: AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de>
[    0.438784] AMD-Vi: AMD IOMMUv2 functionality not available on this system

Is there any way  that i can fix this ? thx in advance.


update:

even I have added intel_iommu=on kernel parameter yet I'm getting same warning message on my dmesg log

[kk@mykk ~]$ sudo dmesg | grep -i -e DMAR -e IOMMU

[sudo] password for kk: 
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=a1ea0dc2-54c0-40bb-92e3-472a1bbe651f rw mitigations=off nowatchdog radeon.si_support=0 amdgpu.si_support=1 audit=0 log_buf_len=16M intel_iommu=on i915.enable_guc=2
[    0.023606] ACPI: DMAR 0x00000000AAFCB000 0000B0 (v01 LENOVO CB-01    00000001 ACPI 00040000)
[    0.023637] ACPI: Reserving DMAR table memory at [mem 0xaafcb000-0xaafcb0af]
[    0.047048] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=a1ea0dc2-54c0-40bb-92e3-472a1bbe651f rw mitigations=off nowatchdog radeon.si_support=0 amdgpu.si_support=1 audit=0 log_buf_len=16M intel_iommu=on i915.enable_guc=2
[    0.047201] DMAR: IOMMU enabled
[    0.097086] DMAR: Host address width 39
[    0.097087] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
[    0.097093] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap c0000020660462 ecap f0101a
[    0.097096] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
[    0.097100] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008020660462 ecap f010da
[    0.097102] DMAR: RMRR base: 0x000000aae11000 end: 0x000000aae30fff
[    0.097104] DMAR: RMRR base: 0x000000ab800000 end: 0x000000af9fffff
[    0.097107] DMAR-IR: IOAPIC id 2 under DRHD base  0xfed91000 IOMMU 1
[    0.097109] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[    0.097110] DMAR-IR: Queued invalidation will be enabled to support x2apic and Intr-remapping.
[    0.097620] DMAR-IR: Enabled IRQ remapping in x2apic mode
[    0.198360] iommu: Default domain type: Translated 
[    0.314658] DMAR: No ATSR found
[    0.314659] DMAR: No SATC found
[    0.314661] DMAR: IOMMU feature pgsel_inv inconsistent
[    0.314662] DMAR: IOMMU feature sc_support inconsistent
[    0.314663] DMAR: IOMMU feature pass_through inconsistent
[    0.314664] DMAR: dmar0: Using Queued invalidation
[    0.314672] DMAR: dmar1: Using Queued invalidation
[    0.352173] pci 0000:00:00.0: Adding to iommu group 0
[    0.352186] pci 0000:00:02.0: Adding to iommu group 1
[    0.352195] pci 0000:00:03.0: Adding to iommu group 2
[    0.352204] pci 0000:00:14.0: Adding to iommu group 3
[    0.352217] pci 0000:00:16.0: Adding to iommu group 4
[    0.352226] pci 0000:00:1b.0: Adding to iommu group 5
[    0.352235] pci 0000:00:1c.0: Adding to iommu group 6
[    0.352246] pci 0000:00:1c.3: Adding to iommu group 7
[    0.352255] pci 0000:00:1c.4: Adding to iommu group 8
[    0.352263] pci 0000:00:1d.0: Adding to iommu group 9
[    0.352281] pci 0000:00:1f.0: Adding to iommu group 10
[    0.352290] pci 0000:00:1f.2: Adding to iommu group 10
[    0.352301] pci 0000:00:1f.3: Adding to iommu group 10
[    0.352311] pci 0000:01:00.0: Adding to iommu group 11
[    0.352320] pci 0000:02:00.0: Adding to iommu group 12
[    0.352329] pci 0000:03:00.0: Adding to iommu group 13
[    0.354398] DMAR: Intel(R) Virtualization Technology for Directed I/O
[    0.478592] AMD-Vi: AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de>
[    0.478593] AMD-Vi: AMD IOMMUv2 functionality not available on this system
[    1.849514]     intel_iommu=on
[    4.796618] i915 0000:00:02.0: [drm] DMAR active, disabling use of stolen memory
[ 1216.118233] DMAR: DRHD: handling fault status reg 2
[ 1216.118241] DMAR: [DMA Write] Request device [00:02.0] PASID ffffffff fault addr a9f50000 [fault reason 05] PTE Write access is not set
[32445.928123] DMAR: DRHD: handling fault status reg 2
[32445.928131] DMAR: [DMA Write] Request device [00:02.0] PASID ffffffff fault addr a5bff000 [fault reason 05] PTE Write access is not set
[32446.254440] DMAR: DRHD: handling fault status reg 2
[32446.254450] DMAR: [DMA Write] Request device [00:02.0] PASID ffffffff fault addr a51b9000 [fault reason 05] PTE Write access is not set

dmesg log:

[  127.898543] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:03:00.0) do not share an upstream bridge or whitelisted host bridge
[  128.289709] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:03:00.0) do not share an upstream bridge or whitelisted host bridge
[  128.292174] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:03:00.0) do not share an upstream bridge or whitelisted host bridge
[  131.769899] rfkill: input handler disabled
[  135.051478] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:03:00.0) do not share an upstream bridge or whitelisted host bridge
[  135.056476] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:03:00.0) do not share an upstream bridge or whitelisted host bridge
[  135.219027] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:03:00.0) do not share an upstream bridge or whitelisted host bridge
[  135.224482] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:03:00.0) do not share an upstream bridge or whitelisted host bridge
[  135.230245] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:03:00.0) do not share an upstream bridge or whitelisted host bridge

Last edited by arch_kk_linux (2021-07-15 13:32:01)

Offline

Board footer

Powered by FluxBB