From: Robert Morell <rmorell-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
Cc: "nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
<nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
gpu-public-documentation
<gpu-public-documentation-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: Documentation request for MP warp error 0x10
Date: Fri, 6 Nov 2015 12:59:32 -0800 [thread overview]
Message-ID: <20151106205932.GA6669@morell.nvidia.com> (raw)
In-Reply-To: <20151026200256.GB7638-f3YH7lVHJt/FT5IIyIEb6QC/G2K4zDHf@public.gmane.org>
On Fri, Oct 02, 2015 at 06:05:21PM -0400, Ilia Mirkin wrote:
> Could you advise what the proper way of indicating
> that the memory is "global" to the op? I'm sure I'm just missing
> something simple. If you show me what to look for in SM35 I can
> probably find it on my own for SM20/SM30/SM50.
Sorry again for the delay. Here's what I've been able to find out about
the generic thread address space (used by the SMs) and what types of
memory it contains. Hopefully this clears things up.
Local memory is a per-thread space.
Shared memory is a per-CTA space (compute shaders only).
LDL and STL instructions access local memory with a zero offset.
LDS, LSDLK, STS, and STSCUL instructions access shared memory with a zero
offset.
LD, ST, RED, ATOM, and CCTL.D instructions access the generic thread address
space, which is layered on top of the channel's virtual address space.
In the generic thread address space, there are 16MB windows into local and
shared memory; everything not in a Local or Shared address window accesses
global virtual memory.
The local window offset within the generic thread address space is determined
by the SetShaderLocalMemoryWindow class method (offset 0x77c in classes *97 and
*c0).
The shared window offset within the generic thread address space is determined
by the SetShaderSharedMemoryWindow class method (offset 0x214 in classes *c0).
For both methods, the offset is in bytes, but the window must be aligned to a
16MB boundary (so the lower 24 bits of the data must be zero). The upper 32
bits of the windows are hard-coded to 0 (so they must be placed within the
lower 4GB of address space).
Generally, it is expected that software will reserve ranges in the global
virtual address space where these windows will be placed. (Otherwise anything
mapped there will be inaccessible to shaders.)
For graphics shaders, the shared address space logic does not exist, so there
is no need to reserve virtual memory for it.
- Robert
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
next prev parent reply other threads:[~2015-11-06 20:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 19:14 Documentation request for MP warp error 0x10 Ilia Mirkin
[not found] ` <CAKb7Uvhwd8VSDya3EZ2o2VsvnBudTBTMWDbJvSE9mnBi7ybX3A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-02 21:48 ` Robert Morell
[not found] ` <20151002214811.GD9436-f3YH7lVHJt/FT5IIyIEb6QC/G2K4zDHf@public.gmane.org>
2015-10-02 22:05 ` Ilia Mirkin
[not found] ` <CAKb7Uvi6se5YExUuJ8SShfuQD9Gy2QQF1N31k_3Q11roMHa=4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-02 22:14 ` Robert Morell
[not found] ` <20151002221456.GE9436-f3YH7lVHJt/FT5IIyIEb6QC/G2K4zDHf@public.gmane.org>
2015-10-26 19:28 ` Ilia Mirkin
[not found] ` <CAKb7Uvjpmxn8kR3DhbXSh0SXmsGCQ-+dP1iQX7j30QiGFtbStg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-26 20:02 ` Robert Morell
[not found] ` <20151026200256.GB7638-f3YH7lVHJt/FT5IIyIEb6QC/G2K4zDHf@public.gmane.org>
2015-11-06 20:59 ` Robert Morell [this message]
[not found] ` <20151106205932.GA6669-f3YH7lVHJt/FT5IIyIEb6QC/G2K4zDHf@public.gmane.org>
2015-11-06 21:15 ` Ilia Mirkin
[not found] ` <CAKb7UviaiH-twaJr9tngGvwkBn1W+PujppSES+GYRLxVr3nvvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-11-06 21:19 ` Robert Morell
[not found] ` <20151106211951.GC6669-f3YH7lVHJt/FT5IIyIEb6QC/G2K4zDHf@public.gmane.org>
2015-11-07 0:55 ` Ilia Mirkin
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=20151106205932.GA6669@morell.nvidia.com \
--to=rmorell-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
--cc=gpu-public-documentation-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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.