From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796536075; b=RPADTEe6ssNlCYJlMiBIulrtKrxWNe7vv34xqlIAYa5dx+8ET8QXH2sno+qmykZmkRsj 7sZADbWIBJmAXKyNJfo4+/h48mFc3GoIqy1mDQCTWi8SYbKmpfGi0/oObCL01khXjTjsO wIoVSSErc2W6AqV/CtG49jviCk3iAErg7snX5TYe6wa8hjF7VcL3gQpFPMHMoz8JiKuM0 oLjBwxwRYx4V3cuzbfSgSCRXcEIQiB4Fb6ob5kQLOeA4joHmd9qNQYYb97NPgJ5Bazny9 w1ziZgDkdZOnkDhSH24mYkZBtduOJm7NGTsu5J3ylFbl78SZ6Gx2TVacxTw2KY+Z6sQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796536075; 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:Date: Message-ID:From:To:Cc:Subject:In-Reply-To:References:Content-Type: Content-Transfer-Encoding:MIME-Version:X-Proofpoint-GUID: X-Proofpoint-Spam-Info:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-ORIG-GUID: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=kZv05sdfVeVHzEA80k28eMLFEdYnY+RsolBXwzfwcrA=; b=JyxqAp2koQgPOlP9nkWah44QI11YJNQmexWk+WwBgIP1sjlrTU2DhD0sVnxVwy7+ZFXc QLR+N9MfxXIY4r6wjHbTzadJmecWMiQ9esEc6iLvJ1D3B3G7fUUUUYqdS0wT7PLKzpmuN 4mkA1bFv4Ffv1d8E5P6wWqU1pg41crC08HaEdVa3ccj39gMj7Q2OftJ3Sy45Giid83Pa9 +HdGwA013m+bYt81QuMTgwaGrAggm3zKmLT37nGywt2tnRHYVnEyrUbqEBmrNJZ+F9kfe 1HTA/ZRec6XxFGeS5BpQu0Q42eEi6EZKmDPMJ0R3dt8TUZF55/G2valtYnk/BkS/jow== 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=i2EbZh27; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b="ecCsR5E/"; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 30646606A321 for ; Sun, 6 Dec 2026 05:47:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 30646606A321 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=i2EbZh27; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ecCsR5E/ Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B63PvbV209779 for ; Sun, 6 Dec 2026 05:47:54 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= kZv05sdfVeVHzEA80k28eMLFEdYnY+RsolBXwzfwcrA=; b=i2EbZh27eR/yqgif 2h5aBTflVMFiwUmXh6HPuWxWan1SX3UktvhaVom7Quga2VqgwDFzse+iCbh4TLXl Sx55HVT7m6v0EGYoyJJ3ZyD/Hk3iu+n5I4LdUPrCGA4lg/vjsuey3sKHyWwsWWp1 S58oxm31Js34I1Mbia1PNdYBb8dabFTdKA3CB/myuT4pE9Uv0D2FfLvohnsEgv8Z 29iBhLwl/4cSa8ECwzXkPlYnjmiaeZuRoMMLTowoMKV6F6lOksjgccr2et0c800L JdB1ByC1EyS+ntniAgqLwWr80L3qbUOa7/u2rPQqzmR5I1zIejZfrgiJ1B5yd6Im f3MkCg== Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jcbmwtyun-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 06 Dec 2026 05:47:53 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-cde02b50dd6so2226317a12.1 for ; Sat, 05 Dec 2026 21:47:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796536073; x=1797140873; darn=vger.kernel.org; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:subject:cc:to:from:message-id:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=kZv05sdfVeVHzEA80k28eMLFEdYnY+RsolBXwzfwcrA=; b=ecCsR5E/1fc02huqVg7FRj63ec0K15a+AMHKlM6CgJ+6NX5LCIh9OhSkIsAng9I4QO oREgymGArMaU4V15BOFzmRbL88j7rUlGliGr872QfVHS4UJN48ewkn8dE8bKIjgE8BmL 9WHEaB5+6LV282P88CA4ON1W7PNpOQQw3soJ1khqhi+mS4VQnU07xXrKFWtoB76OeTM8 nsHtoHWP/We6lm2X2xkjIvitRMWz5oXkgbGKhDGHeIPkaYm0tqVKDFnxt41JD0L7PT7y EVAQZ8XIQJgfdM/Wp7dvkL95vf9+UiHMgcGga51OQMqi9nRQdOWpC0ddJlGDyRoBPFwL KASA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796536073; x=1797140873; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:subject:cc:to:from:message-id:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=kZv05sdfVeVHzEA80k28eMLFEdYnY+RsolBXwzfwcrA=; b=wmtwhzBvO0t21vyDMYwWKSXOaPGMVh+7y/IINcJ5eZisiyFYmGu3U9iEPXIdKOWeTV ReC6m783o8Ns9/rM3ZbeaOmVAkYfngoftVU1tJL0JSVqEEO8MWzNU5ABgD/HU9rpVJ4f /DGBWwdAJjk/gIzouSyPPBGDezxbfi2RUbm4cadh6fw/IAAO5eZU2+1Mv8vGkc1SOI/e K36PA8FDU3+o3pkiIQG3wfWLD44AtSOmF52XN+qx1vFOG6e6xE5N89kXQp5oJVoSb2+g NjIyNtm51LotzoQy4kBYMS6cWUQphgvkzHZfeJ4F8PNBMZ/Pksk5ETnAZnO4NmBL47qd tgyg== X-Forwarded-Encrypted: i=1; AL+hErGDtItf0LZ7wtB4GElGomJHSCJvtctdzN1bJkoWGLcENvgqol6byTefP0tFK4efzZgzNtYOWqZVFviKPoQ=@vger.kernel.org X-Gm-Message-State: APuU4Z/r7U1vSvEiK565Z0ujFGO7fCqfpJ912I8IL4EBwUX39fNEft1Y SkPQDyR5ZUVkssGgvIgz84yTLOnHWirZjuqAmr84LKjnZEtJMxksfbyyKx1u4czvHkdPrQ4mYtx WDz38iHx/njakW+PHo9xlfLpM3HDNw/9Tshd7HrOqmXKiXcnvvFIYEJRMnIg509tvpyY= X-Gm-Gg: AZFdTZeA9/CuoxG0e8yl0Iud7B9nI9Aw78VmpphAw1PlJjjco1WMYvQlqliHw3W3IOH URLNd8p0ItmBYaiKeMaFih8VFrN1b84LF1toFWVJHtNj7qkLNk5xNSUaERZxihFJOyhdSh5up2a JQjRCSA8dIWdw98gU5R02ZakMzAvQfzFfeGN9c+oNDCSdsa0IXyxYefVkxVnhUeE0CUoX6/4KWL crPq9QxZ9bwAasj3V/VtoKSzK9uiN0PjjbX5VlAkg7d6337fiDqoP1tVq1U/P3bAuan2YhFRHEh Ja5BWp08QmqRmO9/OTXNT+qQMat+TuC9a6yB3XhaA/7ng+FE4U9cMmDiu7Zh8i8UUvhXT00nW08 YQxOWlSxJQ3b5kvol6SgpzIFnFUuet+dyORj6OCh0vojLa/gEbnDr48ePNxUFn8XXbfMYNprwtN hWcagMDQkkZQ== X-Received: by 2002:a05:6a20:a10e:b0:3e0:df21:9df2 with SMTP id adf61e73a8af0-41561339c8amr5508393637.10.1796536072738; Sat, 05 Dec 2026 21:47:52 -0800 (PST) X-Received: by 2002:a05:6a20:a10e:b0:3e0:df21:9df2 with SMTP id adf61e73a8af0-41561339c8amr5508376637.10.1796536071977; Sat, 05 Dec 2026 21:47:51 -0800 (PST) Received: from localhost ([120.244.9.50]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-ce123564738sm3360578a12.6.2026.12.05.21.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 21:47:51 -0800 (PST) Date: Sun, 06 Dec 2026 00:47:44 -0500 Message-ID: From: Guodong Xu To: Junhui Liu , Yixun Lan , Anup Patel Cc: Troy Mitchell , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] riscv: dts: spacemit: k3: Disable the ACLINT SSWI node In-Reply-To: References: <20261204-k3-dts-sswi-disable-v1-1-a852d915128f@oss.qualcomm.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 X-Proofpoint-GUID: JwvgiAK4USIX2MfX-89CFO6h9r2QzU9s X-Proofpoint-Spam-Info: AW1haW4tMjYxMjA2MDAxOSBTYWx0ZWRfXwDJcfq5r7At9 kbx076uA/xHksG9W4WFDaGd114+p6rmsWVd1LtlWrY7u5EvzHiZrYHrnfBykgIURdjxOByibYlx uhdY2UNwjRy/FfC8bx2fgbryyhIU8I0= X-Authority-Analysis: v=2.4 cv=ToJzFzXh c=1 sm=1 tr=0 ts=6b14f709 cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==:117 a=38Z97H8LnFdPCfNg/9Oelg==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=WQPD-fmGAaO2CvKkoM0A:9 a=QEXdDO2ut3YA:10 a=_Vgx9l1VpLgwpw_dHYaR:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjA2MDAxOSBTYWx0ZWRfXwfQOX7LRKurI JdU9TzxPHa5UL/y6wfnHwgIVfi0HG2ays7ix3Eh/WNFMwPTyxH9H55dA4T3k4ZlsPn+heKCbw/T piIKZs7c+3F5kFCO3dP39OCvmFc6Dw54vNBq1HT0MTYbkr4YVJA7b/LB/EJcuOObaWaqluLyk8l i0fixMNoe7OoYzfksl7D9XtvW1GBaut0nhjhEHv7J2r04vWyypAxb+o9lkbGm42gZ6t2WF/8oJs rZNleSv0vE17IXF9kJd+NZeJSsoA4sVjh52Zk0Lrto7MWd6gF6X7TB4YKpmkc4FtLFSa33wtXCc CjatUuxC0ianSWXMRMy/l78sC/Kolzv+jigOCqx6Ti8LXfmIYfLVJ5Fw3C5WhUBIjDbeQaeIMGV +bTJiTPOJysD+gpLn1CQSsYLlsbHe3gPB+Ii0AfN1JFQzVcsAlHfnRR598ONE2VWlvR/0vAhuSI IL4vMliPiq6fdwLD0rg== X-Proofpoint-ORIG-GUID: JwvgiAK4USIX2MfX-89CFO6h9r2QzU9s 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-06_01,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 spamscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2612040000 definitions=main-2612060019 Hi Junhui, On Sat, 05 Dec 2026 23:50:48 +0800, Junhui Liu wrote: > On Fri Dec 4, 2026 at 5:26 PM CST, Guodong Xu wrote: >> The K3 has two devices that can deliver IPIs for an S-mode kernel, the >> IMSIC and the ACLINT SSWI [1], and the kernel uses one of them. The >> IMSIC node comes first in the device tree, so the IMSIC registers first >> and provides the IPIs. >> >> With the SSWI driver built in (CONFIG_ACLINT_SSWI=y), the SSWI probe >> then fails on each boot. On a K3 Pico-ITX board: >> >> [ 0.000000] riscv-imsic: interrupt-controller@e0400000: providing IPIs using interrupt 1 >> [ 0.000000] irq_aclint_sswi: interrupt-controller@f181c000: register 8 CPUs >> [ 0.000000] irq_aclint_sswi: unable to create muxed IPIs >> [ 0.000000] OF: of_irq_init: Failed to init /soc/interrupt-controller@f181c000 ((____ptrval____)), parent (____ptrval____) > > The initialization failure above seems to be due to both drivers trying to > register as the IPI provider. I don't think this justifies disabling SSWI. > If the error messages need addressing, that should be handled on the > driver side. Thanks for the review, and for finding the firmware cause. The error lines are only the symptom. The question is which device Linux should use for IPIs on K3. The IMSIC wins only because its node comes first in k3.dtsi: both nodes have cpu0_intc as their first parent, and of_irq_init() then takes them in tree order. With the two nodes swapped (same properties, only the order changed), the SSWI registers first, the IMSIC fails to initialize, and GPIO, I2C and the UART get no interrupt on my CoM260. ACLINT SSWI was never ratified, and the IMSIC is the IPI device that AIA defines, with IPI virtualization. On a SoC that has an IMSIC, I think Linux should use it, and the DT should say so rather than leave it to node order. > [ ... ] > > I reproduced your issue with vendor firmware v4.0.6 (built on 2026-08-19). > > Looking at the vendor code, the ACLINT was also incorrectly described as a > CLINT in the firmware's device tree. This caused OpenSBI to mark the SSWI > register range as M-mode-only, preventing S-mode from accessing it. > > The vendor code removed this incorrect CLINT node on 2026-08-28. I tested > vendor firmware v4.0.7 (built on 2026-09-07), and SSWI worked correctly. > > Could you please retest with vendor firmware v4.0.7 or later? With v4.0.8 and irqchip.riscv_imsic_noipi the SSWI provides the IPIs on my CoM260 and all 8 CPUs come up: irq_aclint_sswi: providing IPIs using ACLINT SSWI smp: Brought up 1 node, 8 CPUs > [ ... ] > >> @@ -1495,6 +1495,7 @@ aclint_sswi: interrupt-controller@f181c000 { >> <&cpu2_intc 1>, <&cpu3_intc 1>, >> <&cpu4_intc 1>, <&cpu5_intc 1>, >> <&cpu6_intc 1>, <&cpu7_intc 1>; >> + status = "disabled"; >> }; >> }; >> }; > > So, it seems this patch is not needed. I still think it is needed, for the reason above. Relying on the order in which the nodes appear in the DT is not a good design. Anup, Yixun: what do you think? Guodong