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
b53a2d06
Commit
b53a2d06
authored
May 24, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvc0/gr: enable 0xc8/0xce support, no idea if it works or not..
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
e1b89b1c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
drivers/gpu/drm/nouveau/nvc0_graph.h
drivers/gpu/drm/nouveau/nvc0_graph.h
+2
-1
drivers/gpu/drm/nouveau/nvc0_grctx.c
drivers/gpu/drm/nouveau/nvc0_grctx.c
+5
-5
No files found.
drivers/gpu/drm/nouveau/nvc0_graph.h
View file @
b53a2d06
...
...
@@ -82,13 +82,14 @@ nvc0_graph_class(struct drm_device *dev)
case
0xc0
:
case
0xc3
:
case
0xc4
:
case
0xce
:
/* guess, mmio trace shows only 0x9097 state */
return
0x9097
;
#if 0
case 0xc1:
return 0x9197;
#endif
case
0xc8
:
return
0x9297
;
#endif
default:
return
0
;
}
...
...
drivers/gpu/drm/nouveau/nvc0_grctx.c
View file @
b53a2d06
...
...
@@ -1642,8 +1642,8 @@ nvc0_grctx_generate_tp(struct drm_device *dev)
nv_wr32
(
dev
,
0x419a14
,
0x00000200
);
nv_wr32
(
dev
,
0x419a1c
,
0x00000000
);
nv_wr32
(
dev
,
0x419a20
,
0x00000800
);
if
(
dev_priv
->
chipset
!=
0xc0
)
nv_wr32
(
dev
,
0x00419ac4
,
0x0007f440
);
/* 0xc3 */
if
(
dev_priv
->
chipset
!=
0xc0
&&
dev_priv
->
chipset
!=
0xc8
)
nv_wr32
(
dev
,
0x00419ac4
,
0x0007f440
);
nv_wr32
(
dev
,
0x419b00
,
0x0a418820
);
nv_wr32
(
dev
,
0x419b04
,
0x062080e6
);
nv_wr32
(
dev
,
0x419b08
,
0x020398a4
);
...
...
@@ -1657,7 +1657,7 @@ nvc0_grctx_generate_tp(struct drm_device *dev)
nv_wr32
(
dev
,
0x419c04
,
0x00000006
);
nv_wr32
(
dev
,
0x419c08
,
0x00000002
);
nv_wr32
(
dev
,
0x419c20
,
0x00000000
);
nv_wr32
(
dev
,
0x419cb0
,
0x00060048
);
nv_wr32
(
dev
,
0x419cb0
,
0x00060048
);
//XXX: 0xce 0x00020048
nv_wr32
(
dev
,
0x419ce8
,
0x00000000
);
nv_wr32
(
dev
,
0x419cf4
,
0x00000183
);
nv_wr32
(
dev
,
0x419d20
,
0x02180000
);
...
...
@@ -1687,11 +1687,11 @@ nvc0_grctx_generate_tp(struct drm_device *dev)
nv_wr32
(
dev
,
0x419e8c
,
0x00000000
);
nv_wr32
(
dev
,
0x419e90
,
0x00000000
);
nv_wr32
(
dev
,
0x419e98
,
0x00000000
);
if
(
dev_priv
->
chipset
!=
0xc0
)
if
(
dev_priv
->
chipset
!=
0xc0
&&
dev_priv
->
chipset
!=
0xc8
)
nv_wr32
(
dev
,
0x419ee0
,
0x00011110
);
nv_wr32
(
dev
,
0x419f50
,
0x00000000
);
nv_wr32
(
dev
,
0x419f54
,
0x00000000
);
if
(
dev_priv
->
chipset
!=
0xc0
)
if
(
dev_priv
->
chipset
!=
0xc0
&&
dev_priv
->
chipset
!=
0xc8
)
nv_wr32
(
dev
,
0x419f58
,
0x00000000
);
}
...
...
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