forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/nouveau/nvkm/engine/gr/gp107.c
....@@ -26,7 +26,7 @@
2626
2727 #include <nvif/class.h>
2828
29
-static const struct gf100_gr_func
29
+const struct gf100_gr_func
3030 gp107_gr = {
3131 .oneinit_tiles = gm200_gr_oneinit_tiles,
3232 .oneinit_sm_id = gm200_gr_oneinit_sm_id,
....@@ -61,8 +61,28 @@
6161 }
6262 };
6363
64
+MODULE_FIRMWARE("nvidia/gp107/gr/fecs_bl.bin");
65
+MODULE_FIRMWARE("nvidia/gp107/gr/fecs_inst.bin");
66
+MODULE_FIRMWARE("nvidia/gp107/gr/fecs_data.bin");
67
+MODULE_FIRMWARE("nvidia/gp107/gr/fecs_sig.bin");
68
+MODULE_FIRMWARE("nvidia/gp107/gr/gpccs_bl.bin");
69
+MODULE_FIRMWARE("nvidia/gp107/gr/gpccs_inst.bin");
70
+MODULE_FIRMWARE("nvidia/gp107/gr/gpccs_data.bin");
71
+MODULE_FIRMWARE("nvidia/gp107/gr/gpccs_sig.bin");
72
+MODULE_FIRMWARE("nvidia/gp107/gr/sw_ctx.bin");
73
+MODULE_FIRMWARE("nvidia/gp107/gr/sw_nonctx.bin");
74
+MODULE_FIRMWARE("nvidia/gp107/gr/sw_bundle_init.bin");
75
+MODULE_FIRMWARE("nvidia/gp107/gr/sw_method_init.bin");
76
+
77
+static const struct gf100_gr_fwif
78
+gp107_gr_fwif[] = {
79
+ { 0, gm200_gr_load, &gp107_gr, &gm200_gr_fecs_acr, &gm200_gr_gpccs_acr },
80
+ { -1, gm200_gr_nofw },
81
+ {}
82
+};
83
+
6484 int
6585 gp107_gr_new(struct nvkm_device *device, int index, struct nvkm_gr **pgr)
6686 {
67
- return gm200_gr_new_(&gp107_gr, device, index, pgr);
87
+ return gf100_gr_new_(gp107_gr_fwif, device, index, pgr);
6888 }