From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796488622; b=iCYOu0SlekrM3fSWtkev/WjYLvg4Yg6c8McE2wIJVPaX+bQQVoOL8vcLGwr9ctCJONMr ZqXfz76GQcpWkUhxpMHkRBM1+0wgG3gsThAxShLEsZbZLY/Ut/O5mYDTeMiS2JWxlPEIW WwYSEdWuKHhObKYSuagaiHmfXIDGEn0MAzxezngFzdXA3x3lM6FWs+wYJspDs7HTNT9vu AIf0nsDYrAMSRB/tsj9QZ2V66TaBlqdyWP4QVo9FUXovUtX4BEkWEsATbTzGlwXosXhrK 4KylcXXG+kcNwXg2Fq0B+da4NREvExth3c+YKHcxMK+46q72FI9dmOiBJkxjndmwhbQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796488622; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=SJAKqwsNbXOsD1j0WR9IuAS7jtRrqzckaVZWnyQTKes=; b=RSnwwYJ1+Na9SM7yRvRldmGnOJG12J2hSd0Er30edk3KdGV6uFINi3YwSUrmqgJiU2JO vo/LOCIG2WWdbZFoy6ioRmRMUH5iFqSaGg0yRjKPYbjSQ1y7L0yV+hDqUgV0C6AsrPXy6 TjtkG5suQPmQFjsrhM5bADZef1Zq35iZqu+4XUnw8jO2zVxSWRSyHxabl8hkgVtCPLGuh h+MdmBf41l/z1DlNUgSWnfrMB554IKfHnT0xKszFsKKDBrcL4GEbxpY1HKlr0vOn4+MtP QxZQ+hCxN02wGDiL3QAbesqOd/vN+2//Zvyad6aSAidFuu0qQOnjOJnKU9KZ/4xvU/w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=qjW+j7pz; arc=none smtp.remote-ip=209.85.221.172 Received: from mail-vk1-f172.google.com (mail-vk1-f172.google.com [209.85.221.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADA31606A322 for ; Sat, 5 Dec 2026 16:37:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ADA31606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=qjW+j7pz Received: by mail-vk1-f172.google.com with SMTP id 71dfb90a1353d-5f0220251c2so389945e0c.1 for ; Sat, 05 Dec 2026 08:37:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796488620; x=1797093420; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=SJAKqwsNbXOsD1j0WR9IuAS7jtRrqzckaVZWnyQTKes=; b=qjW+j7pzXfg4AJ+WhnvQhko5TmXdmv0FDt2/s52F79mKzC1MDruFO9ozNiJj+fuvQk o7Cu6vIt/Aquf/S2KvcQCy6cVnPTG+B8NQUuHcRWSk3C0ymnJFzxnjkb4D9bYekuEqQL qycke3LTUmz3iNzct87oYL/vZoPU+5H7hkdTUjEh/aEQM/V/Y9nFQobVB0Q/IKmHCyh9 QXIyzw12IIovAJKLxrkkz/3HSpc/uXN1oASQ7z05+58pvCIa0cOqjOqo6QiDfBmJDq2h qIkPFzDTRQ5gUGfr3NSm+hseltNXlQBq/kLhbWOcWSIOmIR7UQvCNV9dSDDIe80PaEAl ZC+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796488620; x=1797093420; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=SJAKqwsNbXOsD1j0WR9IuAS7jtRrqzckaVZWnyQTKes=; b=PZRyUZodCzRy1nVEWzSWiMCVPRKlKI+GJ0RMMC5ySxwudrTgqt7bW/5SCSUDozQWgO S9VV4d+mkdFVpvO/yMbQ05dB4hBwroe2d6+2ZWZbGm405DjEYp2D2Km/qhpc94lyWpBx mGoyxO/G695fJdJmVDuIjqkpXHeerT9QGJkkBynWGYzi7QcNY3gRPdV93kIShfz1ZouB QTfufmOvO8dR2Oli87U4pXGa9wGzZSynXQESm3Y6fupTHKOwWcm8vEEHwAqqXTKcszk9 NJAhx2oYcJGNmS7gUqjesDp+svDHcWSvVrCQlsXA5eFP111bJ+5hFfq7JwaC3fB/tVlW YlQg== X-Forwarded-Encrypted: i=1; AL+hErFYTboQX/yKqHW0UbKJKDVH0fW5w0FVrKNzC9Ldn8EvYYh/U/pjr2jGTq9lzDivADESq+uVGNGhEKi9zBsd@vger.kernel.org X-Gm-Message-State: AB4q+uGaGXAlIypCHEruzf9CvAS8i88A2h96wX9ClK59Ho3o4KgRVEHb bOfIADJkTeGGYAWdToUwRxiP6fgDgIxUImwOLJcxGSZqzaiLMOb70e3N X-Gm-Gg: AZFdTZfQ1FTJ3BBFVzd+ifMWm1rIp0FG/ZzK/nsVee84kvFm4r6rzI8DrMQLNr2+Lr3 yNelD/wTbAP4K0fFA4T37tdNoQJM/5FXmiLYDdzds8/QSnp5P5+q24qB4v+r2QuBxnPBY0IJkVq y8D5EOHnUC0t99MvphjXw8y7/4vQCxZae8V0/HKtQ7heWKyOz7nhgMznsBBb/QCex4SvWPfMEfc iIaiNixhhcFwFAUL3tVBWmD1Q1cvqbKrZCjT49J4uO10SZ7oQuhjVJAMYarRlcVn9AkJWzD4NUf sOyspHLH6SiTNgIX8LN8lqawhM3TEZj420hzpbHNFBOyJ3XGrQl3UBCnbx+bxkAKHZF8Dqc1Agg kSgThOAgKV1dczoR+IT9o387VPHIsv1v35L0Ry9ghr8c3e7b3iwtHAAQVfRDBX9BqztnGmVY05s hUx4K9OtWiRlI3b28KPuycAlqr+2iOTrq09+3hNrT5dUM5mhVw0pNFJvzzTqE0yaPBUFUk37FxA abVV/fnSP7EyMwOEwbbwWnk60KL4yU5TxzoUa1kKoSx3l5FSrhblYNxacWgwRNPtIeGRDIi+ys2 aqIqeUZOQfvUM+CiCx1+jMUDAcQ= X-Received: by 2002:a05:6122:17a4:b0:5ec:d70c:6326 with SMTP id 71dfb90a1353d-5f01d0f9cd7mr5396103e0c.23.1796488620497; Sat, 05 Dec 2026 08:37:00 -0800 (PST) Received: from localhost ([70.52.169.41]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-99f22dbbf48sm2754172241.8.2026.12.05.08.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 08:36:59 -0800 (PST) Date: Sat, 5 Dec 2026 11:36:47 -0500 From: Richard Acayan To: Andrey Derkach Cc: Bjorn Andersson , Konrad Dybcio , Abel Vesa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: sdm670: Mark the ADSP FastRPC node as non-secure Message-ID: References: <20261205123947.1063981-1-gabin278@gmail.com> X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261205123947.1063981-1-gabin278@gmail.com> On Sat, Dec 05, 2026 at 02:39:47PM +0200, Andrey Derkach wrote: > The ADSP FastRPC node lacks qcom,non-secure-domain, so the fastrpc > driver treats the ADSP as a secure domain and creates only > /dev/fastrpc-adsp-secure. Userspace expects /dev/fastrpc-adsp: > hexagonrpcd, which serves files to the ADSP's root and sensors PDs, > opens it, so on SDM670 it fails to start unless the device is linked by > hand. Without hexagonrpcd the sensors PD stalls and the ADSP restarts > about 40 seconds after every start. Yes, I knew it wouldn't create /dev/fastrpc-adsp. Inferencing from CVE 2024-41024, the intention is so access to /dev/fastrpc-cdsp-secure would be restricted so only system programs can access signed PDs (provided by firmware and used to access the hardware), and /dev/fastrpc-cdsp can be used for unsigned PDs (for compute shenanigans like neural SHA-256). ADSP is only intended for accessing the hardware, so it doesn't need to support unsigned PDs. With that in mind... > Mark the domain as non-secure, as SDM845 and most other Qualcomm SoCs do > for the ADSP, so that /dev/fastrpc-adsp is created. Is this the best solution? > Tested on the Xiaomi Mi 9 SE (SDM712, which uses sdm670.dtsi): > /dev/fastrpc-adsp appears, hexagonrpcd attaches to the root and sensors > PDs, and the ADSP keeps running. > > Fixes: 2334f8419168 ("arm64: dts: qcom: sdm670: add adsp") > Signed-off-by: Andrey Derkach