From: "Joshi, Kunal1" <kunal1.joshi@intel.com>
To: Vinod Govindapillai <vinod.govindapillai@intel.com>,
igt-dev@lists.freedesktop.org
Cc: santhosh.reddy.guddati@intel.com, swati2.sharma@intel.com,
jeevan.b@intel.com, jani.saarinen@intel.com
Subject: Re: [i-g-t,v1,1/5] lib/i915/fbc: fbc psr combo support check helper function
Date: Tue, 25 Feb 2025 14:42:46 +0530 [thread overview]
Message-ID: <2bd8e544-142b-4c34-ac3b-8ac1e3b2648e@intel.com> (raw)
In-Reply-To: <20250220122131.221907-2-vinod.govindapillai@intel.com>
Hello Vinod,
Just a suggestion if we can have some kind of identifier to refer below
criteria added as a comment.
Without that also LGTM.
Reviewed-by: Kunal Joshi <kunal1.joshi@intel.com>
Thanks and Regards
Kunal Joshi
On 20-02-2025 17:51, Vinod Govindapillai wrote:
> Introduce a function which can check if the PSR and FBC combo
> is supported in a display version.
>
> Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
> ---
> lib/i915/intel_fbc.c | 18 ++++++++++++++++++
> lib/i915/intel_fbc.h | 1 +
> 2 files changed, 19 insertions(+)
>
> diff --git a/lib/i915/intel_fbc.c b/lib/i915/intel_fbc.c
> index 2096bd996..90fe5943c 100644
> --- a/lib/i915/intel_fbc.c
> +++ b/lib/i915/intel_fbc.c
> @@ -154,3 +154,21 @@ bool intel_fbc_plane_size_supported(int fd, uint32_t width, uint32_t height)
>
> return width <= max_w && height <= max_h;
> }
> +
> +/**
> + * intel_fbc_psr_combo_supported
> + *
> + * @fd: fd of the device
> + *
> + * FBC PSR combination support depends on the display version.
> + *
> + * Returns:
> + * true if FBC and PSR can be enabled together in a platform
> + */
> +bool intel_fbc_psr_combo_supported(int device)
> +{
> + if (intel_display_ver(intel_get_drm_devid(device)) >= 20)
> + return true;
> +
> + return false;
> +}
> diff --git a/lib/i915/intel_fbc.h b/lib/i915/intel_fbc.h
> index 5cca5dfd9..0abd18478 100644
> --- a/lib/i915/intel_fbc.h
> +++ b/lib/i915/intel_fbc.h
> @@ -16,5 +16,6 @@ bool intel_fbc_wait_until_enabled(int device, enum pipe pipe);
> bool intel_fbc_is_enabled(int device, enum pipe pipe, int log_level);
> void intel_fbc_max_plane_size(int fd, uint32_t *width, uint32_t *height);
> bool intel_fbc_plane_size_supported(int device, uint32_t width, uint32_t height);
> +bool intel_fbc_psr_combo_supported(int device);
>
> #endif
next prev parent reply other threads:[~2025-02-25 9:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 12:21 [PATCH i-g-t v1 0/5] updates tp FBC PSR combo checks Vinod Govindapillai
2025-02-20 12:21 ` [PATCH i-g-t v1 1/5] lib/i915/fbc: fbc psr combo support check helper function Vinod Govindapillai
2025-02-25 9:12 ` Joshi, Kunal1 [this message]
2025-02-20 12:21 ` [PATCH i-g-t v1 2/5] tests/intel/kms_psr: update to FBC support check Vinod Govindapillai
2025-02-25 9:14 ` [i-g-t,v1,2/5] " Joshi, Kunal1
2025-02-20 12:21 ` [PATCH i-g-t v1 3/5] tests/intel/kms_frontbuffer_tracking: " Vinod Govindapillai
2025-02-25 9:15 ` [i-g-t,v1,3/5] " Joshi, Kunal1
2025-02-20 12:21 ` [PATCH i-g-t v1 4/5] tests/intel/kms_psr2_sf: " Vinod Govindapillai
2025-02-25 9:17 ` [i-g-t,v1,4/5] " Joshi, Kunal1
2025-02-20 12:21 ` [PATCH i-g-t v1 5/5] lib/i915/fbc: fbc psr combo support update for xe3 Vinod Govindapillai
2025-02-25 9:17 ` [i-g-t, v1, " Joshi, Kunal1
2025-02-20 17:18 ` ✗ i915.CI.BAT: failure for updates tp FBC PSR combo checks Patchwork
2025-02-20 17:21 ` ✓ Xe.CI.BAT: success " Patchwork
2025-02-21 8:53 ` ✓ i915.CI.BAT: " Patchwork
2025-02-21 10:09 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-21 10:38 ` ✗ i915.CI.Full: " 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=2bd8e544-142b-4c34-ac3b-8ac1e3b2648e@intel.com \
--to=kunal1.joshi@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jani.saarinen@intel.com \
--cc=jeevan.b@intel.com \
--cc=santhosh.reddy.guddati@intel.com \
--cc=swati2.sharma@intel.com \
--cc=vinod.govindapillai@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