From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [i-g-t, V2] lib/i915: Use FIXED mapping only for discrete memory
Date: Mon, 30 Aug 2021 10:40:16 -0700 [thread overview]
Message-ID: <8735qqx24f.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20210830092214.1204343-1-tejaskumarx.surendrakumar.upadhyay@intel.com>
On Mon, 30 Aug 2021 02:22:14 -0700, Tejas Upadhyay wrote:
>
> bool gem_has_mmap_offset_type(int fd, const struct mmap_offset *t)
> {
> - return gem_has_mmap_offset(fd) || t->type == I915_MMAP_OFFSET_GTT;
> + if (gem_has_mmap_offset(fd))
> + if (gem_has_lmem(fd))
> + return t->type == I915_MMAP_OFFSET_FIXED;
> + else
> + return t->type != I915_MMAP_OFFSET_FIXED;
The above looks correct to me.
> + else
> + return false;
But about this, from the previous logic, shouldn't this be:
return t->type == I915_MMAP_OFFSET_GTT;
prev parent reply other threads:[~2021-08-30 17:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-30 9:22 [igt-dev] [i-g-t, V2] lib/i915: Use FIXED mapping only for discrete memory Tejas Upadhyay
2021-08-30 12:25 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/i915: Use FIXED mapping only for discrete memory (rev3) Patchwork
2021-08-30 14:38 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-08-30 17:40 ` Dixit, Ashutosh [this message]
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=8735qqx24f.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=tejaskumarx.surendrakumar.upadhyay@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