]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd6512c1f2c32ac087ee7ea861824cef4daa8ef5
tree1901848e59d66899ec8918e5309d3d626c0bc13b
parent6395a41c6af28ce12c335f1b0a191a43a7a97c90
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]