| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 1 个月前 |
Interface List
- dcmiv2_init
- dcmiv2_get_device_list
- dcmiv2_get_all_device_count
- dcmiv2_get_dcmi_version
- dcmiv2_get_driver_version
- dcmiv2_get_vrd_version
- dcmiv2_get_device_compatibility
- dcmiv2_get_device_boot_status
- dcmiv2_get_device_type
- dcmiv2_get_device_board_info
- dcmiv2_get_device_board_id
- dcmiv2_get_mainboard_id
- dcmiv2_get_urma_device_cnt
- dcmiv2_get_eid_list_by_urma_dev_index
- dcmiv2_get_device_chip_info
- dcmiv2_get_device_pcie_slot_id
- dcmiv2_get_device_ub_slot_id
- dcmiv2_get_device_elabel_info
- dcmiv2_get_device_die_id
- dcmiv2_get_device_power_info
- dcmiv2_get_device_system_time
- dcmiv2_get_device_temperature
- dcmiv2_get_device_voltage
- dcmiv2_get_device_flash_cnt
- dcmiv2_get_device_flash_info
- dcmiv2_get_device_aicore_info
- dcmiv2_get_device_aicpu_info
- dcmiv2_get_device_pcie_info
- dcmiv2_get_device_pcie_error_cnt
- dcmiv2_get_device_ecc_info
- dcmiv2_get_multi_ecc_time_info
- dcmiv2_get_multi_ecc_record_info
- dcmiv2_get_device_component_cnt
- dcmiv2_get_device_component_list
- dcmiv2_get_device_component_static_version
- dcmiv2_get_device_cgroup_info
- dcmiv2_get_device_llc_perf_para
- dcmiv2_get_device_utilization_rate
- dcmiv2_get_device_multi_utilization_rate
- dcmiv2_get_device_sensor_info
- dcmiv2_get_device_info
- dcmiv2_get_device_user_config
- dcmiv2_get_device_frequency
- dcmiv2_get_device_hbm_info
- dcmiv2_get_device_hbm_product_info
- dcmiv2_get_slot_id_and_chip_id_by_dev_id
- dcmiv2_get_dev_id_by_slot_id_and_chip_id
- dcmiv2_get_group_intra_id_by_dev_id
- dcmiv2_get_chip_phy_id_by_dev_id
- dcmiv2_get_dev_id_by_chip_phy_id
- dcmiv2_get_topo_info_by_device_id
- dcmiv2_get_affinity_cpu_info_by_dev_id
- dcmiv2_get_device_outband_channel_state
- dcmiv2_get_computing_power_info
- dcmiv2_get_device_proc_mem_info
- dcmiv2_get_serdes_quality_info
- dcmiv2_get_attest_evidence
- dcmiv2_get_attest_cert
- dcmiv2_get_pfc_duration_info
- dcmiv2_get_pcie_link_bandwidth_info
- dcmiv2_get_netdev_pkt_stats_info
- dcmiv2_get_rdma_bandwidth_info
- dcmiv2_get_device_mac_cnt
- dcmiv2_get_ub_port_link_status
- dcmiv2_get_ub_realtime_bandwidth_info
- dcmiv2_exec_ub_ping
- dcmiv2_get_device_health
- dcmiv2_get_driver_health
- dcmiv2_get_device_error_code_list
- dcmiv2_get_device_error_info
- dcmiv2_get_driver_error_code_list
- dcmiv2_get_fault_event
- dcmiv2_get_device_current_fault_event
- dcmiv2_subscribe_fault_event
- dcmiv2_upgrade_vrd
- dcmiv2_set_device_info
- dcmiv2_revoke_device_sec_key
- dcmiv2_set_device_user_config
- dcmiv2_clear_device_user_config
- dcmiv2_clear_device_ecc_stats_info
- dcmiv2_clear_pfc_duration
- dcmiv2_pre_reset_device
- dcmiv2_reset_device
- dcmiv2_rescan_device
- return_codes
- faq
DCMI Description
Overview
This document describes the DaVinci Card Management Interfaces (DCMIs). You can use these APIs to perform operations such as device management, configuration management, and chip reset.
This document applies to the Atlas 350 accelerator card.
Deployment Scenario Description
-
If a specific deployment scenario is not mentioned in the command or API description within this document, it indicates that the product does not support that scenario, and no such support is currently planned.
-
In the Support in different deployment scenarios tables in this document, Y means "supported", N means "not supported", and NA means "not applicable", indicating that the scenario is not planned.
-
If a specific deployment scenario is not mentioned in the command or API description within this document, it indicates that the product does not support that scenario, and no such support is currently planned.
-
In the "Support by Deployment Scenario" table in this document, Y means "supported", N means "not supported", and NA means "not applicable", indicating that the scenario is not planned.
Table 1 Deployment Scenario Definitions and Descriptions
Usage Precautions
- DCMIs cannot be concurrently used by multiple threads.
- You are advised to compile DCMI-related executable files in a matching execution environment. Otherwise, glibc versions may be incompatible. Unless otherwise specified, containers in this document refer to unprivileged containers.
- Starting from Ascend 950, DCMIs have been reconstructed. The core optimization of the reconstruction is to unify card_id and device_id into dev_id (logical ID of the software) to improve API consistency and usability. The details are as follows:
- For Ascend 950, the dcmiv2_xx APIs must be used, and the dcmi_xx APIs are no longer supported.
- For generations before Ascend 950, the dcmi_xx APIs are still used without being affected by the reconstruction.
Chip Reset API Description
In-band reset: Resets Ascend AI Processors through the standard PCIe hot reset process. The involved API is dcmiv2_reset_device (channel_type is set to 1).
Note:
Before calling the chip reset API, stop NPU-related services on the chip. NPU-related services can be queried using fuser. For details, see Querying NPU Service Processes. Wait for 3 seconds after calling dcmiv2_reset_device, and then call dcmiv2_rescan_device.