habanalabs: fix backward compatibility of idle check
authorOded Gabbay <ogabbay@kernel.org>
Mon, 18 Jan 2021 11:19:51 +0000 (13:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2021 14:37:17 +0000 (15:37 +0100)
commit90981a2171b9fdb6d20046f7ce3d70f8c460e53e
tree59e7fda7d5b321380a8e2c7adeb261c858a6b3d7
parent4439d22c3758df25bb70243e0171e9728582f2a8
habanalabs: fix backward compatibility of idle check

[ Upstream commit f8abaf379bfe19600f96ae79a6759eb37039ae05 ]

Need to take the lower 32 bits of the driver's 64-bit idle mask and put
it in the legacy 32-bit variable that the userspace reads to know the
idle mask.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/habanalabs/common/habanalabs_ioctl.c