From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61081606A32D for ; Wed, 2 Dec 2026 00:40:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=bindF/Pi; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=WVKQH6ex DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Unsubscribe-Post:List-Owner; bh=pFJNecnz84L2KzGhIChbOWRWlJ9Bluo2rpI5QXQQmFg=; b=bindF/PimFHIMvm37cMZGEOV3t D8GzHclmzPoThX8AhT+4IwYvwT756Mn1Im9x8outN9s/lkkxg//auiqNsBa2YQ8l9xGwJRroM+zBE qgTbWWFXcw6wNhttkFgvYpC7/zYYX3SoHljuOMu8u0sh9HUrLVC0bwS/rjBDUv5F9e+YseiQaCTSZ p1Y8TzwqvkKmadg6/HPGgwN5bltcgNzfXQE5AKMb/U5K17AbHmfSNZXciZaJIwRND51rRgtO6Yymv O9KGPpPuzgTOYgA4BYc4goP8wPk05ysGCBx06Ss6gcD9nrwVfaewZ9y3N7+B95ZfK1qxBuxB+pxnE 0lxj2E2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYYOg-00000009mdo-1IYt; Wed, 02 Dec 2026 00:40:34 +0000 Received: from mail-ot1-x347.google.com ([2607:f8b0:4864:20::347]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYYON-00000009m5b-38Wq for linux-riscv@lists.infradead.org; Wed, 02 Dec 2026 00:40:17 +0000 Received: by mail-ot1-x347.google.com with SMTP id 46e09a7af769-8615bdcc5cfso11232441a34.3 for ; Tue, 01 Dec 2026 16:40:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796172013; x=1796776813; darn=lists.infradead.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=c4dMKNuGCGq7rNCOYl/kD/nqYtxLMotRtuyP68qmlgo=; b=WVKQH6exSUjB3tM4hj5Hamj2dhIOlOJkHotpUYRyDpG78/U6Not4D47s/Q9O4bMElh LRlS1ozgOx35vuRX8oy5XpfOup6++PYSK5xCCDU3UbMuofLUNOBqQbyA0Kb8IOJqZLF/ vmh+pf+DI8y4Nbo2HeOzSP+JVwDCUdIOAL6ud4Q6HE4iuZ+K2kMrSM3azoNgNrmjyWku dcBKZ0TResWsm86KYiu1HiuKuu46aptosYyyVrcFkWvYjdAuggWGXpAqaBOVwlFz+dc4 CgQmrCMdVZq/D8vhWS5V45cOOz1jYmKv3L+myZdrDJOcgfta5IZ80wwbipJ6D90+KHYP hk3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796172013; x=1796776813; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=c4dMKNuGCGq7rNCOYl/kD/nqYtxLMotRtuyP68qmlgo=; b=d0WMubAEBVFSS1SRxmoYWutgOlifXVubk/S9iMeWEKl8I33uQ/WzzfbThjIiMT2xI7 tUtbnV7EcMJH6bwC4Etuzb+mJ/7DmdSxDYXzX5EHizLFdUtt6Puu1QS3+r2Wr6jqdFGi riMM1qZ6BdYdaRemLrvsW7m9xYIcXQUlQQsg99IaOgehKnGPYk1oLDX+lrXatgYC0ksf lrGxfSAl8Ptl+2eXS3CWskbj6jS+34xy0PMaIBCXZCvvgDXP0nH9Qxwb1BwWXhz6vFnA 9+pWxf8bYtwow8x/c8IkHuGIm2Z/7ifZcb6ioLG//2koDAXiJ4jf1VXqDTBQu9nRCAtS zWQg== X-Forwarded-Encrypted: i=1; AL+hErF3WerKDEAqcIBgKRVaeNCOHryMhG56+PYJ2duoryKcbHsvC9+V1aPKp+bqMIr/bXuBy2ABOsbElFeQiQ==@lists.infradead.org X-Gm-Message-State: APuU4Z8VFwMYElJU7zzssJ4sNrjZ0YsStTzDa4c13k7uyiEDoBmU7vU8 w4zcJnVI1S6XTff1CCfaoG4gjnaQQ8o5Z4ZqduE7VzW3+9v5GEhqgFOAEpPoZDZFnuRwIBwvSCP Lt0uzC9e4jEuaOg== X-Received: from iodz18.prod.google.com ([2002:a05:6602:6f52:b0:9c4:a4a1:b54d]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:4f46:b0:578:c3ab:6abc with SMTP id 5614622812f47-57a0ae27349mr46578717b6e.32.1796172013375; Tue, 01 Dec 2026 16:40:13 -0800 (PST) Date: Wed, 2 Dec 2026 00:39:50 +0000 In-Reply-To: <20261202003955.3607156-1-dmatlack@google.com> X-Archived-By: Mime-Version: 1.0 References: <20261202003955.3607156-1-dmatlack@google.com> X-Mailer: git-send-email 2.56.1.911.g883d8bcb20-goog Message-ID: <20261202003955.3607156-14-dmatlack@google.com> Subject: [PATCH 13/18] selftests/liveupdate: pci: Add a test with an endpoint on the root bus From: David Matlack To: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-pci@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Albert Ou , Alexandre Ghiti , Alex Williamson , Bjorn Helgaas , David Matlack , Jacob Pan , Jason Gunthorpe , Josh Hilke , Lukas Wunner , Mike Rapoport , Palmer Dabbelt , Parav Pandit , Pasha Tatashin , Paul Walmsley , Pranjal Shrivastava , Pratyush Yadav , Samiullah Khawaja , Shuah Khan , Vipin Sharma X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_164015_938095_C5A4ACC8 X-CRM114-Status: GOOD ( 11.85 ) X-Spam-Score: -9.5 (---------) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Add a PCI Live Update test that preserves an endpoint on the root bus, i.e. with no bridges above it, next to a control endpoint on the root bus. QEMU reserves the routing IDs of IGB's VFs (offset 0x80, stride 2) on the same bus as the IGB itself, so the two endpoints are placed at devices 2 and 4 to keep their VFs' routing IDs from overlapping. Signed-off-by: David Matlack --- .../selftests/liveupdate/pci/root_bus.vmtest.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tools/testing/selftests/liveupdate/pci/root_bus.vmtest.sh diff --git a/tools/testing/selftests/liveupdate/pci/root_bus.vmtest.sh b/tools/testing/selftests/liveupdate/pci/root_bus.vmtest.sh new file mode 100644 index 000000000000..e0d24a00aae7 --- /dev/null +++ b/tools/testing/selftests/liveupdate/pci/root_bus.vmtest.sh @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Preserve an endpoint on the root bus, i.e. with no bridges above it. + +source "$test_dir/pci/pci_vmtest_lib.sh" + +# QEMU reserves the routing IDs of IGB's VFs (offset 0x80, stride 2) on the same +# bus, i.e. devices 18-19 for the IGB at device 2 and 20-21 for device 4. +pci_igb igb1 pcie.0 0x2 +pci_igb igb2 pcie.0 0x4 + +pci_preserve 0000:00:02.0 +pci_control 0000:00:04.0 -- 2.56.1.911.g883d8bcb20-goog _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv