accel/habanalabs: unsecure TPC bias registers
authorOfir Bitton <obitton@habana.ai>
Thu, 13 Apr 2023 08:22:06 +0000 (11:22 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 5 Jun 2023 12:31:34 +0000 (15:31 +0300)
User needs to be able to perform downcast / upcast of fp8_143 dtype.
Hence bias register needs to be accessed by the user.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2_security.c

index 52a12c2..fadb870 100644 (file)
@@ -1542,6 +1542,7 @@ static const u32 gaudi2_pb_dcr0_tpc0_unsecured_regs[] = {
        mmDCORE0_TPC0_CFG_LUT_FUNC128_BASE2_ADDR_HI,
        mmDCORE0_TPC0_CFG_LUT_FUNC256_BASE2_ADDR_LO,
        mmDCORE0_TPC0_CFG_LUT_FUNC256_BASE2_ADDR_HI,
+       mmDCORE0_TPC0_CFG_FP8_143_BIAS,
        mmDCORE0_TPC0_CFG_ROUND_CSR,
        mmDCORE0_TPC0_CFG_CONV_ROUND_CSR,
        mmDCORE0_TPC0_CFG_SEMAPHORE,