[PATCH i-g-t v2] tests/intel/kms_fbcon_fbt: Add skip condition for bmg platform
Mohammed Thasleem
mohammed.thasleem at intel.com
Wed Dec 11 13:37:14 UTC 2024
FBC test isn't supported on bmg, skip the test on this platform.
v2: Add workaround id: Wa_16023588340. (Pranay)
Use IS_BATTLEMAGE check instead using devid.
Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
Reviewed-by: Pranay Samala <pranay.samala 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..8b792d868 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(!IS_BATTLEMAGE(drm->devid),
+ "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