soc: apple: rtkit: Fix buffer address field width
authorAsahi Lina <lina@asahilina.net>
Fri, 24 Feb 2023 06:49:44 +0000 (15:49 +0900)
committerHector Martin <marcan@marcan.st>
Tue, 28 Mar 2023 10:45:00 +0000 (19:45 +0900)
The buffer address field is missing two bits. This matters for the GPU,
which uses upper-half 64-bit addresses on the ASC and those get sign
extended from the mailbox message field, so the right number of high
bits need to be set.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/soc/apple/rtkit.c

index 35ec35aa500d67334a81231d87eaab3c6e7547d3..a02a44a745f63a98bf909faad8117299a6169e93 100644 (file)
@@ -55,7 +55,7 @@ enum {
 
 #define APPLE_RTKIT_BUFFER_REQUEST     1
 #define APPLE_RTKIT_BUFFER_REQUEST_SIZE GENMASK_ULL(51, 44)
-#define APPLE_RTKIT_BUFFER_REQUEST_IOVA GENMASK_ULL(41, 0)
+#define APPLE_RTKIT_BUFFER_REQUEST_IOVA GENMASK_ULL(43, 0)
 
 #define APPLE_RTKIT_SYSLOG_TYPE GENMASK_ULL(59, 52)