* sriov capability enumeration returns false.
@ 2016-06-02 6:59 alan hopes
2016-06-02 11:38 ` alan hopes
0 siblings, 1 reply; 2+ messages in thread
From: alan hopes @ 2016-06-02 6:59 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sriov capability enumeration returns false.
2016-06-02 6:59 sriov capability enumeration returns false alan hopes
@ 2016-06-02 11:38 ` alan hopes
0 siblings, 0 replies; 2+ messages in thread
From: alan hopes @ 2016-06-02 11:38 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-02 11:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-02 6:59 sriov capability enumeration returns false alan hopes
2016-06-02 11:38 ` alan hopes
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.