summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRocky7842 <eric.rocky7842@gmail.com>2025-08-29 13:22:08 +0800
committerNolen Johnson <johnsonnolen@gmail.com>2025-08-31 01:03:37 +0000
commitdfbbbf77cd8811fdb7a64f5580bea60d02cb7c8d (patch)
tree23eb0c752190d3b40641a1c470922207b2cbadda
parent35d4ac4c28009d208d5d5b50aad2533299ab8bb9 (diff)
cpboot_v3: Use smaller payload segment size for all sipc devices
* exynos9820 5g variants and exynos9830 family are the only devices using sipc (legacy or non-legacy) protocol and use BootDumpExt, which all require the payload segment size adjustment to work. Change-Id: I198259231d8889c83c6f51ceab592513074c18d1
-rw-r--r--cpboot_v3/Protocol.h7
-rw-r--r--cpboot_v3/ProtocolSipc.h3
-rw-r--r--cpboot_v3/ProtocolSit.h3
3 files changed, 6 insertions, 7 deletions
diff --git a/cpboot_v3/Protocol.h b/cpboot_v3/Protocol.h
index be9a190..ff5553e 100644
--- a/cpboot_v3/Protocol.h
+++ b/cpboot_v3/Protocol.h
@@ -25,13 +25,6 @@
#define CP_WDT_RESET_STR "CP WDOG Reset"
#define CP_CRASH_BY_STR ": CP Crash by"
-/* Maximum Segment Size for payload */
-#ifdef LEGACY_SIPC_IOCTL
-#define STD_UDL_MSS (2 * 1024)
-#else
-#define STD_UDL_MSS (16 * 1024)
-#endif
-
/* cmd (4) + num_frames (4) + curr_frame (4) + len (4) */
#define STD_UDL_HDR_LEN 16
/* Maximum Transmission Unit = Header + Payload */
diff --git a/cpboot_v3/ProtocolSipc.h b/cpboot_v3/ProtocolSipc.h
index 1f06d11..98f8fa9 100644
--- a/cpboot_v3/ProtocolSipc.h
+++ b/cpboot_v3/ProtocolSipc.h
@@ -18,6 +18,9 @@
#include "Protocol.h"
+/* Maximum Segment Size for payload */
+#define STD_UDL_MSS (2 * 1024)
+
struct std_udl_frame {
u32 cmd;
u32 num_frames;
diff --git a/cpboot_v3/ProtocolSit.h b/cpboot_v3/ProtocolSit.h
index 19aa5de..c21b07a 100644
--- a/cpboot_v3/ProtocolSit.h
+++ b/cpboot_v3/ProtocolSit.h
@@ -18,6 +18,9 @@
#include "Protocol.h"
+/* Maximum Segment Size for payload */
+#define STD_UDL_MSS (16 * 1024)
+
/* Direction */
#define MSG_AP2CP (0xA)
#define MSG_CP2AP (0xC)