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
90e9cf74
Commit
90e9cf74
authored
Jun 16, 2020
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/acr: allow module to load when HSFW(s) are missing
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
8fdc45e4
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
6 deletions
+25
-6
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
+14
-2
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm20b.c
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm20b.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp108.c
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp108.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp10b.c
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp10b.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/subdev/acr/priv.h
drivers/gpu/drm/nouveau/nvkm/subdev/acr/priv.h
+2
-0
drivers/gpu/drm/nouveau/nvkm/subdev/acr/tu102.c
drivers/gpu/drm/nouveau/nvkm/subdev/acr/tu102.c
+1
-0
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
View file @
90e9cf74
...
@@ -32,6 +32,17 @@
...
@@ -32,6 +32,17 @@
#include <nvfw/acr.h>
#include <nvfw/acr.h>
#include <nvfw/flcn.h>
#include <nvfw/flcn.h>
const
struct
nvkm_acr_func
gm200_acr
=
{
};
int
gm200_acr_nofw
(
struct
nvkm_acr
*
acr
,
int
ver
,
const
struct
nvkm_acr_fwif
*
fwif
)
{
nvkm_warn
(
&
acr
->
subdev
,
"firmware unavailable
\n
"
);
return
0
;
}
int
int
gm200_acr_init
(
struct
nvkm_acr
*
acr
)
gm200_acr_init
(
struct
nvkm_acr
*
acr
)
{
{
...
@@ -425,7 +436,7 @@ gm200_acr_load_fwif[] = {
...
@@ -425,7 +436,7 @@ gm200_acr_load_fwif[] = {
};
};
static
const
struct
nvkm_acr_func
static
const
struct
nvkm_acr_func
gm200_acr
=
{
gm200_acr
_0
=
{
.
load
=
gm200_acr_load_fwif
,
.
load
=
gm200_acr_load_fwif
,
.
unload
=
gm200_acr_unload_fwif
,
.
unload
=
gm200_acr_unload_fwif
,
.
wpr_parse
=
gm200_acr_wpr_parse
,
.
wpr_parse
=
gm200_acr_wpr_parse
,
...
@@ -459,7 +470,8 @@ gm200_acr_load(struct nvkm_acr *acr, int ver, const struct nvkm_acr_fwif *fwif)
...
@@ -459,7 +470,8 @@ gm200_acr_load(struct nvkm_acr *acr, int ver, const struct nvkm_acr_fwif *fwif)
static
const
struct
nvkm_acr_fwif
static
const
struct
nvkm_acr_fwif
gm200_acr_fwif
[]
=
{
gm200_acr_fwif
[]
=
{
{
0
,
gm200_acr_load
,
&
gm200_acr
},
{
0
,
gm200_acr_load
,
&
gm200_acr_0
},
{
-
1
,
gm200_acr_nofw
,
&
gm200_acr
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm20b.c
View file @
90e9cf74
...
@@ -124,6 +124,7 @@ gm20b_acr_load(struct nvkm_acr *acr, int ver, const struct nvkm_acr_fwif *fwif)
...
@@ -124,6 +124,7 @@ gm20b_acr_load(struct nvkm_acr *acr, int ver, const struct nvkm_acr_fwif *fwif)
static
const
struct
nvkm_acr_fwif
static
const
struct
nvkm_acr_fwif
gm20b_acr_fwif
[]
=
{
gm20b_acr_fwif
[]
=
{
{
0
,
gm20b_acr_load
,
&
gm20b_acr
},
{
0
,
gm20b_acr_load
,
&
gm20b_acr
},
{
-
1
,
gm200_acr_nofw
,
&
gm200_acr
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
View file @
90e9cf74
...
@@ -271,6 +271,7 @@ gp102_acr_load(struct nvkm_acr *acr, int ver, const struct nvkm_acr_fwif *fwif)
...
@@ -271,6 +271,7 @@ gp102_acr_load(struct nvkm_acr *acr, int ver, const struct nvkm_acr_fwif *fwif)
static
const
struct
nvkm_acr_fwif
static
const
struct
nvkm_acr_fwif
gp102_acr_fwif
[]
=
{
gp102_acr_fwif
[]
=
{
{
0
,
gp102_acr_load
,
&
gp102_acr
},
{
0
,
gp102_acr_load
,
&
gp102_acr
},
{
-
1
,
gm200_acr_nofw
,
&
gm200_acr
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp108.c
View file @
90e9cf74
...
@@ -101,6 +101,7 @@ gp108_acr = {
...
@@ -101,6 +101,7 @@ gp108_acr = {
static
const
struct
nvkm_acr_fwif
static
const
struct
nvkm_acr_fwif
gp108_acr_fwif
[]
=
{
gp108_acr_fwif
[]
=
{
{
0
,
gp102_acr_load
,
&
gp108_acr
},
{
0
,
gp102_acr_load
,
&
gp108_acr
},
{
-
1
,
gm200_acr_nofw
,
&
gm200_acr
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp10b.c
View file @
90e9cf74
...
@@ -47,6 +47,7 @@ gp10b_acr = {
...
@@ -47,6 +47,7 @@ gp10b_acr = {
static
const
struct
nvkm_acr_fwif
static
const
struct
nvkm_acr_fwif
gp10b_acr_fwif
[]
=
{
gp10b_acr_fwif
[]
=
{
{
0
,
gm20b_acr_load
,
&
gp10b_acr
},
{
0
,
gm20b_acr_load
,
&
gp10b_acr
},
{
-
1
,
gm200_acr_nofw
,
&
gm200_acr
},
{}
{}
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/acr/priv.h
View file @
90e9cf74
...
@@ -10,6 +10,7 @@ struct nvkm_acr_fwif {
...
@@ -10,6 +10,7 @@ struct nvkm_acr_fwif {
const
struct
nvkm_acr_func
*
func
;
const
struct
nvkm_acr_func
*
func
;
};
};
int
gm200_acr_nofw
(
struct
nvkm_acr
*
,
int
,
const
struct
nvkm_acr_fwif
*
);
int
gm20b_acr_load
(
struct
nvkm_acr
*
,
int
,
const
struct
nvkm_acr_fwif
*
);
int
gm20b_acr_load
(
struct
nvkm_acr
*
,
int
,
const
struct
nvkm_acr_fwif
*
);
int
gp102_acr_load
(
struct
nvkm_acr
*
,
int
,
const
struct
nvkm_acr_fwif
*
);
int
gp102_acr_load
(
struct
nvkm_acr
*
,
int
,
const
struct
nvkm_acr_fwif
*
);
...
@@ -29,6 +30,7 @@ struct nvkm_acr_func {
...
@@ -29,6 +30,7 @@ struct nvkm_acr_func {
void
(
*
fini
)(
struct
nvkm_acr
*
);
void
(
*
fini
)(
struct
nvkm_acr
*
);
};
};
extern
const
struct
nvkm_acr_func
gm200_acr
;
int
gm200_acr_wpr_parse
(
struct
nvkm_acr
*
);
int
gm200_acr_wpr_parse
(
struct
nvkm_acr
*
);
u32
gm200_acr_wpr_layout
(
struct
nvkm_acr
*
);
u32
gm200_acr_wpr_layout
(
struct
nvkm_acr
*
);
int
gm200_acr_wpr_build
(
struct
nvkm_acr
*
,
struct
nvkm_acr_lsf
*
);
int
gm200_acr_wpr_build
(
struct
nvkm_acr
*
,
struct
nvkm_acr_lsf
*
);
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/acr/tu102.c
View file @
90e9cf74
...
@@ -219,6 +219,7 @@ tu102_acr_load(struct nvkm_acr *acr, int version,
...
@@ -219,6 +219,7 @@ tu102_acr_load(struct nvkm_acr *acr, int version,
static
const
struct
nvkm_acr_fwif
static
const
struct
nvkm_acr_fwif
tu102_acr_fwif
[]
=
{
tu102_acr_fwif
[]
=
{
{
0
,
tu102_acr_load
,
&
tu102_acr
},
{
0
,
tu102_acr_load
,
&
tu102_acr
},
{
-
1
,
gm200_acr_nofw
,
&
gm200_acr
},
{}
{}
};
};
...
...
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