pcie: correct mistaken register bit for End-End TLP Prefix Blocking
from pcie spec 7.8.17, the End-End TLP Prefix Blocking bit local is 15(e.g. 0x8000) in device control 2 register. Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
6c936b7423
commit
30b04f8711
@ -84,7 +84,7 @@ int pcie_cap_init(PCIDevice *dev, uint8_t offset, uint8_t type, uint8_t port)
|
|||||||
pci_set_long(exp_cap + PCI_EXP_DEVCAP2,
|
pci_set_long(exp_cap + PCI_EXP_DEVCAP2,
|
||||||
PCI_EXP_DEVCAP2_EFF | PCI_EXP_DEVCAP2_EETLPP);
|
PCI_EXP_DEVCAP2_EFF | PCI_EXP_DEVCAP2_EETLPP);
|
||||||
|
|
||||||
pci_set_word(dev->wmask + pos, PCI_EXP_DEVCTL2_EETLPPB);
|
pci_set_word(dev->wmask + pos + PCI_EXP_DEVCTL2, PCI_EXP_DEVCTL2_EETLPPB);
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
#define PCI_EXP_DEVCAP2_EFF 0x100000
|
#define PCI_EXP_DEVCAP2_EFF 0x100000
|
||||||
#define PCI_EXP_DEVCAP2_EETLPP 0x200000
|
#define PCI_EXP_DEVCAP2_EETLPP 0x200000
|
||||||
|
|
||||||
#define PCI_EXP_DEVCTL2_EETLPPB 0x80
|
#define PCI_EXP_DEVCTL2_EETLPPB 0x8000
|
||||||
|
|
||||||
/* ARI */
|
/* ARI */
|
||||||
#define PCI_ARI_VER 1
|
#define PCI_ARI_VER 1
|
||||||
|
Loading…
Reference in New Issue
Block a user