Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/drivers/accel/ivpu/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 987 B image not shown  

Quelle  ivpu_coredump.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2020-2024 Intel Corporation
 */


#include <linux/devcoredump.h>
#include <linux/firmware.h>

#include "ivpu_coredump.h"
#include "ivpu_fw.h"
#include "ivpu_gem.h"
#include "vpu_boot_api.h"

#define CRASH_DUMP_HEADER "Intel NPU crash dump"
#define CRASH_DUMP_HEADERS_SIZE SZ_4K

void ivpu_dev_coredump(struct ivpu_device *vdev)
{
 struct drm_print_iterator pi = {};
 struct drm_printer p;
 size_t coredump_size;
 char *coredump;

 coredump_size = CRASH_DUMP_HEADERS_SIZE + FW_VERSION_HEADER_SIZE +
   ivpu_bo_size(vdev->fw->mem_log_crit) + ivpu_bo_size(vdev->fw->mem_log_verb);
 coredump = vmalloc(coredump_size);
 if (!coredump)
  return;

 pi.data = coredump;
 pi.remain = coredump_size;
 p = drm_coredump_printer(&pi);

 drm_printf(&p, "%s\n", CRASH_DUMP_HEADER);
 drm_printf(&p, "FW version: %s\n", vdev->fw->version);
 ivpu_fw_log_print(vdev, false, &p);

 dev_coredumpv(vdev->drm.dev, coredump, pi.offset, GFP_KERNEL);
}

Messung V0.5
C=95 H=94 G=94

¤ Dauer der Verarbeitung: 0.2 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.