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
8c967c55
Commit
8c967c55
authored
Nov 01, 2017
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/secboot/gm200: use new interfaces for vmm operations
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
9202d732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c
+5
-6
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c
View file @
8c967c55
...
...
@@ -39,7 +39,7 @@ gm200_secboot_run_blob(struct nvkm_secboot *sb, struct nvkm_gpuobj *blob,
{
struct
gm200_secboot
*
gsb
=
gm200_secboot
(
sb
);
struct
nvkm_subdev
*
subdev
=
&
gsb
->
base
.
subdev
;
struct
nvkm_vma
vma
;
struct
nvkm_vma
*
vma
=
NULL
;
u32
start_address
;
int
ret
;
...
...
@@ -48,13 +48,13 @@ gm200_secboot_run_blob(struct nvkm_secboot *sb, struct nvkm_gpuobj *blob,
return
ret
;
/* Map the HS firmware so the HS bootloader can see it */
ret
=
nvkm_vm
_get
(
gsb
->
vmm
,
blob
->
size
,
12
,
NV_MEM_ACCESS_RW
,
&
vma
);
ret
=
nvkm_vm
m_get
(
gsb
->
vmm
,
12
,
blob
->
size
,
&
vma
);
if
(
ret
)
{
nvkm_falcon_put
(
falcon
,
subdev
);
return
ret
;
}
ret
=
nvkm_memory_map
(
blob
,
0
,
gsb
->
vmm
,
&
vma
,
NULL
,
0
);
ret
=
nvkm_memory_map
(
blob
,
0
,
gsb
->
vmm
,
vma
,
NULL
,
0
);
if
(
ret
)
goto
end
;
...
...
@@ -65,7 +65,7 @@ gm200_secboot_run_blob(struct nvkm_secboot *sb, struct nvkm_gpuobj *blob,
nvkm_falcon_bind_context
(
falcon
,
gsb
->
inst
);
/* Load the HS bootloader into the falcon's IMEM/DMEM */
ret
=
sb
->
acr
->
func
->
load
(
sb
->
acr
,
falcon
,
blob
,
vma
.
offset
);
ret
=
sb
->
acr
->
func
->
load
(
sb
->
acr
,
falcon
,
blob
,
vma
->
addr
);
if
(
ret
<
0
)
goto
end
;
...
...
@@ -95,8 +95,7 @@ gm200_secboot_run_blob(struct nvkm_secboot *sb, struct nvkm_gpuobj *blob,
nvkm_mc_intr_mask
(
sb
->
subdev
.
device
,
falcon
->
owner
->
index
,
true
);
/* We don't need the ACR firmware anymore */
nvkm_vm_unmap
(
&
vma
);
nvkm_vm_put
(
&
vma
);
nvkm_vmm_put
(
gsb
->
vmm
,
&
vma
);
nvkm_falcon_put
(
falcon
,
subdev
);
return
ret
;
...
...
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