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
f3ef80c0
Commit
f3ef80c0
authored
May 08, 2018
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gr/gf100-: virtualise init_tex_hww_esr
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
70d21482
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
31 additions
and
5 deletions
+31
-5
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+10
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
+2
-0
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
-1
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
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp107.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp10b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp10b.c
+1
-0
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
View file @
f3ef80c0
...
@@ -1914,6 +1914,13 @@ gf100_gr_new_(const struct gf100_gr_func *func, struct nvkm_device *device,
...
@@ -1914,6 +1914,13 @@ gf100_gr_new_(const struct gf100_gr_func *func, struct nvkm_device *device,
return
0
;
return
0
;
}
}
void
gf100_gr_init_tex_hww_esr
(
struct
gf100_gr
*
gr
,
int
tpc
,
int
gpc
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x224
),
0xc0000000
);
}
void
void
gf100_gr_init_419eb4
(
struct
gf100_gr
*
gr
)
gf100_gr_init_419eb4
(
struct
gf100_gr
*
gr
)
{
{
...
@@ -2082,7 +2089,8 @@ gf100_gr_init(struct gf100_gr *gr)
...
@@ -2082,7 +2089,8 @@ gf100_gr_init(struct gf100_gr *gr)
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_nr
[
gpc
];
tpc
++
)
{
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_nr
[
gpc
];
tpc
++
)
{
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x508
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x508
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x224
),
0xc0000000
);
if
(
gr
->
func
->
init_tex_hww_esr
)
gr
->
func
->
init_tex_hww_esr
(
gr
,
gpc
,
tpc
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x084
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x084
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x644
),
0x001ffffe
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x644
),
0x001ffffe
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x64c
),
0x0000000f
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x64c
),
0x0000000f
);
...
@@ -2143,6 +2151,7 @@ gf100_gr = {
...
@@ -2143,6 +2151,7 @@ gf100_gr = {
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gf100_gr_pack_mmio
,
.
mmio
=
gf100_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
View file @
f3ef80c0
...
@@ -138,6 +138,7 @@ struct gf100_gr_func {
...
@@ -138,6 +138,7 @@ struct gf100_gr_func {
void
(
*
init_419eb4
)(
struct
gf100_gr
*
);
void
(
*
init_419eb4
)(
struct
gf100_gr
*
);
void
(
*
init_419c9c
)(
struct
gf100_gr
*
);
void
(
*
init_419c9c
)(
struct
gf100_gr
*
);
void
(
*
init_ppc_exceptions
)(
struct
gf100_gr
*
);
void
(
*
init_ppc_exceptions
)(
struct
gf100_gr
*
);
void
(
*
init_tex_hww_esr
)(
struct
gf100_gr
*
,
int
gpc
,
int
tpc
);
void
(
*
set_hww_esr_report_mask
)(
struct
gf100_gr
*
);
void
(
*
set_hww_esr_report_mask
)(
struct
gf100_gr
*
);
const
struct
gf100_gr_pack
*
mmio
;
const
struct
gf100_gr_pack
*
mmio
;
struct
{
struct
{
...
@@ -162,6 +163,7 @@ void gf100_gr_init_fecs_exceptions(struct gf100_gr *);
...
@@ -162,6 +163,7 @@ void gf100_gr_init_fecs_exceptions(struct gf100_gr *);
void
gf100_gr_init_40601c
(
struct
gf100_gr
*
);
void
gf100_gr_init_40601c
(
struct
gf100_gr
*
);
void
gf100_gr_init_419cc0
(
struct
gf100_gr
*
);
void
gf100_gr_init_419cc0
(
struct
gf100_gr
*
);
void
gf100_gr_init_419eb4
(
struct
gf100_gr
*
);
void
gf100_gr_init_419eb4
(
struct
gf100_gr
*
);
void
gf100_gr_init_tex_hww_esr
(
struct
gf100_gr
*
,
int
,
int
);
void
gf117_gr_init_zcull
(
struct
gf100_gr
*
);
void
gf117_gr_init_zcull
(
struct
gf100_gr
*
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
View file @
f3ef80c0
...
@@ -123,6 +123,7 @@ gf104_gr = {
...
@@ -123,6 +123,7 @@ gf104_gr = {
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gf104_gr_pack_mmio
,
.
mmio
=
gf104_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
View file @
f3ef80c0
...
@@ -121,6 +121,7 @@ gf108_gr = {
...
@@ -121,6 +121,7 @@ gf108_gr = {
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gf108_gr_pack_mmio
,
.
mmio
=
gf108_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf110.c
View file @
f3ef80c0
...
@@ -95,6 +95,7 @@ gf110_gr = {
...
@@ -95,6 +95,7 @@ gf110_gr = {
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gf110_gr_pack_mmio
,
.
mmio
=
gf110_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c
View file @
f3ef80c0
...
@@ -159,6 +159,7 @@ gf117_gr = {
...
@@ -159,6 +159,7 @@ gf117_gr = {
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gf117_gr_pack_mmio
,
.
mmio
=
gf117_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf117_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf117_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf117_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf117_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf119.c
View file @
f3ef80c0
...
@@ -186,6 +186,7 @@ gf119_gr = {
...
@@ -186,6 +186,7 @@ gf119_gr = {
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gf119_gr_pack_mmio
,
.
mmio
=
gf119_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
View file @
f3ef80c0
...
@@ -473,7 +473,7 @@ gk104_gr_init(struct gf100_gr *gr)
...
@@ -473,7 +473,7 @@ gk104_gr_init(struct gf100_gr *gr)
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_nr
[
gpc
];
tpc
++
)
{
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_nr
[
gpc
];
tpc
++
)
{
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x508
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x508
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x224
),
0xc0000000
);
gr
->
func
->
init_tex_hww_esr
(
gr
,
gpc
,
tpc
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x084
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x084
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x644
),
0x001ffffe
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x644
),
0x001ffffe
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x64c
),
0x0000000f
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x64c
),
0x0000000f
);
...
@@ -536,6 +536,7 @@ gk104_gr = {
...
@@ -536,6 +536,7 @@ gk104_gr = {
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gk104_gr_pack_mmio
,
.
mmio
=
gk104_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk104_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gk104_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk104_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gk104_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
View file @
f3ef80c0
...
@@ -361,6 +361,7 @@ gk110_gr = {
...
@@ -361,6 +361,7 @@ gk110_gr = {
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419eb4
=
gk110_gr_init_419eb4
,
.
init_419eb4
=
gk110_gr_init_419eb4
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gk110_gr_pack_mmio
,
.
mmio
=
gk110_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk110_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gk110_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
View file @
f3ef80c0
...
@@ -113,6 +113,7 @@ gk110b_gr = {
...
@@ -113,6 +113,7 @@ gk110b_gr = {
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419eb4
=
gk110_gr_init_419eb4
,
.
init_419eb4
=
gk110_gr_init_419eb4
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gk110b_gr_pack_mmio
,
.
mmio
=
gk110b_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk110_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gk110_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
View file @
f3ef80c0
...
@@ -171,6 +171,7 @@ gk208_gr = {
...
@@ -171,6 +171,7 @@ gk208_gr = {
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gk208_gr_pack_mmio
,
.
mmio
=
gk208_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk208_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gk208_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk208_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gk208_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
View file @
f3ef80c0
...
@@ -393,7 +393,7 @@ gm107_gr_init(struct gf100_gr *gr)
...
@@ -393,7 +393,7 @@ gm107_gr_init(struct gf100_gr *gr)
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_nr
[
gpc
];
tpc
++
)
{
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_nr
[
gpc
];
tpc
++
)
{
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x508
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x508
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x224
),
0xc0000000
);
gr
->
func
->
init_tex_hww_esr
(
gr
,
gpc
,
tpc
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x084
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x084
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x430
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x430
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x644
),
0x00dffffe
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x644
),
0x00dffffe
);
...
@@ -458,6 +458,7 @@ gm107_gr = {
...
@@ -458,6 +458,7 @@ gm107_gr = {
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
mmio
=
gm107_gr_pack_mmio
,
.
mmio
=
gm107_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gm107_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gm107_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gm107_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gm107_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
View file @
f3ef80c0
...
@@ -121,7 +121,7 @@ gm200_gr_init(struct gf100_gr *gr)
...
@@ -121,7 +121,7 @@ gm200_gr_init(struct gf100_gr *gr)
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_nr
[
gpc
];
tpc
++
)
{
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_nr
[
gpc
];
tpc
++
)
{
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x508
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x508
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x224
),
0xc0000000
);
gr
->
func
->
init_tex_hww_esr
(
gr
,
gpc
,
tpc
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x084
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x084
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x430
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x430
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x644
),
0x00dffffe
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x644
),
0x00dffffe
);
...
@@ -204,6 +204,7 @@ gm200_gr = {
...
@@ -204,6 +204,7 @@ gm200_gr = {
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
rops
=
gm200_gr_rops
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
2
,
.
ppc_nr
=
2
,
.
grctx
=
&
gm200_grctx
,
.
grctx
=
&
gm200_grctx
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
View file @
f3ef80c0
...
@@ -101,7 +101,7 @@ gp100_gr_init(struct gf100_gr *gr)
...
@@ -101,7 +101,7 @@ gp100_gr_init(struct gf100_gr *gr)
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_nr
[
gpc
];
tpc
++
)
{
for
(
tpc
=
0
;
tpc
<
gr
->
tpc_nr
[
gpc
];
tpc
++
)
{
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x508
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x508
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0xffffffff
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x224
),
0xc0000000
);
gr
->
func
->
init_tex_hww_esr
(
gr
,
gpc
,
tpc
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x084
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x084
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x430
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x430
),
0xc0000000
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x644
),
0x00dffffe
);
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x644
),
0x00dffffe
);
...
@@ -144,6 +144,7 @@ gp100_gr = {
...
@@ -144,6 +144,7 @@ gp100_gr = {
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419c9c
=
gp100_gr_init_419c9c
,
.
init_419c9c
=
gp100_gr_init_419c9c
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
rops
=
gm200_gr_rops
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
2
,
.
ppc_nr
=
2
,
.
grctx
=
&
gp100_grctx
,
.
grctx
=
&
gp100_grctx
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
View file @
f3ef80c0
...
@@ -54,6 +54,7 @@ gp102_gr = {
...
@@ -54,6 +54,7 @@ gp102_gr = {
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
rops
=
gm200_gr_rops
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
3
,
.
ppc_nr
=
3
,
.
grctx
=
&
gp102_grctx
,
.
grctx
=
&
gp102_grctx
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp107.c
View file @
f3ef80c0
...
@@ -40,6 +40,7 @@ gp107_gr = {
...
@@ -40,6 +40,7 @@ gp107_gr = {
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
rops
=
gm200_gr_rops
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
1
,
.
ppc_nr
=
1
,
.
grctx
=
&
gp107_grctx
,
.
grctx
=
&
gp107_grctx
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp10b.c
View file @
f3ef80c0
...
@@ -38,6 +38,7 @@ gp10b_gr = {
...
@@ -38,6 +38,7 @@ gp10b_gr = {
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_419cc0
=
gf100_gr_init_419cc0
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
rops
=
gm200_gr_rops
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
1
,
.
ppc_nr
=
1
,
.
grctx
=
&
gp102_grctx
,
.
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