[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with Network SR-IOV (PF still in reset state. Is the PF interface up?)


  • To: Bhasker C V <bhasker@xxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 6 Sep 2021 09:42:39 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=thr+KWDNBf4RXgukMPAM+yfG2ZtaAJHpOlaYkocEhOU=; b=Xaall/BESC/SB9UCTlJvcaU0oN/D9ierH/Sp9K0BqZpYEKQlKkYXNnfpsJadA+ouX6WcyyCKPs52GRxdJRVh74Bqy1c+MKGnkCLQc0+tH72Fy36UDQzazaPHt6fav/5j4/K8hrv2LAAyzTUoOTx3+8Jmoa7zIGJk85IkwoZ9bRpiikrRq46IMmlC9r3E7jlQi82SH0Z29gExn8Dpj8s4u/kGbvK9sr+siRSweJwBGQwrYNOTIDW8O85P5VphaUIfMCW6q+ZnpZbEJTF7NUT0Kxfc3ptCzQr+GX+Wik3tr24W5U3OGOB57PQc0N6ZM/4jdbJQMDFdJAckRTm1yPaLsQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oe2ussa7S5SlyO7NRMUHxRj5gFZ3JEo7d7CJFEqPvsM/1Tq2Hi9g+GYatJUOnQqezXs1z6/lAtnXnSmiUM6XuBhWJfcJtGDS8LDhfy1v3kH/7AZ+rWAST+8sQ+6FQwBsBVK9hO6qUNQyasiEglhqT2LnhdK94NRh1zQNBAronCD9imvRkR4kwq4/QrjJ8Cbb9zUMA60LjPGeIYfh+Wm+5FuMMCqcpZryz1qcv8+1cw9A2WGRrUVTBG5rGytq/t91jDcPz+KuNQwQn035IzKWyZK45JznydZLPWA+NSq9HZafYoz/H32kckeQ4f8Ai9K/oi+xt4NDScDI6bgbx+YM7A==
  • Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 06 Sep 2021 07:42:54 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

(please don't cross-post; removing xen-users)

On 04.09.2021 17:12, Bhasker C V wrote:
> I run  xen-4.14.3-pre from debian
> 
> I created 6 vfs for my igb card
> 06:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network
> Connection (rev 01)
> I got these
> 07:10.0 Ethernet controller: Intel Corporation I350 Ethernet Controller
> Virtual Function (rev 01)
> 07:10.1 Ethernet controller: Intel Corporation I350 Ethernet Controller
> Virtual Function (rev 01)
> 07:10.4 Ethernet controller: Intel Corporation I350 Ethernet Controller
> Virtual Function (rev 01)
> 07:10.5 Ethernet controller: Intel Corporation I350 Ethernet Controller
> Virtual Function (rev 01)
> 07:11.0 Ethernet controller: Intel Corporation I350 Ethernet Controller
> Virtual Function (rev 01)
> 07:11.1 Ethernet controller: Intel Corporation I350 Ethernet Controller
> Virtual Function (rev 01)
> 
> bcv@bcvibmb1:~$ sudo xl pci-assignable-list
> 0000:07:10.1
> 
> However the guest is not able to see the link up.
> bcv@utils:~$ sudo ethtool  enp0s0f1
> 
> 
> 
> Settings for enp0s0f1:
> 
>         Supported ports: [ ]
> ...
> 
>         Link detected: no
> 
> I see this error on the guest
> 
> [    6.134890] igbvf 0000:00:00.1: Xen PCI mapped GSI0 to IRQ19
> 
> [    6.149577] igbvf 0000:00:00.1: PF still in reset state. Is the PF
> interface up?
> 
> [    6.149595] igbvf 0000:00:00.1: Assigning random MAC address.
> 
> 
> 
> [    6.151552] igbvf 0000:00:00.1: PF still resetting
> 
> [    6.153807] igbvf 0000:00:00.1: Intel(R) I350 Virtual Function
> 
> [    6.153822] igbvf 0000:00:00.1: Address: 32:91:70:c5:62:bd

All of this is kernel functionality, which driver maintainers may be
in a better position to help with. At the first glance the Xen
version in use may be of no relevance here.

> and thiis on the host:
> [  390.776779] xen-blkback: backend/vbd/3/51713: using 1 queues, protocol 1
> (x86_64-abi) persistent grants
> 
> 
> [  395.849996] pciback 0000:07:10.1: xen-pciback: Driver tried to write to
> a read-only configuration space field at offset 0x1d6, size 2. This may be
> harmless, but if you have problems with your device:
> 
> [  395.849996] 1) see permissive attribute in sysfs
> 
> 
> 
> [  395.849996] 2) report problems to the xen-devel mailing list along with
> details of your device obtained from lspci.
> 
> 
> [  396.103595] pciback 0000:07:10.1: enabling device (0000 -> 0002)
> 
> 
> 
> 
> However if I pass through 07:10.4 it works fine. The host still reports
> this  above error but all works well in the guest.

"This above error" being which one? "PF still resetting" or "Driver tried
to write ..."?

> Please could someone help ? I have been using  KVM these years and just
> moved to xen and hence new to xen.

Well, if one of the VFs works and the other doesn't, then a close
comparison of the various logs (hypervisor, kernels, tool stack) may
already provide an indication of the problem. Above you only supply
individual lines from logs, which isn't going to be sufficient to derive
anything.

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.