From: Matthew Auld <matthew.auld@intel.com>
To: "Joonas Lahtinen" <joonas.lahtinen@linux.intel.com>,
"Bloomfield, Jon" <jon.bloomfield@intel.com>,
"Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
"Intel Graphics Development" <intel-gfx@lists.freedesktop.org>,
"Ramalingam C" <ramalingam.c@intel.com>
Subject: Re: [Intel-gfx] Small bar recovery vs compressed content on DG2
Date: Thu, 17 Mar 2022 09:29:30 +0000 [thread overview]
Message-ID: <f0285ddd-b864-1554-e817-5a67ffd81586@intel.com> (raw)
In-Reply-To: <164750662822.7267.9355161518284202141@jlahtine-mobl.ger.corp.intel.com>
On 17/03/2022 08:43, Joonas Lahtinen wrote:
> Quoting Thomas Hellström (2022-03-16 09:25:16)
>> Hi!
>>
>> Do we somehow need to clarify in the headers the semantics for this?
>>
>> From my understanding when discussing the CCS migration series with
>> Ram, the kernel will never do any resolving (compressing /
>> decompressing) migrations or evictions which basically implies the
>> following:
>>
>> *) Compressed data must have LMEM only placement, otherwise the GPU
>> would read garbage if accessing from SMEM.
>
> This has always been the case, so it should be documented in the uAPI
> headers and kerneldocs.
>
>> *) Compressed data can't be assumed to be mappable by the CPU, because
>> in order to ensure that on small BAR, the placement needs to be LMEM+SMEM.
>
> Not strictly true, as we could always migrate to the mappable region in
> the CPU fault handler. Will need the same set of tricks as with limited
> mappable GGTT in past.
With the proposed I915_GEM_CREATE_EXT_FLAG_NEEDS_CPU_ACCESS hint[1], it
looks like by design we always require lmem + smem, with the idea that
we can always spill to system memory if needed. So I guess explicit
NEEDS_CPU_ACCESS + compression is not supported, is this the expected
behaviour?
[1] https://patchwork.freedesktop.org/patch/475061/
>
>> *) Neither can compressed data be part of a CAPTURE buffer, because that
>> requires the data to be CPU-mappable.
>
> Especially this will be too big of a limitation which we can't really afford
> when it comes to debugging.
>
> Regards, Joonas
>
>> Are we (and user-mode drivers) OK with these restrictions, or do we need
>> to rethink?
>>
>> Thanks,
>>
>> Thomas
>>
>>
next prev parent reply other threads:[~2022-03-17 9:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-16 7:25 [Intel-gfx] Small bar recovery vs compressed content on DG2 Thomas Hellström
2022-03-17 8:43 ` Joonas Lahtinen
2022-03-17 9:29 ` Matthew Auld [this message]
2022-03-17 9:35 ` Thomas Hellström
2022-03-17 18:21 ` Bloomfield, Jon
2022-03-18 9:48 ` Thomas Hellström
2022-03-18 16:25 ` Bloomfield, Jon
2022-03-18 18:12 ` Daniel Vetter
2022-03-21 6:53 ` Thomas Hellström
2022-03-31 9:25 ` Matthew Auld
2022-04-04 9:04 ` Thomas Hellström
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=f0285ddd-b864-1554-e817-5a67ffd81586@intel.com \
--to=matthew.auld@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jon.bloomfield@intel.com \
--cc=joonas.lahtinen@linux.intel.com \
--cc=ramalingam.c@intel.com \
--cc=thomas.hellstrom@linux.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