All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ye, Tony" <tony.ye@intel.com>
To: "Katragadda, MastanX" <mastanx.katragadda@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [i-g-t] tests/i915/gem_media_vme : skip on no media Samplers
Date: Thu, 30 Dec 2021 00:54:55 +0000	[thread overview]
Message-ID: <F5298D22-3D4B-4DCD-AD0A-D46A2527E235@intel.com> (raw)
In-Reply-To: <BN9PR11MB529008205A60142A6DD2051697459@BN9PR11MB5290.namprd11.prod.outlook.com>



> 在 2021年12月30日,上午8:46,Katragadda, MastanX <mastanx.katragadda@intel.com> 写道:
> 
> Moved this check to   igt_get_media_vme_func is it fine ?        
> 
> igt_vme_func_t fill = NULL;
> +       const struct intel_device_info *devinfo = intel_get_device_info(devid);
> +
> +       igt_skip_on_f(devinfo->is_elkhartlake || devinfo->is_jasperlake,
> +                       "media-vme samplers not present\n");
> 
>        if (IS_GEN11(devid))

How about check it here? If ( is gen11 and is not jsl/ehl)

Regards,
Tony

>                fill = gen11_media_vme_func;
> 
> -----Original Message-----
> From: Dixit, Ashutosh <ashutosh.dixit@intel.com> 
> Sent: 30 December 2021 02:04
> To: Katragadda, MastanX <mastanx.katragadda@intel.com>
> Cc: igt-dev@lists.freedesktop.org; Surendrakumar Upadhyay, TejaskumarX <tejaskumarx.surendrakumar.upadhyay@intel.com>; Ye, Tony <tony.ye@intel.com>
> Subject: Re: [igt-dev] [i-g-t] tests/i915/gem_media_vme : skip on no media Samplers
> 
>> On Wed, 29 Dec 2021 06:42:51 -0800, Mastan Katragadda wrote:
>> 
>> Media sampers are not present on some of Gen11 platforms adding skip 
>> on EHL and JSL as per Bspec.
>> 
>> Bspec:29151
>> 
>> Signed-off-by: Mastan Katragadda <mastanx.katragadda@intel.com>
>> ---
>> tests/i915/gem_media_vme.c | 11 +++++++++++
>> 1 file changed, 11 insertions(+)
>> 
>> diff --git a/tests/i915/gem_media_vme.c b/tests/i915/gem_media_vme.c 
>> index 3ea70386..29e0fda3 100644
>> --- a/tests/i915/gem_media_vme.c
>> +++ b/tests/i915/gem_media_vme.c
>> @@ -90,6 +90,15 @@ static void shut_non_vme_subslices(int drm_fd, 
>> uint32_t ctx)
>> 
>>    gem_context_set_param(drm_fd, &arg);
>> }
>> +static bool is_jsl_ehl(uint32_t devid) {
>> +    const struct intel_device_info *devinfo = 
>> +intel_get_device_info(devid);
>> +
>> +    if (devinfo->is_elkhartlake || devinfo->is_jasperlake)
>> +        return true;
>> +
>> +    return false;
>> +}
>> 
>> igt_simple_main
>> {
>> @@ -104,6 +113,8 @@ igt_simple_main
>> 
>>    devid = intel_get_drm_devid(drm_fd);
>> 
>> +    igt_skip_on_f(is_jsl_ehl(devid), "media-vme samplers not 
>> +present\n");
>> +
>>    media_vme = igt_get_media_vme_func(devid);
>>    igt_require_f(media_vme, "no media-vme function\n");
> 
> I think we should just add the checks to igt_get_media_vme_func().

  reply	other threads:[~2021-12-30  0:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-29 14:42 [igt-dev] [i-g-t] tests/i915/gem_media_vme : skip on no media Samplers Mastan Katragadda
2021-12-29 15:42 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-12-29 17:45 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-12-29 20:34 ` [igt-dev] [i-g-t] " Dixit, Ashutosh
2021-12-30  0:46   ` Katragadda, MastanX
2021-12-30  0:54     ` Ye, Tony [this message]
2021-12-30  1:06       ` Katragadda, MastanX
2021-12-30  0:55     ` Dixit, Ashutosh
2021-12-30  2:09 Mastan Katragadda
2021-12-30  4:29 ` Ye, Tony

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=F5298D22-3D4B-4DCD-AD0A-D46A2527E235@intel.com \
    --to=tony.ye@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=mastanx.katragadda@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.