Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>,
	Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	igt-dev@lists.freedesktop.org,
	Mark Yacoub <markyacoub@chromium.org>
Subject: Re: [PATCH i-g-t] tests/kms: Move kms_plane_scaling to intel directory
Date: Mon, 20 May 2024 19:04:31 +0300	[thread overview]
Message-ID: <7797e287-dfc1-4eb1-a852-806863acd58c@gmail.com> (raw)
In-Reply-To: <0c319f00-57de-4ed7-a9ef-65877a67c232@intel.com>

On 20.5.2024 15.00, Modem, Bhanuprakash wrote:
> Hi JP,
> 
> On 20-05-2024 04:19 pm, Juha-Pekka Heikkila wrote:
>> I didn't see why this test would need Intel HW? I see Intel hw is 
>> handled with special casing, normally test uses linear tiling and 
>> checks if Intel specific tiling can be used. What did I miss?
> 
> If you check the helper function "get_num_scalers()", that returns 0 for 
> non-Intel cases, which causes the skips.

But that's a bug in library and not in the test, something Swati 
probably overlooked as she did use only Intel HW. I hope you are not 
thinking Intel HW is only HW supporting scaling?

/Juha-Pekka

>>
>> On 20.5.2024 11.22, Kamil Konieczny wrote:
>>> Hi Bhanuprakash,
>>> On 2024-05-20 at 12:11:50 +0530, Bhanuprakash Modem wrote:
>>>> As kms_plane_scaling is limited to run on Intel hw only,
>>>> move this test to tests/intel directory.
>>>>
>>>> Cc: Mark Yacoub <markyacoub@chromium.org>
>>>> Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
>>>> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
>>>
>>> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
>>>
>>>> ---
>>>>   tests/{ => intel}/kms_plane_scaling.c | 6 ++----
>>>>   tests/meson.build                     | 2 +-
>>>>   2 files changed, 3 insertions(+), 5 deletions(-)
>>>>   rename tests/{ => intel}/kms_plane_scaling.c (99%)
>>>>
>>>> diff --git a/tests/kms_plane_scaling.c 
>>>> b/tests/intel/kms_plane_scaling.c
>>>> similarity index 99%
>>>> rename from tests/kms_plane_scaling.c
>>>> rename to tests/intel/kms_plane_scaling.c
>>>> index acb4a1da1..620dba911 100644
>>>> --- a/tests/kms_plane_scaling.c
>>>> +++ b/tests/intel/kms_plane_scaling.c
>>>> @@ -1291,10 +1291,9 @@ igt_main_args("", long_opts, help_str, 
>>>> opt_handler, &data)
>>>>       enum pipe pipe;
>>>>       igt_fixture {
>>>> -        data.drm_fd = drm_open_driver_master(DRIVER_ANY);
>>>> +        data.drm_fd = drm_open_driver_master(DRIVER_INTEL | 
>>>> DRIVER_XE);
>>>>           igt_display_require(&data.display, data.drm_fd);
>>>> -        data.devid = is_intel_device(data.drm_fd) ?
>>>> -            intel_get_drm_devid(data.drm_fd) : 0;
>>>> +        data.devid = intel_get_drm_devid(data.drm_fd);
>>>>           igt_require(data.display.is_atomic);
>>>>       }
>>>> @@ -1464,7 +1463,6 @@ igt_main_args("", long_opts, help_str, 
>>>> opt_handler, &data)
>>>>           for (int index = 0; index < ARRAY_SIZE(intel_paramtests); 
>>>> index++) {
>>>>               igt_describe("Test for validating max source size.");
>>>> igt_subtest_with_dynamic(intel_paramtests[index].testname) {
>>>> -                igt_require_intel(data.drm_fd);
>>>>                   for_each_pipe(&data.display, pipe) {
>>>>                       for_each_valid_output_on_pipe(&data.display, 
>>>> pipe, output) {
>>>>                           drmModeModeInfo *mode = NULL;
>>>> diff --git a/tests/meson.build b/tests/meson.build
>>>> index 758ae090c..c53e3bc3c 100644
>>>> --- a/tests/meson.build
>>>> +++ b/tests/meson.build
>>>> @@ -47,7 +47,6 @@ test_progs = [
>>>>       'kms_plane_cursor',
>>>>       'kms_plane_lowres',
>>>>       'kms_plane_multiple',
>>>> -    'kms_plane_scaling',
>>>>       'kms_prime',
>>>>       'kms_prop_blob',
>>>>       'kms_properties',
>>>> @@ -262,6 +261,7 @@ intel_kms_progs = [
>>>>       'kms_legacy_colorkey',
>>>>       'kms_mmap_write_crc',
>>>>       'kms_pipe_b_c_ivb',
>>>> +    'kms_plane_scaling',
>>>>       'kms_pm_backlight',
>>>>       'kms_pm_dc',
>>>>       'kms_pm_lpsp',
>>>> -- 
>>>> 2.43.2
>>>>
>>


  reply	other threads:[~2024-05-20 16:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-20  6:41 [PATCH i-g-t] tests/kms: Move kms_plane_scaling to intel directory Bhanuprakash Modem
2024-05-20  8:22 ` Kamil Konieczny
2024-05-20 10:49   ` Juha-Pekka Heikkila
2024-05-20 12:00     ` Modem, Bhanuprakash
2024-05-20 16:04       ` Juha-Pekka Heikkila [this message]
2024-05-20 14:27 ` ✓ CI.xeBAT: success for " Patchwork
2024-05-20 14:38 ` ✓ Fi.CI.BAT: " Patchwork
2024-05-20 16:07 ` ✗ CI.xeFULL: failure " Patchwork
2024-05-21  5:00 ` ✗ Fi.CI.IGT: " 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=7797e287-dfc1-4eb1-a852-806863acd58c@gmail.com \
    --to=juhapekka.heikkila@gmail.com \
    --cc=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=markyacoub@chromium.org \
    /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