accel/ivpu: Remove VPU_CPU_NOC_* register access from NPU6 onward
PATCH 1/1 accel/ivpu: Remove VPU_CPU_NOC_* register access from NPU6 onward
From: Karol Wachowski <[email protected]>
Quiescing TOP_MMIO in SOC_CPU_NOC as part of boot procedure is no longer needed starting from 60XX. Remove soc_cpu_drive() call from NPU6 onward.
The VPU_CPU_NOC_QREQN, VPU_CPU_NOC_QACCEPTN, and VPU_CPU_NOC_QDENY registers are deprecated and non-functional on 60XX. They will be removed in future generations.
--- drivers/accel/ivpu/ivpu_hw_ip.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/accel/ivpu/ivpu_hw_ip.c +3 -0
@@ -896,6 +896,9 @@ static int soc_cpu_drive_40xx(struct ivpu_device *vdev, bool enable)static int soc_cpu_enable (struct ivpu_device *vdev) { +if (ivpu_hw_ip_gen (vdev) >=IVPU_HW_IP_60XX ) +return 0 ; +return soc_cpu_drive_40xx (vdev, true); }
Signature · 1 line
2.43.0
Quoted 11 lines · Maciej Falkowski
From: Karol Wachowski <[email protected]>
Quiescing
TOP_MMIOinSOC_CPU_NOCas part of boot procedure is no longer needed starting from 60XX. Removesoc_cpu_drive()call from NPU6 onward.The
VPU_CPU_NOC_QREQN,VPU_CPU_NOC_QACCEPTN, andVPU_CPU_NOC_QDENYregisters are deprecated and non-functional on 60XX. They will be removed in future generations.Signed-off-by Karol Wachowski <[email protected]>Signed-off-by Maciej Falkowski <[email protected]>
Should you just squash this into "[PATCH] accel/ivpu: Add support for Nova Lake's NPU"? Feels a bit odd to introduce an issue in that patch, and then immediately fix it.
-Jeff
Quoted 6 lines · Jeff Hugo
Quoted 5 lines · Maciej Falkowski
From: Karol Wachowski <[email protected]>
Quiescing
TOP_MMIOinSOC_CPU_NOCas part of boot procedure is no longer needed starting from 60XX. Removesoc_cpu_drive()call from NPU6 onward.
Quoted 8 lines
Quoted 6 lines
The
VPU_CPU_NOC_QREQN,VPU_CPU_NOC_QACCEPTN, andVPU_CPU_NOC_QDENYregisters are deprecated and non-functional on 60XX. They will be removed in future generations.Signed-off-by Karol Wachowski <[email protected]>Signed-off-by Maciej Falkowski <[email protected]>Should you just squash this into "[PATCH] accel/ivpu: Add support for Nova Lake's NPU"? Feels a bit odd to introduce an issue in that patch, and then immediately fix it.
It wasn't exactly introducing an issue but sure squashing the two commits into one will simplify things.
Thanks,
Maciej
Quoted 2 lines
-Jeff