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 72894606A687 for ; Wed, 2 Dec 2026 00:40:48 +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=SO6X9l3m; 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=lhgtjyQS 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=Cm59U8K0aUhRDccy3b0zhCWjPlp3rYkkEI5lDUwUCLE=; b=SO6X9l3m0bjqaJJS1wkJMN+ReE 8gnwGKo6dDWAvGIPucpdpkSLglAzJUsQef8RFuCgUWfzCZ3XJBfpCmje7H9N5mIcdeoNtk4tODpXY 8CWo7h8amllP2YQlcjXK9l0uhiwDmWXdepvajtKfo4kVqU1U7qxtBaKVw2v4epyqapd89jYugGmuS Cg642FGYgUncZuv76IanW+G+DUyeOhyx/80vHr51SKkRDyCZ+9mLPZuEK2GbO8ZFtNH3jHx7HqdyO FPnJzzV/6ERpOb+7k6dzZvLvyrbrz4g5OeoL8Pqz5Cy+qyrMj0N97gKRhepMcDda8LH6E63tTlndV nGVtnU5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYYOo-00000009mw7-2EmX; Wed, 02 Dec 2026 00:40:42 +0000 Received: from mail-oi1-f200.google.com ([209.85.167.200]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYYOR-00000009mDi-24YH for linux-riscv@lists.infradead.org; Wed, 02 Dec 2026 00:40:21 +0000 Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-5713cd0fb42so14342477b6e.0 for ; Tue, 01 Dec 2026 16:40:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796172017; x=1796776817; 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=n8r4RxoBw4kV4HZGfICQqer1Y8C7P6dL9OSLBqmRieg=; b=lhgtjyQSB4KeXMg4vwSX53wmPKr1DkdN+MosGtaYyWZcw66syw/Gop60yrv5jBvaoY oz4hLbt5g86VSHXkCCqKXxGn6dpKuI/oYH8KDUFglZoMwn0Bqi0+TThQQ68Q93cM/ZI5 GqmGIm2LOAqysxjwkra8YVkoLrPa7ujqo7LIP3VE1/yDCNGZnGtrf2xJSp+IbraNaxtW ZiFFIr+5iShkO4PA2nOTk9TROL3pTDf3BojrskbLD0onKjLt6LCNaVBb1e7BRzLP0Lp0 x9mOtl1KOcVyFaSiJAqqj54axZGsBPPBt7deKhKoMzdg6+NgD/Qi+H1uCmKoekVmgFGE lzUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796172017; x=1796776817; 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=n8r4RxoBw4kV4HZGfICQqer1Y8C7P6dL9OSLBqmRieg=; b=YWZmNwGm9QQzKYsW80TTaxzaZvrhvMxwfNewVCYJrD6YBYvgXqOKWWFp+b8oKaNb4g eTa3aj65koLo/O4HYpUEEs8Bzhrw1aB0Xu19mbKCvO/mq/dHCrKP3XY9/MbJvNwQkc40 gIpdNUe0wYU8q7WsGLE0XReLWCag5FrcQLGJ31U3uZ0XMpj8JlZPtV1dm0HivDlOHNMa kATWLM9mQLdvFdF5BsPVwwoK/nfreWQS9znfvAtRCXGQDkCVm5xrIOUuQm6WQxX5g2PJ WNoburNdcq+xdcW9wvA1hMnZa/uuh3GjfjMam32vpD2iAvq/BjakkmXR6p/3dWHB+b3o y7UA== X-Forwarded-Encrypted: i=1; AL+hErEbo/i+4NAbf9UXNotk517ROyVdWiCjONDl6kXC0yopCxoc8DdIiqB5ZY72Ixkgc7BxGVA2aGil5oONCg==@lists.infradead.org X-Gm-Message-State: APuU4Z9ziXh74YBQrFTgRFpL4ab4VPEvsmHCsFrOQFZm+1T0qUvwPpkE Q4QYNG86uxnYtcRxHEva+2zQqrOqi9rHSc7uIKPnLbnWRe3s9Efw/DYJG2cxMUuYcN0heg7Mjwo ovYt1kWou42uvvQ== X-Received: from ila10-n1.prod.google.com ([2002:a05:6e02:520a:10b0:544:45eb:2ab]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:2f1b:b0:574:4cef:ddbd with SMTP id 5614622812f47-5797dc9bd45mr31218089b6e.39.1796172016825; Tue, 01 Dec 2026 16:40:16 -0800 (PST) Date: Wed, 2 Dec 2026 00:39:53 +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-17-dmatlack@google.com> Subject: [PATCH 16/18] selftests/liveupdate: pci: Test bus numbers with pci=hpbussize 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_164019_667203_E3EE72EF X-CRM114-Status: GOOD ( 13.80 ) 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=hpbussize=16, which makes it reserve extra bus numbers below hotplug bridges, such as QEMU's PCIe ports. Reassigning bus numbers with the same settings as the first kernel produces the same numbers again, so only the trace check would catch a next kernel that fails to keep them. With hpbussize=16 the reassigned numbers differ, so the checks in the next kernel catch it too. The test uses the switch topology. On x86, also pass pci=assign-busses so that the next kernel reassigns bus numbers. The generic host bridge driver used on arm64 and riscv64 always does. Signed-off-by: David Matlack --- .../liveupdate/pci/hpbussize.vmtest.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tools/testing/selftests/liveupdate/pci/hpbussize.vmtest.sh diff --git a/tools/testing/selftests/liveupdate/pci/hpbussize.vmtest.sh b/tools/testing/selftests/liveupdate/pci/hpbussize.vmtest.sh new file mode 100644 index 000000000000..423fdbde99c1 --- /dev/null +++ b/tools/testing/selftests/liveupdate/pci/hpbussize.vmtest.sh @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Ask the next kernel to reserve extra bus numbers below hotplug bridges, which +# would change the bus numbers of bridges above a preserved endpoint if they +# were reassigned. + +source "$test_dir/pci/pci_vmtest_lib.sh" + +pci_topology_switch + +# The generic host bridge driver used on arm64 and riscv64 reassigns all bus +# numbers, but x86 must be asked to. +if [[ "$arch" == "x86" ]]; then + TEST_CMDLINE_STAGE2="pci=assign-busses,hpbussize=16" +else + TEST_CMDLINE_STAGE2="pci=hpbussize=16" +fi -- 2.56.1.911.g883d8bcb20-goog _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv