Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
afada5e0
Commit
afada5e0
authored
Nov 22, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv04/disp: disable vblank interrupts when disabling display
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
695b95b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
drivers/gpu/drm/nouveau/nouveau_hw.c
drivers/gpu/drm/nouveau/nouveau_hw.c
+0
-5
drivers/gpu/drm/nouveau/nv04_display.c
drivers/gpu/drm/nouveau/nv04_display.c
+11
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_hw.c
View file @
afada5e0
...
@@ -1018,11 +1018,6 @@ nv_load_state_ext(struct drm_device *dev, int head,
...
@@ -1018,11 +1018,6 @@ nv_load_state_ext(struct drm_device *dev, int head,
}
}
NVWriteCRTC
(
dev
,
head
,
NV_PCRTC_START
,
regp
->
fb_start
);
NVWriteCRTC
(
dev
,
head
,
NV_PCRTC_START
,
regp
->
fb_start
);
/* Enable vblank interrupts. */
NVWriteCRTC
(
dev
,
head
,
NV_PCRTC_INTR_EN_0
,
(
dev
->
vblank_enabled
[
head
]
?
1
:
0
));
NVWriteCRTC
(
dev
,
head
,
NV_PCRTC_INTR_0
,
NV_PCRTC_INTR_0_VBLANK
);
}
}
static
void
static
void
...
...
drivers/gpu/drm/nouveau/nv04_display.c
View file @
afada5e0
...
@@ -98,6 +98,13 @@ nv04_display_early_init(struct drm_device *dev)
...
@@ -98,6 +98,13 @@ nv04_display_early_init(struct drm_device *dev)
NVSetOwner
(
dev
,
0
);
NVSetOwner
(
dev
,
0
);
}
}
/* ensure vblank interrupts are off, they can't be enabled until
* drm_vblank has been initialised
*/
NVWriteCRTC
(
dev
,
0
,
NV_PCRTC_INTR_EN_0
,
0
);
if
(
nv_two_heads
(
dev
))
NVWriteCRTC
(
dev
,
1
,
NV_PCRTC_INTR_EN_0
,
0
);
return
0
;
return
0
;
}
}
...
@@ -246,6 +253,10 @@ nv04_display_init(struct drm_device *dev)
...
@@ -246,6 +253,10 @@ nv04_display_init(struct drm_device *dev)
void
void
nv04_display_fini
(
struct
drm_device
*
dev
)
nv04_display_fini
(
struct
drm_device
*
dev
)
{
{
/* disable vblank interrupts */
NVWriteCRTC
(
dev
,
0
,
NV_PCRTC_INTR_EN_0
,
0
);
if
(
nv_two_heads
(
dev
))
NVWriteCRTC
(
dev
,
1
,
NV_PCRTC_INTR_EN_0
,
0
);
}
}
static
void
static
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment