mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 08:58:07 +00:00
833d51d7c6
PT_LOAD type denotes that the segment should be loaded into the final
firmware memory region. Hash segment is not one such, because it's only
needed for PAS init and shouldn't be in the final firmware memory region.
That's why mdt_phdr_valid() explicitly reject non PT_LOAD segment and
hash segment. This actually makes the hash segment type check in
qcom_mdt_read_metadata() unnecessary and redundant. For a hash segment,
it won't be loaded into firmware memory region anyway, due to the
QCOM_MDT_TYPE_HASH check in mdt_phdr_valid(), even if it has a PT_LOAD
type for some reason (misusing or abusing?).
Some firmware files on Sony phones are such examples, e.g WCNSS firmware
of Sony Xperia M4 Aqua phone. The type of hash segment is just PT_LOAD.
Drop the unnecessary hash segment type check in qcom_mdt_read_metadata()
to fix firmware loading failure on these phones, while hash segment is
still kept away from the final firmware memory region.
Fixes:
|
||
---|---|---|
.. | ||
apr.c | ||
cmd-db.c | ||
cpr.c | ||
Kconfig | ||
kryo-l2-accessors.c | ||
llcc-qcom.c | ||
Makefile | ||
mdt_loader.c | ||
ocmem.c | ||
pdr_interface.c | ||
pdr_internal.h | ||
qcom-geni-se.c | ||
qcom_aoss.c | ||
qcom_gsbi.c | ||
qmi_encdec.c | ||
qmi_interface.c | ||
rmtfs_mem.c | ||
rpmh-internal.h | ||
rpmh-rsc.c | ||
rpmh.c | ||
rpmhpd.c | ||
rpmpd.c | ||
smd-rpm.c | ||
smem.c | ||
smem_state.c | ||
smp2p.c | ||
smsm.c | ||
socinfo.c | ||
trace-rpmh.h | ||
wcnss_ctrl.c |