From 36762bd02d5b21bfac4737d94a449f92aff9f992 Mon Sep 17 00:00:00 2001 From: aboba Date: Thu, 13 Aug 2026 01:40:56 +0300 Subject: [PATCH] change cmp170 gpu name --- driver/src/cmpunlock.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/driver/src/cmpunlock.c b/driver/src/cmpunlock.c index 016a83c..5868ee2 100644 --- a/driver/src/cmpunlock.c +++ b/driver/src/cmpunlock.c @@ -753,6 +753,22 @@ cmpUnlockFixStaticInfo(OBJGPU *pGpu, KernelGsp *pKernelGsp) NV_PRINTF(LEVEL_ERROR, "CMPUNLOCK: static-info AFTER: fb_length=0x%llx last_limit=0x%llx\n", pGSCI->fb_length, pLastRegion->limit); + + /* Override the GPU name string. + * GSP firmware reports "NVIDIA Graphics Device" for CMP SKUs. + * Set a proper product name with the unlocked memory capacity. */ + { + NvU32 devId = pGpu->idInfo.PCIDeviceID >> 16; + const char *name = (devId == CMPUNLOCK_DEVID_8GB) + ? "NVIDIA CMP 170HX 64GB" + : "NVIDIA CMP 170HX 40GB"; + + portMemSet(pGSCI->gpuNameString, 0, sizeof(pGSCI->gpuNameString)); + portMemCopy(pGSCI->gpuNameString, sizeof(pGSCI->gpuNameString), + name, portStringLength(name) + 1); + + NV_PRINTF(LEVEL_WARNING, "CMPUNLOCK: GPU name -> \"%s\"\n", name); + } } /* ------------------------------------------------------------------------- -- 2.51.2