tgl.toml and tgl-h.toml are only used for xtos builds.
Suggested-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Set cached and uncached address aliases for all Intel ADSP platforms,
supported by Zephyr.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
A recent commit ec649f37d6 ("Convert all ELF addresses to cached
for calculations") had a bug: it assumed a call to
parse_uint32_hex_key() for an absent key would return an error by
default, which isn't the case. To force it set the default return
code to an error value.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Use some of the reserved bits to add a new field, init_config, in struct
sof_man_module_type. This will be used to specify the type of payload
that the module expects. For now, the 2 options are to have the base
config only or the base config with an extension that contains the pin
formats. This can be extended in the future to support additional
options for modules that need more than the base config or base config +
extension.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Rimage calculates sizes of ELF sections, for which it has to use
addresses from the same address space: either all cached or all
uncached. The ELF image itself can contain mixed addresses. Convert
all to cached for internal calculations.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
The load_type in extended manifest is used to indicate
if a module is a built-in module(0) or a loadable(1)
module.
We don't have loadable module yet, so load_type should
be zero for all modules.
Signed-off-by: Chao Song <chao.song@linux.intel.com>
The module_type member in module config should be assigned
according to the mod_type enum. Previously, for tgl and tgl-h,
it is assigned in an incremental way, which is wrong. MTL assigns
module_type in the correct way, so align the module_type with
mtl for tgl and tgl-h in this patch.
Signed-off-by: Chao Song <chao.song@linux.intel.com>
The IMR type can be specified either in the TOML configuration file
or on the command line. The command line value should override the
one from the configuration file. But the current code overwrites the
configuration file value with the default value even if no value has
been specified on the command line, which is wrong. Fix this by using
the default value when reading the configuration file and only
overwriting it when the respective command line parameter is used.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Currently some module types are incorrect and it was set by the change
sequence. The module type is used by windows driver not Linux driver.
It is defined in the following enum definition in cavs_ext_manifest.h.
UpDwMix module type is 5, Mux is 6 kpb is 11, and Selector is 12. The
module ASRC, GAIN, PROBE are type of efx (9) according to spec.
enum mod_type {
ebasefw = 0,
emixin,
emixout,
ecopier,
epeakvol,
eupdwmix,
emux,
esrc,
ewov,
efx,
eaec,
ekpb,
emicselect,
efxf, /*i.e.SmartAmp */
eaudclass,
efakecopier,
eiodriver,
ewhm,
egdbstub,
esensing,
emax,
einvalid = emax
} ;
Signed-off-by: Rander Wang <rander.wang@intel.com>
The original check for "i - 1 == type" is used to make
sure that all modules in toml file are in order from 0
to max continuously. But the problem is that some modules
are not supported now or some modules share the same module
type of efx, so this check is incorrect.
Signed-off-by: Rander Wang <rander.wang@intel.com>
error: invalid type 16error: key 'module' parsing error
probe module type is 10,which is treated hexally
Signed-off-by: Kwasowiec, Fabiola <fabiola.kwasowiec@intel.com>
External libraries can contain processing module code or common library code.
Library manager need to distinguish between both type of modules for proper loading.
Signed-off-by: Jaroslaw Stelter <jaroslaw.stelter@intel.com>
tgl-h target is missing the IPC4 toml config file, so add it.
tgl-h-cavs.toml is a direct copy from tgl-cavs.toml, only the image size
has been changed.
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
Ace signing functions need guards for not to use deprecated openssl
functions and thus fail the compilation. Openssl3 implementation
needs to be done as the added stub now returns just -EINVAL.
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
SOF CMake can extract FW file version from latest git tag and defines
SOF_MAJOR, SOF_MINOR and SOF_MICRO for 3 version fields. But rimage only
gets major and minor version from SOF CMake and writes them into the
standard firmware manifest header of cAVS platforms.
This patch make rimage also get the micro version from SOF CMake, and
write it to the unused hotfix_version field of manifest header.
This update will enable sof_ri_info.py to dump entire file version from
a FW binary for cAVS platforms. So we can check if a FW release candidate
is built from the correct git tag.
Signed-off-by: mengdonglin <mengdong.lin@intel.com>
update
Added new MSYS_INSTALL_DIR variable that points to MSYS2 installation
for Windows users. It is used to include POSIX native headers from
/usr/include also required openssl headers.
Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
Fixed warning where variable passed to fprintf was of type size_t and
fprintf expected format of long int.
Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
This is especially a problem considering the -v option outputs non-ASCII
garbage which can break some automation, see issue #86
Fixes commit db40934e57 ("cavs: add support for cavs2.5 code
signing")
Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This patch fixes an invalid format specifier that causes a numeric value
to be interpreted as a string, resulting in an Segmentation fault.
Signed-off-by: Adrian Warecki <adrianx.warecki@intel.com>