Skip to content

Commit 90e2e96

Browse files
thierryredingBen Skeggs
authored andcommitted
drm/nouveau/gr/gp10b: Use gp100_grctx and gp100_gr_zbc
gp10b doesn't have all the registers that gp102_gr_zbc wants to access, which causes IBUS MMIO faults to occur. Avoid this by using the gp100 variants of grctx and gr_zbc. Signed-off-by: Thierry Reding <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
1 parent 89b3425 commit 90e2e96

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ void gp100_gr_init_fecs_exceptions(struct gf100_gr *);
238238
void gp100_gr_init_shader_exceptions(struct gf100_gr *, int, int);
239239
void gp100_gr_zbc_clear_color(struct gf100_gr *, int);
240240
void gp100_gr_zbc_clear_depth(struct gf100_gr *, int);
241+
extern const struct gf100_gr_func_zbc gp100_gr_zbc;
241242

242243
void gp102_gr_init_swdx_pes_mask(struct gf100_gr *);
243244
extern const struct gf100_gr_func_zbc gp102_gr_zbc;

drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ gp100_gr_zbc_clear_depth(struct gf100_gr *gr, int zbc)
6262
gr->zbc_depth[zbc].format << ((znum % 4) * 7));
6363
}
6464

65-
static const struct gf100_gr_func_zbc
65+
const struct gf100_gr_func_zbc
6666
gp100_gr_zbc = {
6767
.clear_color = gp100_gr_zbc_clear_color,
6868
.clear_depth = gp100_gr_zbc_clear_depth,

drivers/gpu/drm/nouveau/nvkm/engine/gr/gp10b.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ gp10b_gr = {
6060
.gpc_nr = 1,
6161
.tpc_nr = 2,
6262
.ppc_nr = 1,
63-
.grctx = &gp102_grctx,
64-
.zbc = &gp102_gr_zbc,
63+
.grctx = &gp100_grctx,
64+
.zbc = &gp100_gr_zbc,
6565
.sclass = {
6666
{ -1, -1, FERMI_TWOD_A },
6767
{ -1, -1, KEPLER_INLINE_TO_MEMORY_B },

0 commit comments

Comments
 (0)