From: Antonio Argenziano <antonio.argenziano@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH i-g-t] i915: Mark up a few more tests that only target GGTT
Date: Tue, 12 Nov 2019 10:23:31 -0800 [thread overview]
Message-ID: <cbec40b6-afa5-e12b-456d-62ee99acb37a@intel.com> (raw)
In-Reply-To: <157358289793.28106.13889695970048334451@skylake-alporthouse-com>
On 12/11/19 10:21, Chris Wilson wrote:
> Quoting Antonio Argenziano (2019-11-12 18:17:41)
>>
>>
>> On 12/11/19 07:47, Chris Wilson wrote:
>>> If a test is only targeting the GGTT API and its corner cases, it can
>>> only run if we have a mappable aperture.
>>>
>>> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
>>> Cc: Antonio Argenziano <antonio.argenziano@intel.com>
>>> ---
>>> lib/i915/gem_mman.c | 19 +++++++++++++++++++
>>> lib/i915/gem_mman.h | 3 +++
>>> tests/i915/gem_gtt_cpu_tlb.c | 1 +
>>> tests/i915/gem_gtt_hog.c | 1 +
>>> tests/i915/gem_gtt_speed.c | 2 ++
>>> tests/i915/gem_mmap_gtt.c | 5 +----
>>> tests/i915/gem_tiled_swapping.c | 1 +
>>> 7 files changed, 28 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/lib/i915/gem_mman.c b/lib/i915/gem_mman.c
>>> index 3cf9a6bbd..76d0be82e 100644
>>> --- a/lib/i915/gem_mman.c
>>> +++ b/lib/i915/gem_mman.c
>>> @@ -252,3 +252,22 @@ void *gem_mmap__cpu(int fd, uint32_t handle, uint64_t offset, uint64_t size, uns
>>> igt_assert(ptr);
>>> return ptr;
>>> }
>>> +
>>> +bool gem_has_ggtt(int i915)
>>
>> nit: I would put mapping or map or something in the name to make it
>> clear that the mapping is not accessible but, your call :).
>
> I could go with has_ggtt_aperture()? Or has_mappable_ggtt()?
> Both have their merits. Leaning towards has_mappable_ggtt.
+1 has_mappable_ggtt.
> -Chris
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-11-12 18:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-12 15:47 [igt-dev] [PATCH i-g-t] i915: Mark up a few more tests that only target GGTT Chris Wilson
2019-11-12 18:17 ` Antonio Argenziano
2019-11-12 18:21 ` Chris Wilson
2019-11-12 18:23 ` Antonio Argenziano [this message]
2019-11-12 18:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-11-13 2:48 ` [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=cbec40b6-afa5-e12b-456d-62ee99acb37a@intel.com \
--to=antonio.argenziano@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.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