Skip to content
Commit be55287a authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/imem/nv50: embed nvkm_instobj directly into nv04_instobj



This is not as simple as it was for earlier GPUs, due to the need to swap
accessor functions depending on whether BAR2 is usable or not.

We were previously protected by nvkm_instobj's accessor functions keeping
an object mapped permanently, with some unclear magic that managed to hit
the slow-path where needed even if an object was marked as mapped.

That's been replaced here by reference counting maps (some objects, like
page tables can be accessed concurrently), and swapping the functions as
necessary.

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent af515ec8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment