From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796299325; b=en7rdWBzHFn4MKyv5PCzwgHyLJKszj9OsMsPLT72WAQrMn1a7MdmVP/IxHZ8OG5KFRT/ fvpfQUp4OUK8Hjk/yXsX6Mfm4ab9gGs5IqC75NAa4XqOAd0i1hZzmDrdHlTSFlmqzlDJx 4OgG29kB8N197GOWh2NNXibHu9GLcob7G7mLsZtayB+C31k8nU/P2xNGrmeN+8lFieKHm JjeBjDC42VrrKvTruEcp1B+FpuEgo6qrVedr4TxfCTkfAPvoApN9OBvvK7D8l/r3Vve+g /UrxR9Ez5eIBYvvS46GeVoisc3YWvHFUlU38wlKDEHyIyXUWVAzerZs4bv7L1eH6p2A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796299325; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Spam-Info: X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=H9f0s/mi3GH07v5rmaQkjA+v1cxpFsb+T0JYbSGMlHA=; b=bR8QuN9XAkJ+mGaaHeObqHiTpjn9cq8vp/rjuRjEO5oKEoBBS09hH24WxgNfCj5yKvmI a7hq0478axbLXr/VIJYFS5zIGMSCZYWxmCKGOiO2aQopPCATqlfQhuYOH1Scwt8ay6RDd ttTjPdo7tIUinLDu7Te4n4cSqOBEwJfMM/+Aaz1hM2gU5XNmc/gHSTPcFc53Ub2yicdgw CCqpbecdc+h+75NqHWatxBsM1UKtqMcg2p2diMwNpmyYheuLjIzaPXzCd2xLb6ltQ45/Y sNhG7I2yj2BQ0O8B55KAlCm2ulhO1qkDuSZbZLfhWIX/xPl+7u0KE03ksBzYZ8FXofQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=QTK03Tjb; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=QiyvIrcj; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF288606A680 for ; Thu, 3 Dec 2026 12:02:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BF288606A680 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=QTK03Tjb; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=QiyvIrcj Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3AH2Is3074277 for ; Thu, 3 Dec 2026 12:02:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= H9f0s/mi3GH07v5rmaQkjA+v1cxpFsb+T0JYbSGMlHA=; b=QTK03TjbCZ4kyboP A/tJFXzV36EVWCQOZ5avAISduKHVplXsJTzh/pjFPdW3AoAPTBqvgEqLmvGATWHF RjnqjBvNok7UUwIUIAY5ZKuAyhCzGh7avuQuPG8cNXpx6H2o+MpHDBFzcelpMSCR fzsh+d9i6MRCPZfJ5J/X7qd8kWGYcqU/s8Pa2Tsk+dUOOGQRCCFaRrUDEt7iv0cE F5qarmEwd6ujgnflyvQkBNTDwD7W4jIw/iRl9U9lKuZF9Uvt4nECHQeE5GAB60fA fS3UKGGHYCsNoqm4tI3TE4MaQR8p9R2aGYx18NeeRPPjdvZiRIfcTSZH+sJ40CWZ XYqmAg== Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jb3g41awh-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Dec 2026 12:02:01 +0000 (GMT) Received: by mail-ua1-f70.google.com with SMTP id a1e0cc1a2514c-99f16253540so6541241.0 for ; Thu, 03 Dec 2026 04:02:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796299320; x=1796904120; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=H9f0s/mi3GH07v5rmaQkjA+v1cxpFsb+T0JYbSGMlHA=; b=QiyvIrcjFSUUJd2ZyqbUY90H0qMUCwOYw6o1M9g5sS7VH/BR9zSvCOrEPTfzcL9LS2 tmsRtUNe7QgDH7Ckfg9SHk+KlaOPLEq1ki2hx7ZiIU62PyNbxZWG8M9McJwbRXEYI28j oY+6FNYHpB1re5qYbsaN1kk4H6M993wkXavTrbBNJ80/3DYdAM2IdJg0NPdmCeDqiuYk OhpimgDhG+CVF5c3kriiWUR5wceM6sEglXYGp4eY8mpenRYAoXMKmGUxUrQIPAcBrKXx Hz0Zgi/gHDRA4WhJSC1GidZaEsh+teAMMLod3hq7DzIPxVKf+HBXqi+oC7rqdqTw8+jq eyJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796299320; x=1796904120; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=H9f0s/mi3GH07v5rmaQkjA+v1cxpFsb+T0JYbSGMlHA=; b=DDSC27+fjfStHQ4Gan+JpQAHSuhJSUHnq4OeP4+w+kPHxDO1TPdgkoqfXcrz1ucMgo jHzEa8cm6xqt/f2UuFyUjseJKcHc7jUJybutI48ycPAO9oRfDkUuRs2c1HZPZdDM3jd+ 0L16y/mFOcNpm8kVG6KRNoNVKahFEWytZKBh2DNjCBJ2+8qY/bpCIEk7qE1B+pVbkNgS fCFlEhtmwFe9MX41glMWlWP70OkOpJTi+Q5+JDIyCYld7wJmS29+tAvGJlJb1/rHyFJC h0qcikE0wgVmn86cveZhLc14gzRwh7b3DSEw1TPb7056ihO7t+kUEQCDyLj5wi1kInyB Gblw== X-Forwarded-Encrypted: i=1; AL+hErFUFuWfM0Rx9TG6DXZbi28ks7FNiIB1lGay4ikXN8ikGHIqzXQl1u7QGrzpCQivQ45pgYq+PKOaym91RSw=@vger.kernel.org X-Gm-Message-State: APuU4Z82VJ5Kq+XfqhWxe75zN449uC/OX2vQKte1WjXjzcnbbDSzEKQx dXRwx7AnMnVxSIgYq/H/WV/aoAOJps6LTobhYhQm5bWOyG79cg3nEa9o6cBQLbSjzhnE4yJ4Rwq MCYrF/wTIRrwEO82znmNBSo5uxsVe5zvaJgSTMIg4TGN58Ky1SrmQPbF2UNrAr1h8ncY= X-Gm-Gg: AZFdTZcwyKVlmIXFlpeL304x73g1R1NJgwom9SbInlzfwhFaji7qWFYyRqxNNJvp0bk kSx5fuwO3E+gY6u3OR49zydkkCugqJtVvjKljCw+krcGWYPgIFMmsl81trAJ5l6RUdTEYi6eCmG QTjSQeei1Z0wv1B0hONNuD5nY3phqvma7Alsl6Mhen8yu/yB+V5ZHoSvDJ3mDjrIn48BPO9cKrZ /wsGBwjPAx52g2hXjG7LoF0j+O964pckWLLe70NdVqqSJi2wfnEcTlR6gPDBL2cYmy8JPgU5MKZ YQM0zje8CiULfbuWWA6g/QdO4SZGf1DMosLzozD+Xp+ymrSG4ctAPJE3zU1uuP84sIbRb3629Sw rInUp01fdPvUP9Lyw13KrJEnQbbY9MiOE1MkAby6U2NoBpepwAQGouZ4sxDyjQwREUzexjw== X-Received: by 2002:a05:6122:3b09:b0:5ce:23fe:84d8 with SMTP id 71dfb90a1353d-5f00f057448mr925343e0c.0.1796299319941; Thu, 03 Dec 2026 04:01:59 -0800 (PST) X-Received: by 2002:a05:6122:3b09:b0:5ce:23fe:84d8 with SMTP id 71dfb90a1353d-5f00f057448mr925295e0c.0.1796299319524; Thu, 03 Dec 2026 04:01:59 -0800 (PST) Received: from [192.168.226.72] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513aea31e4sm1462064266b.39.2026.12.03.04.01.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 04:01:58 -0800 (PST) Message-ID: Date: Thu, 3 Dec 2026 13:01:57 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] soc: qcom: geni-se: skip the program RAM on minicore engines To: Igor Opaniuk , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Viken Dadhaniya Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , stable@vger.kernel.org References: <20261114-geni-minicore-v1-1-a825dd549664@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20261114-geni-minicore-v1-1-a825dd549664@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=OaENnRTY c=1 sm=1 tr=0 ts=6b115a39 cx=c_pps a=R6oCqFB+Yf/t2GF8e0/dFg==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=p-5x9ksfg77sQSD2epcA:9 a=QEXdDO2ut3YA:10 a=TD8TdBvy0hsOASGTdmB-:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDA0NyBTYWx0ZWRfX78X9XMclgQOg Kw8SWFmDbLbPsFLiEzZpJ/CrWlYYzXrsS4+XbvmicEo3UPZoEcrJsQ2JenM7KXdD9gn0Ikj/C2b slgU9+suKqP5hEcdRcs5tSQ1mxe8ZFevE2fG7nBmmj9wd2jtNN3IY7eKIA3e8gJufwDek1F5zzI Wz2oyXIPiTKecS0aFfs0e7Rdzzd2vNo3DpCPL/m+/tHYXNCzj97iL3JZGVTJm4BL83TJ+0FRa5U UvTi4ibvEdl1SLk9iWuJ2m78CwuHRXAHCJLuz3nzFb39Nb9tcTjpgXsb1vM+wIYfKcMtuFrumiR 2N4JRvnzEBJ4Anz36OB5gT3LF+YluyMu0It8w5hHrk4AtLbrlyYBSW37Db/x0wfcGs80MffjX1+ F8vT6PVldXlQy+2s568SlKohL6mKx/gpIJ5eVD9VSKw/uZDw7MjykP4UVGJnVhyxPrbCiLPq25R wJiTHVeWOnkUACemtEQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDA0NyBTYWx0ZWRfX07Ld7JW0Ete2 MKXjm0xZUNtquc/7IC2SDuZeqp/wWSxLikTPGWIIDKvKteVrNCi4s9IvmYLDw9oTWHSxL3GUmop 4WeZv3XQtG8qIHkPKvHYL0iVBbb2MTc= X-Proofpoint-GUID: Z9DbCsZUM9mdm8OJLFM9VsCrSYNoCo1n X-Proofpoint-ORIG-GUID: Z9DbCsZUM9mdm8OJLFM9VsCrSYNoCo1n X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_03,2026-12-02_07,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 spamscore=0 priorityscore=1501 impostorscore=0 adultscore=0 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612030047 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 > --- Reviewed-by: Konrad Dybcio Konrad