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
0033f15b
Commit
0033f15b
authored
Jan 15, 2020
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gr/gf100-: drop fuc_ prefix on sw init
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
a2bfb50e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
33 deletions
+27
-33
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c
+6
-6
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk20a.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk20a.c
+3
-3
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
+3
-3
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+6
-12
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
+4
-4
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
+5
-5
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c
View file @
0033f15b
...
...
@@ -1368,7 +1368,7 @@ gf100_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
nvkm_mc_unk260
(
device
,
0
);
if
(
!
gr
->
fuc_
sw_ctx
)
{
if
(
!
gr
->
sw_ctx
)
{
gf100_gr_mmio
(
gr
,
grctx
->
hub
);
gf100_gr_mmio
(
gr
,
grctx
->
gpc_0
);
gf100_gr_mmio
(
gr
,
grctx
->
zcull
);
...
...
@@ -1376,7 +1376,7 @@ gf100_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
gf100_gr_mmio
(
gr
,
grctx
->
tpc
);
gf100_gr_mmio
(
gr
,
grctx
->
ppc
);
}
else
{
gf100_gr_mmio
(
gr
,
gr
->
fuc_
sw_ctx
);
gf100_gr_mmio
(
gr
,
gr
->
sw_ctx
);
}
gf100_gr_wait_idle
(
gr
);
...
...
@@ -1395,8 +1395,8 @@ gf100_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
gf100_gr_wait_idle
(
gr
);
if
(
grctx
->
r400088
)
grctx
->
r400088
(
gr
,
false
);
if
(
gr
->
fuc_
bundle
)
gf100_gr_icmd
(
gr
,
gr
->
fuc_
bundle
);
if
(
gr
->
bundle
)
gf100_gr_icmd
(
gr
,
gr
->
bundle
);
else
gf100_gr_icmd
(
gr
,
grctx
->
icmd
);
if
(
grctx
->
sw_veid_bundle_init
)
...
...
@@ -1405,8 +1405,8 @@ gf100_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
nvkm_wr32
(
device
,
0x404154
,
idle_timeout
);
if
(
gr
->
fuc_
method
)
gf100_gr_mthd
(
gr
,
gr
->
fuc_
method
);
if
(
gr
->
method
)
gf100_gr_mthd
(
gr
,
gr
->
method
);
else
gf100_gr_mthd
(
gr
,
grctx
->
mthd
);
nvkm_mc_unk260
(
device
,
1
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk20a.c
View file @
0033f15b
...
...
@@ -32,7 +32,7 @@ gk20a_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
u32
idle_timeout
;
int
i
;
gf100_gr_mmio
(
gr
,
gr
->
fuc_
sw_ctx
);
gf100_gr_mmio
(
gr
,
gr
->
sw_ctx
);
gf100_gr_wait_idle
(
gr
);
...
...
@@ -56,10 +56,10 @@ gk20a_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
nvkm_wr32
(
device
,
0x404154
,
idle_timeout
);
gf100_gr_wait_idle
(
gr
);
gf100_gr_mthd
(
gr
,
gr
->
fuc_
method
);
gf100_gr_mthd
(
gr
,
gr
->
method
);
gf100_gr_wait_idle
(
gr
);
gf100_gr_icmd
(
gr
,
gr
->
fuc_
bundle
);
gf100_gr_icmd
(
gr
,
gr
->
bundle
);
grctx
->
pagepool
(
info
);
grctx
->
bundle
(
info
);
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
View file @
0033f15b
...
...
@@ -29,7 +29,7 @@ gm20b_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
u32
idle_timeout
;
int
i
,
tmp
;
gf100_gr_mmio
(
gr
,
gr
->
fuc_
sw_ctx
);
gf100_gr_mmio
(
gr
,
gr
->
sw_ctx
);
gf100_gr_wait_idle
(
gr
);
...
...
@@ -59,10 +59,10 @@ gm20b_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
nvkm_wr32
(
device
,
0x404154
,
idle_timeout
);
gf100_gr_wait_idle
(
gr
);
gf100_gr_mthd
(
gr
,
gr
->
fuc_
method
);
gf100_gr_mthd
(
gr
,
gr
->
method
);
gf100_gr_wait_idle
(
gr
);
gf100_gr_icmd
(
gr
,
gr
->
fuc_
bundle
);
gf100_gr_icmd
(
gr
,
gr
->
bundle
);
grctx
->
pagepool
(
info
);
grctx
->
bundle
(
info
);
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
View file @
0033f15b
...
...
@@ -2013,12 +2013,6 @@ gf100_gr_fini_(struct nvkm_gr *base, bool suspend)
return
0
;
}
static
void
gf100_gr_dtor_init
(
struct
gf100_gr_pack
*
pack
)
{
vfree
(
pack
);
}
void
*
gf100_gr_dtor
(
struct
nvkm_gr
*
base
)
{
...
...
@@ -2034,10 +2028,10 @@ gf100_gr_dtor(struct nvkm_gr *base)
nvkm_blob_dtor
(
&
gr
->
fuc41ac
);
nvkm_blob_dtor
(
&
gr
->
fuc41ad
);
gf100_gr_dtor_init
(
gr
->
fuc_
bundle
);
gf100_gr_dtor_init
(
gr
->
fuc_
method
);
gf100_gr_dtor_init
(
gr
->
fuc_
sw_ctx
);
gf100_gr_dtor_init
(
gr
->
fuc_
sw_nonctx
);
vfree
(
gr
->
bundle
);
vfree
(
gr
->
method
);
vfree
(
gr
->
sw_ctx
);
vfree
(
gr
->
sw_nonctx
);
return
gr
;
}
...
...
@@ -2303,8 +2297,8 @@ gf100_gr_init(struct gf100_gr *gr)
gr
->
func
->
init_gpc_mmu
(
gr
);
if
(
gr
->
fuc_
sw_nonctx
)
gf100_gr_mmio
(
gr
,
gr
->
fuc_
sw_nonctx
);
if
(
gr
->
sw_nonctx
)
gf100_gr_mmio
(
gr
,
gr
->
sw_nonctx
);
else
gf100_gr_mmio
(
gr
,
gr
->
func
->
mmio
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
View file @
0033f15b
...
...
@@ -97,10 +97,10 @@ struct gf100_gr {
* Used if the register packs are loaded from NVIDIA fw instead of
* using hardcoded arrays. To be allocated with vzalloc().
*/
struct
gf100_gr_pack
*
fuc_
sw_nonctx
;
struct
gf100_gr_pack
*
fuc_
sw_ctx
;
struct
gf100_gr_pack
*
fuc_
bundle
;
struct
gf100_gr_pack
*
fuc_
method
;
struct
gf100_gr_pack
*
sw_nonctx
;
struct
gf100_gr_pack
*
sw_ctx
;
struct
gf100_gr_pack
*
bundle
;
struct
gf100_gr_pack
*
method
;
struct
gf100_gr_zbc_color
zbc_color
[
NVKM_LTC_MAX_ZBC_CNT
];
struct
gf100_gr_zbc_depth
zbc_depth
[
NVKM_LTC_MAX_ZBC_CNT
];
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
View file @
0033f15b
...
...
@@ -229,7 +229,7 @@ gk20a_gr_init(struct gf100_gr *gr)
/* Clear SCC RAM */
nvkm_wr32
(
device
,
0x40802c
,
0x1
);
gf100_gr_mmio
(
gr
,
gr
->
fuc_
sw_nonctx
);
gf100_gr_mmio
(
gr
,
gr
->
sw_nonctx
);
ret
=
gk20a_gr_wait_mem_scrubbing
(
gr
);
if
(
ret
)
...
...
@@ -310,10 +310,10 @@ gk20a_gr = {
int
gk20a_gr_load_sw
(
struct
gf100_gr
*
gr
,
const
char
*
path
,
int
ver
)
{
if
(
gk20a_gr_av_to_init
(
gr
,
path
,
"sw_nonctx"
,
ver
,
&
gr
->
fuc_
sw_nonctx
)
||
gk20a_gr_aiv_to_init
(
gr
,
path
,
"sw_ctx"
,
ver
,
&
gr
->
fuc_
sw_ctx
)
||
gk20a_gr_av_to_init
(
gr
,
path
,
"sw_bundle_init"
,
ver
,
&
gr
->
fuc_
bundle
)
||
gk20a_gr_av_to_method
(
gr
,
path
,
"sw_method_init"
,
ver
,
&
gr
->
fuc_
method
))
if
(
gk20a_gr_av_to_init
(
gr
,
path
,
"sw_nonctx"
,
ver
,
&
gr
->
sw_nonctx
)
||
gk20a_gr_aiv_to_init
(
gr
,
path
,
"sw_ctx"
,
ver
,
&
gr
->
sw_ctx
)
||
gk20a_gr_av_to_init
(
gr
,
path
,
"sw_bundle_init"
,
ver
,
&
gr
->
bundle
)
||
gk20a_gr_av_to_method
(
gr
,
path
,
"sw_method_init"
,
ver
,
&
gr
->
method
))
return
-
ENOENT
;
return
0
;
...
...
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