]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:25 +0000 (21:36 -0400)
commitccb8434ef24aef1190dcfcab472cec05e0b992cf
tree6b0a0337007e2d5a62613da90e1ef73932a453f5
parentb8e2096553ae1f1ec689d8444994fdea7ecf3b9b
ARM: davinci: da8xx: Create DSP device only when assigned memory

[ Upstream commit f97f03578b997a8ec2b9bc4928f958a865137268 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
arch/arm/mach-davinci/devices-da8xx.c