Skip to contentSkip to conversation

PCI Passthrough for Digium TCE400P Codec Card Not working

Qemu-devel Ray Seals 2 participants 5 messages Oct 31, 2011 – Jan 8, 2017

lore
Share & tools
lore

Ray Seals

author
#0 lore raw

Public bug reported:

trying to use a Digium TCE400P Codec card on a Virtual instance using the following information:

lspci <enter>

02:08.0 Ethernet controller: Digium, Inc. Wildcard TCE400P transcoder base card (rev 11)

lspci -n <enter>

02:08.0 0200: d161:8004 (rev 11)

virsh nodedev-list | grep pci

pci_0000_02_08_0

printf %x 02
2

printf %x 08
8

printf %x 0
0

bus='0x02'
slot='0x08'
function='0x0'

# virsh edit vmanager
<hostdev mode='subsystem' type='pci' managed='yes'>
  <source>
      <address domain='0x0000' bus='0x02' slot='0x08' function='0x0'/>
  </source>
</hostdev>

I have SELINUX disabled at this time.

virsh start vmanager I get the following error message:

[root@twins qemu]# virsh start vmanager
error: Failed to start domain vmanager
error: internal error Process exited while reading console log output: char device redirected to /dev/pts/2 Unable to assign device: PCI region 1 at address 0xdf1fe000 has size 0x400, which is not a multiple of 4K
qemu-kvm: -device pci-assign,host=02:08.0,id=hostdev0,configfd=23,bus=pci.0,addr=0x6: Device 'pci-assign' could not be initialized

Version Numbers:

[root@twins qemu]# yum list | grep qemu

gpxe-roms-qemu.noarch                  0.9.7-6.3.el6_0.1                @updates
qemu-img.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
qemu-kvm.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
qemu-kvm-tools.x86_64                  2:0.12.1.2-2.113.el6_0.8         updates

** Affects: qemu
Importance: Undecided
Status: New

Signature · 68 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/884401

Title:
  PCI Passthrough for Digium TCE400P Codec Card Not working

Status in QEMU:
  New

Bug description:
  trying to use a Digium TCE400P Codec card on a Virtual instance using
  the following information:

  lspci <enter>

  02:08.0 Ethernet controller: Digium, Inc. Wildcard TCE400P transcoder
  base card (rev 11)

  lspci -n <enter>

  02:08.0 0200: d161:8004 (rev 11)

  virsh nodedev-list | grep pci

  pci_0000_02_08_0

  printf %x 02
  2

  printf %x 08
  8

  printf %x 0
  0

  bus='0x02'
  slot='0x08'
  function='0x0'

  # virsh edit vmanager
  <hostdev mode='subsystem' type='pci' managed='yes'>
    <source>
        <address domain='0x0000' bus='0x02' slot='0x08' function='0x0'/>
    </source>
  </hostdev>

  I have SELINUX disabled at this time.

  virsh start vmanager I get the following error message:

  [root@twins qemu]# virsh start vmanager
  error: Failed to start domain vmanager
  error: internal error Process exited while reading console log output: char device redirected to /dev/pts/2
  Unable to assign device: PCI region 1 at address 0xdf1fe000 has size 0x400,  which is not a multiple of 4K
  qemu-kvm: -device pci-assign,host=02:08.0,id=hostdev0,configfd=23,bus=pci.0,addr=0x6: Device 'pci-assign' could not be initialized


  Version Numbers:

  [root@twins qemu]# yum list | grep qemu
  gpxe-roms-qemu.noarch                  0.9.7-6.3.el6_0.1                @updates
  qemu-img.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
  qemu-kvm.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
  qemu-kvm-tools.x86_64                  2:0.12.1.2-2.113.el6_0.8         updates

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/884401/+subscriptions
author
#1 lore raw

