]> 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)
commit28f6921a029db4e40c90e195f4868d2b6febfe76
tree76713f4a3bd7330460d367e9d5217179f0780a6a
parentf398afd0570447649be899a84322fa0257bef683
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