* [PATCH] soc: apple: rtkit: Fix buffer address field width
@ 2023-02-24 6:49 Asahi Lina
2023-02-25 12:42 ` Sven Peter
2023-03-28 10:50 ` Hector Martin
0 siblings, 2 replies; 3+ messages in thread
From: Asahi Lina @ 2023-02-24 6:49 UTC (permalink / raw)
To: Hector Martin, Sven Peter, Alyssa Rosenzweig
Cc: asahi, linux-arm-kernel, linux-kernel, Asahi Lina
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>
---
drivers/soc/apple/rtkit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/apple/rtkit.c b/drivers/soc/apple/rtkit.c
index 35ec35aa500d..a02a44a745f6 100644
--- a/drivers/soc/apple/rtkit.c
+++ b/drivers/soc/apple/rtkit.c
@@ -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)
---
base-commit: 83f978b63fa7ad474ca22d7e2772c5988101c9bd
change-id: 20230224-gpu-up-rtkit-f4bc18e78c8a
Thank you,
~~ Lina
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] soc: apple: rtkit: Fix buffer address field width
2023-02-24 6:49 [PATCH] soc: apple: rtkit: Fix buffer address field width Asahi Lina
@ 2023-02-25 12:42 ` Sven Peter
2023-03-28 10:50 ` Hector Martin
1 sibling, 0 replies; 3+ messages in thread
From: Sven Peter @ 2023-02-25 12:42 UTC (permalink / raw)
To: Asahi Lina
Cc: Hector Martin, Alyssa Rosenzweig, asahi, linux-arm-kernel, linux-kernel
> On 24. Feb 2023, at 07:50, Asahi Lina <lina@asahilina.net> wrote:
>
> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] soc: apple: rtkit: Fix buffer address field width
2023-02-24 6:49 [PATCH] soc: apple: rtkit: Fix buffer address field width Asahi Lina
2023-02-25 12:42 ` Sven Peter
@ 2023-03-28 10:50 ` Hector Martin
1 sibling, 0 replies; 3+ messages in thread
From: Hector Martin @ 2023-03-28 10:50 UTC (permalink / raw)
To: Asahi Lina, Sven Peter, Alyssa Rosenzweig
Cc: asahi, linux-arm-kernel, linux-kernel
On 24/02/2023 15.49, Asahi Lina wrote:
> 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>
> ---
> drivers/soc/apple/rtkit.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/soc/apple/rtkit.c b/drivers/soc/apple/rtkit.c
> index 35ec35aa500d..a02a44a745f6 100644
> --- a/drivers/soc/apple/rtkit.c
> +++ b/drivers/soc/apple/rtkit.c
> @@ -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)
>
>
> ---
> base-commit: 83f978b63fa7ad474ca22d7e2772c5988101c9bd
> change-id: 20230224-gpu-up-rtkit-f4bc18e78c8a
>
> Thank you,
> ~~ Lina
>
Applied to asahi-soc/soc!
- Hector
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-28 10:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24 6:49 [PATCH] soc: apple: rtkit: Fix buffer address field width Asahi Lina
2023-02-25 12:42 ` Sven Peter
2023-03-28 10:50 ` Hector Martin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®