]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
habanalabs: fix device IRQ unmasking for BE host
authorBen Segal <bpsegal20@gmail.com>
Wed, 7 Aug 2019 13:54:54 +0000 (13:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:23:22 +0000 (10:23 +0200)
commit82fcf8a5d8f721b4cb8a04c48f7e45a0e3a49345
tree95bab36bc89b35d0bcee4acf3ce89a025fa3d17f
parenta1a6c6b4f8d8e74fe62287bc314716b726fde32c
habanalabs: fix device IRQ unmasking for BE host

[ Upstream commit b421d83a3947369fd5718824aecfaebe1efbf7ed ]

When unmasking IRQs inside the ASIC, the driver passes an array of all the
IRQ to unmask. The ASIC's CPU is working in LE so when running in a BE
host, the driver needs to do the proper endianness swapping when preparing
this array.

In addition, this patch also fixes the endianness of a couple of kernel log
debug messages that print values of packets

Signed-off-by: Ben Segal <bpsegal20@gmail.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/habanalabs/goya/goya.c