]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00273432 DMA: imx-sdma: Allocate 4KB iram page size for bd
authorNicolin Chen <b42378@freescale.com>
Tue, 30 Jul 2013 06:49:29 +0000 (14:49 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:14:17 +0000 (14:14 +0200)
commit8648f28fb342692d72ea4363c6d13125076296c6
tree6ae600a70918b2ae8c093d20b4795f0e9006ebe9
parent4d534a987d8e00d14e131751e35c72e97fb2c81c
ENGR00273432 DMA: imx-sdma: Allocate 4KB iram page size for bd

One bd actually needs 4KB page size. So changed the iram_alloc()
size parameter to allocate a precise iram memory for bd.

This patch also removed the extra iram pool for SDMA due to its
insufficient total size: SDMA allows around 48 channels to work
simultaneously, so it's better to allocate memory from iram pool
directly.

[There will be 3KB size waste in sdma->channel_control, which is
640B but actually using 4KB due to 4KB alignment for iram pool.]

Acked-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
drivers/dma/imx-sdma.c