thor: Use smaller flash unit size 32/223032/12
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 17 Mar 2020 04:56:36 +0000 (13:56 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 18 Mar 2020 09:31:54 +0000 (18:31 +0900)
Large size of flash unit causes timeout for such interface which has
request timeout by making fsync takes very long time. To prevent this,
use smaller size of flash unit, and transfer unit is also adjusted.

Change-Id: Ib45f20855dad4cef18e02410e9d976022cfc1597
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/thor-proto.h

index c26aefda58f9ff545c532b456408e56292ad4520..04cefbe09d88b6d616c2920fbb9ea7996e15cb0b 100644 (file)
@@ -92,8 +92,8 @@ struct data_res_pkt {
 #define DATA_RES_PKT_SIZE      sizeof(struct data_res_pkt)
 
 #define FILE_NAME_MAXLEN       32
-#define DATA_PKT_SIZE          0x00100000      /* 1 MiB */
-#define FLASH_UNIT_SIZE                0x02000000      /* 32 MiB */
+#define DATA_PKT_SIZE          0x00040000      /* 256 KiB */
+#define FLASH_UNIT_SIZE                0x00100000      /* 1 MiB */
 
 
 #endif /* __THOR_PROTO_H__ */