Re: [PATCH] soc: qcom: geni-se: skip the program RAM on minicore engines
From: Konrad Dybcio
Date: Thu Dec 03 2026 - 07:02:09 EST
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@xxxxxxxxxxxxxxx
> Signed-off-by: Igor Opaniuk <igor.opaniuk@xxxxxxxxxxxxxxxx>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad