From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "Joshi, Kunal1" <kunal1.joshi@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "Murthy, Arun R" <arun.r.murthy@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t 3/5] lib/igt_psr: added function to check output supports pr
Date: Wed, 25 Oct 2023 07:05:43 +0000 [thread overview]
Message-ID: <34a1f156ccbccb7fac1393bab3d9f445325144cf.camel@intel.com> (raw)
In-Reply-To: <CY8PR11MB68894CFF019B013FABDB7EBBDADEA@CY8PR11MB6889.namprd11.prod.outlook.com>
On Wed, 2023-10-25 at 06:01 +0000, Joshi, Kunal1 wrote:
> Hello Jouni,
>
> -----Original Message-----
> From: Hogander, Jouni <jouni.hogander@intel.com>
> Sent: Friday, October 20, 2023 5:43 PM
> To: Joshi, Kunal1 <kunal1.joshi@intel.com>;
> igt-dev@lists.freedesktop.org
> Cc: Murthy, Arun R <arun.r.murthy@intel.com>; Manna, Animesh
> <animesh.manna@intel.com>
> Subject: Re: [PATCH i-g-t 3/5] lib/igt_psr: added function to check
> output supports pr
>
> On Fri, 2023-10-20 at 11:35 +0530, Kunal Joshi wrote:
> > added function to check output supports PR
> >
> > Note :- New debugfs interfaces which are used
> > will be added by below patch in the driver
> > https://patchwork.freedesktop.org/series/94470/
> >
> > Cc: Jouni Högander <jouni.hogander@intel.com>
> > Cc: Animesh Manna <animesh.manna@intel.com>
> > Cc: Arun R Murthy <arun.r.murthy@intel.com>
> > Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com>
> > ---
> > lib/igt_psr.c | 17 +++++++++++++++++
> > lib/igt_psr.h | 1 +
> > 2 files changed, 18 insertions(+)
> >
> > diff --git a/lib/igt_psr.c b/lib/igt_psr.c index
> > acacfa31f..4c912a064
> > 100644
> > --- a/lib/igt_psr.c
> > +++ b/lib/igt_psr.c
> > @@ -22,6 +22,7 @@
> > */
> >
> > #include "drmtest.h"
> > +#include "igt_kms.h"
> > #include "igt_params.h"
> > #include "igt_psr.h"
> > #include "igt_sysfs.h"
> > @@ -373,3 +374,19 @@ enum psr_mode psr_get_mode(int debugfs_fd)
> >
> > return PSR_DISABLED;
> > }
> > +
> > +bool output_supports_pr(int debugfs_fd, igt_output_t *output) {
> > + char debugfs_file[128] = {0};
> > + char buf[PSR_STATUS_MAX_LEN];
> > +
> > + if (!strstr(output->name,"DP"))
> > + return false;
> > +
> > + sprintf(debugfs_file, "%s/i915_psr_status", output->name);
> > +
> > + igt_debugfs_simple_read(debugfs_fd, debugfs_file,
> > + buf, sizeof(buf));
> > +
> > + return strstr(buf, "Panel Replay = yes"); }
>
> > Why do you think psr_sink_support couldn't work for DP as well?
> >
> > BR,
>
> > Jouni Högander
>
> Jouni psr_sink_support won't work for DP, psr_sink_support is
> modified
> for eDP only. Changes are based on driver changes done in
> https://patchwork.freedesktop.org/series/94470/
Ok but instead of adding new you could modify psr_sink_support to
accept PR_MODE and PR_MODE_SEL_FETCH?
BR,
Jouni Högander
>
>
> > diff --git a/lib/igt_psr.h b/lib/igt_psr.h index
> > 243154897..8e36fcf2f
> > 100644
> > --- a/lib/igt_psr.h
> > +++ b/lib/igt_psr.h
> > @@ -55,5 +55,6 @@ bool i915_psr2_selective_fetch_check(int drm_fd);
> >
> > bool i915_psr2_sel_fetch_to_psr1(int drm_fd);
> > void i915_psr2_sel_fetch_restore(int drm_fd);
> > +bool output_supports_pr(int debugfs_fd, igt_output_t *output);
> >
> > #endif
>
next prev parent reply other threads:[~2023-10-25 7:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-20 6:04 [igt-dev] [PATCH i-g-t 0/5] extend kms_psr test to validate pr Kunal Joshi
2023-10-20 6:04 ` [igt-dev] [PATCH i-g-t 1/5] lib/igt_psr: added enum for panel replay Kunal Joshi
2023-10-20 6:05 ` [igt-dev] [PATCH i-g-t 2/5] lib/igt_psr: modified function for pr compaitability Kunal Joshi
2023-10-20 6:05 ` [igt-dev] [PATCH i-g-t 3/5] lib/igt_psr: added function to check output supports pr Kunal Joshi
2023-10-20 12:13 ` Hogander, Jouni
2023-10-25 6:01 ` Joshi, Kunal1
2023-10-25 7:05 ` Hogander, Jouni [this message]
2023-10-25 7:12 ` Joshi, Kunal1
2023-10-20 6:05 ` [igt-dev] [PATCH i-g-t 4/5] lib/igt_psr: added function to check active dp pr Kunal Joshi
2023-10-20 12:15 ` Hogander, Jouni
2023-10-25 6:16 ` Joshi, Kunal1
2023-10-25 7:07 ` Hogander, Jouni
2023-10-25 7:13 ` Joshi, Kunal1
2023-10-20 6:05 ` [igt-dev] [PATCH i-g-t 5/5] tests/intel/kms_psr: made test compaitable with pr Kunal Joshi
2023-10-23 6:54 ` Hogander, Jouni
2023-10-25 6:19 ` Joshi, Kunal1
2023-10-25 6:49 ` Joshi, Kunal1
2023-10-23 22:39 ` [igt-dev] ✗ Fi.CI.BAT: failure for extend kms_psr test to validate pr Patchwork
2023-10-23 23:37 ` [igt-dev] ✗ CI.xeBAT: " 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=34a1f156ccbccb7fac1393bab3d9f445325144cf.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kunal1.joshi@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