From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796250896; b=NCX+8yG3rYJHzyhmMxFUipPGVdO8bd1BfvC7ULlrYBwzqi7PfLIrkBrrPKhkS9xUbVK2 lUsNJ1TbV9Ai1XTR8sLmyfGZr1a4MWqRqmy8W+AuZhCr9pnfEYyxWpuprUJPGsW5q17Qn 9FzcRFhOAztRx+kbK3tmvdiQGmzUk3pQ04QmSdTxaOU/41gxWhP1maefc1Z3CoaWULstC EIO/U/1A1fANFE9HEUpBKCo4YDMpmS2p/knMwv0FdVwFMMT9nFrOU+/0skd1gIeMr+omT V5OWMNo9ljwqhOs/kisy9Y6vNTungqyysg/xbg+NabANktqPSl3IEZkaHQ+QAnuzqgA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796250896; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: Cc:Subject:From:To:X-Mailer:References:In-Reply-To; bh=19mYb2cucEyLJBOb69lp4koTiydgWg8ZoAKw8xhArjQ=; b=1DKkuh55+Z+ZB+x0NNZ6cSCIEJqO89BeZtJC7j2LmdsRkUKv33k2MQ2Du33AijlytGw7 DpHr80DlsIsY0n0LwZD4rJxXRhNxBq9qQpSiZKgncldeIYgjWhnnrC7mur5/ia5Fc6fw6 tyKm/eJxwjV+fMH/yTj3kvPP0UYQzArZehDlFJgaB28QfRDmpmHb966t8/pS+GSdfiEA1 i/UWwW8ttPw3VyU7z1WMZofjO80RHVBNnX9FEtya68vhiLO5D/DQSBahA9A0nntA8pt8t OG3sfat/w7esmCFrE72C4re+FWPbAwdXNZQL5fAbqkGJI2bhthFILtoJ4kaox6SpkUA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=o1zFYarX; arc=none smtp.remote-ip=209.85.215.179 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (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 A1C61606A32D for ; Wed, 2 Dec 2026 22:34:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A1C61606A32D 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=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=o1zFYarX Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-cde5a7d7849so5969513a12.0 for ; Wed, 02 Dec 2026 14:34:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796250895; x=1796855695; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=19mYb2cucEyLJBOb69lp4koTiydgWg8ZoAKw8xhArjQ=; b=o1zFYarXPqLPdlwzHmyt0V7xpGSSWLiijXuR42U5BbFFFEoO3QTOUCCdXC6hrATwTE 7DicFp/KGwiJdWkUds3yd6YefWm+9x2flf8nQBApbHc4NPjTcTsfoqdedVhPIfSD82Ir DL8+I1Rx672IL8B6zR4cbZdKdMQlArT9GNTGXKsp3CRQ+Wv4Y3R5JqCYi6KBJlAm+EmC o7S8J07yitD0jOxpEJLQxIopvhjG9+d4oRyGtuMooYvhh/Ij1K4fw2FmhuX0gWVfRnFC RYAx8EHE0GsqBIE2+fxNENKZ7Ols9cNIg3Ji20j2aDi1/8xJgzSaSkICLwzr7H3oQFt4 ysMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796250895; x=1796855695; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=19mYb2cucEyLJBOb69lp4koTiydgWg8ZoAKw8xhArjQ=; b=r5N+vkRIvA2TSRpR9ecT1kQvE0NVzOXpuE7fDR9BHoZ8AqRQLkZ5rP+DByWAOhr8nl SCiBBZuZ+F9vFqErlIPxNN2uC9aUkzRLcIkNCcXozB8jqCJLvrltfzbK2xnBhhRM/ROb eFYmWmKDlGT9f8z/7NvslcT2qWJ/CtJrqXaxTxB+6UG0Vy4teE1bPSajzHjMe4GWH7cf bHqJCmCmMwfbwp1BX+YOfgIyLlH9mGo4b6zpL37/Y5Oar8DRKM/raVvwSgHSJrmEVBur 9QpPchzGpWI08o9XQUSA84GM31xCzzmz/Jb/x39VgAd/YmB7oowVtjXZYldyl2akpBEo 0b0A== X-Forwarded-Encrypted: i=1; AL+hErH/kpGbrpL5h3ioTj2G25nbXMA3K6lIGhu+5wtgeD/ebE0armWc3H1CEE9bZ0eJso7yY4uLHYH+GFxeQJ8=@vger.kernel.org X-Gm-Message-State: APuU4Z+zq66l/pPKt67FD9pBcl2wN/ScNgRevZnDvN+6a7/0/sGSJIy8 KKhbxXPfNDcJvjqZ0Fal+TNLBxQXa0X/RulZz+QdhvSZ4+UJTmNbYrpuMAEkUZ9r5g== X-Gm-Gg: AZFdTZdsI26DiyWo63V/FwRrhKVNuOblEl5GcXn5K9vUDOmacGEIH8FonjqsmFmDTXr fHr72iXz7YeET4FBozMej6TPAAzkeVZCq5v8GtZNCqElWtouKSrDmIJq32odmrSZevAF+01s/PT EwJibS4N2evfy0SSQxn6XIaho2/LCdyNFxVfe942phasIjtgdofZqsukP8JJwEsaZVAS9GaCqsR +FsrfO0r/MdDLC+vYYdX5nSqjMjWkzY8qtZ/TW9Cg/2lPaLpSKpe9BjXlIqzfX1Qv1PQKw3LvlM JuhvG9bQz8DnzufelqlRbzlaDQe6NYi6CYqPvqO5aAKt+OYttQltH9ELACTAnccb3uiAkK4JdUM IHC4UKeemuy+FAOlFchqLUD7ABqcXxiqBd02dCphuBFaFhkaso9h+FLKl2bcIj1bUNXZ6vl/80h OhpLFxAQL+eQ7LLL/bapMuo59qoYA0YpUp2040/QWObFXi+5s0cOeg0uuj+E4x7Kak6gpC8JGeF mxE5QeEEVGuJKMl1fWiFDVVt7QopKMNf9MBU8eLhrXn/vka3+rpnAHsoK81KkeKxbkm7vxSb1UJ o6e8dwAdYi9I/bYOMuKQpXvi24BDD3NQwy/QMqQclQJkbcihRzcqir0BYdSYCRveeXz77yTdaDo F2VgQFQ43ew== X-Received: by 2002:a17:90b:5109:b0:39e:6a7e:ee18 with SMTP id 98e67ed59e1d1-3b41c9157acmr41237567a91.36.1796250894306; Wed, 02 Dec 2026 14:34:54 -0800 (PST) Received: from localhost (33.79.127.34.bc.googleusercontent.com. [34.127.79.33]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d10d06sm1152911a91.3.2026.12.02.14.34.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 14:34:53 -0800 (PST) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 02 Dec 2026 14:34:53 -0800 Message-Id: Cc: "David Matlack" , , , "Sean Christopherson" , "Vipin Sharma" Subject: Re: [PATCH v10 2/2] vfio: selftests: Find devices that have VFIO selftest drivers From: "David Matlack" To: "Josh Hilke" , "Alex Williamson" X-Mailer: aerc 0.21.0 References: <20261201170849.296378-1-jrhilke@google.com> <20261201170849.296378-3-jrhilke@google.com> In-Reply-To: <20261201170849.296378-3-jrhilke@google.com> On Tue Dec 1, 2026 at 9:08 AM PST, Josh Hilke wrote: > Add list_supported_devices.sh to print the PCI addresses, names, > selftest driver paths, and current kernel driver bindings of devices on > the host that have a VFIO selftest driver. Group the output into > sections based on whether vfio-pci is loaded, whether the vfio-pci > denylist blocks the device, and whether a GPU requires an architecture > check at probe time. > > Match NVIDIA GPUs by vendor ID and PCI display class, since nv_falcon > identifies compatible GPUs by reading BAR0 rather than by PCI device > ID. Group them under "Possibly supported", list the valid GPU > architectures, and warn that nv_falcon skips MSI tests. > > Add -q to print only the PCI addresses of usable devices so scripts can > consume them or pass them to setup.sh, -a for use with -q to include > unusable devices as well, and -h to print usage and exit 0. Print a > message to stderr and exit non-zero when no devices are printed. > > When vfio-pci is loaded with disable_denylist=3DY, the script lists the > denylisted devices under "Supported (on denylist, but denylist > disabled):" and includes them in the -q output. When vfio-pci is not > loaded, the script lists all devices as unusable and omits them from -q > unless -a is also passed. > > Suggested-by: Sean Christopherson > Signed-off-by: Josh Hilke Thanks for your persistence on this Josh! Reviewed-by: David Matlack > + if [ -z "${printed}" ]; then > + echo "No devices with a VFIO selftest driver found." >&2 > + return 1 > + fi nit: Maybe "No usable devices found (run without -q for details)"