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
1380da49
Commit
1380da49
authored
14 years ago
by
Ben Skeggs
Browse files
Options
Downloads
Patches
Plain Diff
drm/nv40: initialise 0x17xx on all chipsets that have it
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
c693931d
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/nv40_mc.c
+2
-12
2 additions, 12 deletions
drivers/gpu/drm/nouveau/nv40_mc.c
with
2 additions
and
12 deletions
drivers/gpu/drm/nouveau/nv40_mc.c
+
2
−
12
View file @
1380da49
...
...
@@ -6,27 +6,17 @@
int
nv40_mc_init
(
struct
drm_device
*
dev
)
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
uint32_t
tmp
;
/* Power up everything, resetting each individual unit will
* be done later if needed.
*/
nv_wr32
(
dev
,
NV03_PMC_ENABLE
,
0xFFFFFFFF
);
switch
(
dev_priv
->
chipset
)
{
case
0x44
:
case
0x46
:
/* G72 */
case
0x4e
:
case
0x4c
:
/* C51_G7X */
tmp
=
nv_rd32
(
dev
,
NV04_PFB_FIFO_DATA
);
if
(
nv44_graph_class
(
dev
))
{
u32
tmp
=
nv_rd32
(
dev
,
NV04_PFB_FIFO_DATA
);
nv_wr32
(
dev
,
NV40_PMC_1700
,
tmp
);
nv_wr32
(
dev
,
NV40_PMC_1704
,
0
);
nv_wr32
(
dev
,
NV40_PMC_1708
,
0
);
nv_wr32
(
dev
,
NV40_PMC_170C
,
tmp
);
break
;
default:
break
;
}
return
0
;
...
...
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