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
eddb0473
Commit
eddb0473
authored
Jun 16, 2020
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/sec2/gp102: allow module to load when LSFW is missing
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
b9c246ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
+11
-2
drivers/gpu/drm/nouveau/nvkm/engine/sec2/priv.h
drivers/gpu/drm/nouveau/nvkm/engine/sec2/priv.h
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/sec2/tu102.c
drivers/gpu/drm/nouveau/nvkm/engine/sec2/tu102.c
+1
-8
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
View file @
eddb0473
...
...
@@ -28,6 +28,14 @@
#include <nvfw/flcn.h>
#include <nvfw/sec2.h>
int
gp102_sec2_nofw
(
struct
nvkm_sec2
*
sec2
,
int
ver
,
const
struct
nvkm_sec2_fwif
*
fwif
)
{
nvkm_warn
(
&
sec2
->
engine
.
subdev
,
"firmware unavailable
\n
"
);
return
0
;
}
static
int
gp102_sec2_acr_bootstrap_falcon_callback
(
void
*
priv
,
struct
nvfw_falcon_msg
*
hdr
)
{
...
...
@@ -328,8 +336,9 @@ MODULE_FIRMWARE("nvidia/gp107/sec2/sig-1.bin");
static
const
struct
nvkm_sec2_fwif
gp102_sec2_fwif
[]
=
{
{
1
,
gp102_sec2_load
,
&
gp102_sec2
,
&
gp102_sec2_acr_1
},
{
0
,
gp102_sec2_load
,
&
gp102_sec2
,
&
gp102_sec2_acr_0
},
{
1
,
gp102_sec2_load
,
&
gp102_sec2
,
&
gp102_sec2_acr_1
},
{
0
,
gp102_sec2_load
,
&
gp102_sec2
,
&
gp102_sec2_acr_0
},
{
-
1
,
gp102_sec2_nofw
,
&
gp102_sec2
},
{}
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sec2/priv.h
View file @
eddb0473
...
...
@@ -20,6 +20,7 @@ struct nvkm_sec2_fwif {
const
struct
nvkm_acr_lsf_func
*
acr
;
};
int
gp102_sec2_nofw
(
struct
nvkm_sec2
*
,
int
,
const
struct
nvkm_sec2_fwif
*
);
int
gp102_sec2_load
(
struct
nvkm_sec2
*
,
int
,
const
struct
nvkm_sec2_fwif
*
);
extern
const
struct
nvkm_sec2_func
gp102_sec2
;
extern
const
struct
nvkm_acr_lsf_func
gp102_sec2_acr_1
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sec2/tu102.c
View file @
eddb0473
...
...
@@ -49,13 +49,6 @@ tu102_sec2 = {
.
initmsg
=
gp102_sec2_initmsg
,
};
static
int
tu102_sec2_nofw
(
struct
nvkm_sec2
*
sec2
,
int
ver
,
const
struct
nvkm_sec2_fwif
*
fwif
)
{
return
0
;
}
MODULE_FIRMWARE
(
"nvidia/tu102/sec2/desc.bin"
);
MODULE_FIRMWARE
(
"nvidia/tu102/sec2/image.bin"
);
MODULE_FIRMWARE
(
"nvidia/tu102/sec2/sig.bin"
);
...
...
@@ -75,7 +68,7 @@ MODULE_FIRMWARE("nvidia/tu117/sec2/sig.bin");
static
const
struct
nvkm_sec2_fwif
tu102_sec2_fwif
[]
=
{
{
0
,
gp102_sec2_load
,
&
tu102_sec2
,
&
gp102_sec2_acr_1
},
{
-
1
,
tu
102_sec2_nofw
,
&
tu102_sec2
}
{
-
1
,
gp
102_sec2_nofw
,
&
tu102_sec2
}
};
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