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
93dbb29b
Commit
93dbb29b
authored
Jun 25, 2011
by
Keith Packard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'drm-intel-fixes' into drm-intel-next
parents
b97c3d9c
483f1798
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
drivers/gpu/drm/i915/i915_suspend.c
drivers/gpu/drm/i915/i915_suspend.c
+5
-0
No files found.
drivers/gpu/drm/i915/i915_suspend.c
View file @
93dbb29b
...
@@ -678,6 +678,7 @@ void i915_save_display(struct drm_device *dev)
...
@@ -678,6 +678,7 @@ void i915_save_display(struct drm_device *dev)
}
}
/* VGA state */
/* VGA state */
mutex_lock
(
&
dev
->
struct_mutex
);
dev_priv
->
saveVGA0
=
I915_READ
(
VGA0
);
dev_priv
->
saveVGA0
=
I915_READ
(
VGA0
);
dev_priv
->
saveVGA1
=
I915_READ
(
VGA1
);
dev_priv
->
saveVGA1
=
I915_READ
(
VGA1
);
dev_priv
->
saveVGA_PD
=
I915_READ
(
VGA_PD
);
dev_priv
->
saveVGA_PD
=
I915_READ
(
VGA_PD
);
...
@@ -687,6 +688,7 @@ void i915_save_display(struct drm_device *dev)
...
@@ -687,6 +688,7 @@ void i915_save_display(struct drm_device *dev)
dev_priv
->
saveVGACNTRL
=
I915_READ
(
VGACNTRL
);
dev_priv
->
saveVGACNTRL
=
I915_READ
(
VGACNTRL
);
i915_save_vga
(
dev
);
i915_save_vga
(
dev
);
mutex_unlock
(
&
dev
->
struct_mutex
);
}
}
void
i915_restore_display
(
struct
drm_device
*
dev
)
void
i915_restore_display
(
struct
drm_device
*
dev
)
...
@@ -780,6 +782,8 @@ void i915_restore_display(struct drm_device *dev)
...
@@ -780,6 +782,8 @@ void i915_restore_display(struct drm_device *dev)
I915_WRITE
(
CPU_VGACNTRL
,
dev_priv
->
saveVGACNTRL
);
I915_WRITE
(
CPU_VGACNTRL
,
dev_priv
->
saveVGACNTRL
);
else
else
I915_WRITE
(
VGACNTRL
,
dev_priv
->
saveVGACNTRL
);
I915_WRITE
(
VGACNTRL
,
dev_priv
->
saveVGACNTRL
);
mutex_lock
(
&
dev
->
struct_mutex
);
I915_WRITE
(
VGA0
,
dev_priv
->
saveVGA0
);
I915_WRITE
(
VGA0
,
dev_priv
->
saveVGA0
);
I915_WRITE
(
VGA1
,
dev_priv
->
saveVGA1
);
I915_WRITE
(
VGA1
,
dev_priv
->
saveVGA1
);
I915_WRITE
(
VGA_PD
,
dev_priv
->
saveVGA_PD
);
I915_WRITE
(
VGA_PD
,
dev_priv
->
saveVGA_PD
);
...
@@ -787,6 +791,7 @@ void i915_restore_display(struct drm_device *dev)
...
@@ -787,6 +791,7 @@ void i915_restore_display(struct drm_device *dev)
udelay
(
150
);
udelay
(
150
);
i915_restore_vga
(
dev
);
i915_restore_vga
(
dev
);
mutex_unlock
(
&
dev
->
struct_mutex
);
}
}
int
i915_save_state
(
struct
drm_device
*
dev
)
int
i915_save_state
(
struct
drm_device
*
dev
)
...
...
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