Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/drivers/gpu/drm/nouveau/nvkm/subdev/fsp/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 988 B image not shown  

Quelle  gb202.c   Sprache: C

 
/* SPDX-License-Identifier: MIT
 *
 * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
 */

#include "priv.h"

#include <nvhw/drf.h>
#include <nvhw/ref/gb202/dev_therm.h>

static int
gb202_fsp_wait_secure_boot(struct nvkm_fsp *fsp)
{
 struct nvkm_device *device = fsp->subdev.device;
 unsigned timeout_ms = 4000;

 do {
  u32 status = NVKM_RD32(device, NV_THERM, I2CS_SCRATCH, FSP_BOOT_COMPLETE_STATUS);

  if (status == NV_THERM_I2CS_SCRATCH_FSP_BOOT_COMPLETE_STATUS_SUCCESS)
   return 0;

  usleep_range(1000, 2000);
 } while (timeout_ms--);

 return -ETIMEDOUT;
}

static const struct nvkm_fsp_func
gb202_fsp = {
 .wait_secure_boot = gb202_fsp_wait_secure_boot,
 .cot = {
  .version = 2,
  .size_hash = 48,
  .size_pkey = 97,
  .size_sig = 96,
  .boot_gsp_fmc = gh100_fsp_boot_gsp_fmc,
 },
};

int
gb202_fsp_new(struct nvkm_device *device,
       enum nvkm_subdev_type type, int inst, struct nvkm_fsp **pfsp)
{
 return nvkm_fsp_new_(&gb202_fsp, device, type, inst, pfsp);
}

Messung V0.5
C=88 H=90 G=88

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.