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
5dfc5dbf
Commit
5dfc5dbf
authored
May 30, 2016
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/secboot: use nvkm_mc_enable/disable()
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
2b80bb74
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h
+0
-1
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c
+3
-5
No files found.
drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h
View file @
5dfc5dbf
...
@@ -45,7 +45,6 @@ struct nvkm_secboot {
...
@@ -45,7 +45,6 @@ struct nvkm_secboot {
enum
nvkm_devidx
devidx
;
enum
nvkm_devidx
devidx
;
u32
base
;
u32
base
;
u32
enable_mask
;
};
};
#define nvkm_secboot(p) container_of((p), struct nvkm_secboot, subdev)
#define nvkm_secboot(p) container_of((p), struct nvkm_secboot, subdev)
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c
View file @
5dfc5dbf
...
@@ -71,12 +71,11 @@ nvkm_secboot_falcon_enable(struct nvkm_secboot *sb)
...
@@ -71,12 +71,11 @@ nvkm_secboot_falcon_enable(struct nvkm_secboot *sb)
int
ret
;
int
ret
;
/* enable engine */
/* enable engine */
nvkm_mask
(
device
,
0x200
,
sb
->
enable_mask
,
sb
->
enable_mask
);
nvkm_mc_enable
(
device
,
sb
->
devidx
);
nvkm_rd32
(
device
,
0x200
);
ret
=
nvkm_wait_msec
(
device
,
10
,
sb
->
base
+
0x10c
,
0x6
,
0x0
);
ret
=
nvkm_wait_msec
(
device
,
10
,
sb
->
base
+
0x10c
,
0x6
,
0x0
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
nvkm_mask
(
device
,
0x200
,
sb
->
enable_mask
,
0x0
);
nvkm_error
(
&
sb
->
subdev
,
"Falcon mem scrubbing timeout
\n
"
);
nvkm_error
(
&
sb
->
subdev
,
"Falcon mem scrubbing timeout
\n
"
);
nvkm_mc_disable
(
device
,
sb
->
devidx
);
return
ret
;
return
ret
;
}
}
...
@@ -103,7 +102,7 @@ nvkm_secboot_falcon_disable(struct nvkm_secboot *sb)
...
@@ -103,7 +102,7 @@ nvkm_secboot_falcon_disable(struct nvkm_secboot *sb)
falcon_wait_idle
(
device
,
sb
->
base
);
falcon_wait_idle
(
device
,
sb
->
base
);
/* disable engine */
/* disable engine */
nvkm_m
ask
(
device
,
0x200
,
sb
->
enable_mask
,
0x0
);
nvkm_m
c_disable
(
device
,
sb
->
devidx
);
return
0
;
return
0
;
}
}
...
@@ -271,7 +270,6 @@ nvkm_secboot_ctor(const struct nvkm_secboot_func *func,
...
@@ -271,7 +270,6 @@ nvkm_secboot_ctor(const struct nvkm_secboot_func *func,
case
NVKM_SECBOOT_FALCON_PMU
:
case
NVKM_SECBOOT_FALCON_PMU
:
sb
->
devidx
=
NVKM_SUBDEV_PMU
;
sb
->
devidx
=
NVKM_SUBDEV_PMU
;
sb
->
base
=
0x10a000
;
sb
->
base
=
0x10a000
;
sb
->
enable_mask
=
0x2000
;
break
;
break
;
default:
default:
nvkm_error
(
&
sb
->
subdev
,
"invalid secure boot falcon
\n
"
);
nvkm_error
(
&
sb
->
subdev
,
"invalid secure boot falcon
\n
"
);
...
...
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