From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCSB9-00060K-Sh for qemu-devel@nongnu.org; Tue, 07 Jul 2015 08:40:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCSB4-0004E5-K0 for qemu-devel@nongnu.org; Tue, 07 Jul 2015 08:40:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCSB4-0004Dr-FV for qemu-devel@nongnu.org; Tue, 07 Jul 2015 08:40:46 -0400 Date: Tue, 7 Jul 2015 15:40:41 +0300 From: "Michael S. Tsirkin" Message-ID: <1436272760-29611-13-git-send-email-mst@redhat.com> References: <1436272760-29611-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436272760-29611-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 12/13] pcie: Set the "link active" in the link status register List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell From: Benjamin Herrenschmidt Some firmwares can test that and assume the device hasn't come up if that bit isn't set Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/pci/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index 14c7711..6e28985 100644 --- a/hw/pci/pcie.c +++ b/hw/pci/pcie.c @@ -78,7 +78,7 @@ int pcie_cap_init(PCIDevice *dev, uint8_t offset, uint8_t type, uint8_t port) PCI_EXP_LNK_LS_25); pci_set_word(exp_cap + PCI_EXP_LNKSTA, - PCI_EXP_LNK_MLW_1 | PCI_EXP_LNK_LS_25); + PCI_EXP_LNK_MLW_1 | PCI_EXP_LNK_LS_25 |PCI_EXP_LNKSTA_DLLLA); pci_set_long(exp_cap + PCI_EXP_DEVCAP2, PCI_EXP_DEVCAP2_EFF | PCI_EXP_DEVCAP2_EETLPP); -- MST