habanalabs/gaudi: fix debugfs dma channel selection
authorGuy Zadicario <gzadicario@habana.ai>
Tue, 12 Oct 2021 07:30:28 +0000 (10:30 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:03 +0000 (08:59 +0200)
commit90d283b6726fc2e963042b6884951aa81afd0ff7
tree360425df49ac5d3b2fe2a01f8b07307430e43baf
parentbfd5110682ca75cece49fe0e3f5ef478ec43c9ae
habanalabs/gaudi: fix debugfs dma channel selection

Do not use a dma channel for debugfs requested transfer if it's
QM is not idle.

Signed-off-by: Guy Zadicario <gzadicario@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c