From: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
To: Moti Haimovski <mhaimovski@habana.ai>, intel-xe@lists.freedesktop.org
Cc: lucas.demarchi@intel.com, matthew.brost@intel.com
Subject: Re: [PATCH 0/2] drm/xe: support VM sharing between apps
Date: Wed, 07 Feb 2024 11:21:10 +0100 [thread overview]
Message-ID: <3c73749869887da822c71f604b68c48e2199cc80.camel@linux.intel.com> (raw)
In-Reply-To: <20240206141820.264977-1-mhaimovski@habana.ai>
Hi, Moti
On Tue, 2024-02-06 at 16:18 +0200, Moti Haimovski wrote:
> This first patch set introduces support for sharing a VM (or context)
> between
> applications that use different resources on the same Xe device.
>
> The first patch adds a refcount to the VM in order support managing
> it by
> multiple users/apps.
>
> The second patch exports the VM as a FD in order to allow other apps
> to use it.
>
> Follow-up series will include the driver code to provide full
> functionality for
> this feature.
>
> Bharat Jauhari (1):
> drm/xe: support to export VM as fd
>
> Moti Haimovski (1):
> drm/xe: add ref count to xe_file
>
> drivers/gpu/drm/xe/xe_device.c | 52 ++++++++++--
> drivers/gpu/drm/xe/xe_device.h | 6 ++
> drivers/gpu/drm/xe/xe_device_types.h | 3 +
> drivers/gpu/drm/xe/xe_vm.c | 121
> +++++++++++++++++++++++++++
> drivers/gpu/drm/xe/xe_vm.h | 2 +
> drivers/gpu/drm/xe/xe_vm_types.h | 28 +++++++
> include/uapi/drm/xe_drm.h | 27 ++++++
> 7 files changed, 232 insertions(+), 7 deletions(-)
>
Do we have any user-space drivers or applications available for review
that exercises this? (We must have for the uAPI changes before pushing
to drm-xe-next)
On the refcount to xe_file, I see that as a bit dangerous. If the
xe_file is alive but the file closed, I figure that opens up for hard-
to-track-down problems. Is there a way we could look at refcounting at
a lower level?
/Thomas
next prev parent reply other threads:[~2024-02-07 10:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-06 14:18 [PATCH 0/2] drm/xe: support VM sharing between apps Moti Haimovski
2024-02-06 14:18 ` [PATCH 1/2] drm/xe: add ref count to xe_file Moti Haimovski
2024-02-06 14:18 ` [PATCH 2/2] drm/xe: support to export VM as fd Moti Haimovski
2024-02-07 3:51 ` Zeng, Oak
2024-02-06 15:06 ` ✓ CI.Patch_applied: success for drm/xe: support VM sharing between apps Patchwork
2024-02-06 15:06 ` ✗ CI.checkpatch: warning " Patchwork
2024-02-06 15:07 ` ✓ CI.KUnit: success " Patchwork
2024-02-06 15:15 ` ✓ CI.Build: " Patchwork
2024-02-06 15:15 ` ✓ CI.Hooks: " Patchwork
2024-02-06 15:16 ` ✓ CI.checksparse: " Patchwork
2024-02-06 15:53 ` ✓ CI.BAT: " Patchwork
2024-02-07 10:21 ` Thomas Hellström [this message]
2024-02-12 11:31 ` [PATCH 0/2] " Moti Haimovski
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=3c73749869887da822c71f604b68c48e2199cc80.camel@linux.intel.com \
--to=thomas.hellstrom@linux.intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=matthew.brost@intel.com \
--cc=mhaimovski@habana.ai \
/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