提交 e047c5e0 编写于 作者: J Jan Luebbe 提交者: Mauro Carvalho Chehab

media: coda: reduce iram size to leave space for suspend to ram

The on-chip SRAM of i.MX6S is only 128 KiB. 4 KiB of that are allocated
for suspend to RAM since commit df595746 ("ARM: imx: add suspend in
ocram support for i.mx6q"). Reduce the requested IRAM size to 124 KiB to
avoid an allocation failure that causes the coda driver to not use the
SRAM at all.
Signed-off-by: NJan Luebbe <jlu@pengutronix.de>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 45340c14
...@@ -2443,7 +2443,7 @@ static const struct coda_devtype coda_devdata[] = { ...@@ -2443,7 +2443,7 @@ static const struct coda_devtype coda_devdata[] = {
.num_vdevs = ARRAY_SIZE(coda9_video_devices), .num_vdevs = ARRAY_SIZE(coda9_video_devices),
.workbuf_size = 80 * 1024, .workbuf_size = 80 * 1024,
.tempbuf_size = 204 * 1024, .tempbuf_size = 204 * 1024,
.iram_size = 0x20000, .iram_size = 0x1f000, /* leave 4k for suspend code */
}, },
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册