drm/nouveau/gr/gk20a: use same initialization sequence as nvgpu
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 23 Jun 2015 06:16:02 +0000 (15:16 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:40:02 +0000 (12:40 +1000)
commitc4d0f8f6f8c8dc09cd32e7fdb31e3d1a65a0f8f1
tree1901848e59d66899ec8918e5309d3d626c0bc13b
parent8539b37acef73949861a16808b60cb8b5b9b3bab
drm/nouveau/gr/gk20a: use same initialization sequence as nvgpu

GK20A's initialization was based on GK104, but differences exist in the
way the initial context is built and the initialization process itself.

This patch follows the same initialization sequence as nvgpu performs
to avoid bad surprises. Since the register bundles initialization also
differ considerably from GK104, the register packs are now loaded from
firmware files, again similarly to what is done with nvgpu.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk20a.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.h [new file with mode: 0644]