From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.67.36.65 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793480363; b=VwnqNlnjNZ9e3tozakmZkMAu8ZSY9Tk8NBoPvz7bkC1ypEFwipEfO5S5eKBGabjanqm4 0AkkAWVkLss4P9x5ejRMFauzR5pK2cdOeqauSmujHAeIvQmaXLZ5OsYi4hcrV1gulHP2F eM4cGtqtjfZHkakATU+wxvrvzp+CpoQY5ovyk7VLUyvoj3hzkEMrT65aXkeQxSUinIzUC B6jIgHBxHs0jn9FHS9fvYSfh+2KAwY5WuR5y9jIE8rUniHbpaVIPWQdVVPFovhPVOqt8X d8lcffP28j/inipYTGnw3I4I8nbH+bAm4dDWWiRgDI0LJ/YZLUJk2TVeNgqDmY2Nfdw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793480363; h=DMARC-Filter:Received:DKIM-Signature:Received:MIME-Version:Date:From: To:Cc:Subject:In-Reply-To:References:Message-ID:Content-Type: Content-Transfer-Encoding; bh=m4TcohsJzsEPAJsBPzHPQnX5dlEW21LnhghKMfVe/VQ=; b=Yzo7axH4QYpXt80YQHnoLc5so6QIcozegJR65N/zXBdTcdRbQ2i4ScD+u0vvZu/cv/2Q qlfxL/oNU7+wWiREYFG8a4MbhfeLj1JEXxTFKuZxN48PavDdJzi4uIZUUfMbvBMfZ8qIc NSoo4wfo0Osz+FkirC/Kpx3x5vVR3nruqC3ar6AOLAn6ipiJUv6PXQSswS0jdo37te2Pk DjtWZP6lSyWVHqaImA2GaKA1OgB3ayEbyBi6rMzRlkqynpPPR3ug23PRE/s4+sbQ7ULGj KW9Nuyo9ULOENzCAyTydXpsL27nIAPe8FYjiGwNk1n8hugbhZ/EqzyyyYu3J4FuwXRw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=posteo.net; spf=pass smtp.mailfrom=posteo.net; dkim=pass header.d=posteo.net header.i=@posteo.net header.a=rsa-sha256 header.s=1984.8680eb header.b=Ae30KHgP; arc=none smtp.remote-ip=185.67.36.65 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (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 1ECBD606A321 for ; Sat, 31 Oct 2026 20:59:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1ECBD606A321 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=posteo.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=posteo.net header.i=@posteo.net header.a=rsa-sha256 header.s=1984.8680eb header.b=Ae30KHgP Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 14BA5240027 for ; Sat, 31 Oct 2026 21:59:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net; s=1984.8680eb; t=1793480360; bh=m4TcohsJzsEPAJsBPzHPQnX5dlEW21LnhghKMfVe/VQ=; h=MIME-Version:Date:From:To:Cc:Subject:Message-ID:Content-Type: Content-Transfer-Encoding:From; b=Ae30KHgPmU1P5Ej9kF3bnsUs/flIG6V5JJ4q1GEG3yPbc/zFW+1sDUqnlkR5JAykm 7FQiUeDChm4GF8FLHjfZeCreeTA07qtARFpdV9g+wBpURBzSMYdwPjUMDnHySzif4S YxMtsM8rTulrPLlSNATSEIMudOQzSQEypsDCdhaZSXn85Ps5e45/1Bh8dlcu+Aqjok H0zKpJORi8RpPT2cPX9LrhJkqmoOMFT7bHPmOVzyuKEmN1XoDhQl7T2LkfkETDmcmj yfNArxusWCt9DFk8wmnLCK8NQABKrboTf4Lz+2gMX2g4vOq2bkXZxFhhMHZ/FgBYfu qDIhKHc7povfg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4jH9Lr2kdmz6v4k; Sat, 31 Oct 2026 21:59:16 +0100 (CET) X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Date: Sat, 31 Oct 2026 20:59:19 +0000 From: mateusz.nowicki@posteo.net To: Marek Vasut Cc: Arnd Bergmann , Alexandre Torgue , Maxime Coquelin , Thomas BOURGOIN , Rob Herring , krzk+dt@kernel.org, Conor Dooley , Lionel DEBIEVE , Amelie DELAUNAY , Patrice Chotard , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel , Geert Uytterhoeven , "laurent.pinchart" , Fabrice GASNIER , Stefano Babic , Etienne Carriere Subject: Re: [PATCH] arm64: dts: st: fix arm,smc-id of the SMC watchdog on stm32mp2 In-Reply-To: <7ff5f937-144b-41fc-ab0d-82271a01dde1@nabladev.com> References: <20260907091400.55954-1-mateusz.nowicki@posteo.net> <7ee09655-2fef-4334-b0aa-b56f7ae03f74@foss.st.com> <1b14e1e4-962f-4391-91fd-b09143641643@nabladev.com> <7ff5f937-144b-41fc-ab0d-82271a01dde1@nabladev.com> Message-ID: <799394b5ac7067cd2bb2e06117e53ec3@posteo.net> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Hi Marek, > But maybe there is some way to probe for the correct ARM SMC WDT ID ? I agree, the ID is not discoverable. A revert or a board override would not help firmware built with a custom CFG_WDT_SM_HANDLER_ID either. Sorry for the trouble on your board. I like the fallback idea. My suggestion: - arm,smc-id becomes a list of IDs. - The driver tries them in order until SMCWD_INIT succeeds. - The SoC dtsi lists <0xbc000000 0xb200005a>. - Boards with a custom ID override the list. - Older kernels read only the first cell, so nothing breaks there. Trying a wrong ID is harmless. Old and new firmware both just return an error for an ID they do not know, as your two cases and my DK show. One catch: OP-TEE answers an unknown call with 0xFFFFFFFF in w0, and smcwd_call() compares a0 with PSCI_RET_NOT_SUPPORTED as a 64-bit value. The driver gets -EIO, not -ENODEV, so the fallback should move to the next ID on any error. If you and the watchdog maintainers are fine with this, I can send the binding and driver patches. Best regards, Mateusz