mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 14:12:51 +00:00
drm/nouveau/disp: clear notify intr status when enabling, to prevent races
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
2832271d64
commit
f9895e6dbe
@ -88,12 +88,14 @@ nv50_disp_chan_uevent_fini(struct nvkm_event *event, int type, int index)
|
||||
{
|
||||
struct nv50_disp_priv *priv = container_of(event, typeof(*priv), uevent);
|
||||
nv_mask(priv, 0x610028, 0x00000001 << index, 0x00000000 << index);
|
||||
nv_wr32(priv, 0x610020, 0x00000001 << index);
|
||||
}
|
||||
|
||||
static void
|
||||
nv50_disp_chan_uevent_init(struct nvkm_event *event, int types, int index)
|
||||
{
|
||||
struct nv50_disp_priv *priv = container_of(event, typeof(*priv), uevent);
|
||||
nv_wr32(priv, 0x610020, 0x00000001 << index);
|
||||
nv_mask(priv, 0x610028, 0x00000001 << index, 0x00000001 << index);
|
||||
}
|
||||
|
||||
|
@ -51,12 +51,14 @@ nvd0_disp_chan_uevent_fini(struct nvkm_event *event, int type, int index)
|
||||
{
|
||||
struct nv50_disp_priv *priv = container_of(event, typeof(*priv), uevent);
|
||||
nv_mask(priv, 0x610090, 0x00000001 << index, 0x00000000 << index);
|
||||
nv_wr32(priv, 0x61008c, 0x00000001 << index);
|
||||
}
|
||||
|
||||
static void
|
||||
nvd0_disp_chan_uevent_init(struct nvkm_event *event, int types, int index)
|
||||
{
|
||||
struct nv50_disp_priv *priv = container_of(event, typeof(*priv), uevent);
|
||||
nv_wr32(priv, 0x61008c, 0x00000001 << index);
|
||||
nv_mask(priv, 0x610090, 0x00000001 << index, 0x00000001 << index);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user