From: Nirmoy Das <nirmoy.das@linux.intel.com>
To: Andi Shyti <andi.shyti@linux.intel.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>,
dri-devel <dri-devel@lists.freedesktop.org>,
Andi Shyti <andi.shyti@kernel.org>,
Chris Wilson <chris.p.wilson@linux.intel.com>,
Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Subject: Re: [PATCH] drm/i915/gem: Calculate object page offset for partial memory mapping
Date: Tue, 26 Mar 2024 13:05:37 +0100 [thread overview]
Message-ID: <49e4ab49-e928-475a-bbaf-19c9009fdd1f@linux.intel.com> (raw)
In-Reply-To: <ZgKttR-loIoAZoOE@ashyti-mobl2.lan>
Hi Andi,
On 3/26/2024 12:12 PM, Andi Shyti wrote:
> Hi Nirmoy,
>
> ...
>
>>> diff --git a/drivers/gpu/drm/i915/gem/i915_gem_mman.c b/drivers/gpu/drm/i915/gem/i915_gem_mman.c
>>> index a2195e28b625..57a2dda2c3cc 100644
>>> --- a/drivers/gpu/drm/i915/gem/i915_gem_mman.c
>>> +++ b/drivers/gpu/drm/i915/gem/i915_gem_mman.c
>>> @@ -276,7 +276,7 @@ static vm_fault_t vm_fault_cpu(struct vm_fault *vmf)
>>> /* PTEs are revoked in obj->ops->put_pages() */
>>> err = remap_io_sg(area,
>>> area->vm_start, area->vm_end - area->vm_start,
>>> - obj->mm.pages->sgl, iomap);
>>> + obj->mm.pages->sgl, 0, iomap);
>> Why don't we need partial mmap for CPU but only for GTT ?
> As far as I understood we don't. I have a version with the CPU
> offset as well in trybot[*]
>
> But without support for segmented buffer objects, I don't know
> how much this has any effect.
You confused me more :) Why segmented buffer object is needed for
partial CPU mmap but not for GTT ?
From high level, GTT and CPU both should support partial mmap unless I
missing something here.
>
>> Sounds like this also need to be cover by a IGT tests.
> Yes, I it does need some igt work, working on it.
>
>> Don't we need "Fixes" tag for this?
> Why should we? I'm not fixing anything here,
If userspace expects partial mmap to work then this is a bug/gap in
i915 so we need to
backport this as far as possible. Need some information about the
requirement about why we need this patch suddenly?
Regards,
Nirmoy
> I'm just
> recalculating the mapping not starting from the beginning of the
> scatter page.
>
> Andi
>
> [*] https://patchwork.freedesktop.org/patch/584474/?series=131539&rev=2
next prev parent reply other threads:[~2024-03-26 12:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-25 13:40 [PATCH] drm/i915/gem: Calculate object page offset for partial memory mapping Andi Shyti
2024-03-25 23:19 ` Nirmoy Das
2024-03-26 11:12 ` Andi Shyti
2024-03-26 12:05 ` Nirmoy Das [this message]
2024-03-28 10:53 ` Andi Shyti
2024-03-26 0:59 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2024-03-26 1:14 ` ✗ Fi.CI.BAT: failure " 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=49e4ab49-e928-475a-bbaf-19c9009fdd1f@linux.intel.com \
--to=nirmoy.das@linux.intel.com \
--cc=andi.shyti@kernel.org \
--cc=andi.shyti@linux.intel.com \
--cc=chris.p.wilson@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=lionel.g.landwerlin@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.