Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
nxp
linux-seco-imx
Commits
81dff21b
Commit
81dff21b
authored
11 years ago
by
Ben Skeggs
Browse files
Options
Downloads
Patches
Plain Diff
drm/nouveau: ensure channels are stopped before saving fences for suspend
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
b5096566
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/gpu/drm/nouveau/nouveau_drm.c
+20
-5
20 additions, 5 deletions
drivers/gpu/drm/nouveau/nouveau_drm.c
with
20 additions
and
5 deletions
drivers/gpu/drm/nouveau/nouveau_drm.c
+
20
−
5
View file @
81dff21b
...
...
@@ -453,18 +453,32 @@ nouveau_do_suspend(struct drm_device *dev)
NV_INFO
(
drm
,
"evicting buffers...
\n
"
);
ttm_bo_evict_mm
(
&
drm
->
ttm
.
bdev
,
TTM_PL_VRAM
);
NV_INFO
(
drm
,
"waiting for kernel channels to go idle...
\n
"
);
if
(
drm
->
cechan
)
{
ret
=
nouveau_channel_idle
(
drm
->
cechan
);
if
(
ret
)
return
ret
;
}
if
(
drm
->
channel
)
{
ret
=
nouveau_channel_idle
(
drm
->
channel
);
if
(
ret
)
return
ret
;
}
NV_INFO
(
drm
,
"suspending client object trees...
\n
"
);
if
(
drm
->
fence
&&
nouveau_fence
(
drm
)
->
suspend
)
{
if
(
!
nouveau_fence
(
drm
)
->
suspend
(
drm
))
return
-
ENOMEM
;
}
NV_INFO
(
drm
,
"suspending client object trees...
\n
"
);
list_for_each_entry
(
cli
,
&
drm
->
clients
,
head
)
{
ret
=
nouveau_client_fini
(
&
cli
->
base
,
true
);
if
(
ret
)
goto
fail_client
;
}
NV_INFO
(
drm
,
"suspending kernel object tree...
\n
"
);
ret
=
nouveau_client_fini
(
&
drm
->
client
.
base
,
true
);
if
(
ret
)
goto
fail_client
;
...
...
@@ -514,17 +528,18 @@ nouveau_do_resume(struct drm_device *dev)
nouveau_agp_reset
(
drm
);
NV_INFO
(
drm
,
"resuming
client
object tree
s
...
\n
"
);
NV_INFO
(
drm
,
"resuming
kernel
object tree...
\n
"
);
nouveau_client_init
(
&
drm
->
client
.
base
);
nouveau_agp_init
(
drm
);
NV_INFO
(
drm
,
"resuming client object trees...
\n
"
);
if
(
drm
->
fence
&&
nouveau_fence
(
drm
)
->
resume
)
nouveau_fence
(
drm
)
->
resume
(
drm
);
list_for_each_entry
(
cli
,
&
drm
->
clients
,
head
)
{
nouveau_client_init
(
&
cli
->
base
);
}
if
(
drm
->
fence
&&
nouveau_fence
(
drm
)
->
resume
)
nouveau_fence
(
drm
)
->
resume
(
drm
);
nouveau_run_vbios_init
(
dev
);
nouveau_pm_resume
(
dev
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment