<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 08/12/2013 04:19 PM, jinho hwang
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPQGAnGVzACKZDS5k894+-7kEZ2Sg6iSwkcj9+XOMYcuyGaeaQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">Hi All,<br>
        <br>
        I am using iommu to receive packets both from hypervisor and
        from VM. KVM is used for the virtualization. However, after I
        deliver the kernel options (iommu and pci realloc), I can not
        receive packets in hypervisor, but VF works fine in VM. When I
        tried to receive packets in hypervisor, dmesg shows the
        following:<br>
        <br>
        ixgbe 0000:03:00.1: complete                                    <br>
        ixgbe 0000:03:00.1: PCI INT A disabled                          <br>
        igb_uio 0000:03:00.1: PCI INT A -> GSI 38 (level, low) ->
        IRQ 38<br>
        igb_uio 0000:03:00.1: setting latency timer to 64              
        <br>
        igb_uio 0000:03:00.1: irq 87 for MSI/MSI-X                      <br>
        uio device registered with irq 57                              
        <br>
        DRHD: handling fault status reg 2                              
        <br>
        DMAR:[DMA Read] Request device [03:00.1] fault addr <b>b9d0f000</b>
                                                                       
                                                                       
                              <br>
        DMAR:[fault reason 02] Present bit in context entry is clear<br>
        <br>
        03:00.1 Ethernet controller: Intel Corporation 82599EB 10
        Gigabit Dual Port Backplane Connection (rev 01)<br>
                Subsystem: Intel Corporation Ethernet X520 10GbE Dual
        Port KX4-KR Mezz<br>
                Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV-
        VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+<br>
                Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast
        >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-<br>
                Latency: 0, Cache Line Size: 64 bytes                  <br>
                Interrupt: pin A routed to IRQ 38                      <br>
                Region 0: Memory at <b>d9400000</b> (64-bit,
        prefetchable) [size=4M]<br>
                Region 2: I/O ports at ece0 [size=32]                  <br>
                Region 4: Memory at d9bfc000 (64-bit, prefetchable)
        [size=16K]<br>
                Expansion ROM at <ignored> [disabled]            
             <br>
                Capabilities: <access denied>                    
             <br>
                Kernel driver in use: igb_uio                          <br>
                Kernel modules: ixgbe                                  <br>
        <br>
        <div>We can see those addresses are not matched. So the kernel
          got fault. I am wondering why this happens?</div>
      </div>
    </blockquote>
    I have seen this happen when VT-d is enabled in the bios.  If you
    are using dpdk 1.4, add "iommu=pt" to your boot line.  Without it,
    no packets are received.<br>
    <br>
    Pb<br>
    <blockquote
cite="mid:CAPQGAnGVzACKZDS5k894+-7kEZ2Sg6iSwkcj9+XOMYcuyGaeaQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>One suspicion for this is BIOS. I am currently using BIOS
          version 3.0, but the latest is 6.3.0. Does this affect the
          matter? </div>
        <div><br>
        </div>
        <div>Any help appreciated!</div>
        <div><br>
        </div>
        <div>Jinho                                             <br>
          <div>                                                         
                 <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>