From nobody Sat Apr 27 05:35:36 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=bernat.ch ARC-Seal: i=1; a=rsa-sha256; t=1623671191; cv=none; d=zohomail.com; s=zohoarc; b=jehVWccrDGw2Ci+Midtr6y9pb9Y1ejCSQKd++Gg1Blqtu055MZnpdTDihLm9j9o2wUq31vBpbZ2RL0ArkV/204mTS5JD7EBEYph366qj/wU3HrkmT8t9B9jDwT3hETZY4hqSg2+8oUbdSldeFBEf/yu0HRAbZJLnKM3xS6IvIbw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623671191; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=pr6bcUvayBuXvPOKpo/5MnHGwZUgCykb9KuH9H45yuM=; b=Hy9eySWaSaFipzsGabtd4ULiUleIj8qMCnw4kmtryvZlBLT5HXNeN9+XLwPE5RoW5+LE2tLGw7UXOisEyFN3KGxEAQYEQpsImVqSBO9i1SUPS2WaMiqmDbU0aPDtXdAC/mxZbUYt2kRLT1EOF1FnyquTqAwpjOAtGjwoMPsrZMc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162367119149695.12536001143553; Mon, 14 Jun 2021 04:46:31 -0700 (PDT) Received: from localhost ([::1]:50842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsl30-0005aX-Aq for importer2@patchew.org; Mon, 14 Jun 2021 07:46:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsl0o-0004ht-Rr for qemu-devel@nongnu.org; Mon, 14 Jun 2021 07:44:15 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:40635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsl0m-0006cJ-0g for qemu-devel@nongnu.org; Mon, 14 Jun 2021 07:44:14 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id F2EBC5C009E; Mon, 14 Jun 2021 07:44:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 14 Jun 2021 07:44:08 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Jun 2021 07:44:08 -0400 (EDT) Received: by neo.luffy.cx (Postfix, from userid 500) id EC640CBF; Mon, 14 Jun 2021 13:44:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bernat.ch; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=pr6bcUvayBuXvPOKpo/5MnHGwZ UgCykb9KuH9H45yuM=; b=Rl/4XJQR92TGbOtpKOZyaL3x4ZDg0+efx9nHKHys95 f9cTeexdjhps2VROBiu7pDfaVAriF9zPd7qBcqETz7mcf3YNkR4MLpa2aD0iwa8P QSwEcWMTATuvh0qOiLk6Ur3SbIhrGnCZFyQX1qeIyVSJYztv7LC3EWfGOVrRm7Bd 9SOyvyX2sovU12h8ag3siWEVnO7oqqTjB5eZEClo5BWc9dG8iA8n7YBEhphTBUi2 ePHqU98N1N41kaGjRVUQNunYfp1tZ2xJ4u+sBAc4FL9VB2tFgSuLyaTM3naLkGUd Hlbk+G4QTIAWIgM4gbOnep+VQLGqHK8qFTYRABwzQx+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=pr6bcUvayBuXvPOKp o/5MnHGwZUgCykb9KuH9H45yuM=; b=iWMExQ8eJdeVr/gfAVvnN73e/gdojN+0v c8GZc9arK3hJL9KoYr0f5TncXpHlU455zFz+XWgEKwsEq2GSdYLXne6nQI/GNO2C YS5CBACccQ5aoD5Q7AOhdi+13kNx4hcaVPo98p0TvP5NEV46dd6eIWy/tGTA6J0L p4Ch3urAoM8soORLQONbbpQnQGQ/3czAaqdeQsb14kfZGk7zyOtu0xfbjINoHpe9 fdykRGMmklITGKXhVNJGrS7n9qPyGaJro2HlK7QONIdeJjQNqCpgCP5BxBvaYCF9 7Hr55hUkH076fME3X2N8Dk4rUOI9sFSA5lTUbDah8aRjIZpuVcYIg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvhedggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeggihhntggvnhht uceuvghrnhgrthcuoehvihhntggvnhhtsegsvghrnhgrthdrtghhqeenucggtffrrghtth gvrhhnpedvieffteeukedtleevfffhvdefgfdtffehtddukeetveffgfevtdefheevffeh gfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsvg hrnhgrtheslhhufhhfhidrtgig X-ME-Proxy: From: Vincent Bernat To: "Michael S. Tsirkin" , Marcel Apfelbaum , qemu-devel@nongnu.org Subject: [PATCH v1] docs: add slot when adding new PCIe root port Date: Mon, 14 Jun 2021 13:43:57 +0200 Message-Id: <20210614114357.1146725-1-vincent@bernat.ch> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=66.111.4.29; envelope-from=bernat@luffy.cx; helo=out5-smtp.messagingengine.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vincent Bernat Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @bernat.ch) Content-Type: text/plain; charset="utf-8" Without providing a specific slot, QEMU won't be able to create the second additional PCIe root port with the following error: $ qemu-system-x86_64 [...] -machine q35 \ > -device pcie-root-port,bus=3Dpcie.0,id=3Drp1 \ > -device pcie-root-port,bus=3Dpcie.0,id=3Drp2 qemu-system-x86_64: -device pcie-root-port,bus=3Dpcie.0,id=3Drp2: Can't add chassis slot, error -16 This is due to the fact they both try to use slot 0. Update the documentation to specify a slot for each new PCIe root port. Signed-off-by: Vincent Bernat --- docs/pcie_pci_bridge.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pcie_pci_bridge.txt b/docs/pcie_pci_bridge.txt index ab35ebf3cae5..1aa08fc5f0c0 100644 --- a/docs/pcie_pci_bridge.txt +++ b/docs/pcie_pci_bridge.txt @@ -70,9 +70,9 @@ A detailed command line would be: =20 [qemu-bin + storage options] \ -m 2G \ --device pcie-root-port,bus=3Dpcie.0,id=3Drp1 \ --device pcie-root-port,bus=3Dpcie.0,id=3Drp2 \ --device pcie-root-port,bus=3Dpcie.0,id=3Drp3,bus-reserve=3D1 \ +-device pcie-root-port,bus=3Dpcie.0,id=3Drp1,slot=3D1 \ +-device pcie-root-port,bus=3Dpcie.0,id=3Drp2,slot=3D2 \ +-device pcie-root-port,bus=3Dpcie.0,id=3Drp3,slot=3D3,bus-reserve=3D1 \ -device pcie-pci-bridge,id=3Dbr1,bus=3Drp1 \ -device pcie-pci-bridge,id=3Dbr2,bus=3Drp2 \ -device e1000,bus=3Dbr1,addr=3D8 --=20 2.32.0