aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2012-07-25 14:42:05 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-07-25 20:28:16 -0400
commit715855457e6bc93e148caf8cb3b5dcabbf605b0d (patch)
treeaabac0fa0c1d1f9426c557aa081865f7fb7d2fce /drivers/gpu/drm/nouveau
parent0ade74b6c6843892b52e6c2a4ac02183242eec27 (diff)
drm/nouveau: init vblank requests list
Fixes kernel panic when vblank interrupt triggers before first sync to vblank request. (Besides init, remove some relevant leftovers from vblank rework) Reported-by: Ortwin Glück <odi@odi.ch> Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Cc: stable@vger.kernel.org [3.5] Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_irq.c4
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_software.h1
3 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index 03da38373552..4f2cc95ce264 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -689,8 +689,6 @@ struct drm_nouveau_private {
689 void (*irq_handler[32])(struct drm_device *); 689 void (*irq_handler[32])(struct drm_device *);
690 bool msi_enabled; 690 bool msi_enabled;
691 691
692 struct list_head vbl_waiting;
693
694 struct { 692 struct {
695 struct drm_global_reference mem_global_ref; 693 struct drm_global_reference mem_global_ref;
696 struct ttm_bo_global_ref bo_global_ref; 694 struct ttm_bo_global_ref bo_global_ref;
diff --git a/drivers/gpu/drm/nouveau/nouveau_irq.c b/drivers/gpu/drm/nouveau/nouveau_irq.c
index 868c7fd74854..b2c2937531a8 100644
--- a/drivers/gpu/drm/nouveau/nouveau_irq.c
+++ b/drivers/gpu/drm/nouveau/nouveau_irq.c
@@ -41,12 +41,8 @@
41void 41void
42nouveau_irq_preinstall(struct drm_device *dev) 42nouveau_irq_preinstall(struct drm_device *dev)
43{ 43{
44 struct drm_nouveau_private *dev_priv = dev->dev_private;
45
46 /* Master disable */ 44 /* Master disable */
47 nv_wr32(dev, NV03_PMC_INTR_EN_0, 0); 45 nv_wr32(dev, NV03_PMC_INTR_EN_0, 0);
48
49 INIT_LIST_HEAD(&dev_priv->vbl_waiting);
50} 46}
51 47
52int 48int
diff --git a/drivers/gpu/drm/nouveau/nouveau_software.h b/drivers/gpu/drm/nouveau/nouveau_software.h
index 9914cf154f65..709e5ac680ec 100644
--- a/drivers/gpu/drm/nouveau/nouveau_software.h
+++ b/drivers/gpu/drm/nouveau/nouveau_software.h
@@ -23,6 +23,7 @@ static inline void
23nouveau_software_context_new(struct nouveau_software_chan *pch) 23nouveau_software_context_new(struct nouveau_software_chan *pch)
24{ 24{
25 INIT_LIST_HEAD(&pch->flip); 25 INIT_LIST_HEAD(&pch->flip);
26 INIT_LIST_HEAD(&pch->vblank.list);
26} 27}
27 28
28static inline void 29static inline void