Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
R128
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Ermine
R128
Commits
30e53390
Commit
30e53390
authored
13 years ago
by
Ben Skeggs
Browse files
Options
Downloads
Patches
Plain Diff
drm/nva3/pm: more random unknown PFB regs
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
27740383
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/gpu/drm/nouveau/nva3_pm.c
+23
-1
23 additions, 1 deletion
drivers/gpu/drm/nouveau/nva3_pm.c
with
23 additions
and
1 deletion
drivers/gpu/drm/nouveau/nva3_pm.c
+
23
−
1
View file @
30e53390
...
...
@@ -393,12 +393,34 @@ mclk_clock_set(struct nouveau_mem_exec_func *exec)
static
void
mclk_timing_set
(
struct
nouveau_mem_exec_func
*
exec
)
{
struct
drm_device
*
dev
=
exec
->
dev
;
struct
nva3_pm_state
*
info
=
exec
->
priv
;
struct
nouveau_pm_level
*
perflvl
=
info
->
perflvl
;
u8
*
ramcfg
,
ver
,
len
;
int
i
;
for
(
i
=
0
;
i
<
9
;
i
++
)
nv_wr32
(
exec
->
dev
,
0x100220
+
(
i
*
4
),
perflvl
->
timing
.
reg
[
i
]);
nv_wr32
(
dev
,
0x100220
+
(
i
*
4
),
perflvl
->
timing
.
reg
[
i
]);
ramcfg
=
nouveau_perf_ramcfg
(
dev
,
perflvl
->
memory
,
&
ver
,
&
len
);
if
(
ramcfg
)
{
u32
unk714
=
nv_rd32
(
dev
,
0x100714
)
&
~
0xf0000010
;
u32
unk718
=
nv_rd32
(
dev
,
0x100718
)
&
~
0x00000100
;
u32
unk71c
=
nv_rd32
(
dev
,
0x10071c
)
&
~
0x00000100
;
if
(
(
ramcfg
[
2
]
&
0x20
))
unk714
|=
0xf0000000
;
if
(
!
(
ramcfg
[
2
]
&
0x04
))
unk714
|=
0x00000010
;
nv_wr32
(
dev
,
0x100714
,
unk714
);
if
(
ramcfg
[
2
]
&
0x01
)
unk71c
|=
0x00000100
;
nv_wr32
(
dev
,
0x10071c
,
unk71c
);
if
(
ramcfg
[
2
]
&
0x02
)
unk718
|=
0x00000100
;
nv_wr32
(
dev
,
0x100718
,
unk718
);
}
}
static
void
...
...
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