Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 462E4606A320 for ; Tue, 10 Nov 2026 20:46:30 +0000 (UTC) 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=nEGV9h2o; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ay/FBfsZ Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xQsj3-0000xq-9q; Tue, 10 Nov 2026 15:45:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQsiz-0000vR-Tq for qemu-devel@nongnu.org; Tue, 10 Nov 2026 15:45:49 -0500 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQsix-0006c1-TR for qemu-devel@nongnu.org; Tue, 10 Nov 2026 15:45:49 -0500 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AAIonZ53893820 for ; Tue, 10 Nov 2026 20:45:45 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= +KhSgRSJ4vtC/hqJOuzHF05zcZQpUJaPggCQ7ReBLp8=; b=nEGV9h2oichc8Xop yhnL4Lt6SSrVS1Zg4NLNmSWbnIKqyQOInfterS+MDKiobPSK38Z0+l56xdbTCr51 JcvZKTPxEC3xuX885CNTx5s2Uk7WyxesS1mp+0yZum8OLa/3phVzaxZxFTMg9Wgl mGBBCAqm9b/JpY5VgD9DhZpLE9p/G0GJCrWnWkb3AdHRZSEfG8iJMlLrgeo6hiQ/ gUldR07IcZFdS/N2gy3U523HEs8s2Au8MVr3PEpfh2YSQNaWS6neDt7OkHKofb/n PVfQXwoK3XI70udWUWXi23pY9vqMXETrNgPNT16HxuDzVrBi+hrMkxtWA+rdTA/w +hhovw== Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hux84b8xb-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 10 Nov 2026 20:45:44 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-91ebb902eebso48218596d6.3 for ; Tue, 10 Nov 2026 12:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1794343544; x=1794948344; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=+KhSgRSJ4vtC/hqJOuzHF05zcZQpUJaPggCQ7ReBLp8=; b=ay/FBfsZaY2bo7SE6xu1k2sk6Z16Pqqpnzim/7umEvETxqRyrqaVNNseCqXzuioyD1 SXAqAL9q740mSUYvF1ejQAChw/WmSg1u6UuUu4Kbg7dpEr7MLONGwu0lYnRm9C2bHety 0e+Tgb7vzlSR9+iRF5mc9OSV/BqB4QTF9xUZl/FkUqkylenmOp8n+Lk2I8YKZ9BMPjWQ rWfJiJhQcYUmGDrDCFIomH+0wgrFvYjEhmQ/sx10zISuIQFnHWYaJPA6T9WEKP+OAu1m B/kM8Zl+5uY1rpb+hp1i9jVsUgbBDEwldXjxGyB1Nx7118kyHXSOrlZ/cqQeWb5hzqX6 Ja1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794343544; x=1794948344; h=content-transfer-encoding:content-type:in-reply-to:content-language :from: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=+KhSgRSJ4vtC/hqJOuzHF05zcZQpUJaPggCQ7ReBLp8=; b=vTWT2HR6R8uTk7bVSLp9wD1aFqSd+HltWip4w7VtnB7UczoNt6ihYBwW9ZYOWs8rtT wBgKcALj1GMhOoz4xo7HGvxJBfZaMKEIam7AWK8ayfH/c2CmHa/+Gr6IpxIlAUn1JiFa EJzOsRhRzvoeWurZOl3YK2u31C3Dd5ZbAm46RWrVDZFL+xFiPyl9koXyOx/RKfw9/Tf+ me/kgwZhPuaOHY2tL1EpkiBK4B1swfUjVa6y3khAgoqFPkDQHNVCAnfuKOz+oGlu42Xg ew22bV3dRwNX72hgEuDxVELV+Lse2orWdd8sMq3Kc9BCPxwjH/2rB3aaJlhKD/e3KuXc oLSA== X-Forwarded-Encrypted: i=1; AL+hErERvG9a9EaQstI95jfP6AuNFXEn0gV94zCP54SCI7H6XBHFQdN+1ZeCF3Tdnqfy0l2oacd9+ysab/vV@nongnu.org X-Gm-Message-State: APuU4Z8Zd5rZmfNnUE/vt6HVbuvpXcVxaS0TheIYb1EHTKUWiWwAqsWp hX8WdcKvF4TPM1brMOqeV9OKBKp4bkcQrsgM5P+OKbcjVcQDWaYKGQ3cArQXTD+ECbXEp8aPpOm SPTqZotaQP+/I5tnwN465ldxxMnd0BX2hS1tYLAKNE0w1StT6Vt8kT2BdwA== X-Gm-Gg: AYBFou2UJcTJAcBTfWOlZeZPxrqM9bP7xQ30maCwgL4R70zG4VtLY52/VN2ZvkIZ9Hj sjwt9vxEqFRlFYJoRWRfCDOYFhO0TX6fXNc2FdMzvj1Bo4e7lEmKWlQywsNXmPRLr+ac9o4MuHZ Gvs66l2LEK8qrCmlvjKYde1JKc5AnUU07oM1O/YA4zAxgdugJ4rK1j0ZX0oCsfHtLifjJNnvsnD H7mdjFPZsVxPaS3Dkon4d4fL9Ub41UcNiyFsPWzHDRPxiu0daK/HuKOHmHuNAovvZpl+3BDDE3Q uuIVnQP6zY/1p/AuY2oqUzRVUhuzU0mN96vDLaYFMX0Bh/Y/iP5MO1KOtxgWGpB6VwByGwzTEiM VzTUpj6TixUqZFL1PY7tyc3KjxLSS0y02Mkee8wcQx9u7x6v1McXXxf3cuCq4G+sZSkbD0C4ewc dCzdn57JRtwQ== X-Received: by 2002:a05:622a:5592:b0:533:3bd5:b6e0 with SMTP id d75a77b69052e-556c1679e58mr157301cf.59.1794343544160; Tue, 10 Nov 2026 12:45:44 -0800 (PST) X-Received: by 2002:a05:622a:5592:b0:533:3bd5:b6e0 with SMTP id d75a77b69052e-556c1679e58mr156841cf.59.1794343543591; Tue, 10 Nov 2026 12:45:43 -0800 (PST) Received: from [192.168.68.105] ([152.234.124.231]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-5550b93ee00sm32683691cf.16.2026.11.10.12.45.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Nov 2026 12:45:43 -0800 (PST) Message-ID: <589e2dda-a1ab-44cb-8185-d3661d7c8f8d@oss.qualcomm.com> Date: Tue, 10 Nov 2026 17:45:40 -0300 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 23/26] docs/system/riscv: pfsoc: Document CLINT topology for direct Linux boot To: Bin Meng , QEMU Cc: Conor Dooley , Pierrick Bouvier , Sebastian Huber , qemu-riscv@nongnu.org References: <20261104154207.641511-1-bin.meng@processmission.com> <20261104154207.641511-24-bin.meng@processmission.com> From: Daniel Henrique Barboza Content-Language: en-US In-Reply-To: <20261104154207.641511-24-bin.meng@processmission.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTEwMDA4MiBTYWx0ZWRfX9gJCAsUZ/uSp z+co5g2yt+Qsg07zb9M1Jp3PaiqXOK3XVZjNBbjYGopJvSSGBF1gC8acSup3SCpGhJGLYbsjmt3 XPVgrACocV8lnpwBr3JgmdnpYJlMGxVdQFTRbaQLKdAQYcuDQUd+weYpBzeGWK4z45PXcFgzH/E 57IRP2ljdTjgMKDat2xrZZy9lVG0tATXGq+s0NkmqGkHHCu9jqQhDnJ4PIrVHBMNsIOoGmYP4w5 lHpQJhDjLrLBwWG4Z+uoYjIXX65V7cu5ONwjx8dh2cIe/pVl3cPc0Wz1FFw2djHh87HUb/dJ/T2 2hgJBLDbF7pb2Ave3/KKo7i4lWVlW4a2jgGuQk/cZdIx8ewsin43v7qSy7SAHJc9vSZOEp4ur0U ydNQj+/SwmBmL8GrnDpu2AKwDw48dwNGWWldNLl5wbHnwOEvT9ikeV6RRRZvXmh0iQiEGQqJE2n AbGwcSNigFVOy9WMyqg== X-Proofpoint-GUID: TIAcoKqpoZSdyP8IZKlVguI2Yi78uCAS X-Proofpoint-Spam-Info: AW1haW4tMjYxMTEwMDA4MiBTYWx0ZWRfX/h0VE+Az1p8u O2NQjuwZOz0Hsgk+qty94LlR3FCVIeYv8qox2/0ORs+bFcGLpBh9vrywXZSjuAh6WcSgZT9UF/w PLSx6UdGE/FGmIUuoe0sSZ/N6KFRTsk= X-Proofpoint-ORIG-GUID: TIAcoKqpoZSdyP8IZKlVguI2Yi78uCAS X-Authority-Analysis: v=2.4 cv=JNSuIMKb c=1 sm=1 tr=0 ts=6af38278 cx=c_pps a=UgVkIMxJMSkC9lv97toC5g==:117 a=8elE1k/PHQNyZ14TNTodlQ==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=FRSEYCzRAAAA:8 a=EUspDBNiAAAA:8 a=6BHc50qNE0_AG4K3w0MA:9 a=QEXdDO2ut3YA:10 a=1HOtulTD9v-eNWfpl4qZ:22 a=H4N_Y-AU75W7NKDNhZlT:22 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-11-10_06,2026-11-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 phishscore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611100082 Received-SPF: pass client-ip=205.220.180.131; envelope-from=daniel.barboza@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 11/4/2026 12:41 PM, Bin Meng wrote: > The generic OpenSBI platform derives the CLINT first hart and register > slot count from interrupts-extended. Some S-mode-only MPFS device trees > mask the E51 M-mode interrupt entries with 0xffffffff, which shifts the > MSIP and MTIMECMP slots when the same DTB is used for direct boot. > > Document the complete five-hart CLINT node. Require interrupts 3 and 7 > for hart 0 as well as the U54 harts. > > Signed-off-by: Bin Meng > > --- > Reviewed-by: Daniel Henrique Barboza > (no changes since v3) > > Changes in v3: > - Explain how reduced hart topologies change the CLINT DTB tuples > > docs/system/riscv/microchip-icicle-kit.rst | 26 +++++++++++++++++++++- > 1 file changed, 25 insertions(+), 1 deletion(-) > > diff --git a/docs/system/riscv/microchip-icicle-kit.rst b/docs/system/riscv/microchip-icicle-kit.rst > index 2159e8e461..038ea7221f 100644 > --- a/docs/system/riscv/microchip-icicle-kit.rst > +++ b/docs/system/riscv/microchip-icicle-kit.rst > @@ -66,7 +66,31 @@ should meet the following requirements: > option. > > * It should contain a node for the CLINT device with a compatible string > - "riscv,clint0". > + "riscv,clint0" or "sifive,clint0". Its ``interrupts-extended`` property > + must describe the M-mode software interrupt (3) and timer interrupt (7) for > + every hart, including the E51 hart 0. > + > +For example, the default five-hart Icicle Kit CLINT node can be described as: > + > +.. code-block:: none > + > + clint: clint@2000000 { > + compatible = "sifive,fu540-c000-clint", "sifive,clint0"; > + reg = <0x0 0x2000000 0x0 0xc000>; > + interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>, > + <&cpu1_intc 3>, <&cpu1_intc 7>, > + <&cpu2_intc 3>, <&cpu2_intc 7>, > + <&cpu3_intc 3>, <&cpu3_intc 7>, > + <&cpu4_intc 3>, <&cpu4_intc 7>; > + }; > + > +When selecting fewer harts with ``-smp``, remove the absent hart nodes and their > +CLINT interrupt tuples from the DTB while retaining the E51 hart 0 entries. > + > +Do not replace the hart 0 interrupt numbers with ``0xffffffff`` when the same > +DTB is used to initialize the generic OpenSBI platform. OpenSBI derives the > +first hart and the number of CLINT register slots from these interrupt tuples; > +masking hart 0 would shift the per-hart MSIP and MTIMECMP register mappings. > > When ``-bios`` is not specified or set to ``default``, the OpenSBI > ``fw_dynamic`` BIOS image for the ``generic`` platform is used to boot an