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
bfd27f39
Commit
bfd27f39
authored
May 08, 2018
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gr/gf100-: virtualise init_num_active_ltcs
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
02917aa3
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
38 additions
and
33 deletions
+38
-33
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+9
-2
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
+3
-3
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf110.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf119.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf119.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
+10
-3
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
+1
-10
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp107.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp10b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp10b.c
+1
-9
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
View file @
bfd27f39
...
...
@@ -1930,6 +1930,13 @@ gf100_gr_init_gpc_mmu(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x4188b8
,
nvkm_memory_addr
(
fb
->
mmu_rd
)
>>
8
);
}
void
gf100_gr_init_num_active_ltcs
(
struct
gf100_gr
*
gr
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
nvkm_wr32
(
device
,
GPC_BCAST
(
0x08ac
),
nvkm_rd32
(
device
,
0x100800
));
}
void
gf100_gr_init_zcull
(
struct
gf100_gr
*
gr
)
{
...
...
@@ -1989,8 +1996,7 @@ gf100_gr_init(struct gf100_gr *gr)
gr
->
func
->
init_vsc_stream_master
(
gr
);
gr
->
func
->
init_zcull
(
gr
);
nvkm_wr32
(
device
,
GPC_BCAST
(
0x08ac
),
nvkm_rd32
(
device
,
0x100800
));
gr
->
func
->
init_num_active_ltcs
(
gr
);
nvkm_wr32
(
device
,
0x400500
,
0x00010001
);
...
...
@@ -2074,6 +2080,7 @@ gf100_gr = {
.
init_gpc_mmu
=
gf100_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gf100_gr_init_vsc_stream_master
,
.
init_zcull
=
gf100_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
mmio
=
gf100_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
View file @
bfd27f39
...
...
@@ -126,10 +126,10 @@ struct gf100_gr_func {
void
(
*
init_bios
)(
struct
gf100_gr
*
);
void
(
*
init_vsc_stream_master
)(
struct
gf100_gr
*
);
void
(
*
init_zcull
)(
struct
gf100_gr
*
);
void
(
*
init_num_active_ltcs
)(
struct
gf100_gr
*
);
void
(
*
init_rop_active_fbps
)(
struct
gf100_gr
*
);
void
(
*
init_ppc_exceptions
)(
struct
gf100_gr
*
);
void
(
*
init_swdx_pes_mask
)(
struct
gf100_gr
*
);
void
(
*
init_num_active_ltcs
)(
struct
gf100_gr
*
);
void
(
*
set_hww_esr_report_mask
)(
struct
gf100_gr
*
);
const
struct
gf100_gr_pack
*
mmio
;
struct
{
...
...
@@ -149,6 +149,7 @@ int gf100_gr_rops(struct gf100_gr *);
int
gf100_gr_init
(
struct
gf100_gr
*
);
void
gf100_gr_init_vsc_stream_master
(
struct
gf100_gr
*
);
void
gf100_gr_init_zcull
(
struct
gf100_gr
*
);
void
gf100_gr_init_num_active_ltcs
(
struct
gf100_gr
*
);
void
gf117_gr_init_zcull
(
struct
gf100_gr
*
);
...
...
@@ -160,6 +161,7 @@ void gk104_gr_init_ppc_exceptions(struct gf100_gr *);
int
gk20a_gr_init
(
struct
gf100_gr
*
);
int
gm200_gr_rops
(
struct
gf100_gr
*
);
void
gm200_gr_init_num_active_ltcs
(
struct
gf100_gr
*
);
int
gp100_gr_init
(
struct
gf100_gr
*
);
void
gp100_gr_init_rop_active_fbps
(
struct
gf100_gr
*
);
...
...
@@ -315,7 +317,5 @@ void gm107_gr_init_bios(struct gf100_gr *);
void
gm200_gr_init_gpc_mmu
(
struct
gf100_gr
*
);
void
gp100_gr_init_num_active_ltcs
(
struct
gf100_gr
*
gr
);
void
gp102_gr_init_swdx_pes_mask
(
struct
gf100_gr
*
);
#endif
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
View file @
bfd27f39
...
...
@@ -118,6 +118,7 @@ gf104_gr = {
.
init_gpc_mmu
=
gf100_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gf100_gr_init_vsc_stream_master
,
.
init_zcull
=
gf100_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
mmio
=
gf104_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
View file @
bfd27f39
...
...
@@ -116,6 +116,7 @@ gf108_gr = {
.
init_r405a14
=
gf108_gr_init_r405a14
,
.
init_vsc_stream_master
=
gf100_gr_init_vsc_stream_master
,
.
init_zcull
=
gf100_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
mmio
=
gf108_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf110.c
View file @
bfd27f39
...
...
@@ -90,6 +90,7 @@ gf110_gr = {
.
init_gpc_mmu
=
gf100_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gf100_gr_init_vsc_stream_master
,
.
init_zcull
=
gf100_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
mmio
=
gf110_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c
View file @
bfd27f39
...
...
@@ -154,6 +154,7 @@ gf117_gr = {
.
init_gpc_mmu
=
gf100_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gf100_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
mmio
=
gf117_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf117_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf117_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf119.c
View file @
bfd27f39
...
...
@@ -181,6 +181,7 @@ gf119_gr = {
.
init_gpc_mmu
=
gf100_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gf100_gr_init_vsc_stream_master
,
.
init_zcull
=
gf100_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
mmio
=
gf119_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
View file @
bfd27f39
...
...
@@ -426,8 +426,7 @@ gk104_gr_init(struct gf100_gr *gr)
gr
->
func
->
init_vsc_stream_master
(
gr
);
gr
->
func
->
init_zcull
(
gr
);
nvkm_wr32
(
device
,
GPC_BCAST
(
0x08ac
),
nvkm_rd32
(
device
,
0x100800
));
gr
->
func
->
init_num_active_ltcs
(
gr
);
gr
->
func
->
init_rop_active_fbps
(
gr
);
...
...
@@ -517,6 +516,7 @@ gk104_gr = {
.
init_gpc_mmu
=
gf100_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gk104_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gk104_gr_init_rop_active_fbps
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
mmio
=
gk104_gr_pack_mmio
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
View file @
bfd27f39
...
...
@@ -340,6 +340,7 @@ gk110_gr = {
.
init_gpc_mmu
=
gf100_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gk104_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gk104_gr_init_rop_active_fbps
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
mmio
=
gk110_gr_pack_mmio
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
View file @
bfd27f39
...
...
@@ -106,6 +106,7 @@ gk110b_gr = {
.
init_gpc_mmu
=
gf100_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gk104_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gk104_gr_init_rop_active_fbps
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
mmio
=
gk110b_gr_pack_mmio
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
View file @
bfd27f39
...
...
@@ -165,6 +165,7 @@ gk208_gr = {
.
init_gpc_mmu
=
gf100_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gk104_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gk104_gr_init_rop_active_fbps
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
mmio
=
gk208_gr_pack_mmio
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
View file @
bfd27f39
...
...
@@ -335,8 +335,7 @@ gm107_gr_init(struct gf100_gr *gr)
gr
->
func
->
init_vsc_stream_master
(
gr
);
gr
->
func
->
init_zcull
(
gr
);
nvkm_wr32
(
device
,
GPC_BCAST
(
0x08ac
),
nvkm_rd32
(
device
,
0x100800
));
gr
->
func
->
init_num_active_ltcs
(
gr
);
gr
->
func
->
init_rop_active_fbps
(
gr
);
...
...
@@ -426,6 +425,7 @@ gm107_gr = {
.
init_bios
=
gm107_gr_init_bios
,
.
init_vsc_stream_master
=
gk104_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gk104_gr_init_rop_active_fbps
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
mmio
=
gm107_gr_pack_mmio
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
View file @
bfd27f39
...
...
@@ -38,6 +38,14 @@ gm200_gr_rops(struct gf100_gr *gr)
return
nvkm_rd32
(
gr
->
base
.
engine
.
subdev
.
device
,
0x12006c
);
}
void
gm200_gr_init_num_active_ltcs
(
struct
gf100_gr
*
gr
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
nvkm_wr32
(
device
,
GPC_BCAST
(
0x08ac
),
nvkm_rd32
(
device
,
0x100800
));
nvkm_wr32
(
device
,
GPC_BCAST
(
0x033c
),
nvkm_rd32
(
device
,
0x100804
));
}
void
gm200_gr_init_gpc_mmu
(
struct
gf100_gr
*
gr
)
{
...
...
@@ -75,9 +83,7 @@ gm200_gr_init(struct gf100_gr *gr)
gr
->
func
->
init_vsc_stream_master
(
gr
);
gr
->
func
->
init_zcull
(
gr
);
nvkm_wr32
(
device
,
GPC_BCAST
(
0x08ac
),
nvkm_rd32
(
device
,
0x100800
));
nvkm_wr32
(
device
,
GPC_BCAST
(
0x033c
),
nvkm_rd32
(
device
,
0x100804
));
gr
->
func
->
init_num_active_ltcs
(
gr
);
gr
->
func
->
init_rop_active_fbps
(
gr
);
...
...
@@ -185,6 +191,7 @@ gm200_gr = {
.
init_bios
=
gm107_gr_init_bios
,
.
init_vsc_stream_master
=
gk104_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gm200_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gm200_gr_init_rop_active_fbps
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
rops
=
gm200_gr_rops
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
View file @
bfd27f39
...
...
@@ -40,15 +40,6 @@ gp100_gr_init_rop_active_fbps(struct gf100_gr *gr)
nvkm_mask
(
device
,
0x408958
,
0x0000000f
,
fbp_count
);
/* crop */
}
void
gp100_gr_init_num_active_ltcs
(
struct
gf100_gr
*
gr
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
nvkm_wr32
(
device
,
GPC_BCAST
(
0x08ac
),
nvkm_rd32
(
device
,
0x100800
));
nvkm_wr32
(
device
,
GPC_BCAST
(
0x033c
),
nvkm_rd32
(
device
,
0x100804
));
}
int
gp100_gr_init
(
struct
gf100_gr
*
gr
)
{
...
...
@@ -134,9 +125,9 @@ gp100_gr = {
.
init_gpc_mmu
=
gm200_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gk104_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gm200_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gp100_gr_init_rop_active_fbps
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_num_active_ltcs
=
gp100_gr_init_num_active_ltcs
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
2
,
.
grctx
=
&
gp100_grctx
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
View file @
bfd27f39
...
...
@@ -46,10 +46,10 @@ gp102_gr = {
.
init_gpc_mmu
=
gm200_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gk104_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gm200_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gp100_gr_init_rop_active_fbps
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_swdx_pes_mask
=
gp102_gr_init_swdx_pes_mask
,
.
init_num_active_ltcs
=
gp100_gr_init_num_active_ltcs
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
3
,
.
grctx
=
&
gp102_grctx
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp107.c
View file @
bfd27f39
...
...
@@ -32,10 +32,10 @@ gp107_gr = {
.
init_gpc_mmu
=
gm200_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gk104_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gm200_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gp100_gr_init_rop_active_fbps
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_swdx_pes_mask
=
gp102_gr_init_swdx_pes_mask
,
.
init_num_active_ltcs
=
gp100_gr_init_num_active_ltcs
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
1
,
.
grctx
=
&
gp107_grctx
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp10b.c
View file @
bfd27f39
...
...
@@ -25,23 +25,15 @@
#include <nvif/class.h>
static
void
gp10b_gr_init_num_active_ltcs
(
struct
gf100_gr
*
gr
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
nvkm_wr32
(
device
,
GPC_BCAST
(
0x08ac
),
nvkm_rd32
(
device
,
0x100800
));
}
static
const
struct
gf100_gr_func
gp10b_gr
=
{
.
init
=
gp100_gr_init
,
.
init_gpc_mmu
=
gm200_gr_init_gpc_mmu
,
.
init_vsc_stream_master
=
gk104_gr_init_vsc_stream_master
,
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gp100_gr_init_rop_active_fbps
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_num_active_ltcs
=
gp10b_gr_init_num_active_ltcs
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
1
,
.
grctx
=
&
gp102_grctx
,
...
...
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