From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
<igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] lib/igt_fb: Mark Xe framebuffers as slow access
Date: Tue, 28 May 2024 09:21:16 +0530 [thread overview]
Message-ID: <f4608c05-a46e-4440-affa-9af58db8e02e@intel.com> (raw)
In-Reply-To: <20240527131747.1340992-1-juhapekka.heikkila@gmail.com>
On 27-05-2024 06:47 pm, Juha-Pekka Heikkila wrote:
> Reading from Xe device framebuffers is slow hence mark is as such.
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
> ---
> lib/igt_fb.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index 5df5cb08f..26d6957f8 100644
> --- a/lib/igt_fb.c
> +++ b/lib/igt_fb.c
> @@ -4401,7 +4401,8 @@ static void create_cairo_surface__convert(int fd, struct igt_fb *fb)
> setup_linear_mapping(&blit->base);
>
> /* speed things up by working from a copy in system memory */
> - cvt.src.slow_reads = is_i915_device(fd) && !gem_has_mappable_ggtt(fd);
> + cvt.src.slow_reads = (is_i915_device(fd) && !gem_has_mappable_ggtt(fd)) ||
> + is_xe_device(fd);
> } else {
> blit->base.linear.fb = *fb;
> blit->base.linear.fb.gem_handle = 0;
> @@ -4409,7 +4410,7 @@ static void create_cairo_surface__convert(int fd, struct igt_fb *fb)
> igt_assert(blit->base.linear.map);
>
> /* reading via gtt mmap is slow */
> - cvt.src.slow_reads = is_i915_device(fd);
> + cvt.src.slow_reads = is_intel_device(fd);
> }
>
> cvt.dst.ptr = blit->shadow_ptr;
next prev parent reply other threads:[~2024-05-28 3:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-27 13:17 [PATCH i-g-t] lib/igt_fb: Mark Xe framebuffers as slow access Juha-Pekka Heikkila
2024-05-27 19:03 ` ✗ CI.xeBAT: failure for " Patchwork
2024-05-27 19:10 ` ✓ Fi.CI.BAT: success " Patchwork
2024-05-28 3:51 ` Modem, Bhanuprakash [this message]
2024-05-28 7:47 ` [PATCH i-g-t] " Zbigniew Kempczyński
2024-05-28 8:27 ` ✗ Fi.CI.IGT: failure for " Patchwork
2024-05-29 19:18 ` ✓ Fi.CI.BAT: success for lib/igt_fb: Mark Xe framebuffers as slow access (rev2) Patchwork
2024-05-29 19:41 ` ✓ CI.xeBAT: " Patchwork
2024-05-29 22:38 ` ✗ CI.xeFULL: failure " Patchwork
2024-05-31 10:53 ` Juha-Pekka Heikkila
2024-05-30 20:40 ` ✗ 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=f4608c05-a46e-4440-affa-9af58db8e02e@intel.com \
--to=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=juhapekka.heikkila@gmail.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