drm/nouveau/gr/gf100-: virtualise trap_mp
Required to support Volta. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
74b6068bd6
commit
5c05a58985
|
@ -1010,7 +1010,7 @@ static const struct nvkm_bitfield gf100_mp_global_error[] = {
|
|||
{}
|
||||
};
|
||||
|
||||
static void
|
||||
void
|
||||
gf100_gr_trap_mp(struct gf100_gr *gr, int gpc, int tpc)
|
||||
{
|
||||
struct nvkm_subdev *subdev = &gr->base.engine.subdev;
|
||||
|
@ -1046,7 +1046,7 @@ gf100_gr_trap_tpc(struct gf100_gr *gr, int gpc, int tpc)
|
|||
}
|
||||
|
||||
if (stat & 0x00000002) {
|
||||
gf100_gr_trap_mp(gr, gpc, tpc);
|
||||
gr->func->trap_mp(gr, gpc, tpc);
|
||||
stat &= ~0x00000002;
|
||||
}
|
||||
|
||||
|
@ -2176,6 +2176,7 @@ gf100_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_shader_exceptions = gf100_gr_init_shader_exceptions,
|
||||
.init_400054 = gf100_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gf100_gr_pack_mmio,
|
||||
.fecs.ucode = &gf100_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gf100_gr_gpccs_ucode,
|
||||
|
|
|
@ -145,6 +145,7 @@ struct gf100_gr_func {
|
|||
void (*init_504430)(struct gf100_gr *, int gpc, int tpc);
|
||||
void (*init_shader_exceptions)(struct gf100_gr *, int gpc, int tpc);
|
||||
void (*init_400054)(struct gf100_gr *);
|
||||
void (*trap_mp)(struct gf100_gr *, int gpc, int tpc);
|
||||
void (*set_hww_esr_report_mask)(struct gf100_gr *);
|
||||
const struct gf100_gr_pack *mmio;
|
||||
struct {
|
||||
|
@ -301,6 +302,7 @@ extern const struct gf100_gr_init gf100_gr_init_be_0[];
|
|||
extern const struct gf100_gr_init gf100_gr_init_fe_1[];
|
||||
extern const struct gf100_gr_init gf100_gr_init_pe_1[];
|
||||
void gf100_gr_init_gpc_mmu(struct gf100_gr *);
|
||||
void gf100_gr_trap_mp(struct gf100_gr *, int, int);
|
||||
|
||||
extern const struct gf100_gr_init gf104_gr_init_ds_0[];
|
||||
extern const struct gf100_gr_init gf104_gr_init_tex_0[];
|
||||
|
|
|
@ -126,6 +126,7 @@ gf104_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_shader_exceptions = gf100_gr_init_shader_exceptions,
|
||||
.init_400054 = gf100_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gf104_gr_pack_mmio,
|
||||
.fecs.ucode = &gf100_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gf100_gr_gpccs_ucode,
|
||||
|
|
|
@ -124,6 +124,7 @@ gf108_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_shader_exceptions = gf100_gr_init_shader_exceptions,
|
||||
.init_400054 = gf100_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gf108_gr_pack_mmio,
|
||||
.fecs.ucode = &gf100_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gf100_gr_gpccs_ucode,
|
||||
|
|
|
@ -98,6 +98,7 @@ gf110_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_shader_exceptions = gf100_gr_init_shader_exceptions,
|
||||
.init_400054 = gf100_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gf110_gr_pack_mmio,
|
||||
.fecs.ucode = &gf100_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gf100_gr_gpccs_ucode,
|
||||
|
|
|
@ -162,6 +162,7 @@ gf117_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_shader_exceptions = gf100_gr_init_shader_exceptions,
|
||||
.init_400054 = gf100_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gf117_gr_pack_mmio,
|
||||
.fecs.ucode = &gf117_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gf117_gr_gpccs_ucode,
|
||||
|
|
|
@ -189,6 +189,7 @@ gf119_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_shader_exceptions = gf100_gr_init_shader_exceptions,
|
||||
.init_400054 = gf100_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gf119_gr_pack_mmio,
|
||||
.fecs.ucode = &gf100_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gf100_gr_gpccs_ucode,
|
||||
|
|
|
@ -462,6 +462,7 @@ gk104_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_shader_exceptions = gf100_gr_init_shader_exceptions,
|
||||
.init_400054 = gf100_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gk104_gr_pack_mmio,
|
||||
.fecs.ucode = &gk104_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gk104_gr_gpccs_ucode,
|
||||
|
|
|
@ -364,6 +364,7 @@ gk110_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_shader_exceptions = gf100_gr_init_shader_exceptions,
|
||||
.init_400054 = gf100_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gk110_gr_pack_mmio,
|
||||
.fecs.ucode = &gk110_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gk110_gr_gpccs_ucode,
|
||||
|
|
|
@ -116,6 +116,7 @@ gk110b_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_shader_exceptions = gf100_gr_init_shader_exceptions,
|
||||
.init_400054 = gf100_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gk110b_gr_pack_mmio,
|
||||
.fecs.ucode = &gk110_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gk110_gr_gpccs_ucode,
|
||||
|
|
|
@ -174,6 +174,7 @@ gk208_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_shader_exceptions = gf100_gr_init_shader_exceptions,
|
||||
.init_400054 = gf100_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gk208_gr_pack_mmio,
|
||||
.fecs.ucode = &gk208_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gk208_gr_gpccs_ucode,
|
||||
|
|
|
@ -285,6 +285,7 @@ gk20a_gr = {
|
|||
.init = gk20a_gr_init,
|
||||
.init_zcull = gf117_gr_init_zcull,
|
||||
.init_rop_active_fbps = gk104_gr_init_rop_active_fbps,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.set_hww_esr_report_mask = gk20a_gr_set_hww_esr_report_mask,
|
||||
.rops = gf100_gr_rops,
|
||||
.ppc_nr = 1,
|
||||
|
|
|
@ -407,6 +407,7 @@ gm107_gr = {
|
|||
.init_504430 = gm107_gr_init_504430,
|
||||
.init_shader_exceptions = gm107_gr_init_shader_exceptions,
|
||||
.init_400054 = gm107_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.mmio = gm107_gr_pack_mmio,
|
||||
.fecs.ucode = &gm107_gr_fecs_ucode,
|
||||
.gpccs.ucode = &gm107_gr_gpccs_ucode,
|
||||
|
|
|
@ -133,6 +133,7 @@ gm200_gr = {
|
|||
.init_504430 = gm107_gr_init_504430,
|
||||
.init_shader_exceptions = gm107_gr_init_shader_exceptions,
|
||||
.init_400054 = gm107_gr_init_400054,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.rops = gm200_gr_rops,
|
||||
.tpc_nr = 4,
|
||||
.ppc_nr = 2,
|
||||
|
|
|
@ -68,6 +68,7 @@ gm20b_gr = {
|
|||
.init_zcull = gf117_gr_init_zcull,
|
||||
.init_gpc_mmu = gm20b_gr_init_gpc_mmu,
|
||||
.init_rop_active_fbps = gk104_gr_init_rop_active_fbps,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.set_hww_esr_report_mask = gm20b_gr_set_hww_esr_report_mask,
|
||||
.rops = gm200_gr_rops,
|
||||
.ppc_nr = 1,
|
||||
|
|
|
@ -79,6 +79,7 @@ gp100_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_504430 = gm107_gr_init_504430,
|
||||
.init_shader_exceptions = gp100_gr_init_shader_exceptions,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.rops = gm200_gr_rops,
|
||||
.gpc_nr = 6,
|
||||
.tpc_nr = 5,
|
||||
|
|
|
@ -57,6 +57,7 @@ gp102_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_504430 = gm107_gr_init_504430,
|
||||
.init_shader_exceptions = gp100_gr_init_shader_exceptions,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.rops = gm200_gr_rops,
|
||||
.gpc_nr = 6,
|
||||
.tpc_nr = 5,
|
||||
|
|
|
@ -41,6 +41,7 @@ gp104_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_504430 = gm107_gr_init_504430,
|
||||
.init_shader_exceptions = gp100_gr_init_shader_exceptions,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.rops = gm200_gr_rops,
|
||||
.gpc_nr = 6,
|
||||
.tpc_nr = 5,
|
||||
|
|
|
@ -43,6 +43,7 @@ gp107_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_504430 = gm107_gr_init_504430,
|
||||
.init_shader_exceptions = gp100_gr_init_shader_exceptions,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.rops = gm200_gr_rops,
|
||||
.gpc_nr = 2,
|
||||
.tpc_nr = 3,
|
||||
|
|
|
@ -41,6 +41,7 @@ gp10b_gr = {
|
|||
.init_tex_hww_esr = gf100_gr_init_tex_hww_esr,
|
||||
.init_504430 = gm107_gr_init_504430,
|
||||
.init_shader_exceptions = gp100_gr_init_shader_exceptions,
|
||||
.trap_mp = gf100_gr_trap_mp,
|
||||
.rops = gm200_gr_rops,
|
||||
.gpc_nr = 1,
|
||||
.tpc_nr = 2,
|
||||
|
|
Loading…
Reference in New Issue