Skip to contentSkip to conversation

pciback.hide sundance

DISCUSSION Christian Placzek 2 participants 2 messages Apr 26, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to set up a Xen server using two 4-port NIC cards. The exact type: D-Link DFE 580TX. There are no problems using this cards under plain linux. The driver is called 'sundance'.

But when I use pciback.hide the DomU can't access this card.

I have had the same task when using the NIC BCM 5708 (NetXtreme II). I had found a message in 'dmesg':

pciback 0000:09:00.0: Driver tried to write to a read-only configuration space field at offset 0x4c, size 2. This may be harmless, but if you have problems with your device:
1) see permissive attribute in sysfs
2) report problems to the xen-devel mailing list along with details of your device obtained from lspci.
PCI: Enabling device 0000:09:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:09:00.0[A] -> GSI 16 (level, low) -> IRQ 16

I added this line:

         '14e4:164c'   # Broadcom Tigon3 5708 (NetXtreme II)

in the file '/etc/xen/xend-pci-quirks.sxp' in the section tg3. And everything works fine.

But in this case I have not found any further information about the pci_config_space_fields.

Could anybody help me?

Information about the DFE 580TX:

# lspci -nn
12:04.0 Ethernet controller [0200]: D-Link System Inc DL10050
Sundance Ethernet [1186:1002] (rev 15)
# lspci -vvv
12:04.0 Ethernet controller: D-Link System Inc DL10050 Sundance
Ethernet (rev 15)
        Subsystem: D-Link System Inc DFE-580TX
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium
Quoted 1 line

TAbort- <TAbort- <MAbort- >SERR- <PERR-

Latency: 32 (2500ns min, 2500ns max), Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 20
Region 0: I/O ports at dc80 [size=128]
Expansion ROM at fc500000 [disabled] [size=64K]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0-,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable+ DSel=0 DScale=2 PME-

The error message:

# dmesg
pciback 0000:12:04.0: Driver tried to write to a read-only
configuration space field at offset 0x54, size 2. This may be
harmless, but if you have problems with your device:
1) see permissive attribute in sysfs
2) report problems to the xen-devel mailing list along with details
of your device obtained from lspci.
PCI: Enabling device 0000:12:04.0 (0000 -> 0001)
ACPI: PCI Interrupt 0000:12:04.0[A] -> GSI 224 (level, low) -> IRQ 20

Kris

#1 lore raw
Quoted 4 lines · Christian Placzek

But in this case I have not found any further information about the pci_config_space_fields.

Could anybody help me?

Try adding '1186:1002' to xend-pci-permissive.sxp.

I'm considering making permissiveness the global default again. So many users of pcifront/pciback hit this problem.

-- Keir