From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.200 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796172015; b=wJ5wGeoKeGM+98sfX+CDANwB3zww8xCbdpPsoAg102GyKSaN198hWWOItQLgGl/WQYu9 j7qfcskbPUS39iaIDkM8FwTh9i9YOeSQB10k5z+CZobv4xkxStLsbdWuY2DeGEYp+XfrQ vXJUehEb5cL0RpagPTbBWwi11aDo36/iRBooIJuG3xduwoqyud89KI/GntM9fFOWJGsqj x3h8Ql3NcLMloQGLBUbwGIiPB6Pv7aoHK1D28c+Vm7qGJ/OUdw7X3zUaazrmf+/0zROuc d/vUEVEXth+UNVPXD91eMPKnzcF0fTBkrEUYOCzdqJJtpXuNQXM0saMK3eRuCSTuYkA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796172015; 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=c4dMKNuGCGq7rNCOYl/kD/nqYtxLMotRtuyP68qmlgo=; b=JHP4S2/3oIRaTYxFbxVUUu8gxmQ8cZaRJVVD5C4qnIT0qcGc8M+ZMPT6uR9XnZLqLyKb bXAAPlJ5GTV2Ip0QJbaO6Idx9pcfVHOW0BgnTcGQshaiBDeM5FcLCs0Vwbr9SVuc4b5zd rB//mJf3m7cW+Tm7oYDnXLYh+zXALULfoVwQzMcy9pVBJscF3iFZysODw+ibzjFS1fUMk gk4RWPKL1jweoe+K+C8hnfYBkFDi3/HiKITj8BCRYguMyjdptLUs31ZxJVZ3lUXNGNDo9 5MARiFKOX+jmSFqL+y3VS16J8gGOgLpWq7riGI28f3wQ/N0QpiHhkJt74uUUm+ojvpg== 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="iaG/4kp6"; arc=none smtp.remote-ip=209.85.167.200 Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (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 94F2560A3837 for ; Wed, 2 Dec 2026 00:40:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 94F2560A3837 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=iaG/4kp6 Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-57eac2a0602so4219447b6e.2 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=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=c4dMKNuGCGq7rNCOYl/kD/nqYtxLMotRtuyP68qmlgo=; b=iaG/4kp63lhuDKD4RUWisrKg5GGB3C0rdYJtfgMltVCXYhIfFIlZtPa7jy0bL7Ehgu V+DBJbP367XxjgWD+32q6lDmLYZDeOZp+AV3Jn/NVpk42Ou0xzpTBP5VoHhc1kR8s+dc yEvG0D4Il6Ja4bSNrCNXuapTH7+7F5A/kICMtmIdo1rj7U6sJEXfPS1lOT3IHwcbdW4N jWrGghRLEWyVNQZ/suspv8l7TTSRff2e0ZxzK84nVxDr0kitk0qWtcs0s9N3BlhvRoGf QzTHHZndFr+qqPsqOc/5MisXsW/dU2oSlq/DgHz9PLfhIi9BsMUMpFQEdi3iilp1zuIq D1HA== 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=E3IrbWRvAQ1WrBqiLudHGL2lxAZ2wg2kIkooNOeOnTaqtGuthaDeITk8xyy9Px3YAq RxBKIR6BI2JU/0eUmTVd4QdDC2WOVU4A+VNKlcHUTx9nYRHMfe4GqjtRX23sXUwLufFY 3KoXeVJ4LeA+xyBey9i/qjmAq5VciEW8QYAmBVqBRF1G6ZYDhR77wO/iQ8lcLBhrteoi zYx/xtFyLxQFBzCtcoHkmvC594LJqAb83h/YjJch8NhTST2bN5mbt2FolUX4rLdnFjFm q4PX9wyzFky/LURrmi8xcf03jGDAN20U1QRtd6PLLMuvqJ9Wnus0FgaxNVYOZWGsBHf0 yJWA== X-Forwarded-Encrypted: i=1; AL+hErHLlPLZoO4P7+9qFwYrV4SZgoTmp8YGLEX70DyYrOhcAybn/aLs7aCyAQPVCa6UxHvOH34+RdciZjx9vInYBVM=@vger.kernel.org X-Gm-Message-State: APuU4Z9IkAFYsQAEfPHGfTwS4QkodBYJAEiP4gf+7dtMCr2wirxjO/Gm N6bKat8d0vBJuCUZ2llnkG3Y640AnA7p51d8pLkexOTg9v2XeR9ERWdJoB1j1mXktdJtP/cmFyz 2frhcIt/S5ccZOA== 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-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-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 Content-Type: text/plain; charset="UTF-8" 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 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