Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
8956c8bb
Commit
8956c8bb
authored
Mar 18, 2010
by
Eric Anholt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/i915: Set up the documented clock gating on Sandybridge and Ironlake.
Signed-off-by:
Eric Anholt
<
eric@anholt.net
>
parent
66f6ff09
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/i915_reg.h
+8
-0
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_display.c
+14
-0
No files found.
drivers/gpu/drm/i915/i915_reg.h
View file @
8956c8bb
...
...
@@ -2176,6 +2176,14 @@
#define DISPLAY_PORT_PLL_BIOS_1 0x46010
#define DISPLAY_PORT_PLL_BIOS_2 0x46014
#define PCH_DSPCLK_GATE_D 0x42020
# define DPFDUNIT_CLOCK_GATE_DISABLE (1 << 7)
# define DPARBUNIT_CLOCK_GATE_DISABLE (1 << 5)
#define PCH_3DCGDIS0 0x46020
# define MARIUNIT_CLOCK_GATE_DISABLE (1 << 18)
# define SVSMUNIT_CLOCK_GATE_DISABLE (1 << 1)
#define FDI_PLL_FREQ_CTL 0x46030
#define FDI_PLL_FREQ_CHANGE_REQUEST (1<<24)
#define FDI_PLL_FREQ_LOCK_LIMIT_MASK 0xfff00
...
...
drivers/gpu/drm/i915/intel_display.c
View file @
8956c8bb
...
...
@@ -4717,6 +4717,20 @@ void intel_init_clock_gating(struct drm_device *dev)
* specs, but enable as much else as we can.
*/
if
(
HAS_PCH_SPLIT
(
dev
))
{
uint32_t
dspclk_gate
=
VRHUNIT_CLOCK_GATE_DISABLE
;
if
(
IS_IRONLAKE
(
dev
))
{
/* Required for FBC */
dspclk_gate
|=
DPFDUNIT_CLOCK_GATE_DISABLE
;
/* Required for CxSR */
dspclk_gate
|=
DPARBUNIT_CLOCK_GATE_DISABLE
;
I915_WRITE
(
PCH_3DCGDIS0
,
MARIUNIT_CLOCK_GATE_DISABLE
|
SVSMUNIT_CLOCK_GATE_DISABLE
);
}
I915_WRITE
(
PCH_DSPCLK_GATE_D
,
dspclk_gate
);
return
;
}
else
if
(
IS_G4X
(
dev
))
{
uint32_t
dspclk_gate
;
...
...
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