remoteproc: qcom: pas: Adjust the phys addr wrt the mem region
authorYogesh Lal <quic_ylal@quicinc.com>
Wed, 2 Nov 2022 17:12:09 +0000 (22:42 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 14 Feb 2023 17:04:29 +0000 (09:04 -0800)
commita376c10d45a8e6ee5ea55791193f90625b35e156
treee0262e04217b44470f3f1531368661d873aa7561
parent2554dd0ac362738f588ba073d8333eb9b14f9587
remoteproc: qcom: pas: Adjust the phys addr wrt the mem region

The minidump table in the toc contains physical addresses that may lie
before the physical address of the first elf segment in relocatable
images. This change adds a custom dump function for minidumps which
calculates the offset into the carveout region using the start of
the physical address instead of the start of the first elf segment.

Signed-off-by: Yogesh Lal <quic_ylal@quicinc.com>
Reviewed-by: Sibi Sankar <quic_sibis@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/1667409129-6254-1-git-send-email-quic_ylal@quicinc.com
drivers/remoteproc/qcom_common.c
drivers/remoteproc/qcom_common.h
drivers/remoteproc/qcom_q6v5_pas.c