From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/xe/kunit: Update RTP test to check VF rules
Date: Mon, 17 Jun 2024 17:12:18 +0200 [thread overview]
Message-ID: <743a2e43-22d9-4ebd-bd93-5abf30b0918d@intel.com> (raw)
In-Reply-To: <ia5y6be2re3cu3ulht6exduszz6fsn2ana42kxbkxhjxrccf4m@z7ud43xwjdlh>
On 17.06.2024 16:48, Lucas De Marchi wrote:
> On Fri, Jun 14, 2024 at 11:48:21PM GMT, Michal Wajdeczko wrote:
>> Add basic test cases that will verify VF_READY and VF_ONLY rules.
>>
>> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
>> Cc: Lucas De Marchi <lucas.demarchi@intel.com>
>> ---
>> drivers/gpu/drm/xe/tests/xe_rtp_test.c | 118 ++++++++++++++++++++++++-
>> 1 file changed, 117 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/xe/tests/xe_rtp_test.c
>> b/drivers/gpu/drm/xe/tests/xe_rtp_test.c
>> index 06759d754783..0d8731e13217 100644
>> --- a/drivers/gpu/drm/xe/tests/xe_rtp_test.c
>> +++ b/drivers/gpu/drm/xe/tests/xe_rtp_test.c
>> @@ -232,6 +232,109 @@ static const struct rtp_test_case cases[] = {
>> {}
>> },
>> },
>> + {
>> + .name = "vf-ready",
>> + .expected_reg = REGULAR_REG1,
>> + .expected_set_bits = REG_BIT(0),
>> + .expected_clr_bits = REG_BIT(0),
>> + .expected_count = 1,
>> + /* VF-ready does not impact native/PF */
>
> this contradicts the above expected*bits
hmm, but why ?
by design the VF_READY is a markup that should have no impact for any
rules that are executed on the native/PF so in this test case bits shall
be as specified by the action, which is REG_BIT(0)
did I missed something ?
>
>> + .entries = (const struct xe_rtp_entry_sr[]) {
>> + { XE_RTP_NAME("basic-1"),
>> + XE_RTP_RULES(FUNC(match_yes), VF_READY),
>
> I was wondering if "VF_READY" wouldn't be more a case for entry->flags
> rather than entry->rules.
I just followed IS_INTEGRATED/IS_DISCRETE as I could easily understand
what they do
> Do you have a concrete case for that?
not yet
as per 1/2 commit message, I don't know any RTP action that should be
applied on the VF right now, but since we are starting our VF adventure
and RTP is used at different stages, I would expect that in the future
some tweaks could be required to performed also by the VF itself,
thus decided to prepare framework for that, where all currently defined
actions are not applicable for VFs, but any of them could be easily
enabled, if mandated by the spec
next prev parent reply other threads:[~2024-06-17 15:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-14 21:48 [PATCH 0/2] Prepare RTP for VF rules Michal Wajdeczko
2024-06-14 21:48 ` [PATCH 1/2] drm/xe/rtp: " Michal Wajdeczko
2024-06-14 21:48 ` [PATCH 2/2] drm/xe/kunit: Update RTP test to check " Michal Wajdeczko
2024-06-17 14:48 ` Lucas De Marchi
2024-06-17 15:12 ` Michal Wajdeczko [this message]
2024-06-14 23:25 ` ✓ CI.Patch_applied: success for Prepare RTP for " Patchwork
2024-06-14 23:25 ` ✓ CI.checkpatch: " Patchwork
2024-06-14 23:26 ` ✓ CI.KUnit: " Patchwork
2024-06-14 23:38 ` ✓ CI.Build: " Patchwork
2024-06-14 23:40 ` ✗ CI.Hooks: failure " Patchwork
2024-06-14 23:42 ` ✓ CI.checksparse: success " Patchwork
2024-06-15 0:08 ` ✗ CI.BAT: failure " Patchwork
2024-06-15 17:55 ` ✓ CI.FULL: success " Patchwork
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=743a2e43-22d9-4ebd-bd93-5abf30b0918d@intel.com \
--to=michal.wajdeczko@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.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