xref: /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/gb100.c (revision b08494a8f7416e5f09907318c5460ad6f6e2a548)
1 /* SPDX-License-Identifier: MIT
2  *
3  * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
4  */
5 #include "priv.h"
6 
7 static const struct nvkm_gsp_func
8 gb100_gsp = {
9 	.flcn = &ga102_gsp_flcn,
10 
11 	.sig_section = ".fwsignature_gb10x",
12 
13 	.dtor = r535_gsp_dtor,
14 	.oneinit = gh100_gsp_oneinit,
15 	.init = gh100_gsp_init,
16 	.fini = gh100_gsp_fini,
17 
18 	.rm.gpu = &gb10x_gpu,
19 };
20 
21 static struct nvkm_gsp_fwif
22 gb100_gsps[] = {
23 	{ 0, gh100_gsp_load, &gb100_gsp, &r570_rm_gb10x, "570.144", true },
24 	{}
25 };
26 
27 int
28 gb100_gsp_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
29 	      struct nvkm_gsp **pgsp)
30 {
31 	return nvkm_gsp_new_(gb100_gsps, device, type, inst, pgsp);
32 }
33 
34 NVKM_GSP_FIRMWARE_FMC(gb100, 570.144);
35 NVKM_GSP_FIRMWARE_FMC(gb102, 570.144);
36