<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Greetings,</p>
<p>Thanks Jason. <br>
</p>
<p>The fix provided by you works. It is not giving WARNING's but i
am seeing below logs. Would you please confirm on the logs.<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://lore.kernel.org/all/0-v1-2b52423411b9+164fc-iommu_ppc_defdomain_jgg@nvidia.com/">https://lore.kernel.org/all/0-v1-2b52423411b9+164fc-iommu_ppc_defdomain_jgg@nvidia.com/</a></p>
<p>[ 152.342125] pci 0013:60:00.0: No hypervisor support for SR-IOV
on this device, IOV BARs disabled.<br>
[ 152.344896] pci 0013:60:00.0: PME# supported from D0 D3hot
D3cold<br>
[ 152.348936] pci 0013:60:00.0: Adding to iommu group 0<br>
[ 152.349944] pci 0013:60:00.1: No hypervisor support for SR-IOV
on this device, IOV BARs disabled.<br>
[ 152.352701] pci 0013:60:00.1: PME# supported from D0 D3hot
D3cold<br>
[ 152.356520] pci 0013:60:00.1: Adding to iommu group 0<br>
[ 152.356527] iommu_tce: it_map is not empty<br>
[ 152.357501] pci 0013:60:00.2: No hypervisor support for SR-IOV
on this device, IOV BARs disabled.<br>
[ 152.360247] pci 0013:60:00.2: PME# supported from D0 D3hot
D3cold<br>
[ 152.364070] pci 0013:60:00.2: Adding to iommu group 0<br>
[ 152.364075] <b>iommu_tce: it_map is not empty</b><br>
[ 152.365043] pci 0013:60:00.3: No hypervisor support for SR-IOV
on this device, IOV BARs disabled.<br>
[ 152.367790] pci 0013:60:00.3: PME# supported from D0 D3hot
D3cold<br>
[ 152.371635] pci 0013:60:00.3: Adding to iommu group 0<br>
[ 152.371641] iommu_tce: it_map is not empty<br>
[ 152.371720] pci 0013:60:00.0: of_irq_parse_pci: no
interrupt-map found, INTx interrupts not available<br>
[ 152.408351] tg3 0013:60:00.0: iommu: 64-bit OK but direct DMA
is limited by 800002000000000<br>
[ 152.408376] tg3 0013:60:00.0: iommu: 64-bit OK but direct DMA
is limited by 800002000000000<br>
<b>[ 152.408404] tg3 0013:60:00.0: DMA engine test failed,
aborting</b><b><br>
</b><b>[ 152.408557] tg3: probe of 0013:60:00.0 failed with error
-12</b><br>
[ 152.408583] pci 0013:60:00.1: Adding to iommu group 0<br>
[ 152.408589] iommu_tce: it_map is not empty<br>
[ 152.408656] pci 0013:60:00.1: of_irq_parse_pci: no
interrupt-map found, INTx interrupts not available<br>
[ 152.448321] tg3 0013:60:00.1: iommu: 64-bit OK but direct DMA
is limited by 800002000000000<br>
[ 152.448339] tg3 0013:60:00.1: iommu: 64-bit OK but direct DMA
is limited by 800002000000000<br>
[ 152.448360] tg3 0013:60:00.1: DMA engine test failed, aborting<br>
[ 152.448497] tg3: probe of 0013:60:00.1 failed with error -12<br>
[ 152.448519] pci 0013:60:00.2: Adding to iommu group 0<br>
[ 152.448525] iommu_tce: it_map is not empty<br>
[ 152.448586] pci 0013:60:00.2: of_irq_parse_pci: no
interrupt-map found, INTx interrupts not available<br>
[ 152.488323] tg3 0013:60:00.2: iommu: 64-bit OK but direct DMA
is limited by 800002000000000<br>
[ 152.488340] tg3 0013:60:00.2: iommu: 64-bit OK but direct DMA
is limited by 800002000000000<br>
[ 152.488362] tg3 0013:60:00.2: DMA engine test failed, aborting<br>
[ 152.488495] tg3: probe of 0013:60:00.2 failed with error -12<br>
[ 152.488516] pci 0013:60:00.3: Adding to iommu group 0<br>
[ 152.488523] iommu_tce: it_map is not empty<br>
[ 152.488581] pci 0013:60:00.3: of_irq_parse_pci: no
interrupt-map found, INTx interrupts not available<br>
[ 152.528342] tg3 0013:60:00.3: iommu: 64-bit OK but direct DMA
is limited by 800002000000000<br>
[ 152.528359] tg3 0013:60:00.3: iommu: 64-bit OK but direct DMA
is limited by 800002000000000<br>
[ 152.528381] tg3 0013:60:00.3: DMA engine test failed, aborting<br>
[ 152.528515] tg3: probe of 0013:60:00.3 failed with error -12<br>
<br>
</p>
<div class="moz-cite-prefix">On 10/6/23 17:06, Jason Gunthorpe
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20231006113644.GN682044@nvidia.com">
<pre class="moz-quote-pre" wrap="">On Fri, Oct 06, 2023 at 01:20:17PM +0530, Tasmiya Nalatwad wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Greetings,
[linux-next] [6.6.0-rc3-next-20230929] WARNING: CPU: 5 PID: 185612 at
drivers/iommu/<a class="moz-txt-link-freetext" href="iommu.c:3049">iommu.c:3049</a> iommu_setup_default_domain+0x410/0x680
--- Traces ---
[ 6296.425934] WARNING: CPU: 5 PID: 185612 at drivers/iommu/<a class="moz-txt-link-freetext" href="iommu.c:3049">iommu.c:3049</a>
iommu_setup_default_domain+0x410/0x680
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Does this fix it too? I think it should?
<a class="moz-txt-link-freetext" href="https://lore.kernel.org/r/0-v1-2b52423411b9+164fc-iommu_ppc_defdomain_jgg@nvidia.com">https://lore.kernel.org/r/0-v1-2b52423411b9+164fc-iommu_ppc_defdomain_jgg@nvidia.com</a>
Jason
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Regards,
Tasmiya Nalatwad
IBM Linux Technology Center</pre>
</body>
</html>