From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: Kunal Joshi <kunal1.joshi@intel.com>,
<igt-dev@lists.freedesktop.org>, Jeevan B <jeevan.b@intel.com>,
Vidya Srinivas <vidya.srinivas@intel.com>
Subject: Re: [PATCH i-g-t 2/2] tests/intel/kms_psr: enable given psr mode only after checking enable_psr modparam
Date: Wed, 24 Jan 2024 20:12:38 +0530 [thread overview]
Message-ID: <4ff7b717-8c2f-4180-a22c-4ac66c835972@intel.com> (raw)
In-Reply-To: <20240124103410.1259607-3-kunal1.joshi@intel.com>
Hi Kunal,
On 24-01-2024 04:04 pm, Kunal Joshi wrote:
> don't enable a psr mode with psr_debug debugfs, instead check what's
> the modparam value for i915_enable_psr
>
> Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com>
> Reviewed-by: Jeevan B <jeevan.b@intel.com>
> Tested-by: Vidya Srinivas <vidya.srinivas@intel.com>
> ---
> tests/intel/kms_psr.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/tests/intel/kms_psr.c b/tests/intel/kms_psr.c
> index 349671b00..521d4c708 100644
> --- a/tests/intel/kms_psr.c
> +++ b/tests/intel/kms_psr.c
> @@ -497,16 +497,28 @@ static void fill_render(data_t *data, const struct igt_fb *fb,
>
> static bool psr_wait_entry_if_enabled(data_t *data)
> {
> + if (!is_psr_enable_possible(data->drm_fd, data->op_psr_mode))
> + igt_skip("enable_psr modparam doesn't allow psr mode %d\n",
> + data->op_psr_mode);
This change will cause the skips in dynamic subtests. Skipping the
dynamic subtest is not recommended, instead don't run the test.
So the proper place for this check would be before calling the
igt_dynamic().
- Bhanu
> +
> return psr_wait_entry(data->debugfs_fd, data->op_psr_mode, data->output);
> }
>
> static bool psr_wait_update_if_enabled(data_t *data)
> {
> + if (!is_psr_enable_possible(data->drm_fd, data->op_psr_mode))
> + igt_skip("enable_psr modparam doesn't allow psr mode %d\n",
> + data->op_psr_mode);
> +
> return psr_wait_update(data->debugfs_fd, data->op_psr_mode, data->output);
> }
>
> static bool psr_enable_if_enabled(data_t *data)
> {
> + if (!is_psr_enable_possible(data->drm_fd, data->op_psr_mode))
> + igt_skip("enable_psr modparam doesn't allow psr mode %d\n",
> + data->op_psr_mode);
> +
> return psr_enable(data->drm_fd, data->debugfs_fd, data->op_psr_mode);
> }
>
next prev parent reply other threads:[~2024-01-24 14:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-24 10:34 [PATCH i-g-t 0/2] check modparam before enabling psr mode Kunal Joshi
2024-01-24 10:34 ` [PATCH i-g-t 1/2] lib/igt_psr: add helper to check of given psr mode can be enabled Kunal Joshi
2024-01-24 11:57 ` Modem, Bhanuprakash
2024-01-24 12:06 ` Joshi, Kunal1
2024-01-24 14:34 ` Modem, Bhanuprakash
2024-01-24 10:34 ` [PATCH i-g-t 2/2] tests/intel/kms_psr: enable given psr mode only after checking enable_psr modparam Kunal Joshi
2024-01-24 14:42 ` Modem, Bhanuprakash [this message]
2024-01-24 15:06 ` Joshi, Kunal1
2024-01-24 11:02 ` ✓ CI.xeBAT: success for check modparam before enabling psr mode (rev2) Patchwork
2024-01-24 11:22 ` ✗ Fi.CI.BAT: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-01-23 14:18 [PATCH i-g-t 0/2] check modparam before enabling psr mode Kunal Joshi
2024-01-23 14:18 ` [PATCH i-g-t 2/2] tests/intel/kms_psr: enable given psr mode only after checking enable_psr modparam Kunal Joshi
2024-01-23 14:44 ` B, Jeevan
2024-01-23 15:11 ` Srinivas, Vidya
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=4ff7b717-8c2f-4180-a22c-4ac66c835972@intel.com \
--to=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jeevan.b@intel.com \
--cc=kunal1.joshi@intel.com \
--cc=vidya.srinivas@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