[PATCH i-g-t] tests/intel/kms_fbcon_fbt: Add skip condition for bmg platform

Samala, Pranay pranay.samala at intel.com
Thu Nov 14 06:18:42 UTC 2024


Hi Thasleem,

Add bspec id. in commit message.

> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Mohammed
> Thasleem
> Sent: Wednesday, November 13, 2024 4:31 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Thasleem, Mohammed <mohammed.thasleem at intel.com>
> Subject: [PATCH i-g-t] tests/intel/kms_fbcon_fbt: Add skip condition for bmg
> platform
> 
> FBC test isn't supported on bmg, skip the test on this platform.
> 
> Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
> ---
>  tests/intel/kms_fbcon_fbt.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/intel/kms_fbcon_fbt.c b/tests/intel/kms_fbcon_fbt.c index
> ab4819d23..59a000236 100644
> --- a/tests/intel/kms_fbcon_fbt.c
> +++ b/tests/intel/kms_fbcon_fbt.c
> @@ -73,7 +73,7 @@ IGT_TEST_DESCRIPTION("Test the relationship between
> fbcon and the frontbuffer "
>  #define MAX_CONNECTORS 32
> 
>  struct drm_info {
> -	int fd, debugfs_fd, crtc_id;
> +	int fd, debugfs_fd, crtc_id, devid;
>  	struct igt_fb fb;
>  	drmModeResPtr res;
>  	drmModeConnectorPtr connectors[MAX_CONNECTORS]; @@ -418,6
> +418,9 @@ static void setup_environment(struct drm_info *drm)
>  	igt_require(drm->fd >= 0);
>  	drm->debugfs_fd = igt_debugfs_dir(drm->fd);
>  	igt_require(drm->debugfs_fd >= 0);
> +	drm->devid = intel_get_drm_devid(drm->fd);
> +	igt_require_f(intel_display_ver(drm->devid) != 14,
> +		     "FBC isn't supported on BMG\n");
> 
>  	drm->res = drmModeGetResources(drm->fd);
>  	igt_require(drm->res);
> --
> 2.25.1



More information about the igt-dev mailing list