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 38253606A332 for ; Wed, 2 Dec 2026 00:40:50 +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=3t19Jthd; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=Lk1B+7yh; 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=TV2DMhKZ 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=bAazdzPGneIyHelsW+nbqBc83r9qxkUDEf4XHjOuVLc=; b=3t19JthdPYTrIzX4+gsKUFbUpS YR+K4R4heVKcs5tbUcs+slQPVodR4iTfBZV2305WZiur89+7m5EstyCX4E6aEftcekgLViBTtSwYL hbMUd+P6D6RiXbgznlyAwbm5QARlhiLPFgScEEjci2lUsdsQZsLltV58ZoLnGE/0gpBKQZLV0Pw3E TWuVmHBnAlbZ/xqyMDPzVlrSGmBxIjjkqQRy8cby/uVZSuZuBDokdRv88e0NspQOyxFmfpJ9O4zrd 4cPSTQ/Q+9OzUUKoyHqO8eNLmfRkl3BBclF73YFYlqvA1OL0BaZ00Z5sVISjyDvE5eR6PRg8mz/+X PRfhdV9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYYOq-00000009n1r-2JDT; Wed, 02 Dec 2026 00:40:44 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYYOV-00000009mOj-33nl for linux-riscv@bombadil.infradead.org; Wed, 02 Dec 2026 00:40:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:Cc:To:From:Subject: Message-ID:References:Mime-Version:In-Reply-To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=gV0ErH47JMVAUoyOXW2KasbBP4XQW8ygosCm9+p87kk=; b=Lk1B+7yhmK2PtrJrVbY6baGKKf 3UsoV0RCVCJCkZm1mV9HS+1A/cbaSk7WheUsjFHqMho6u4HgGioiae6l+sfqMOk4zSRFpGa4s1XWd DroyhPkPBVcEfqO4edQaeKoFsPYsPvaMhl+ZakIHirfZszmpbQCp6Kge7Vq+qsyI9sTCU5/qniNDw y/nx0oGUTb2hJyf3y2s+b/A6r4d8snZX3qjOEktxe2wvV6zpyAGKyWtz589yhEYh6SUx92OIbisyo 4i62py7zKcub4j6ZnpW9/JfCbGBwxo8DowdIq/8QdqlshRnqdRxT+nL3d9HbvGRUMaaL+dNcnEpUm hGu+gKcw==; Received: from mail-oi1-x248.google.com ([2607:f8b0:4864:20::248]) by casper.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYYOQ-0000000HKjP-2cuu for linux-riscv@lists.infradead.org; Wed, 02 Dec 2026 00:40:22 +0000 Received: by mail-oi1-x248.google.com with SMTP id 5614622812f47-571bc0b66d7so10987609b6e.3 for ; Tue, 01 Dec 2026 16:40:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796172016; x=1796776816; 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=gV0ErH47JMVAUoyOXW2KasbBP4XQW8ygosCm9+p87kk=; b=TV2DMhKZJ2LrSmlIcxnejfcR8ioAg8O/wDtpUTEYF4dyfoMUR/YA3l24Ih1RPWxrTq qj+5b6Jpjn1R2FYq01Yh3h8TpiWxVIY1HmulFBFKySuApzqCMpZdNL+PLyDcGvPE3Cin tn0ANSO1XKgeC/E301ZyaUhYlgmgLR1ddxVFWUFSV7TLiLBEKip/DlhWpkmYxm6iu3zP fiCTZWLvhJWbO55xlcuoQ32yZ5hEKpDhopuh4e9GPaAn0rhFyY39PLFmlpsPMAaViSk9 Pa7lo9gL6BumOoRTyNIkaUCUjT3CI5J9j4f6KjTaLd4jyhQEL/s2xxTpDwn4NdzypX+V fScg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796172016; x=1796776816; 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=gV0ErH47JMVAUoyOXW2KasbBP4XQW8ygosCm9+p87kk=; b=BXOjQqRAlnUKNekiBTVCAOhiHY3P0NXoqhGZX+nRr9xN3v4K9Yi5dzVyMPvvHknIaC DKWpikTIsC+dtUTJvRqKlKhcChKcJJG0CZdBnC6mN7s7GJXO2DjGqMADxH67ww+ADznB hRuD5FY+IZPLo+L6TwdYwy5bLDZpTCLs733jh5HY6ZyscyInICO5UZhzD688H+nEkpuo /5u4XxTw3vczCGzxJXbX+HpsfTgAbrIK8vtcSkt+HTW1s6Hu6cBPqSOcAU51r/+DaDp0 gdUQRN7jvznWAVLDJBE6JQnaPhmcqsyA359Vtc/vMh440cpaTL0B7HdxSKvJ7GJv84g4 1J8g== X-Forwarded-Encrypted: i=1; AL+hErEVJibdpkl18gTIBLz5147IkX7MEQCWb8aYplZgSfnHSUHwB9pZCx6eUlwOUkuT8yCiqLJL0LqYcEhCYw==@lists.infradead.org X-Gm-Message-State: APuU4Z8nUVqUqd+/lW6VNcEGhlXjpvEjWmRph5fBcoJ9jMwgFDHto1/R 7LofCEE0Dl6ui3J1t4cMjRx/H9xjEUZz3XMSUtM8j3OtFXit7rqqdyoPNrR9nfjxRsE00ZAjDjp Px0sasgcMniCQFA== X-Received: from jaaq28.prod.google.com ([2002:a05:6638:c01c:b0:61d:1a3b:cb30]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:308a:b0:4fc:3dc7:66af with SMTP id 5614622812f47-57a0a516e96mr45097205b6e.10.1796172015663; Tue, 01 Dec 2026 16:40:15 -0800 (PST) Date: Wed, 2 Dec 2026 00:39:52 +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-16-dmatlack@google.com> Subject: [PATCH 15/18] selftests/liveupdate: pci: Test bus numbers with pci=assign-busses 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-20261202_004018_708623_0ABC8963 X-CRM114-Status: GOOD ( 11.24 ) 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 boots the next kernel with pci=assign-busses, which makes x86 assign all bus numbers itself rather than keep the ones it finds. The next kernel must still keep the bus numbers of the bridges above a preserved endpoint, which the test checks with the switch topology. pci=assign-busses only exists on x86. On arm64 and riscv64, the generic host bridge driver used by QEMU's virt machine reassigns all bus numbers anyway, so every test there already covers this, and the test is skipped. Signed-off-by: David Matlack --- .../liveupdate/pci/assign_busses.vmtest.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tools/testing/selftests/liveupdate/pci/assign_busses.vmtest.sh diff --git a/tools/testing/selftests/liveupdate/pci/assign_busses.vmtest.sh b/tools/testing/selftests/liveupdate/pci/assign_busses.vmtest.sh new file mode 100644 index 000000000000..f02b1914baf2 --- /dev/null +++ b/tools/testing/selftests/liveupdate/pci/assign_busses.vmtest.sh @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Ask the next kernel to assign all bus numbers itself, which it must not do for +# bridges above a preserved endpoint. +# +# On arm64 and riscv64, the generic host bridge driver used by QEMU's virt +# machine reassigns all bus numbers anyway, so every test there covers this. + +source "$test_dir/pci/pci_vmtest_lib.sh" + +if [[ "$arch" != "x86" ]]; then + skip "pci=assign-busses is only supported on x86" +fi + +pci_topology_switch +TEST_CMDLINE_STAGE2="pci=assign-busses" -- 2.56.1.911.g883d8bcb20-goog _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv