Commit a691a1eb authored by Dalit Ben Zoor's avatar Dalit Ben Zoor Committed by Oded Gabbay

habanalabs: set new golden value to tpc clock relaxation

On init or context switch, set TPC clock relaxation counter
register to a golden value.
Signed-off-by: default avatarDalit Ben Zoor <dbenzoor@habana.ai>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 0878a420
......@@ -1436,6 +1436,7 @@ static void goya_init_golden_registers(struct hl_device *hdev)
*/
WREG32(mmDMA_CH_0_CFG0, 0x0fff0010);
WREG32(mmDMA_CH_1_CFG0, 0x0fff00F0);
WREG32(mmTPC_PLL_CLK_RLX_0, 0x200020);
goya->hw_cap_initialized |= HW_CAP_GOLDEN;
}
......@@ -4458,6 +4459,7 @@ static int goya_context_switch(struct hl_device *hdev, u32 asid)
return rc;
}
WREG32(mmTPC_PLL_CLK_RLX_0, 0x200020);
goya_mmu_prepare(hdev, asid);
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment