• X
    pci: do not save 'PCI_BRIDGE_CTL_BUS_RESET' · 36b45f28
    Xiongfeng Wang 提交于
    hulk inclusion
    category: bugfix
    bugzilla: 20702
    CVE: NA
    ---------------------------
    
    When I inject a PCIE Fatal error into a mellanox netdevice, 'dmesg'
    shows the device is recovered successfully, but 'lspci' didn't show the
    device. I checked the configuration space of the slot where the
    netdevice is inserted and found out the bit 'PCI_BRIDGE_CTL_BUS_RESET'
    is set. Later, I found out it is because this bit is saved in
    'saved_config_space' of 'struct pci_dev' when 'pci_pm_runtime_suspend()'
    is called. And 'PCI_BRIDGE_CTL_BUS_RESET' is set every time we restore
    the configuration sapce.
    
    This patch avoid saving the bit 'PCI_BRIDGE_CTL_BUS_RESET' when we save
    the configuration space of a bridge.
    Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
    Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
    Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
    36b45f28
pci.c 162.5 KB