diff options
| author | Asahi Lina <lina@asahilina.net> | 2025-02-02 22:48:47 +0900 |
|---|---|---|
| committer | Sven Peter <sven@svenpeter.dev> | 2025-02-18 17:59:11 +0100 |
| commit | bf8b4e49777d944f84cf7d47360fe80dd3f69d96 (patch) | |
| tree | e1e40a0e059f7b1ff757e4df72bcbae7b83d88f8 /drivers/soc/apple | |
| parent | ca0272d8638a4c50ecc2c63719f81e022d3450f1 (diff) | |
soc: apple: rtkit: Pass the crashlog to the crashed() callback
Client drivers might want a copy of the crashlog to stash into a
devcoredump blob. Since device memory management can be very variable,
the actual devcoredump implementation is left to client drivers. Pass
the raw crashlog buffer to the client callback so it can use it if
desired.
Signed-off-by: Asahi Lina <lina@asahilina.net>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/20250202-rtkit-crashdump-v1-1-9d38615b4e12@asahilina.net
Signed-off-by: Sven Peter <sven@svenpeter.dev>
Diffstat (limited to 'drivers/soc/apple')
| -rw-r--r-- | drivers/soc/apple/rtkit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/apple/rtkit.c b/drivers/soc/apple/rtkit.c index f8077a1ec3a4..f19061967459 100644 --- a/drivers/soc/apple/rtkit.c +++ b/drivers/soc/apple/rtkit.c @@ -378,7 +378,7 @@ static void apple_rtkit_crashlog_rx(struct apple_rtkit *rtk, u64 msg) rtk->crashed = true; if (rtk->ops->crashed) - rtk->ops->crashed(rtk->cookie); + rtk->ops->crashed(rtk->cookie, bfr, rtk->crashlog_buffer.size); } static void apple_rtkit_ioreport_rx(struct apple_rtkit *rtk, u64 msg) |
