Thread (13 messages) 13 messages, 7 authors, 2021-06-01

Re: [dpdk-dev] [21.08 PATCH v1 1/2] power: invert the monitor check

From: Burakov, Anatoly <hidden>
Date: 2021-05-27 13:06:44

On 25-May-21 10:15 AM, Liu, Yong wrote:
quoted
-----Original Message-----
From: dev <redacted> On Behalf Of Anatoly Burakov
Sent: Tuesday, May 11, 2021 11:32 PM
To: dev@dpdk.org; McDaniel, Timothy <redacted>; Xing,
Beilei [off-list ref]; Wu, Jingjing [off-list ref]; Yang,
Qiming [off-list ref]; Zhang, Qi Z [off-list ref];
Wang, Haiyue [off-list ref]; Matan Azrad
[off-list ref]; Shahaf Shuler [off-list ref]; Viacheslav
Ovsiienko [off-list ref]; Richardson, Bruce
[off-list ref]; Ananyev, Konstantin
[off-list ref]
Cc: Loftus, Ciara <redacted>
Subject: [dpdk-dev] [21.08 PATCH v1 1/2] power: invert the monitor check

Previously, the semantics of power monitor were such that we were
checking current value against the expected value, and if they matched,
then the sleep was aborted. This is somewhat inflexible, because it only
allowed us to check for a specific value.

We can reverse the check, and instead have monitor sleep to be aborted
if the expected value *doesn't* match what's in memory. This allows us
to both implement all currently implemented driver code, as well as
support more use cases which don't easily map to previous semantics
(such as waiting on writes to AF_XDP counter value).
Hi Anatoly,
In virtio spec, packed formatted descriptor utilizes two bits for representing the status. One bit for available status, one bit for used status.
For checking the status more precisely, it is need to check value against the expected value.
The monitor function in virtio datapath still can work with new semantics, but it may lead to some useless io call.
Base on that, I'd like to keep previous semantics.

Regards,
Marvin
Thanks for your feedback! Would making this an option make things 
better? Because we need the inverted semantics for AF_XDP, it can't work 
without it. So, we either invert all of them, or we have an option to do 
regular or inverted check on a per-condition basis. Would that work?


-- 
Thanks,
Anatoly
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help