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
Kirill Smelkov
linux
Commits
6845c313
Commit
6845c313
authored
Jan 16, 2017
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gr/gf100-: implement chsw_load() method
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
71ce33a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+17
-0
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
View file @
6845c313
...
...
@@ -702,6 +702,22 @@ gf100_gr_pack_mmio[] = {
* PGRAPH engine/subdev functions
******************************************************************************/
static
bool
gf100_gr_chsw_load
(
struct
nvkm_gr
*
base
)
{
struct
gf100_gr
*
gr
=
gf100_gr
(
base
);
if
(
!
gr
->
firmware
)
{
u32
trace
=
nvkm_rd32
(
gr
->
base
.
engine
.
subdev
.
device
,
0x40981c
);
if
(
trace
&
0x00000040
)
return
true
;
}
else
{
u32
mthd
=
nvkm_rd32
(
gr
->
base
.
engine
.
subdev
.
device
,
0x409808
);
if
(
mthd
&
0x00080000
)
return
true
;
}
return
false
;
}
int
gf100_gr_rops
(
struct
gf100_gr
*
gr
)
{
...
...
@@ -1770,6 +1786,7 @@ gf100_gr_ = {
.
units
=
gf100_gr_units
,
.
chan_new
=
gf100_gr_chan_new
,
.
object_get
=
gf100_gr_object_get
,
.
chsw_load
=
gf100_gr_chsw_load
,
};
int
...
...
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