From: Frederic Barrat <fbarrat@linux.ibm.com>
To: "Oliver O'Halloran" <oohall@gmail.com>, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 3/3] selftests/powerpc: Add VF recovery tests
Date: Tue, 24 Nov 2020 11:14:51 +0100 [thread overview]
Message-ID: <d192485d-c8e0-7798-4a7f-85efe68a41fa@linux.ibm.com> (raw)
In-Reply-To: <20201103044503.917128-3-oohall@gmail.com>
On 03/11/2020 05:45, Oliver O'Halloran wrote:
> --- a/tools/testing/selftests/powerpc/eeh/eeh-functions.sh
> +++ b/tools/testing/selftests/powerpc/eeh/eeh-functions.sh
> @@ -135,3 +135,111 @@ eeh_one_dev() {
> return 0;
> }
>
> +eeh_has_driver() {
> + test -e /sys/bus/pci/devices/$1/driver;
> + return $?
> +}
> +
> +eeh_can_recover() {
> + # we'll get an IO error if the device's current driver doesn't support
> + # error recovery
> + echo $1 > '/sys/kernel/debug/powerpc/eeh_dev_can_recover' 2>/dev/null
> +
> + return $?
> +}
> +
> +eeh_find_all_pfs() {
> + devices=""
> +
> + # SR-IOV on pseries requires hypervisor support, so check for that
> + is_pseries=""
> + if grep -q pSeries /proc/cpuinfo ; then
> + if [ ! -f /proc/device-tree/rtas/ibm,open-sriov-allow-unfreeze ] ||
> + [ ! -f /proc/device-tree/rtas/ibm,open-sriov-map-pe-number ] ; then
> + return 1;
> + fi
Is it possible to run those tests on pseries? I haven't managed to set
up a LPAR with a physical function which would let me enable a virtual
function. All I could do is assign a virtual function to a LPAR. When
assigning a physical function to the LPAR, enabling a virtual function
fails because of missing properties in the device tree, so it looks like
the hypervisor doesn't support it (?).
Same story on qemu.
Fred
next prev parent reply other threads:[~2020-11-24 10:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-03 4:45 [PATCH 1/3] selftests/powerpc: Hoist helper code out of eeh-basic Oliver O'Halloran
2020-11-03 4:45 ` [PATCH 2/3] selftests/powerpc: Use stderr for debug messages in eeh-functions Oliver O'Halloran
2020-11-03 4:45 ` [PATCH 3/3] selftests/powerpc: Add VF recovery tests Oliver O'Halloran
2020-11-24 10:14 ` Frederic Barrat [this message]
2020-11-24 11:17 ` Oliver O'Halloran
2021-02-03 11:40 ` [PATCH 1/3] selftests/powerpc: Hoist helper code out of eeh-basic Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d192485d-c8e0-7798-4a7f-85efe68a41fa@linux.ibm.com \
--to=fbarrat@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=oohall@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).