Re: [PATCH v3] firmware: qcom_scm: Clear download bit during reboot

From: Mukesh Ojha
Date: Wed Nov 01 2023 - 06:42:19 EST


+@Sricharan

On 11/1/2023 3:21 PM, Robert Marko wrote:
On Thu, 26 Oct 2023 at 17:16, Mukesh Ojha <quic_mojha@xxxxxxxxxxx> wrote:

Hey Robert,

Just remembered this thread again,

is this issue got fixed with

https://lore.kernel.org/lkml/20230816164641.3371878-1-robimarko@xxxxxxxxx/

Sadly no, as this issue is affecting all IPQ4019 boards and not just
the ones that have SDI enabled.

unless, enabling CONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT has problem in your SoC, i don't think why current patch can cause issue in your
board.

Can you please help with some debug as i don't have this target but
interested in fixing this issue if it is indeed due to kernel.

whether, CONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT works on your target basically if qcom_scm_set_download_mode(true); return success and
reboot works with that.

Or may be only writing qcom_scm_set_download_mode(false); has some
unknown affect in the firmware and later causing a problem in reboot.


-Mukesh