Lines Matching refs:status

421 			dev_err(hdev->dev, "Device CPU packet timeout (status = 0x%x)\n", tmp);
729 dev_dbg(hdev->dev, "device unusable status is set\n");
827 /* Some of the firmware status codes are deprecated in newer f/w
1372 u32 status, cpu_boot_status_reg, cpu_timeout;
1394 status,
1395 status == CPU_BOOT_STATUS_IN_WFE,
1399 dev_err(hdev->dev, "Current status=%u. Timed-out updating to WFE\n",
1400 status);
1416 static void detect_cpu_boot_status(struct hl_device *hdev, u32 status)
1418 /* Some of the status codes below are deprecated in newer f/w
1421 switch (status) {
1464 "Device boot progress - Invalid or unexpected status code %d\n", status);
1472 u32 status;
1480 * All other status values - for older firmwares where the uboot was
1486 status,
1487 (status == CPU_BOOT_STATUS_NIC_FW_RDY) ||
1488 (status == CPU_BOOT_STATUS_READY_TO_BOOT) ||
1489 (status == CPU_BOOT_STATUS_WAITING_FOR_BOOT_FIT),
1494 detect_cpu_boot_status(hdev, status);
1495 dev_err(hdev->dev, "CPU boot ready timeout (status = %d)\n", status);
1500 if (status != -1)
1649 * 1. preboot - a. Check whether the security status bits are valid
1652 * 2. boot cpu - a. Fetch boot cpu security status
1654 * 3. FW application - a. Fetch fw application security status
1708 /* no need to read preboot status in dynamic load */
1715 /* associate string with COMM status */
1726 * hl_fw_dynamic_report_error_status - report error status
1729 * @status: value of FW status register
1730 * @expected_status: the expected status
1733 u32 status,
1737 FIELD_GET(COMMS_STATUS_STATUS_MASK, status);
1740 dev_err(hdev->dev, "Device status %s, expected status: %s\n",
1744 dev_err(hdev->dev, "Device status unknown %d, expected status: %s\n",
1785 * @status: the status read from CPU status register
1792 u32 status)
1794 response->status = FIELD_GET(COMMS_STATUS_STATUS_MASK, status);
1795 response->ram_offset = FIELD_GET(COMMS_STATUS_OFFSET_MASK, status) <<
1797 response->ram_type = FIELD_GET(COMMS_STATUS_RAM_TYPE_MASK, status);
1801 dev_err(hdev->dev, "FW status: invalid RAM type %u\n",
1810 * hl_fw_dynamic_wait_for_status - wait for status in dynamic FW load
1814 * @expected_status: expected status to wait for
1815 * @timeout: timeout for status wait
1819 * waiting for status from FW include polling the FW status register until
1820 * expected status is received or timeout occurs (whatever occurs first).
1828 u32 status;
1835 /* Wait for expected status */
1839 status,
1840 FIELD_GET(COMMS_STATUS_STATUS_MASK, status) == expected_status,
1845 hl_fw_dynamic_report_error_status(hdev, status,
1854 * FW status
1861 status);
1873 * after command cycle between LKD to FW CPU (i.e. LKD got an expected status
1874 * from FW) we need to clear the CPU status register in order to avoid garbage
1876 * This is done by sending clear command and polling the CPU to LKD status
1877 * register to hold the status NOOP
1896 * @timeout: timeout for status wait
1902 * - send clear (clear command and verify clear status register)
1913 * send clear: this is necessary in order to clear the status register to avoid
2383 * @cpu_boot_dev_sts0_reg: register holding CPU boot dev status 0
2384 * @cpu_boot_dev_sts1_reg: register holding CPU boot dev status 1
2396 /* Read boot_cpu status bits */
2513 u32 status;
2529 status,
2530 (status == CPU_BOOT_STATUS_READY_TO_BOOT) ||
2531 (status == CPU_BOOT_STATUS_SRAM_AVAIL),
2535 dev_err(hdev->dev, "failed to wait for boot (status = %d)\n", status);
2539 dev_dbg(hdev->dev, "uboot status = %d\n", status);
2547 u32 status;
2557 status,
2558 (status == CPU_BOOT_STATUS_SRAM_AVAIL),
2562 dev_err(hdev->dev, "failed to wait for Linux (status = %d)\n", status);
2566 dev_dbg(hdev->dev, "Boot status = %d\n", status);
2576 * Therefore reading boot device status in any of
2580 * @cpu_boot_dev_sts0_reg: register holding CPU boot dev status 0
2581 * @cpu_boot_dev_sts1_reg: register holding CPU boot dev status 1
2701 * - FW status register
2705 * in case of timeout expiration without the desired status from FW- the
2872 u32 cpu_msg_status_reg, cpu_timeout, msg_to_cpu_reg, status;
2899 status,
2900 status == CPU_BOOT_STATUS_WAITING_FOR_BOOT_FIT,
2906 "No boot fit request received (status = %d), resuming boot\n", status);
2912 /* Clear device CPU message status */
2922 status,
2923 status == CPU_MSG_OK,
2929 "Timeout waiting for boot fit load ack (status = %d)\n", status);
2948 status,
2949 (status == CPU_BOOT_STATUS_DRAM_RDY) ||
2950 (status == CPU_BOOT_STATUS_NIC_FW_RDY) ||
2951 (status == CPU_BOOT_STATUS_READY_TO_BOOT) ||
2952 (status == CPU_BOOT_STATUS_SRAM_AVAIL),
2956 dev_dbg(hdev->dev, "uboot status = %d\n", status);
2966 detect_cpu_boot_status(hdev, status);
2982 if (status == CPU_BOOT_STATUS_SRAM_AVAIL) {
3000 status,
3001 (status == CPU_BOOT_STATUS_BMC_WAITING_SKIPPED),
3007 "Failed to get ACK on skipping BMC (status = %d)\n",
3008 status);
3020 status,
3021 (status == CPU_BOOT_STATUS_SRAM_AVAIL),
3029 if (status == CPU_BOOT_STATUS_FIT_CORRUPTED)
3034 "Failed to load firmware to device (status = %d)\n",
3035 status);