nouveau: Init global gpuobj list early, unbreaks sgdma code.
parent
ac24f328ec
commit
66f5232d93
|
@ -270,8 +270,6 @@ nouveau_gpuobj_init(struct drm_device *dev)
|
|||
struct drm_nouveau_private *dev_priv = dev->dev_private;
|
||||
int ret;
|
||||
|
||||
INIT_LIST_HEAD(&dev_priv->gpuobj_list);
|
||||
|
||||
if (dev_priv->card_type < NV_50) {
|
||||
if ((ret = nouveau_gpuobj_new_fake(dev, dev_priv->ramht_offset,
|
||||
dev_priv->ramht_size,
|
||||
|
|
|
@ -299,6 +299,8 @@ nouveau_card_init(struct drm_device *dev)
|
|||
ret = drm_irq_install(dev);
|
||||
if (ret) return ret;
|
||||
|
||||
INIT_LIST_HEAD(&dev_priv->gpuobj_list);
|
||||
|
||||
/* Initialise instance memory, must happen before mem_init so we
|
||||
* know exactly how much VRAM we're able to use for "normal"
|
||||
* purposes.
|
||||
|
|
Loading…
Reference in New Issue