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
583f8e4e
Commit
583f8e4e
authored
Apr 08, 2016
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/mc: implement support for PTOP reset info
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
70b01f07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
+9
-6
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
View file @
583f8e4e
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "priv.h"
#include "priv.h"
#include <core/option.h>
#include <core/option.h>
#include <subdev/top.h>
void
void
nvkm_mc_unk260
(
struct
nvkm_mc
*
mc
,
u32
data
)
nvkm_mc_unk260
(
struct
nvkm_mc
*
mc
,
u32
data
)
...
@@ -82,12 +83,14 @@ nvkm_mc_reset_(struct nvkm_mc *mc, enum nvkm_devidx devidx)
...
@@ -82,12 +83,14 @@ nvkm_mc_reset_(struct nvkm_mc *mc, enum nvkm_devidx devidx)
{
{
struct
nvkm_device
*
device
=
mc
->
subdev
.
device
;
struct
nvkm_device
*
device
=
mc
->
subdev
.
device
;
const
struct
nvkm_mc_map
*
map
;
const
struct
nvkm_mc_map
*
map
;
u64
pmc_enable
=
0
;
u64
pmc_enable
;
for
(
map
=
mc
->
func
->
reset
;
map
&&
map
->
stat
;
map
++
)
{
if
(
!
(
pmc_enable
=
nvkm_top_reset
(
device
->
top
,
devidx
)))
{
if
(
map
->
unit
==
devidx
)
{
for
(
map
=
mc
->
func
->
reset
;
map
&&
map
->
stat
;
map
++
)
{
pmc_enable
=
map
->
stat
;
if
(
map
->
unit
==
devidx
)
{
break
;
pmc_enable
=
map
->
stat
;
break
;
}
}
}
}
}
...
...
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