提交 71585545 编写于 作者: M Marcin Slusarz 提交者: Ben Skeggs

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: NOrtwin Glück <odi@odi.ch>
Signed-off-by: NMarcin Slusarz <marcin.slusarz@gmail.com>
Cc: stable@vger.kernel.org [3.5]
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 0ade74b6
...@@ -689,8 +689,6 @@ struct drm_nouveau_private { ...@@ -689,8 +689,6 @@ struct drm_nouveau_private {
void (*irq_handler[32])(struct drm_device *); void (*irq_handler[32])(struct drm_device *);
bool msi_enabled; bool msi_enabled;
struct list_head vbl_waiting;
struct { struct {
struct drm_global_reference mem_global_ref; struct drm_global_reference mem_global_ref;
struct ttm_bo_global_ref bo_global_ref; struct ttm_bo_global_ref bo_global_ref;
......
...@@ -41,12 +41,8 @@ ...@@ -41,12 +41,8 @@
void void
nouveau_irq_preinstall(struct drm_device *dev) nouveau_irq_preinstall(struct drm_device *dev)
{ {
struct drm_nouveau_private *dev_priv = dev->dev_private;
/* Master disable */ /* Master disable */
nv_wr32(dev, NV03_PMC_INTR_EN_0, 0); nv_wr32(dev, NV03_PMC_INTR_EN_0, 0);
INIT_LIST_HEAD(&dev_priv->vbl_waiting);
} }
int int
......
...@@ -23,6 +23,7 @@ static inline void ...@@ -23,6 +23,7 @@ static inline void
nouveau_software_context_new(struct nouveau_software_chan *pch) nouveau_software_context_new(struct nouveau_software_chan *pch)
{ {
INIT_LIST_HEAD(&pch->flip); INIT_LIST_HEAD(&pch->flip);
INIT_LIST_HEAD(&pch->vblank.list);
} }
static inline void static inline void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册