Skip to contentSkip to conversation

question about ixgbevf/ixgbevf_main.c

DISCUSSION Julia Lawall 2 participants 4 messages Jan 7, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I was wondering why ixgbevf_suspend doesn't call pci_set_power_state? It is called in the corresponding resume function, and most other PCI drivers with a suspend functyion also call it in suspend.

thanks,
julia

#1 lore raw

A VF isn't a real device so it shouldn't really have the concept of a power state. The power state for the device is controlled via the PF. I suspect the fact that ixgbevf is modifying power state on resume is likely a bug.

Thanks,

Alex

Quoted 11 lines · Julia Lawall

I was wondering why ixgbevf_suspend doesn't call pci_set_power_state? It is called in the corresponding resume function, and most other PCI drivers with a suspend functyion also call it in suspend.

thanks,
julia
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 4 lines · Alexander Duyck

A VF isn't a real device so it shouldn't really have the concept of a power state. The power state for the device is controlled via the PF. I suspect the fact that ixgbevf is modifying power state on resume is likely a bug.

Thanks for the information, which is very helpful. Should I submit a patch to remove it in the resume function? I don't have the ability ot test it, though.

julia

Quoted 19 lines

Thanks,

Alex

Quoted 11 lines · Julia Lawall

I was wondering why ixgbevf_suspend doesn't call pci_set_power_state? It is called in the corresponding resume function, and most other PCI drivers with a suspend functyion also call it in suspend.

thanks,
julia
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 6 lines · Julia Lawall
Quoted 4 lines · Alexander Duyck

A VF isn't a real device so it shouldn't really have the concept of a power state. The power state for the device is controlled via the PF. I suspect the fact that ixgbevf is modifying power state on resume is likely a bug.

Quoted 6 lines

Thanks for the information, which is very helpful. Should I submit a patch to remove it in the resume function? I don't have the ability ot test it, though.

julia

You could submit a patch. The issue should just be cosmetic. Setting the power state to D0 should have no impact on things one way or another since that is the state VFs are normally in when they are created.

Thanks,

Alex