From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796172017; b=d1+/pJasZopWFOTUuaRqWDZIAkjl38bblfrt4IOCJ/q9EuQM4FJjNfFCz3gvSPM2DWkt lq1FLCSaY2ZpIc7h5upk7bG8uIaTVlTbubJWTvuvf+CTd5Yxtm/JgBq6kwB6nmzsNDbTF jD+zb8Z5j2JadtoEPwvLpkBcg5CF2Xd6KbxypB68KJNlXHlCmuDOmSarVquFq3O6YkVnp ZkggV2vggVO74wXjLCIWX2OfMb1oLuhRDTk9Nrs51akBN9B5k2yo7cwINLWsymt93V+vJ fJwdU95WW/3ZNDq2y05XvHEx26eCTh8Cncci4601NiracTMRy1AEk1ocRylIKBQ4kqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796172017; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=gV0ErH47JMVAUoyOXW2KasbBP4XQW8ygosCm9+p87kk=; b=F/D8w2VB33Nowv8+pgiSrdsrPu3cYC7oHgKPmaXkWW7yuO8T9YGE47N04K3ADkQb7CgP h3uXF7ATd+wGMyR0kYdGt2Y7g3HEkMDrPNT94cZ/AJwf1S7OhO/oAnRLRJxvBXpmhfw9V ToxzbWm6RrK9L4XZ0EWGjEjNcC0VrWKdxoGtgCuYD7cbWWlZMkPgGg0nTf7X8Pulh3YXv k9jVXilcX4T6PQ8PzTIGN6zKh9Gm4H9UeAe7TAqOoDf4QCrh6bqC9+9GuWRq0+b3w/4wO LjqcYusaqfsEsEo/oYRjxGeOHNegScWKjYqZjaKtH9gKLSFq0BR/L+dbseGFQHfsOvA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=g5LsVI8i; arc=none smtp.remote-ip=209.85.210.72 Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C576860A5BE0 for ; Wed, 2 Dec 2026 00:40:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C576860A5BE0 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=g5LsVI8i Received: by mail-ot1-f72.google.com with SMTP id 46e09a7af769-847e2926d94so22547654a34.0 for ; Tue, 01 Dec 2026 16:40:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796172016; x=1796776816; darn=vger.kernel.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=g5LsVI8ihXP1HzcVScpRAmyj5Oz9e977Ju9ZIsXpZskvNqVQjMvzx3MERFJAS3AZkc so862C1DL9SFOGF4scxRobQuXDvxg9V+WR413+OmptnUXgWrXJ2tS5yxUVge0l889j+/ LhxE/kxjIFIrRIyBAjX/184LnTztY3iXEkYs0JWBna5IAlQCRdapuy/yNIu4lpS9Pa+i PMsDgZJAfFu082OatDb3+bwnnwywQDt10ICZFkBYMs/WFbdnYXaqbBECHx4pgG+hweep XkGjfxq8XCSGrsMeA0Qe0opceyUl9A7R0ldHReYSMVOTYRJAtPEAtuaJpD94RwbaYEcV 7sFQ== 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=15iAiyA9ctqNtuNnZtsWl1+7+l3ly+U8HdK+S9mbklDcD4Uf0R9Yp3oXIqpOK6waNv PlDUmXyuh4Tcp4chUSeY/tG/5LH4SaExfPy+MuEOW3aXX2SmzZoivup2BaNExxmaV3Pb vlykut5Na/p9q6MJxGJ5OYuABAKje8OdZKFzhVcBLtdamqdsmdEjXZoZ7u4Xe/415Q0f i4E7k+5FeulDzm8c/fL+z5ppa7VzD7BIegQXjm64so5Pv0Mb5Prd0RQWYgCoD7aAH5Gw BPUDhsO5VMJ6yyEweSxeCP2GCv5bKGci/Pkn48jCXOK2NkjjwYMNLIcE9vJb/Tzdz289 b0jg== X-Forwarded-Encrypted: i=1; AL+hErG4W3+OvGY8Ns9r0lY2FXygPI/7CqiFvPIO9+x5XIs9WWhw7fKfp0I/+QhRTdNJMhdDbbcjKsp8YFoFltpzSSw=@vger.kernel.org X-Gm-Message-State: APuU4Z+LOZCDGuwkPY5yWBB4e8R+a/Dy44o7yBjKwhmGlt2AQDEfS/vl A7QpO8SW0J7TT2AzdpdyTbvdlG9kUP0SdsJ3HATc6E4c9Twx5eKV2DlrrPZ1qCgY4+gCd7hroPM YpW3tscRdanxoOg== 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-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 Content-Type: text/plain; charset="UTF-8" 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 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