OSDN Git Service

drm/nouveau/kms/nv50-: Initialize core channel in nouveau_display_create()
authorLyude Paul <lyude@redhat.com>
Mon, 11 May 2020 22:41:23 +0000 (18:41 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 22 May 2020 01:13:51 +0000 (11:13 +1000)
commitfa1232ea84515533a8c52f9b88151d2bef4c913d
tree85838aacebffcc929b680c25bd12bb4ccc47ecd8
parent0435d7c69271a2ed93984f68af452e584aa43e4d
drm/nouveau/kms/nv50-: Initialize core channel in nouveau_display_create()

We'll need the core channel initialized and ready by the time that we
start creating modesetting objects, so that we can call the
NV507D_GET_CAPABILITIES method to make the hardware expose it's
modesetting capabilities for later probing.

So, when loading the driver prepare the core channel from within
nouveau_display_create(). Everywhere else, we initialize the core
channel during resume.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/disp.c