[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 3/8] pcie: correct mistaken register bit for End-End
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PULL 3/8] pcie: correct mistaken register bit for End-End TLP Prefix Blocking |
Date: |
Wed, 18 Mar 2015 13:34:42 +0100 |
From: Chen Fan <address@hidden>
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 <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
include/hw/pci/pcie_regs.h | 2 +-
hw/pci/pcie.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/hw/pci/pcie_regs.h b/include/hw/pci/pcie_regs.h
index 652d9fc..848ab1c 100644
--- a/include/hw/pci/pcie_regs.h
+++ b/include/hw/pci/pcie_regs.h
@@ -72,7 +72,7 @@
#define PCI_EXP_DEVCAP2_EFF 0x100000
#define PCI_EXP_DEVCAP2_EETLPP 0x200000
-#define PCI_EXP_DEVCTL2_EETLPPB 0x80
+#define PCI_EXP_DEVCTL2_EETLPPB 0x8000
/* ARI */
#define PCI_ARI_VER 1
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c
index 1abbbb1..1463e65 100644
--- a/hw/pci/pcie.c
+++ b/hw/pci/pcie.c
@@ -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_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;
}
--
MST
- [Qemu-devel] [PULL 0/8] pci, virtio bugfixes for 2.3, Michael S. Tsirkin, 2015/03/18
- [Qemu-devel] [PULL 1/8] virtio: validate the existence of handle_output before calling it, Michael S. Tsirkin, 2015/03/18
- [Qemu-devel] [PULL 4/8] aer: fix wrong check on expose aer tlp prefix log, Michael S. Tsirkin, 2015/03/18
- [Qemu-devel] [PULL 2/8] virtio: Fix memory leaks reported by Coverity, Michael S. Tsirkin, 2015/03/18
- [Qemu-devel] [PULL 5/8] pcie_aer: fix typos in pcie_aer_inject_error comment, Michael S. Tsirkin, 2015/03/18
- [Qemu-devel] [PULL 8/8] pcie_aer: fix comment to match pcie spec, Michael S. Tsirkin, 2015/03/18
- [Qemu-devel] [PULL 3/8] pcie: correct mistaken register bit for End-End TLP Prefix Blocking,
Michael S. Tsirkin <=
- [Qemu-devel] [PULL 7/8] pci: fix several trivial typos in comment, Michael S. Tsirkin, 2015/03/18
- [Qemu-devel] [PULL 6/8] aer: fix a wrong init PCI_ERR_COR_STATUS w1cmask type register, Michael S. Tsirkin, 2015/03/18
- Re: [Qemu-devel] [PULL 0/8] pci, virtio bugfixes for 2.3, Peter Maydell, 2015/03/19