From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] lib/batchbuffer: Ensure obj.alignment is zeroed for softpinning
Date: Thu, 28 Jul 2022 10:34:51 -0700 [thread overview]
Message-ID: <878rodgmys.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20220728120620.54065-1-zbigniew.kempczynski@intel.com>
On Thu, 28 Jul 2022 05:06:20 -0700, Zbigniew Kempczyński wrote:
>
> Passing obj.alignment doesn't make sense for softpinning as offsets
> are under full control of allocator.
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
> ---
> lib/intel_batchbuffer.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
> index 36cb55048d..ef1b594771 100644
> --- a/lib/intel_batchbuffer.c
> +++ b/lib/intel_batchbuffer.c
> @@ -1346,7 +1346,6 @@ __intel_bb_create(int i915, uint32_t ctx, uint32_t size, bool do_relocs,
>
> igt_assert(ibb);
>
> - ibb->allows_obj_alignment = gem_allows_obj_alignment(i915);
> ibb->uses_full_ppgtt = gem_uses_full_ppgtt(i915);
> ibb->devid = intel_get_drm_devid(i915);
> ibb->gen = intel_gen(ibb->devid);
> @@ -1359,6 +1358,13 @@ __intel_bb_create(int i915, uint32_t ctx, uint32_t size, bool do_relocs,
> if (!ibb->uses_full_ppgtt)
> do_relocs = true;
>
> + /*
> + * For softpin mode allocator has full control over offsets allocation
> + * so we want kernel to not interfere with this.
> + */
> + if (do_relocs)
> + ibb->allows_obj_alignment = gem_allows_obj_alignment(i915);
> +
> /* Use safe start offset instead assuming 0x0 is safe */
> start = max_t(uint64_t, start, gem_detect_safe_start_offset(i915));
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2022-07-28 17:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-28 12:06 [igt-dev] [PATCH i-g-t] lib/batchbuffer: Ensure obj.alignment is zeroed for softpinning Zbigniew Kempczyński
2022-07-28 13:43 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-07-28 17:34 ` Dixit, Ashutosh [this message]
2022-07-28 18:39 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
[not found] ` <YudtBLxphmNC/5hM@zkempczy-mobl2>
2022-08-01 17:16 ` Vudum, Lakshminarayana
2022-08-01 14:43 ` [igt-dev] ✓ Fi.CI.IGT: success " 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=878rodgmys.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=zbigniew.kempczynski@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