From: Jacob Keller <jacob.e.keller@intel.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: Anthony Nguyen <anthony.l.nguyen@intel.com>,
intel-wired-lan@lists.osuosl.org
Subject: Re: [Intel-wired-lan] [PATCH net-next v2 11/13] ice: introduce clear_reset_state operation
Date: Thu, 19 Jan 2023 11:18:33 -0800 [thread overview]
Message-ID: <3fd14a70-08ce-e860-6011-50c4d86dd94f@intel.com> (raw)
In-Reply-To: <bbc7c427-ef33-d69f-125f-22dfd70be789@molgen.mpg.de>
On 1/19/2023 12:42 AM, Paul Menzel wrote:
> Dear Jacob,
>
>
> Thank you for your patch.
>
> Am 19.01.23 um 02:16 schrieb Jacob Keller:
>> When hardware is reset, the VF relies on the VFGEN_RSTAT register to detect
>> when the VF is finished resetting. This is a tri-state register where 0
>> indicates a reset is in progress, 1 indicates the hardware is done
>> resetting, and 2 indicates that the software is done resetting.
>>
>> Currently the PF driver relies on the device hardware resetting VFGEN_RSTAT
>> when a global reset occurs. This works ok, but it does mean that the VF
>> might not immediately notice a reset when the driver first detects that the
>> global reset is occurring.
>>
>> This is also problematic for Scalable IOV, because there is no read/write
>> equivalent VFGEN_RSTAT register for the Scalable VSI type. Instead, the
>> Scalable IOV VFs will need to emulate this register.
>>
>> To support this, introduce a new VF operation, clear_reset_state, which is
>> called when the PF driver first detects a global reset. The Single Root IOV
>> implementation can just write to VFGEN_RSTAT to ensure its cleared
>
> it’s
>
>> immediately, without waiting for the actual hardware reset to begin. The
>> Scalable IOV implementation will use this as part of its tracking of the
>> reset status to allow properly reporting the emulated VFGEN_RSTAT to the VF
>> driver.
>
> Can this be tested somehow? If yes, it’d be great if you added the recipe.
>
The operation can be tested by triggering a device reset while having
VFs. But note that the ice driver does not yet support Scalable IOV. We
are working on this but are not yet ready to submit a series
implementing the support. Some of this series are patches intended to
aid in implementing Scalable IOV, and I am sending them now in order to
reduce the size and scope of the series that will actually finish the
implementation.
In general the reset behavior can be tested by adding a Single Root IOV
VF (via sriov_numvfs), and then triggering a reset. This can be done in
a variety of ways including by configuring some of the netlink VF
parameters like the trust setting, or by any operation on the PF that
triggers a PF reset. (Unfortunately I do not recall a specific example
offhand).
Thanks,
Jake
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
next prev parent reply other threads:[~2023-01-19 19:18 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 1:16 [Intel-wired-lan] [PATCH net-next v2 00/13] ice: various virtualization cleanups Jacob Keller
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 01/13] ice: fix function comment referring to ice_vsi_alloc Jacob Keller
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 02/13] ice: drop unnecessary VF parameter from several VSI functions Jacob Keller
2023-01-26 9:36 ` Szlosek, Marek
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 03/13] ice: refactor VSI setup to use parameter structure Jacob Keller
2023-01-24 3:15 ` G, GurucharanX
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 04/13] ice: move vsi_type assignment from ice_vsi_alloc to ice_vsi_cfg Jacob Keller
2023-01-24 3:16 ` G, GurucharanX
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 05/13] ice: Fix RDMA latency issue by allowing write-combining Jacob Keller
2023-01-25 15:21 ` Andrysiak, Jakub
2023-01-30 10:03 ` Alexander Lobakin
2023-01-30 23:34 ` Keller, Jacob E
2023-01-31 0:26 ` Tony Nguyen
2023-01-31 22:57 ` Jacob Keller
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 06/13] ice: move ice_vf_vsi_release into ice_vf_lib.c Jacob Keller
2023-01-26 9:36 ` Szlosek, Marek
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 07/13] ice: Pull common tasks into ice_vf_post_vsi_rebuild Jacob Keller
2023-01-26 9:37 ` Szlosek, Marek
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 08/13] ice: add a function to initialize vf entry Jacob Keller
2023-01-26 9:38 ` Szlosek, Marek
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 09/13] ice: introduce ice_vf_init_host_cfg function Jacob Keller
2023-01-26 9:38 ` Szlosek, Marek
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 10/13] ice: convert vf_ops .vsi_rebuild to .create_vsi Jacob Keller
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 11/13] ice: introduce clear_reset_state operation Jacob Keller
2023-01-19 8:42 ` Paul Menzel
2023-01-19 19:18 ` Jacob Keller [this message]
2023-01-27 9:48 ` Szlosek, Marek
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 12/13] ice: introduce .irq_close VF operation Jacob Keller
2023-01-27 9:48 ` Szlosek, Marek
2023-01-19 1:16 ` [Intel-wired-lan] [PATCH net-next v2 13/13] ice: remove unnecessary virtchnl_ether_addr struct use Jacob Keller
2023-01-27 9:49 ` Szlosek, Marek
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=3fd14a70-08ce-e860-6011-50c4d86dd94f@intel.com \
--to=jacob.e.keller@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=pmenzel@molgen.mpg.de \
/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