]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/graph: enable when using external fw
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 2 May 2014 09:32:39 +0000 (18:32 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 10 Jun 2014 06:05:50 +0000 (16:05 +1000)
commitb8e01fe2d0f5a865015b8e9ad6219fcdef9a174a
tree76713f4a3bd7330460d367e9d5217179f0780a6a
parentc03484113b4b6995d3451241b83ce2a855cdcfc0
drm/nouveau/graph: enable when using external fw

nvc0_graph_ctor() would only let the graphics engine be enabled if its
oclass has a proper microcode linked to it. This prevents GR from being
enabled at all on chips that rely exclusively on external firmware, even
though such a use-case is valid.

Relax the conditions enabling the GR engine to also include the case
where an external firmware has also been loaded.

Also switch to external firmware if the graph class has no microcode
linked to it.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c