Here is what my grub.conf looks like (see the addition of the intel_iommu=on:

title CentOS Linux (2.6.32-71.29.1.el6.x86_64)

        root (hd0,0)
        kernel /vmlinuz-2.6.32-71.29.1.el6.x86_64 ro root=/dev/mapper/vg_twins-lv_root rd_LVM_LV=vg_twins/lv_root rd_LVM_LV=vg_twins/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=128M rhgb quiet intel_iommu=on
        initrd /initramfs-2.6.32-71.29.1.el6.x86_64.img
Signature · 68 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/884401

Title:
  PCI Passthrough for Digium TCE400P Codec Card Not working

Status in QEMU:
  New

Bug description:
  trying to use a Digium TCE400P Codec card on a Virtual instance using
  the following information:

  lspci <enter>

  02:08.0 Ethernet controller: Digium, Inc. Wildcard TCE400P transcoder
  base card (rev 11)

  lspci -n <enter>

  02:08.0 0200: d161:8004 (rev 11)

  virsh nodedev-list | grep pci

  pci_0000_02_08_0

  printf %x 02
  2

  printf %x 08
  8

  printf %x 0
  0

  bus='0x02'
  slot='0x08'
  function='0x0'

  # virsh edit vmanager
  <hostdev mode='subsystem' type='pci' managed='yes'>
    <source>
        <address domain='0x0000' bus='0x02' slot='0x08' function='0x0'/>
    </source>
  </hostdev>

  I have SELINUX disabled at this time.

  virsh start vmanager I get the following error message:

  [root@twins qemu]# virsh start vmanager
  error: Failed to start domain vmanager
  error: internal error Process exited while reading console log output: char device redirected to /dev/pts/2
  Unable to assign device: PCI region 1 at address 0xdf1fe000 has size 0x400,  which is not a multiple of 4K
  qemu-kvm: -device pci-assign,host=02:08.0,id=hostdev0,configfd=23,bus=pci.0,addr=0x6: Device 'pci-assign' could not be initialized


  Version Numbers:

  [root@twins qemu]# yum list | grep qemu
  gpxe-roms-qemu.noarch                  0.9.7-6.3.el6_0.1                @updates
  qemu-img.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
  qemu-kvm.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
  qemu-kvm-tools.x86_64                  2:0.12.1.2-2.113.el6_0.8         updates

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/884401/+subscriptions
#2 lore raw
In reply to Ray Seals

This is a distro bug, not an upstream bug. The error message indicates the version of qemu-kvm you're using doesn't support sub-4k MMIO BARs. This has already been fixed in RHEL6.1.

Signature · 68 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/884401

Title:
  PCI Passthrough for Digium TCE400P Codec Card Not working

Status in QEMU:
  New

Bug description:
  trying to use a Digium TCE400P Codec card on a Virtual instance using
  the following information:

  lspci <enter>

  02:08.0 Ethernet controller: Digium, Inc. Wildcard TCE400P transcoder
  base card (rev 11)

  lspci -n <enter>

  02:08.0 0200: d161:8004 (rev 11)

  virsh nodedev-list | grep pci

  pci_0000_02_08_0

  printf %x 02
  2

  printf %x 08
  8

  printf %x 0
  0

  bus='0x02'
  slot='0x08'
  function='0x0'

  # virsh edit vmanager
  <hostdev mode='subsystem' type='pci' managed='yes'>
    <source>
        <address domain='0x0000' bus='0x02' slot='0x08' function='0x0'/>
    </source>
  </hostdev>

  I have SELINUX disabled at this time.

  virsh start vmanager I get the following error message:

  [root@twins qemu]# virsh start vmanager
  error: Failed to start domain vmanager
  error: internal error Process exited while reading console log output: char device redirected to /dev/pts/2
  Unable to assign device: PCI region 1 at address 0xdf1fe000 has size 0x400,  which is not a multiple of 4K
  qemu-kvm: -device pci-assign,host=02:08.0,id=hostdev0,configfd=23,bus=pci.0,addr=0x6: Device 'pci-assign' could not be initialized


  Version Numbers:

  [root@twins qemu]# yum list | grep qemu
  gpxe-roms-qemu.noarch                  0.9.7-6.3.el6_0.1                @updates
  qemu-img.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
  qemu-kvm.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
  qemu-kvm-tools.x86_64                  2:0.12.1.2-2.113.el6_0.8         updates

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/884401/+subscriptions
#3 lore raw
In reply to Ray Seals

According to the comment to Alex, this should have been fixed in newer versions, so setting status to "Fix Released" now.

** Changed in: qemu
Status: New => Fix Released

Signature · 68 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/884401

Title:
  PCI Passthrough for Digium TCE400P Codec Card Not working

Status in QEMU:
  Fix Released

Bug description:
  trying to use a Digium TCE400P Codec card on a Virtual instance using
  the following information:

  lspci <enter>

  02:08.0 Ethernet controller: Digium, Inc. Wildcard TCE400P transcoder
  base card (rev 11)

  lspci -n <enter>

  02:08.0 0200: d161:8004 (rev 11)

  virsh nodedev-list | grep pci

  pci_0000_02_08_0

  printf %x 02
  2

  printf %x 08
  8

  printf %x 0
  0

  bus='0x02'
  slot='0x08'
  function='0x0'

  # virsh edit vmanager
  <hostdev mode='subsystem' type='pci' managed='yes'>
    <source>
        <address domain='0x0000' bus='0x02' slot='0x08' function='0x0'/>
    </source>
  </hostdev>

  I have SELINUX disabled at this time.

  virsh start vmanager I get the following error message:

  [root@twins qemu]# virsh start vmanager
  error: Failed to start domain vmanager
  error: internal error Process exited while reading console log output: char device redirected to /dev/pts/2
  Unable to assign device: PCI region 1 at address 0xdf1fe000 has size 0x400,  which is not a multiple of 4K
  qemu-kvm: -device pci-assign,host=02:08.0,id=hostdev0,configfd=23,bus=pci.0,addr=0x6: Device 'pci-assign' could not be initialized


  Version Numbers:

  [root@twins qemu]# yum list | grep qemu
  gpxe-roms-qemu.noarch                  0.9.7-6.3.el6_0.1                @updates
  qemu-img.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
  qemu-kvm.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
  qemu-kvm-tools.x86_64                  2:0.12.1.2-2.113.el6_0.8         updates

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/884401/+subscriptions
#4 lore raw
In reply to Ray Seals

Oh, I meant "comment from Alex", not "comment to Alex", sorry!

Signature · 68 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/884401

Title:
  PCI Passthrough for Digium TCE400P Codec Card Not working

Status in QEMU:
  Fix Released

Bug description:
  trying to use a Digium TCE400P Codec card on a Virtual instance using
  the following information:

  lspci <enter>

  02:08.0 Ethernet controller: Digium, Inc. Wildcard TCE400P transcoder
  base card (rev 11)

  lspci -n <enter>

  02:08.0 0200: d161:8004 (rev 11)

  virsh nodedev-list | grep pci

  pci_0000_02_08_0

  printf %x 02
  2

  printf %x 08
  8

  printf %x 0
  0

  bus='0x02'
  slot='0x08'
  function='0x0'

  # virsh edit vmanager
  <hostdev mode='subsystem' type='pci' managed='yes'>
    <source>
        <address domain='0x0000' bus='0x02' slot='0x08' function='0x0'/>
    </source>
  </hostdev>

  I have SELINUX disabled at this time.

  virsh start vmanager I get the following error message:

  [root@twins qemu]# virsh start vmanager
  error: Failed to start domain vmanager
  error: internal error Process exited while reading console log output: char device redirected to /dev/pts/2
  Unable to assign device: PCI region 1 at address 0xdf1fe000 has size 0x400,  which is not a multiple of 4K
  qemu-kvm: -device pci-assign,host=02:08.0,id=hostdev0,configfd=23,bus=pci.0,addr=0x6: Device 'pci-assign' could not be initialized


  Version Numbers:

  [root@twins qemu]# yum list | grep qemu
  gpxe-roms-qemu.noarch                  0.9.7-6.3.el6_0.1                @updates
  qemu-img.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
  qemu-kvm.x86_64                        2:0.12.1.2-2.113.el6_0.8         @updates
  qemu-kvm-tools.x86_64                  2:0.12.1.2-2.113.el6_0.8         updates

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/884401/+subscriptions