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: Dalit Ben Zoor <dbenzoor@habana.ai> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
parent
0878a42086
commit
a691a1ebb5
|
@ -1436,6 +1436,7 @@ static void goya_init_golden_registers(struct hl_device *hdev)
|
||||||
*/
|
*/
|
||||||
WREG32(mmDMA_CH_0_CFG0, 0x0fff0010);
|
WREG32(mmDMA_CH_0_CFG0, 0x0fff0010);
|
||||||
WREG32(mmDMA_CH_1_CFG0, 0x0fff00F0);
|
WREG32(mmDMA_CH_1_CFG0, 0x0fff00F0);
|
||||||
|
WREG32(mmTPC_PLL_CLK_RLX_0, 0x200020);
|
||||||
|
|
||||||
goya->hw_cap_initialized |= HW_CAP_GOLDEN;
|
goya->hw_cap_initialized |= HW_CAP_GOLDEN;
|
||||||
}
|
}
|
||||||
|
@ -4458,6 +4459,7 @@ static int goya_context_switch(struct hl_device *hdev, u32 asid)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WREG32(mmTPC_PLL_CLK_RLX_0, 0x200020);
|
||||||
goya_mmu_prepare(hdev, asid);
|
goya_mmu_prepare(hdev, asid);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue