From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>,
<intel-xe@lists.freedesktop.org>,
Thomas Hellstrom <thomas.hellstrom@intel.com>
Subject: Re: [PATCH 01/12] drm/xe/pf: Add function to sanitize VF resources
Date: Thu, 5 Sep 2024 14:07:15 -0400 [thread overview]
Message-ID: <ZtnzUzDWEBDpjt37@intel.com> (raw)
In-Reply-To: <uv43yog24v3ihozlp5hgrmjnyyu3vd7rykjssuv4yskws5nosb@5m3f7cgdkru7>
On Tue, Aug 20, 2024 at 08:16:19AM -0500, Lucas De Marchi wrote:
> On Tue, Aug 20, 2024 at 11:38:35AM GMT, Michal Wajdeczko wrote:
> >
> >
> > On 19.08.2024 22:47, Lucas De Marchi wrote:
> > > On Fri, Aug 09, 2024 at 06:51:48PM GMT, Michal Wajdeczko wrote:
> > > > +static int pf_sanitize_lmem(struct xe_tile *tile, struct xe_bo *bo,
> > > > long timeout)
> > >
> > > it took a while to make xe use "vram"... now we are back with lmem in
> > > several places :(
> > >
> >
> > it's because GuC ABI is using LMEM terminology
> >
> > if you really want then I can try to rename implementation side to use
> > 'vram' instead, but question is what to do with debugfs entries that
> > reflects GuC ABI almost 1:1, should it also be named with vram ?
> >
> > gt0/pf/lmem_spare -> gt0/pf/vram_spare
> > gt0/vf1/lmem_quota -> gt0/vf1/vram_quota
>
> +Rodrigo, +Thomas
Sorry for taking so long here.
I believe we should keep 'lmem' here. It matches guc, sriov, and gt design.
In the past, when i915 was introducing device-memory-ram support, instead
of calling it vram to align with everyone else, we decided to go with the
name 'local memory' that we were seeing a lot in internal docs.
It is good that in Xe we are now aligned with 'vram' to refer for these
device memory (ram). But by spec, 'local memory' is something else.
'Local memory' in general is the memory from VRAM which is not managed
by OS, but only managed by our device driver. However it could also be
carved out from the system ram. And then it can be used by SRIOV and
managed with LMTT (local memory translation table).
So, with this in mind and to avoid the sysfs breakage, I'm in favor
of keeping 'lmem' term where it applies. But maybe worth some
documentation page?
>
> Lucas De Marchi
next prev parent reply other threads:[~2024-09-05 18:07 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 16:51 [PATCH 00/12] PF: Improve VF control Michal Wajdeczko
2024-08-09 16:51 ` [PATCH 01/12] drm/xe/pf: Add function to sanitize VF resources Michal Wajdeczko
2024-08-16 12:58 ` Piotr Piórkowski
2024-08-19 20:47 ` Lucas De Marchi
2024-08-20 9:38 ` Michal Wajdeczko
2024-08-20 13:16 ` Lucas De Marchi
2024-09-05 18:07 ` Rodrigo Vivi [this message]
2024-08-09 16:51 ` [PATCH 02/12] drm/xe/pf: Fix documentation formatting Michal Wajdeczko
2024-08-16 12:59 ` Piotr Piórkowski
2024-08-09 16:51 ` [PATCH 03/12] drm/xe/pf: Drop GuC notifications for non-existing VF Michal Wajdeczko
2024-08-16 13:01 ` Piotr Piórkowski
2024-08-19 17:51 ` Michal Wajdeczko
2024-08-22 10:48 ` Piotr Piórkowski
2024-08-09 16:51 ` [PATCH 04/12] drm/xe/pf: Improve VF control Michal Wajdeczko
2024-08-16 13:06 ` Piotr Piórkowski
2024-08-19 17:52 ` Michal Wajdeczko
2024-08-20 7:56 ` Piotr Piórkowski
2024-08-20 10:04 ` Michal Wajdeczko
2024-08-09 16:51 ` [PATCH 05/12] drm/xe/tests: Allow deferred function call during KUnit test Michal Wajdeczko
2024-08-19 21:38 ` Lucas De Marchi
2024-08-20 10:23 ` Michal Wajdeczko
2024-08-20 13:21 ` Lucas De Marchi
2024-08-20 13:27 ` Lucas De Marchi
2024-08-09 16:51 ` [PATCH 06/12] drm/xe/tests: Add helper macro to detect if KUnit is running Michal Wajdeczko
2024-08-09 16:51 ` [PATCH 07/12] drm/xe/tests: Add helpers to call stubs out of KUnit context Michal Wajdeczko
2024-08-19 21:52 ` Lucas De Marchi
2024-08-20 10:31 ` Michal Wajdeczko
2024-08-09 16:51 ` [PATCH 08/12] drm/xe/guc: Define stub for xe_guc_ct_send_recv() Michal Wajdeczko
2024-08-09 16:51 ` [PATCH 09/12] drm/xe/pf: Define stub for pf_sanitize_vf_resources() Michal Wajdeczko
2024-08-09 16:51 ` [PATCH 10/12] drm/xe/pf: Define stub for pf_send_vf_control_cmd() Michal Wajdeczko
2024-08-09 16:51 ` [PATCH 11/12] drm/xe/tests: Add KUnit tests for VF control state machines Michal Wajdeczko
2024-08-09 17:23 ` [PATCH v2 " Michal Wajdeczko
2024-08-22 10:51 ` Piotr Piórkowski
2024-08-22 10:47 ` [PATCH " Piotr Piórkowski
2024-08-09 16:51 ` [PATCH 12/12] drm/xe/tests: Add KUnit tests for VF control GuC messages Michal Wajdeczko
2024-08-23 13:18 ` Piotr Piórkowski
2024-08-09 16:57 ` ✓ CI.Patch_applied: success for PF: Improve VF control Patchwork
2024-08-09 16:58 ` ✗ CI.checkpatch: warning " Patchwork
2024-08-09 16:58 ` ✗ CI.KUnit: failure " Patchwork
2024-08-09 17:28 ` ✓ CI.Patch_applied: success for PF: Improve VF control (rev2) Patchwork
2024-08-09 17:29 ` ✗ CI.checkpatch: warning " Patchwork
2024-08-09 17:30 ` ✓ CI.KUnit: success " Patchwork
2024-08-09 17:42 ` ✓ CI.Build: " Patchwork
2024-08-09 17:44 ` ✗ CI.Hooks: failure " Patchwork
2024-08-09 17:46 ` ✓ CI.checksparse: success " Patchwork
2024-08-09 18:06 ` ✓ CI.BAT: " Patchwork
2024-08-09 20:35 ` ✗ CI.FULL: 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=ZtnzUzDWEBDpjt37@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=thomas.hellstrom@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