Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1411927 > unrolled thread

sriov capability enumeration returns false.

Started byalan hopes <hopes.alan@gmail.com>
First post2016-06-02 09:00 +0200
Last post2016-06-02 13:40 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  sriov capability enumeration returns false. alan hopes <hopes.alan@gmail.com> - 2016-06-02 09:00 +0200
    Re: sriov capability enumeration returns false. alan hopes <hopes.alan@gmail.com> - 2016-06-02 13:40 +0200

#1411927 — sriov capability enumeration returns false.

Fromalan hopes <hopes.alan@gmail.com>
Date2016-06-02 09:00 +0200
Subjectsriov capability enumeration returns false.
Message-ID<rFuLM-2xr-39@gated-at.bofh.it>
Hi,

I am working on a simple graphics driver that just enumerates SRIOV
capability of PCI graphics controller.
During the init phase of the driver i.e. when the driver loads, I find
the PCI device based on my vendor ID and device ID, and then I check
if pDev->sriov and and I get the value false even though I can see the
SRIOV capability set using lspci.

Code for checking SRIOV capability:
pdev = get device based on device ID and vendor ID.
if (pDev->sriov)
      return false.

Output of lspci correctly reporting SRIOV capability at offset 0x330.

"
Capabilities: [330 v1] Single Root I/O Virtualization (SR-IOV)
                IOVCap: Migration-, Interrupt Message Number: 000
                IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy+
                IOVSta: Migration-
                Initial VFs: 16, Total VFs: 16, Number of VFs: 0,
Function Dependency Link: 00
                VF offset: 256, stride: 1, Device ID: xxxx
                Supported Page Size: 00000553, System Page Size: 00000001
                Region 0: Memory at 0000021ee0000000 (64-bit, prefetchable)
                Region 2: Memory at 0000021ff0000000 (64-bit, prefetchable)
                Region 5: Memory at 98c00000 (32-bit, non-prefetchable)
                VF Migration: offset: 00000000, BIR: 0
"

I can see, using lspci, that card has been setup properly with SRIOV
enabled. But then why my driver is not able to see this value. I think
I am missing something, Please can you suggest what I am doing wrong
here..

Thanks
Alan

[toc] | [next] | [standalone]


#1412142

Fromalan hopes <hopes.alan@gmail.com>
Date2016-06-02 13:40 +0200
Message-ID<rFz8J-5lj-9@gated-at.bofh.it>
In reply to#1411927
Any suggestions ?

Alan

On Thu, Jun 2, 2016 at 7:59 AM, alan hopes <hopes.alan@gmail.com> wrote:
> Hi,
>
> I am working on a simple graphics driver that just enumerates SRIOV
> capability of PCI graphics controller.
> During the init phase of the driver i.e. when the driver loads, I find
> the PCI device based on my vendor ID and device ID, and then I check
> if pDev->sriov and and I get the value false even though I can see the
> SRIOV capability set using lspci.
>
> Code for checking SRIOV capability:
> pdev = get device based on device ID and vendor ID.
> if (pDev->sriov)
>       return false.
>
> Output of lspci correctly reporting SRIOV capability at offset 0x330.
>
> "
> Capabilities: [330 v1] Single Root I/O Virtualization (SR-IOV)
>                 IOVCap: Migration-, Interrupt Message Number: 000
>                 IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy+
>                 IOVSta: Migration-
>                 Initial VFs: 16, Total VFs: 16, Number of VFs: 0,
> Function Dependency Link: 00
>                 VF offset: 256, stride: 1, Device ID: xxxx
>                 Supported Page Size: 00000553, System Page Size: 00000001
>                 Region 0: Memory at 0000021ee0000000 (64-bit, prefetchable)
>                 Region 2: Memory at 0000021ff0000000 (64-bit, prefetchable)
>                 Region 5: Memory at 98c00000 (32-bit, non-prefetchable)
>                 VF Migration: offset: 00000000, BIR: 0
> "
>
> I can see, using lspci, that card has been setup properly with SRIOV
> enabled. But then why my driver is not able to see this value. I think
> I am missing something, Please can you suggest what I am doing wrong
> here..
>
> Thanks
> Alan

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web