Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 384af9ac authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/gpuobj: type-safe accessor macros



These require an explicit struct nvkm_gpuobj pointer, unlike the previous
macros which take a void *, and work with any nvkm_object.

New semantics require acquiring/releasing a gpuobj before accessing them,
which will be made use of in later patches to greatly reduce the overhead
of accesses, particularly when a direct mmio mapping of the object is not
available (suspend/resume, out of ioremap() space, and on GK20A).

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 9ccdc760
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment