From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [i-g-t 2/5] i915: s/igt_require_intel/igt_require_i915
Date: Tue, 14 Mar 2023 20:02:33 +0530 [thread overview]
Message-ID: <75a49d2e-d77a-f752-f2f2-9fec097828a9@intel.com> (raw)
In-Reply-To: <20230314130340.40a8b008@maurocar-mobl2>
On Tue-14-03-2023 05:33 pm, Mauro Carvalho Chehab wrote:
> On Tue, 14 Mar 2023 16:24:49 +0530
> Bhanuprakash Modem <bhanuprakash.modem@intel.com> wrote:
>
>> Update to use the i915 specific helper.
>>
>> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
>
> LGTM, although there are a bunch of tests/kms_* that also use
> igt_require_i915(). Didn't check what of them makes sense for
> Xe, if any.
I am planning to address individual kms tests as a separate task.
- Bhanu
>
> Anyway,
>
> Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org>
>
>> ---
>> lib/i915/gem.c | 2 +-
>> lib/igt_fb.c | 6 +++---
>> lib/igt_kms.c | 2 +-
>> tests/i915/perf.c | 2 +-
>> 4 files changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/lib/i915/gem.c b/lib/i915/gem.c
>> index 27b872c28..ed45a9ed5 100644
>> --- a/lib/i915/gem.c
>> +++ b/lib/i915/gem.c
>> @@ -140,7 +140,7 @@ void igt_require_gem(int i915)
>> {
>> int err;
>>
>> - igt_require_intel(i915);
>> + igt_require_i915(i915);
>>
>> /*
>> * We only want to use the throttle-ioctl for its -EIO reporting
>> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
>> index ed4623139..ba89e1f60 100644
>> --- a/lib/igt_fb.c
>> +++ b/lib/igt_fb.c
>> @@ -442,7 +442,7 @@ void igt_get_fb_tile_size(int fd, uint64_t modifier, int fb_bpp,
>> *height_ret = 1;
>> break;
>> case I915_FORMAT_MOD_X_TILED:
>> - igt_require_intel(fd);
>> + igt_require_i915(fd);
>> if (intel_display_ver(intel_get_drm_devid(fd)) == 2) {
>> *width_ret = 128;
>> *height_ret = 16;
>> @@ -460,7 +460,7 @@ void igt_get_fb_tile_size(int fd, uint64_t modifier, int fb_bpp,
>> case I915_FORMAT_MOD_4_TILED_DG2_RC_CCS:
>> case I915_FORMAT_MOD_4_TILED_DG2_MC_CCS:
>> case I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC:
>> - igt_require_intel(fd);
>> + igt_require_i915(fd);
>> if (intel_display_ver(intel_get_drm_devid(fd)) == 2) {
>> *width_ret = 128;
>> *height_ret = 16;
>> @@ -474,7 +474,7 @@ void igt_get_fb_tile_size(int fd, uint64_t modifier, int fb_bpp,
>> break;
>> case I915_FORMAT_MOD_Yf_TILED:
>> case I915_FORMAT_MOD_Yf_TILED_CCS:
>> - igt_require_intel(fd);
>> + igt_require_i915(fd);
>> switch (fb_bpp) {
>> case 8:
>> *width_ret = 64;
>> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
>> index 8c7dd85b8..84091d5ce 100644
>> --- a/lib/igt_kms.c
>> +++ b/lib/igt_kms.c
>> @@ -1458,7 +1458,7 @@ bool kmstest_force_connector(int drm_fd, drmModeConnector *connector,
>> * Forcing DP connectors doesn't currently work, so
>> * fail early to allow the test to skip if required.
>> */
>> - if (is_i915_device(drm_fd) &&
>> + if (is_intel_device(drm_fd) &&
>> connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort)
>> return false;
>>
>> diff --git a/tests/i915/perf.c b/tests/i915/perf.c
>> index 6453354cf..edb922c75 100644
>> --- a/tests/i915/perf.c
>> +++ b/tests/i915/perf.c
>> @@ -4946,7 +4946,7 @@ test_i915_ref_count(void)
>> igt_debug("baseline ref count (drm fd closed) = %u\n", baseline);
>>
>> drm_fd = __drm_open_driver(DRIVER_INTEL);
>> - igt_require_intel(drm_fd);
>> + igt_require_i915(drm_fd);
>> devid = intel_get_drm_devid(drm_fd);
>> sysfs = perf_sysfs_open(drm_fd);
>>
next prev parent reply other threads:[~2023-03-14 14:33 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-14 10:54 [igt-dev] [i-g-t 0/5] Add basic helpers to support display in XE Bhanuprakash Modem
2023-03-14 10:54 ` [igt-dev] [i-g-t 1/5] lib/drmtest: Add helpers to check and require the XE driver Bhanuprakash Modem
2023-03-14 11:14 ` Zbigniew Kempczyński
2023-03-14 11:57 ` Mauro Carvalho Chehab
2023-03-14 10:54 ` [igt-dev] [i-g-t 2/5] i915: s/igt_require_intel/igt_require_i915 Bhanuprakash Modem
2023-03-14 11:15 ` Zbigniew Kempczyński
2023-03-14 12:03 ` Mauro Carvalho Chehab
2023-03-14 14:32 ` Modem, Bhanuprakash [this message]
2023-03-14 10:54 ` [igt-dev] [i-g-t 3/5] lib/xe/xe_query: Add dev_id() interface Bhanuprakash Modem
2023-03-14 11:17 ` Zbigniew Kempczyński
2023-03-14 12:06 ` Mauro Carvalho Chehab
2023-03-14 10:54 ` [igt-dev] [i-g-t 4/5] lib/intel_chipset: Add support to XE driver to get devid Bhanuprakash Modem
2023-03-14 11:20 ` Zbigniew Kempczyński
2023-03-14 12:08 ` Mauro Carvalho Chehab
2023-03-14 12:20 ` Zbigniew Kempczyński
2023-03-14 14:30 ` Modem, Bhanuprakash
2023-03-14 10:54 ` [igt-dev] [i-g-t 5/5] lib/igt_kms: Cache xe_device info for kms tests Bhanuprakash Modem
2023-03-14 11:38 ` Zbigniew Kempczyński
2023-03-14 12:08 ` Mauro Carvalho Chehab
2023-03-14 12:45 ` [igt-dev] ✓ Fi.CI.BAT: success for Add basic helpers to support display in XE Patchwork
2023-03-15 16:57 ` [igt-dev] ✓ 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=75a49d2e-d77a-f752-f2f2-9fec097828a9@intel.com \
--to=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=mauro.chehab@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox