drm/nouveau/gr/gf100-: update 419eb0 where required
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Родитель
5b54b5b925
Коммит
ad45a92b9a
|
@ -1428,6 +1428,8 @@ gf100_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
|
|||
grctx->r419cb8(gr);
|
||||
if (grctx->r418800)
|
||||
grctx->r418800(gr);
|
||||
if (grctx->r419eb0)
|
||||
grctx->r419eb0(gr);
|
||||
}
|
||||
|
||||
#define CB_RESERVED 0x80000
|
||||
|
|
|
@ -66,6 +66,7 @@ struct gf100_grctx_func {
|
|||
/* misc other things */
|
||||
void (*r419cb8)(struct gf100_gr *);
|
||||
void (*r418800)(struct gf100_gr *);
|
||||
void (*r419eb0)(struct gf100_gr *);
|
||||
};
|
||||
|
||||
extern const struct gf100_grctx_func gf100_grctx;
|
||||
|
@ -111,6 +112,8 @@ void gk104_grctx_generate_unkn(struct gf100_gr *);
|
|||
void gk104_grctx_generate_r418800(struct gf100_gr *);
|
||||
|
||||
extern const struct gf100_grctx_func gk110_grctx;
|
||||
void gk110_grctx_generate_r419eb0(struct gf100_gr *);
|
||||
|
||||
extern const struct gf100_grctx_func gk110b_grctx;
|
||||
extern const struct gf100_grctx_func gk208_grctx;
|
||||
|
||||
|
|
|
@ -808,6 +808,13 @@ gk110_grctx_pack_ppc[] = {
|
|||
* PGRAPH context implementation
|
||||
******************************************************************************/
|
||||
|
||||
void
|
||||
gk110_grctx_generate_r419eb0(struct gf100_gr *gr)
|
||||
{
|
||||
struct nvkm_device *device = gr->base.engine.subdev.device;
|
||||
nvkm_mask(device, 0x419eb0, 0x00001000, 0x00001000);
|
||||
}
|
||||
|
||||
const struct gf100_grctx_func
|
||||
gk110_grctx = {
|
||||
.main = gk104_grctx_generate_main,
|
||||
|
@ -838,4 +845,5 @@ gk110_grctx = {
|
|||
.dist_skip_table = gf117_grctx_generate_dist_skip_table,
|
||||
.gpc_tpc_nr = gk104_grctx_generate_gpc_tpc_nr,
|
||||
.r418800 = gk104_grctx_generate_r418800,
|
||||
.r419eb0 = gk110_grctx_generate_r419eb0,
|
||||
};
|
||||
|
|
|
@ -99,4 +99,5 @@ gk110b_grctx = {
|
|||
.dist_skip_table = gf117_grctx_generate_dist_skip_table,
|
||||
.gpc_tpc_nr = gk104_grctx_generate_gpc_tpc_nr,
|
||||
.r418800 = gk104_grctx_generate_r418800,
|
||||
.r419eb0 = gk110_grctx_generate_r419eb0,
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче