habanalabs/gaudi2: SM mask can only be 8-bit
authorOded Gabbay <ogabbay@kernel.org>
Thu, 30 Jun 2022 08:53:33 +0000 (11:53 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:29 +0000 (09:09 +0300)
commite475acabb9d99fb80828964bbeeb4e283942173c
tree06a09fe01c72e71621601401778ab2ac7d515fb0
parentc979cb5d8bf955e0303b951f066a9a525fda015f
habanalabs/gaudi2: SM mask can only be 8-bit

Otherwise, due to how we calculate it, we might fail in FIELD_PREP
checks.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi2/gaudi2.c