From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZClro-0002uk-33 for qemu-devel@nongnu.org; Wed, 08 Jul 2015 05:42:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZClrm-0004Dc-TP for qemu-devel@nongnu.org; Wed, 08 Jul 2015 05:42:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZClrm-0004DW-Oq for qemu-devel@nongnu.org; Wed, 08 Jul 2015 05:42:10 -0400 Date: Wed, 8 Jul 2015 12:42:07 +0300 From: "Michael S. Tsirkin" Message-ID: <1436348444-907-13-git-send-email-mst@redhat.com> References: <1436348444-907-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436348444-907-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL v2 12/16] 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