[PATCH 1/3] habanalabs: make tpc registers secured

2019-05-30 Thread Dalit Ben Zoor
Set protection bits for some tpc registers that should to be secured. Signed-off-by: Dalit Ben Zoor --- drivers/misc/habanalabs/goya/goya_security.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/misc/habanalabs/goya/goya_security.c b/drivers/misc/habanalabs/goya

[PATCH 3/3] habanalabs: restore unsecured registers default values

2019-05-30 Thread Dalit Ben Zoor
unsecured registers can be changed by the user, and hence should be restored to their default values in context switch Signed-off-by: Dalit Ben Zoor --- drivers/misc/habanalabs/goya/goya.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/misc

[PATCH 2/3] habanalabs: clear sobs and monitors in context switch

2019-05-30 Thread Dalit Ben Zoor
On context switch we need to ensure that each user is not be affected by other user, so we need to clear sync objects and monitors in context switch instead of in restore_phase_topology function. Signed-off-by: Dalit Ben Zoor --- drivers/misc/habanalabs/goya/goya.c | 7 +++ 1 file changed