iommu/dart: Initialize DART_STREAMS_ENABLE
authorSven Peter <sven@svenpeter.dev>
Tue, 19 Oct 2021 16:22:53 +0000 (18:22 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 27 Oct 2021 08:08:17 +0000 (10:08 +0200)
commit5a009fc1364170b240a4d351b345e69bb3728b3e
treed93938cfd52380031fc517f08e010ac625a3cf13
parent260aecd643fc129c1771cefdd2aaaedf0485fa59
iommu/dart: Initialize DART_STREAMS_ENABLE

DART has an additional global register to control which streams are
isolated. This register is a bit redundant since DART_TCR can already
be used to control isolation and is usually initialized to DART_STREAM_ALL
by the time we get control. Some DARTs (namely the one used for the audio
controller) however have some streams disabled initially. Make sure those
work by initializing DART_STREAMS_ENABLE during reset.

Reported-by: Martin PoviĊĦer <povik@protonmail.com>
Signed-off-by: Sven Peter <sven@svenpeter.dev>
Reviewed-by: Hector Martin <marcan@marcan.st>
Link: https://lore.kernel.org/r/20211019162253.45919-1-sven@svenpeter.dev
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/apple-dart.c