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
b10f20d5
Commit
b10f20d5
authored
Aug 05, 2012
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvc0-/gr: remove reset-after-grctx-construction hack
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
5999933f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
34 deletions
+9
-34
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
+7
-20
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
+1
-7
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
+1
-7
No files found.
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
View file @
b10f20d5
...
...
@@ -151,29 +151,16 @@ nvc0_grctx_fini(struct nvc0_grctx *info)
struct
nvc0_graph_priv
*
priv
=
info
->
priv
;
int
i
;
if
(
priv
->
firmware
)
{
nv_wr32
(
priv
,
0x409840
,
0x00000003
);
nv_wr32
(
priv
,
0x409500
,
0x80000000
|
info
->
chan
->
addr
>>
12
);
nv_wr32
(
priv
,
0x409504
,
0x00000009
);
if
(
!
nv_wait
(
priv
,
0x409800
,
0x00000001
,
0x00000000
))
{
nv_error
(
priv
,
"unload_ctx timeout
\n
"
);
return
-
EBUSY
;
}
goto
save
;
}
/* HUB_FUC(CTX_SAVE) */
nv_wr32
(
priv
,
0x409840
,
0x80000000
);
nv_wr32
(
priv
,
0x409500
,
0x80000000
|
info
->
chan
->
addr
>>
12
);
nv_wr32
(
priv
,
0x409504
,
0x00000002
);
if
(
!
nv_wait
(
priv
,
0x409800
,
0x80000000
,
0x80000000
))
{
nv_error
(
priv
,
"HUB_CTX_SAVE timeout
\n
"
);
nvc0_graph_ctxctl_debug
(
priv
);
/* trigger a context unload by unsetting the "next channel valid" bit
* and faking a context switch interrupt
*/
nv_mask
(
priv
,
0x409b04
,
0x80000000
,
0x00000000
);
nv_wr32
(
priv
,
0x409000
,
0x00000100
);
if
(
!
nv_wait
(
priv
,
0x409b00
,
0x80000000
,
0x00000000
))
{
nv_error
(
priv
,
"grctx template channel unload timeout
\n
"
);
return
-
EBUSY
;
}
save:
priv
->
data
=
kmalloc
(
priv
->
size
,
GFP_KERNEL
);
if
(
priv
->
data
)
{
for
(
i
=
0
;
i
<
priv
->
size
;
i
+=
4
)
...
...
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
View file @
b10f20d5
...
...
@@ -707,8 +707,6 @@ nvc0_graph_init_ctxctl(struct nvc0_graph_priv *priv)
nv_error
(
priv
,
"failed to construct context
\n
"
);
return
ret
;
}
return
1
;
}
return
0
;
...
...
@@ -720,7 +718,6 @@ nvc0_graph_init(struct nouveau_object *object)
struct
nvc0_graph_priv
*
priv
=
(
void
*
)
object
;
int
ret
;
reset:
ret
=
nouveau_graph_init
(
&
priv
->
base
);
if
(
ret
)
return
ret
;
...
...
@@ -748,11 +745,8 @@ nvc0_graph_init(struct nouveau_object *object)
nv_wr32
(
priv
,
0x400054
,
0x34ce3464
);
ret
=
nvc0_graph_init_ctxctl
(
priv
);
if
(
ret
)
{
if
(
ret
==
1
)
goto
reset
;
if
(
ret
)
return
ret
;
}
return
0
;
}
...
...
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
View file @
b10f20d5
...
...
@@ -457,8 +457,6 @@ nve0_graph_init_ctxctl(struct nvc0_graph_priv *priv)
nv_error
(
priv
,
"failed to construct context
\n
"
);
return
ret
;
}
return
1
;
}
return
0
;
...
...
@@ -470,7 +468,6 @@ nve0_graph_init(struct nouveau_object *object)
struct
nvc0_graph_priv
*
priv
=
(
void
*
)
object
;
int
ret
;
reset:
ret
=
nouveau_graph_init
(
&
priv
->
base
);
if
(
ret
)
return
ret
;
...
...
@@ -496,11 +493,8 @@ nve0_graph_init(struct nouveau_object *object)
nv_wr32
(
priv
,
0x400054
,
0x34ce3464
);
ret
=
nve0_graph_init_ctxctl
(
priv
);
if
(
ret
)
{
if
(
ret
==
1
)
goto
reset
;
if
(
ret
)
return
ret
;
}
return
0
;
}
...
...
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