mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
soc: qcom: mdt-loader: Return relocation base
In order to implement support for grabbing core dumps in remoteproc it's necessary to know the relocated base of the image, as the offsets from the virtual memory base might not be based on the physical address. Return the adjusted physical base address to the caller. Acked-by: Andy Gross <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
This commit is contained in:
parent
c1d35c1ab4
commit
4dd27f544c
6 changed files with 16 additions and 7 deletions
|
|
@ -82,7 +82,9 @@ static int adsp_load(struct rproc *rproc, const struct firmware *fw)
|
|||
struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv;
|
||||
|
||||
return qcom_mdt_load(adsp->dev, fw, rproc->firmware, adsp->pas_id,
|
||||
adsp->mem_region, adsp->mem_phys, adsp->mem_size);
|
||||
adsp->mem_region, adsp->mem_phys, adsp->mem_size,
|
||||
&adsp->mem_reloc);
|
||||
|
||||
}
|
||||
|
||||
static int adsp_start(struct rproc *rproc)
|
||||
|
|
|
|||
|
|
@ -153,7 +153,8 @@ static int wcnss_load(struct rproc *rproc, const struct firmware *fw)
|
|||
struct qcom_wcnss *wcnss = (struct qcom_wcnss *)rproc->priv;
|
||||
|
||||
return qcom_mdt_load(wcnss->dev, fw, rproc->firmware, WCNSS_PAS_ID,
|
||||
wcnss->mem_region, wcnss->mem_phys, wcnss->mem_size);
|
||||
wcnss->mem_region, wcnss->mem_phys,
|
||||
wcnss->mem_size, &wcnss->mem_reloc);
|
||||
}
|
||||
|
||||
static void wcnss_indicate_nv_download(struct qcom_wcnss *wcnss)
|
||||
|
|
|
|||
Loading…
Reference in a new issue