On 11/5/2021 8:33 AM, Andrew Rybchenko wrote:
From: Viacheslav Galaktionov <viacheslav.galaktio...@oktetlabs.ru>
DMA on SN1022 SoC requires extra mapping of the memory via MCDI.
The mapping is expensive on datapath, so make it a build-time option.
Usage of build-time option is acceptable since it is required in
very specific case only.
Not really sure if it is acceptable.
The change does not look trivial, it touches in many areas with ifdef blocks,
cluttering the code.
Even it is in datapath, it should be possible to have another datapath
function that is only set for the specific device, even perhaps by automatically
detecting the device, not needing a compile or runtime flag.
Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktio...@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru>
Reviewed-by: Ivan Malov <ivan.ma...@oktetlabs.ru>
<...>