mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>,
	Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
	Neil Armstrong <neil.armstrong@linaro.org>,
	stable@vger.kernel.org
Subject: Re: [PATCH] soc: qcom: geni-se: skip the program RAM on minicore engines
Date: Thu, 3 Dec 2026 13:01:57 +0100	[thread overview]
Message-ID: <a929366e-f755-451a-ad55-0287932682af@oss.qualcomm.com> (raw)
In-Reply-To: <20261114-geni-minicore-v1-1-a825dd549664@oss.qualcomm.com>

On 11/14/26 2:33 PM, Igor Opaniuk wrote:
> Four of the six serial engines of the QCM2290 QUPv3 (SE2 to SE5) are
> minicores: they implement SPI, UART and I2C in hardware state machines
> and have no program RAM. Their SE_HW_PARAM_2 reads 0xf000, i.e.
> GEN_USE_MINICORES and the GEN_HW_FSM_* bits set and a PROG_RAM_DEPTH of
> 0 (SE0 and SE1 report 0x3fc and 0x1c8 and do have one). The loader
> refuses every protocol firmware on them:
> 
>   qcom_geni_serial 4a8c000.serial: Firmware size (444) exceeds RAM size (0)
>   geni_spi 4a94000.spi: Firmware size (442) exceeds RAM size (0)
> 
> On such an engine only the register configuration part of the image
> applies, and GENI_FW_REVISION and GENI_S_FW_REVISION still have to
> carry the protocol; U-Boot's "misc: qcom_geni: Add minicore support"
> handles such engines the same way. Detect the minicore bits, skip the
> depth check and the program RAM copy for them and keep the rest of the
> sequence.
> 
> On the Arduino UNO Q this brings up the Bluetooth UART and the SPI
> engine, which were the only engines the boot firmware had not set up.
> 
> Fixes: 522bfb4f33c0 ("soc: qcom: geni-se: Use HW PROG_RAM_DEPTH to validate firmware size")
> Cc: stable@vger.kernel.org
> Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

      reply	other threads:[~2026-12-03 12:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-14 13:33 Igor Opaniuk
2026-12-03 12:01 ` Konrad Dybcio [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a929366e-f755-451a-ad55-0287932682af@oss.qualcomm.com \
    --to=konrad.dybcio@oss.qualcomm.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=igor.opaniuk@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=stable@vger.kernel.org \
    --cc=viken.dadhaniya@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®