mmc: block: Change MMC_IOC_MAX_BYTES
PATCH 1/1 mmc: block: Change MMC_IOC_MAX_BYTES
It is used for limitation of buffer size during IOCTL such as FFU. However, eMMC FW size is bigger than (512L*256).
(For instance, currently, Samsung eMMC FW size is over 300KB.) So, it needs to increase to execute FFU.
--- ioctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ioctl.h +1 -1
@@ -69,6 +69,6 @@ struct mmc_ioc_multi_cmd {* is enforced per ioctl call. For larger data transfers, use the normal * block device operations. */ -#define MMC_IOC_MAX_BYTES (512L * 256) +#define MMC_IOC_MAX_BYTES (512L * 1024)#define MMC_IOC_MAX_CMDS 255#endif /* LINUX_MMC_IOCTL_H */
--
1.9.1
Hi,
Quoted 11 lines · Jeremy Kim
It is used for limitation of buffer size during IOCTL such as FFU. However, eMMC FW size is bigger than (512L*256).
(For instance, currently, Samsung eMMC FW size is over 300KB.) So, it needs to increase to execute FFU.Signed-off-by Jeonghan Kim <[email protected]>--- ioctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Where is ioctl.h? "include/uapi/linux/mmc/ioctl.h"?
Best Regards,
Jaehoon Chung
Quoted 23 lines
ioctl.h +1
-2@@ -69,6 +69,6 @@ struct mmc_ioc_multi_cmd {* is enforced per ioctl call. For larger data transfers, use the normal * block device operations. */ -#define MMC_IOC_MAX_BYTES (512L * 256) +#define MMC_IOC_MAX_BYTES (512L * 1024)#define MMC_IOC_MAX_CMDS 255#endif /* LINUX_MMC_IOCTL_H */ --1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Yes, right. "include/uapi/linux/mmc/ioctl.h"
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jaehoon Chung
Sent: Tuesday, October 18, 2016 7:52 PM
To: Jeremy Kim; [email protected]; [email protected]
Subject: Re: [PATCH] mmc: block: Change MMC_IOC_MAX_BYTES
Hi,
Quoted 11 lines · Jeremy Kim
It is used for limitation of buffer size during IOCTL such as FFU. However, eMMC FW size is bigger than (512L*256).
(For instance, currently, Samsung eMMC FW size is over 300KB.) So, it needs to increase to execute FFU.Signed-off-by Jeonghan Kim <[email protected]>--- ioctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Where is ioctl.h? "include/uapi/linux/mmc/ioctl.h"?
Best Regards,
Jaehoon Chung
Quoted 16 lines
ioctl.h +1
-2@@ -69,6 +69,6 @@ struct mmc_ioc_multi_cmd {* is enforced per ioctl call. For larger data transfers, use the normal * block device operations. */ -#define MMC_IOC_MAX_BYTES (512L * 256) +#define MMC_IOC_MAX_BYTES (512L * 1024)#define MMC_IOC_MAX_CMDS 255#endif /* LINUX_MMC_IOCTL_H */ --1.9.1
Quoted 7 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html