All of lore.kernel.org
 help / color / mirror / Atom feed
From: 258454946 <258454946@qq.com>
To: amd-gfx <amd-gfx@lists.freedesktop.org>
Subject: a quetion about buffer migration for user mapped bo.
Date: Tue, 6 Apr 2021 00:01:42 +0800	[thread overview]
Message-ID: <tencent_826EEA87BF2072281A8B94B2955DDCA14E05@qq.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 574 bytes --]

Hi Guys,


I am a newbee of gfx development. Recently, I am researching amdgpu open source driver, and encounter a problem, but do not find the answer.


We know the user maybe map a gem backing buffer for reading/writing and hold the mapping for a long term. while, kernel driver will also moves the user mapped bo to other memory region. vram -&gt;gtt, gtt-&gt;vram, even it may be swaped out under OOM case.


So, my question is how driver prevents kernel ttm from moving the user mapped bo while user is accessing it?


Thanks for your attention!


Lizhi.

[-- Attachment #1.2: Type: text/html, Size: 754 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

             reply	other threads:[~2021-04-05 16:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-05 16:01 258454946 [this message]
2021-04-05 16:34 ` a quetion about buffer migration for user mapped bo Andrey Grodzovsky
2021-04-06  7:18   ` Christian König
2021-04-07  1:18 صالح المسعودي
2021-04-07  1:19 صالح المسعودي

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=tencent_826EEA87BF2072281A8B94B2955DDCA14E05@qq.com \
    --to=258454946@qq.com \
    --cc=amd-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 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.