Lines Matching refs:ras_context
285 psp_ta_free_shared_buf(&psp->ras_context.context.mem_context); in psp_free_shared_bufs()
1569 (struct ta_ras_shared_memory *)psp->ras_context.context.mem_context.shared_buf; in psp_ras_ta_check_status()
1604 mutex_lock(&psp->ras_context.mutex); in psp_ras_send_cmd()
1605 ras_cmd = (struct ta_ras_shared_memory *)psp->ras_context.context.mem_context.shared_buf; in psp_ras_send_cmd()
1649 mutex_unlock(&psp->ras_context.mutex); in psp_ras_send_cmd()
1659 ras_cmd = (struct ta_ras_shared_memory *)psp->ras_context.context.mem_context.shared_buf; in psp_ras_invoke()
1667 ret = psp_ta_invoke(psp, ta_cmd_id, &psp->ras_context.context); in psp_ras_invoke()
1698 if (!psp->ras_context.context.initialized || !info) in psp_ras_enable_features()
1720 if (!psp->ras_context.context.initialized) in psp_ras_terminate()
1723 ret = psp_ta_unload(psp, &psp->ras_context.context); in psp_ras_terminate()
1725 psp->ras_context.context.initialized = false; in psp_ras_terminate()
1727 mutex_destroy(&psp->ras_context.mutex); in psp_ras_terminate()
1745 if (!adev->psp.ras_context.context.bin_desc.size_bytes || in psp_ras_initialize()
1746 !adev->psp.ras_context.context.bin_desc.start_addr) { in psp_ras_initialize()
1791 psp->ras_context.context.mem_context.shared_mem_size = PSP_RAS_SHARED_MEM_SIZE; in psp_ras_initialize()
1792 psp->ras_context.context.ta_load_type = GFX_CMD_ID_LOAD_TA; in psp_ras_initialize()
1794 if (!psp->ras_context.context.mem_context.shared_buf) { in psp_ras_initialize()
1795 ret = psp_ta_init_shared_buf(psp, &psp->ras_context.context.mem_context); in psp_ras_initialize()
1800 ras_cmd = (struct ta_ras_shared_memory *)psp->ras_context.context.mem_context.shared_buf; in psp_ras_initialize()
1811 ret = psp_ta_load(psp, &psp->ras_context.context); in psp_ras_initialize()
1814 psp->ras_context.context.initialized = true; in psp_ras_initialize()
1815 mutex_init(&psp->ras_context.mutex); in psp_ras_initialize()
1821 psp->ras_context.context.initialized = false; in psp_ras_initialize()
1835 if (!psp->ras_context.context.initialized || !info) in psp_ras_trigger_error()
1884 if (!psp->ras_context.context.initialized || in psp_ras_query_address()
2732 struct amdgpu_ras *ras = psp->ras_context.ras; in psp_load_smu_fw()
3552 psp->ras_context.context.bin_desc.fw_version = le32_to_cpu(desc->fw_version); in parse_ta_bin_descriptor()
3553 psp->ras_context.context.bin_desc.size_bytes = le32_to_cpu(desc->size_bytes); in parse_ta_bin_descriptor()
3554 psp->ras_context.context.bin_desc.start_addr = ucode_start_addr; in parse_ta_bin_descriptor()
3605 adev->psp.ras_context.context.bin_desc.fw_version = in parse_ta_v1_microcode()
3607 adev->psp.ras_context.context.bin_desc.size_bytes = in parse_ta_v1_microcode()
3609 adev->psp.ras_context.context.bin_desc.start_addr = in parse_ta_v1_microcode()