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
Kirill Smelkov
linux
Commits
4a5431af
Commit
4a5431af
authored
Jul 24, 2017
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/kms/nv50: update vblank state in response to modeset actions
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
587f577e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+12
-6
No files found.
drivers/gpu/drm/nouveau/nv50_display.c
View file @
4a5431af
...
...
@@ -3940,6 +3940,8 @@ nv50_disp_atomic_commit_tail(struct drm_atomic_state *state)
NV_ATOMIC
(
drm
,
"%s: clr %04x (set %04x)
\n
"
,
crtc
->
name
,
asyh
->
clr
.
mask
,
asyh
->
set
.
mask
);
if
(
crtc_state
->
active
&&
!
asyh
->
state
.
active
)
drm_crtc_vblank_off
(
crtc
);
if
(
asyh
->
clr
.
mask
)
{
nv50_head_flush_clr
(
head
,
asyh
,
atom
->
flush_disable
);
...
...
@@ -4025,12 +4027,14 @@ nv50_disp_atomic_commit_tail(struct drm_atomic_state *state)
nv50_head_flush_set
(
head
,
asyh
);
interlock_core
=
1
;
}
}
for_each_crtc_in_state
(
state
,
crtc
,
crtc_state
,
i
)
{
if
(
crtc
->
state
->
event
)
if
(
asyh
->
state
.
active
)
{
if
(
!
crtc_state
->
active
)
drm_crtc_vblank_on
(
crtc
);
if
(
asyh
->
state
.
event
)
drm_crtc_vblank_get
(
crtc
);
}
}
/* Update plane(s). */
for_each_plane_in_state
(
state
,
plane
,
plane_state
,
i
)
{
...
...
@@ -4076,11 +4080,13 @@ nv50_disp_atomic_commit_tail(struct drm_atomic_state *state)
if
(
crtc
->
state
->
event
)
{
unsigned
long
flags
;
/* Get correct count/ts if racing with vblank irq */
if
(
crtc
->
state
->
active
)
drm_accurate_vblank_count
(
crtc
);
spin_lock_irqsave
(
&
crtc
->
dev
->
event_lock
,
flags
);
drm_crtc_send_vblank_event
(
crtc
,
crtc
->
state
->
event
);
spin_unlock_irqrestore
(
&
crtc
->
dev
->
event_lock
,
flags
);
crtc
->
state
->
event
=
NULL
;
if
(
crtc
->
state
->
active
)
drm_crtc_vblank_put
(
crtc
);
}
}
...
...
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