[igt-dev] [PATCH i-g-t] tests/kms_flip : skip subtest bo-too-big
Pillai, Aurabindo
Aurabindo.Pillai at amd.com
Mon Sep 27 17:28:32 UTC 2021
[AMD Official Use Only]
Hi Mark,
Both bo-too-big and bo-too-big-interruptible shall be skipped with this patch. The other location where TEST_BO_TOOBIG is mentioned is in the same function.
--
Regards,
Jay
________________________________
From: Mark Yacoub <markyacoub at chromium.org>
Sent: Monday, September 27, 2021 1:21 PM
To: Pillai, Aurabindo <Aurabindo.Pillai at amd.com>
Cc: Development mailing list for IGT GPU Tools <igt-dev at lists.freedesktop.org>; Mark Yacoub <markyacoub at google.com>; Siqueira, Rodrigo <Rodrigo.Siqueira at amd.com>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_flip : skip subtest bo-too-big
On Mon, Sep 27, 2021 at 12:07 PM Aurabindo Pillai
<aurabindo.pillai at amd.com> wrote:
>
> [Why]
> The rationale of the test does not hold true for AMD hardware. The
> aperture size calculation has an upper bound check which is done through
> i915 specific IOCTL. Hence this part of subtest must be moved
> out of the platform agnostic tests. Moreover, AMD hardware
> supports buffers larger than aperture size.
>
> [How]
> Skip the bo-too-big subtest unless its run on i915 as the test fails on
> AMD, VKMS and VC4
>
> Signed-off-by: Aurabindo Pillai <aurabindo.pillai at amd.com>
> ---
> tests/kms_flip.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/kms_flip.c b/tests/kms_flip.c
> index 54137871..20112de1 100755
> --- a/tests/kms_flip.c
> +++ b/tests/kms_flip.c
> @@ -1290,6 +1290,7 @@ static void __run_test_on_crtc_set(struct test_output *o, int *crtc_idxs,
> /* 256 MB is usually the maximum mappable aperture,
> * (make it 4x times that to ensure failure) */
> if (o->flags & TEST_BO_TOOBIG) {
There is also another place where TEST_BO_TOOBIG is used, should we
skip this one as well or it's only this part?
> + igt_skip_on(!is_i915_device(drm_fd));
> bo_size = 4*gem_mappable_aperture_size(drm_fd);
> igt_require(bo_size < gem_global_aperture_size(drm_fd));
> }
> --
> 2.30.2
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20210927/63e7b86a/attachment.htm>
More information about the igt-dev
mailing list