]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: davinci: da8xx: Create DSP device only when assigned memory
authorSuman Anna <s-anna@ti.com>
Tue, 16 May 2017 22:13:45 +0000 (17:13 -0500)
committerSekhar Nori <nsekhar@ti.com>
Mon, 22 May 2017 09:17:44 +0000 (14:47 +0530)
commitbbe983339ce287e8094684c9954b1a6cd90865d3
treec33323ced6d79afbfd31fbdee23d2dfb935e5514
parent6a0fa58cdd92da9a8e6fa4e621cabd91974091b3
ARM: davinci: da8xx: Create DSP device only when assigned memory

The DSP device on Davinci platforms does not have an MMU and requires
specific DDR memory to boot. This memory is reserved using the rproc_mem
kernel boot parameter and is assigned to the device on non-DT boots.
The remoteproc core uses the DMA API and so will fall back to assigning
random memory if this memory is not assigned to the device, but the DSP
remote processor boot will not be successful in such cases. So, check
that memory has been reserved and assigned to the device specifically
before even creating the DSP device.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/devices-da8xx.c