From patchwork Mon Feb 12 17:02:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 199932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp46638dyb; Mon, 12 Feb 2024 09:04:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVSaMdyhgBIQBRUGKTbJ/3Gxe2ITokmivRlplUrYp16EqjJ4s2mHctAEJ6Zh7pKFpPlVDnc0NE17PybVraCOQ7361G//A== X-Google-Smtp-Source: AGHT+IGE/huetm+FOQVdeppGAbhl3qxoBwoiGLR2g9v7ZI5Irjwr5BT0yHRMaUhQcTlmQnyIYbwR X-Received: by 2002:a05:6102:558e:b0:46d:2c3e:4a02 with SMTP id dc14-20020a056102558e00b0046d2c3e4a02mr6417707vsb.33.1707757443205; Mon, 12 Feb 2024 09:04:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707757443; cv=pass; d=google.com; s=arc-20160816; b=lfQy0hvFDMXiacpBkmmYgus/2YWGp6838QKbaU/qusg6fnGQNYqqj/DSMN1YRpU4m3 WGDOSYBneJ4KgUsZ3+T8acrRCq4u4IOTZWVJh6LCxlsSuKWO9wHHvE5NF8pthbk2vB7L 0pe5JhpgjC0WNYdI+YNfrS2nWQHsoLcrY7aIdjpEujakGZwCs28xR5+5ygCwOT8naZsy TQIrUTYmZ4YzUkWmZrdDyZHeUm14Qt0dNicNLt6H5j5v26j7ErhRzC0LMbWwUtryolgC sXdK3JpRlYNTEebcXBp0z9TmoGKYn1L8PS/b/f9RYezugyZq4w2J3Vvh9GLRhufDSprk 5jUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=N/xOBeak0OAnwe9iXVzoh3J5oS3uEnYBKWEW1cqisNA=; fh=Szt3zNNqJJmjVTJ6iO20wFnmrrrGHQ7jvf7lb3XdlXM=; b=m5paFD/OK0ZHL+lOtFHFkQuUTVQV18XFfKXo3hTZzVBNFyZDkpwcb/5zSkm2xLMWnM 4UDk9XqTeHISVVccOcqRYEcDYdJ3Cx7+gu4mzvRm699D6fzZRu+O4vS6iHrnExUCe5cH r5d01m12F0EVBH0t8k13BnlQnpyN5hhRK6j4G5kQlkVykBKC7f63UXHTP5Lz7JWEqcxL pHF92eu55PUrcny21K7NWcicyR87KcG7zcWPubrFgCMQTUs4KmatVYkrrmGM5fFVMx0l Bw3VOQFXxpGgnYRQ3G9aVYKBT3mjBX9t+hsZD1ugWwZc+xx9ASVB0+66e0vLbASMhOFN sYSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dd3gyg2J; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-62032-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62032-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCV+WFPrclEc4/y+YErQYOTk+SCLS09tkVifJ7zcRWPYb+9+RFcZpsARE7ZWIbacwuDl0kOuoqWmX2VPH2BnATKmhvn20w== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i14-20020a05610220ce00b0046ebb6a0de9si365203vsr.559.2024.02.12.09.04.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:04:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62032-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dd3gyg2J; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-62032-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62032-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E4C621C22315 for ; Mon, 12 Feb 2024 17:04:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 508FD3F9F0; Mon, 12 Feb 2024 17:03:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dd3gyg2J" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 326203D56B for ; Mon, 12 Feb 2024 17:02:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707757377; cv=none; b=erbsTxgek7JCPnCm6REsTo55HA1qy/k9qOJp/kWplzs7RuqwV4SLWDQg5AzHRnHQimfvupsESz5FB+6bhGl0oXlToar9+bPzzCYvjr6zw3MjI7X5OKue7dTciNSTbC7RvbRgu2HOdumHiAC3Ore5cimLF5vWQlc7HJAY0QJpQEU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707757377; c=relaxed/simple; bh=J7jd2gMJ3Tb9cXuCniE1aroUmfQInY2z+BgcvxEs/MY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bA3AE9cjDcmb3xKUN7qTzAB+4x6gtmYDW7QXctm/hcB1QeG9J62zpdGAkfXnoyYXu4IqO7YZp2OrDZQVzd1FbEhyqoT6oVXC6G+gyWtER1LKGWA00G/ytfZ4zg3ARKZuuevafus6P4Y/hudcJHtKrbGJwVs7UCyTLHuxKteBEtI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dd3gyg2J; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-556c3f0d6c5so42226a12.2 for ; Mon, 12 Feb 2024 09:02:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707757374; x=1708362174; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=N/xOBeak0OAnwe9iXVzoh3J5oS3uEnYBKWEW1cqisNA=; b=dd3gyg2Jz/6SxKvjHq56YRXnvmLZrY3d9MiQ/GGQxuzjIdgn1m5k7pJwdxHqewY+iH lS8za3b5bBJ6dv1V76PprAHpwuzEZHAmauut8F/ISlk/e+v5xPPpVdzySH1FTCmNa/Hj tCAkHLoSFwvujt+9hdhBSBKONW0NYhsVJYQmhNGzPdDEGenDwen62bXdw56hKK1iz8qO EIWlsYdB7JV1pMC5aecMSQAR+L0ILRHjpQ2xt8msjt4pA4JZpWLhLwhY+A95NIo/noyy CjmYn3kSt15G6AEjy4/uCkNtTYa0XJ3owQeiy4WEC87YSvDreYKDD5wHLSgB82kiCgzm h8tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707757374; x=1708362174; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N/xOBeak0OAnwe9iXVzoh3J5oS3uEnYBKWEW1cqisNA=; b=kYxCg9OvkOxs+YHJ5IDsgv1vMXjMr6mzfwSJ54nN1qafFXOJpqxIfjDO9stEXs4qT/ NjW2KOnFgFCPdK2sceUqkUUExaVKUxwAN5B3c1sgZHZkBSIrbIPalm58AgZHn/ZTMZ7D Y677ZJRoOtvVRvWCfn+bDRASt58d/7m5lFs2VszljEKKaROGlzLZUUZS3583KtQyvwDC QsV2No6c4UZ1gVqXg/+LAWczeMyJhDg7p8YEHz7axfavQ/yH2zATjulhmWfLSl76C98j sNsCisPpLP8mr4othyMNEQgoQqMeo6Yiha3JpFHaMRB7VqI6D40Jl9ZpVh8oWAUpieyV OrEQ== X-Forwarded-Encrypted: i=1; AJvYcCUDEjUwSWUD6K3pJOKsJvUwWoFrpQLW+JvuN5qbpaYJvGRp5fwTaJ3D9uEmyW2Jo7muTbmymedHNMfpJ7ZVd/yd6pZRtgMphItRlhSC X-Gm-Message-State: AOJu0Yxvr3zcoM9PNOsdif0v5ufnxnMY7m9xbJy0VWQYrTUKdIi4B5My bQCYWdQuK3qnFBqTgLN6xdbkxCDTsPfnUD/0IzXvsz34vDNCG/7LhnyXSMIxGFc= X-Received: by 2002:a17:906:e0d1:b0:a3c:ceff:e83 with SMTP id gl17-20020a170906e0d100b00a3cceff0e83mr1237231ejb.74.1707757374314; Mon, 12 Feb 2024 09:02:54 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXJpWFp6a7r6ytMcJ1HbyUkfLc3x2Dn3zsZi2gAjN8qFgT22gwCVzYuImF47O1HGVS5asleme9K+yRSy4IqVDlevSecHhnx1hXCM0aoe5qTrodhfxiWoX88PoNQfC4BqihFd3zPOKX1h2ui8X8igHkXrizMkQQbjHXZ36Ti31/6CGLJxrgOwLfUqkdP4wcwpp/7E4X/pXSiyr1UgrMN9d3rkOjXWSO/oqPZvbBExVCKh0bfBL+WgLX8DsWrFD+uWz2RFy3pM4mv4V6LUZB4hqwdt/vUgLIWSju22z5+wZpqdTs6a0QWuFX3+KGbCQGoGEcSZ1oPdFQ7yRpds2oKQQx5TZiJpSLiHV1+Hr9CCzoy4BSLluuWX16P1VE5BaHMIcnboG7jGtsDlCXptLwPgARpTwkY7vTPVPm3F4uWVzXgkdsnt/1QN/X4jMOqIs6tRldYqno1trtnvQJZFbSFRkcSQoAzkfxThqhqNsr7KqpqbsA23TEi Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id h23-20020a170906261700b00a3c9951edf1sm379600ejc.115.2024.02.12.09.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:02:53 -0800 (PST) From: Abel Vesa Date: Mon, 12 Feb 2024 19:02:42 +0200 Subject: [PATCH v2 1/3] dt-bindings: remoteproc: qcom,sm8550-pas: document the X1E80100 aDSP & cDSP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240212-x1e80100-remoteproc-v2-1-604614367f38@linaro.org> References: <20240212-x1e80100-remoteproc-v2-0-604614367f38@linaro.org> In-Reply-To: <20240212-x1e80100-remoteproc-v2-0-604614367f38@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1598; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=J7jd2gMJ3Tb9cXuCniE1aroUmfQInY2z+BgcvxEs/MY=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlyk84aFuNm4He6ERGeWKDXJGHHxrGQvV6hhEWk ymMwrW6YWOJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZcpPOAAKCRAbX0TJAJUV VjpVD/9fAqOCHq/Lln43dvkvTYiijac1ab7ii12CHShHaN2vm3CFY7aYXj5yMyARJH+tsn+KlR4 ipq+I8osZCnPP8Ye0dE11muyyOwR2w44YTQYeCxeEqGVRs0FchlWgBb1AXzpOfLY17aD5r6M4RS OKwz9IUlVa30vpa0fp7+e/cxgTpq1XJvBv+yePeVB3HIxKpjPUU4Z1tlmQGS1Ic/YxS8xqiKq6P CX1oKYf0YUvNzjqT3esKfqwFeLicoypYB34nK49Q0eKyZjwbWiuRExAj5i5wYxbJg7rrFTb7rrk w9wE3sWtqylcNgAmlHV4zFSJ1w9WU6+iArecFb/m0wlYFGWqx0S+4P33Mf3FFDh0aaET/uRF4DS GOZRn7rM0SUWFz6vR+tuuqHG/3X3+TC5+kPvt/Z85kwRcEidStSpn+NhoFTGouh4mo1znrA1ijA ZwJIuA8EIJFTcW3YVc3YzbTIcQEkBamxCw3EoEXjDtzsVh6vg+iaTqD2YXHeVs4YGY1zcvu/N1r WuH5O0lMa6vOE/SjtNf5d942Z0stTL1S32X6K3i7Jg3KRiBAzT6fDe5D51B9E0HdGh/n5S3M4Af 0Acuvm+6SUAdHxr/5qf3ab31TyvnGIxGMcSwSvULA0n+6a6nIj4fzuWNmxKMmJJuqmC+vZLWBGX fBTljd1fcbnBWnQ== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790713468692944798 X-GMAIL-MSGID: 1790713468692944798 Document the aDSP and cDSP Peripheral Authentication Service on the X1E80100 Platform. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Abel Vesa --- Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml index 5f63b6b9a8f5..73fda7565cd1 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml @@ -22,6 +22,8 @@ properties: - qcom,sm8650-adsp-pas - qcom,sm8650-cdsp-pas - qcom,sm8650-mpss-pas + - qcom,x1e80100-adsp-pas + - qcom,x1e80100-cdsp-pas reg: maxItems: 1 @@ -69,6 +71,8 @@ allOf: - qcom,sm8550-adsp-pas - qcom,sm8550-cdsp-pas - qcom,sm8650-adsp-pas + - qcom,x1e80100-adsp-pas + - qcom,x1e80100-cdsp-pas then: properties: interrupts: @@ -126,6 +130,7 @@ allOf: enum: - qcom,sm8550-adsp-pas - qcom,sm8650-adsp-pas + - qcom,x1e80100-adsp-pas then: properties: power-domains: @@ -159,6 +164,7 @@ allOf: enum: - qcom,sm8550-cdsp-pas - qcom,sm8650-cdsp-pas + - qcom,x1e80100-cdsp-pas then: properties: power-domains: From patchwork Mon Feb 12 17:02:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 199942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp58094dyb; Mon, 12 Feb 2024 09:21:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWNHRbHRJ3vedpqlufkXTj6Up1gCbhiP3rix34vcuuZBYsuUkYIkHc7aYRxKFKo60HQSD+mCghRUA26LKE4mp64cexAag== X-Google-Smtp-Source: AGHT+IEHxvO/gDYIpU2p+ZS/0P3O1Ezl3CmpKHbVVRnqTjVrKEfDqpVINB60+Dm987ObXpy7b97V X-Received: by 2002:a17:906:cb89:b0:a38:259c:1334 with SMTP id mf9-20020a170906cb8900b00a38259c1334mr5119050ejb.36.1707758505565; Mon, 12 Feb 2024 09:21:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707758505; cv=pass; d=google.com; s=arc-20160816; b=XsOUFOxca7Y4i0flAI8JpnIOA5ju7PsQtbQDlKTPxYIS7YES4NmSAJ+WJL1SrTvpTm CsZfmSEUBZLCnMXve2pXswA9nnYks69Ba4hbrXPrQ6epeIBle2/cifEb5MmZ2hhpIDBO 7OxPcIWMr+b5rTqDwS07jmv8HphOVy3MPUg4ryjdArtkqGd8ui01paK1X9dBBJWZYSaw 1hAAut9x3aRFsZsrYVjkNQVb0jD5stIhp3AgA1XB613PYhrmrFD9kjLqejEPr5oy9no3 R+Kcz4pQde4kq0lt584eorQVM/N9w5lizAFdeGFfQ/IgPa9V88q0O0hp0gYINkPpM89Q +7xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=rjCn+gZPOrTbl0ucLTpGe/LR+NcWFo/Oy2/3QGB2w4c=; fh=xwtFvXdCKhsgBZQWDEpIvqckw7XKNNvKI9VXXKWJxBo=; b=FZtgsEv+J21SnlxL6KZYxZddjw9TqGPGp5LPER0NA7ZYtKxn26YacqxbSiLvGbQs2v rEbzCHh5paHUq3uCBOQfOzklUfSe4TwNO+vfdPsEFezbOnLfx5EzgbRNm8WM/M1G4gFx 3dNkfVURj0J/Vb/9mGDtp2XV6APqFMu1uegRV1x4Y7wxoNW/OaPPW38p5sUpmYPkcXez xhSR8Fn5b7AAXN9RjmWn1lyQXi5NNNusJfzoc63+fgVZdGLC4Kb1WQj0UsR8uXDqWijI 7d7Cu9svwPaDzmEKEezKTNaiCaxfYRBCD0bZ5Pjs8w+C4qRD+UXFxKD3h5YpuvqTMbOL Dxfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FwL0T5Pq; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-62033-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62033-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCVceBiwCvioRmrC/k5uWDCrf5QjbgxqNO1vGdvfm2AVm7QRJDAq2TbT5bYJjmCsv5a3GbgEgfBhxl+2TAwwME7BYe3ENA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o9-20020a17090637c900b00a3c37ff3f9esi345022ejc.243.2024.02.12.09.21.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:21:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62033-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FwL0T5Pq; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-62033-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62033-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 86B5A1F277CE for ; Mon, 12 Feb 2024 17:04:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 909423FB16; Mon, 12 Feb 2024 17:03:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FwL0T5Pq" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72BFD3D56D for ; Mon, 12 Feb 2024 17:02:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707757379; cv=none; b=lOafLMIiKSw8UlLDn5tF4+Xn2lnkOGvILl5zo02L5LeJJOQ70usi5HEJXJ0W0vg06bDaU0Z9ReROQ+QSm7nMzngb+k8zuxD3spjPFPnlmdhPrUGjmRP8AUwXoOmlSwAHYmGzTwXyZ8Gy1Mz/r1adpmXMxBZIO5afYNmuNbeRwB0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707757379; c=relaxed/simple; bh=EKESDVvXWYu6uCMu5hdrdB9UUsATkMSXlhAix1vAuhE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JciVzgbx2Qba1AXWaNVnWi18vlNuvcBnfS5fc4laX7Gpu3g4o3jIb/4W5cpcecMabTrrJZ4ECklNXa4IYaZ6bbnWsA0iQxxROO/RW/cUenSm8osRishidP/af9RIqV+TGeCRY6yitKFJB781FP7rACsc+mVAfBBcn3Q2pNfV4lY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FwL0T5Pq; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a3cc2f9621aso95241266b.1 for ; Mon, 12 Feb 2024 09:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707757376; x=1708362176; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=rjCn+gZPOrTbl0ucLTpGe/LR+NcWFo/Oy2/3QGB2w4c=; b=FwL0T5PqSV+qum8WhW6DY/mgCQ/YwIEK+jR5VdYVgWbpTYzFPugsmcNnpP0JjR8IaU MrY7zbQxJUaSc/oj1ujw1zT3MyLIHuxCU52VREsaDiEntu5N3Bgxef2NhAJlR9Ijrrst PN4ei5/xhmTVj8epHxg3uB7GoWG3sNM+mM6uuLaI2s0PWDsV36lWvhEAq8VyGOhLhfpj QbElz9QSgUrJP5M1/f1W2Aq+X3pi2qvkTte0rwTZAvBb5SntUVF7JGpkFj7fFJEvDHXk 2a9SkWyu4639qOfcno5d40eTyGTJodzWN/IU5/Fj/h5Q+9Q4ybTV8dZYXSLM+Pb2z7iB bgng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707757376; x=1708362176; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rjCn+gZPOrTbl0ucLTpGe/LR+NcWFo/Oy2/3QGB2w4c=; b=omG5gLc8T+AZSPbj7GshyBU1/Ix1vAM1sFXSQD6qz6mUBYPEzf2DApO4OUC8/gu2lh RgbM5fxyimCHoRboD4lFbURGlCDubMX90ArULBFS5LFR3WuvXcM0zP/3jno+68rME+Ha WvtBn7/L+bvYx+tCFo4m/C263w5KCX7mqJK+JGCtws4RQwQOG7DxN30X2wOYuIVkw+9p PE5H/yv2Zaw4STssxnACfjC7ngr08Myps9tp0zUWKQVjQsBk9jhuOXsAaQN2xWqwMefM a5ZJXnyn0nsvh8f7c9jQoUCZCuZS+9jjpkbD5Jzs84cazgA13fZJc0lNUg0og1hN2DBc Jxvw== X-Forwarded-Encrypted: i=1; AJvYcCXwlXFO/DBqGmLnQEsHAGzxE2hBy/yA8jk4R3iVOoDHMS1djrUdCMTchUTX8uLfN8k8ffWj27Y13PukJMKaeq1ELpj8s6A/Jv88pgeP X-Gm-Message-State: AOJu0Yx9Dz0xh7xRGubwwSl7NlXSLyf5/9NAHidI66l8oFHlnb0NNwlO p1FJCRGVN3b6NXe69az0kBrHUCGYumLyd6hEpOmHgfWUyBAG1AYqVwXqOWuWdY8= X-Received: by 2002:a17:906:b7d8:b0:a3c:932a:a002 with SMTP id fy24-20020a170906b7d800b00a3c932aa002mr2532777ejb.43.1707757375681; Mon, 12 Feb 2024 09:02:55 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWdvYRca3FGaoDnbytcnQdL31hpDDeYGF0dF0/NJTRGC3YqzljFRBbMc0KEGO9ttLf19IErTWFSLz28ds7EQ+xbZgy0PRZRMVlh+K7hKGDi/Oq9G45Gft+iL/ihaTKByjo3bg2ZQ4UBsrcyWj+lgau2F1UC8lm54qVwWHYJzID8uhmmAjuv+YXdpiBFit13wE+gF5d6K+MmcK5pKllNRJQ5wExJ1jxKXI8n1buBNyGRkhMrady/36xc7lYEReEA5/f1RK18xGIeZZNlTviEjxbpWF5w1Rpi941UuH8Sr5wzrM+wqlMBPQtHsxwd1DNlHxYe21RkXMO26wBqkDL6ysx2xz3kPkWBIP+8zmaw/4A9yPzbyHkQqI2jLK/caZHdbe2HTiv8fRDpjgl5H4uakfdxvCEFt/5UzifGtZqoHPF7tanHUX1f7FCoE8t+RwFAQVN0nuRMSyAMJp2XQVmUXMtMeG+XPHAJSJ+g7RhX9ooNpHL2c1D8EBGP+AQWSnOV70GjTTH3/dnrEqM7 Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id h23-20020a170906261700b00a3c9951edf1sm379600ejc.115.2024.02.12.09.02.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:02:55 -0800 (PST) From: Abel Vesa Date: Mon, 12 Feb 2024 19:02:43 +0200 Subject: [PATCH v2 2/3] remoteproc: qcom_q6v5_pas: Add support for X1E80100 ADSP/CDSP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240212-x1e80100-remoteproc-v2-2-604614367f38@linaro.org> References: <20240212-x1e80100-remoteproc-v2-0-604614367f38@linaro.org> In-Reply-To: <20240212-x1e80100-remoteproc-v2-0-604614367f38@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa , Sibi Sankar , Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2160; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=2WGVTfBXt1ZBHFcYk5Qb0wU5DJ+35rlYRVDBLPba5ZI=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlyk85l/QPHm8fvsQOV7sAno4c3Y8YmPL2xBOvB 6ZZIM50/O6JAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZcpPOQAKCRAbX0TJAJUV Vo2cD/oDmo0Im9UuNSajSItRRL42mc0hdFHcRiMXYFWizAIIY2Jg1phMcKnJhaaaVd+oE/7Pd0u Mtv4tPGKCRhyk+S0s95MlJ/jQuH1ghE7rDZ+TY2djfSWX9q//bt+Naf2TQn9K9VjD/YmrRVRDTE nLtUw3x2Pl3uRwwXNEcOqVwN8af6rYxrB75vwwiO7sMiAcKzekKRPssD1q/fu+fPXJ89hQN6k8X Ke96bMQVn7DpiPPPZEx1OYym8dMPZ9ZPGvnOfhvBg1As6b1K+k89IM0ghbl8oMQEOlIT7JFyRAK qB68vfdOWOxjNygd3JD6MhMETaXoGr9ZnfypQUOFPUzBs/4QmspkZFtIPiyfgkVSf+Esv7XIqV5 q/T8rlJX22bpu1iDh8cn5xj2ymUZ+hXjfLGP7POq84LAU8+mew+uLt24Je85E+X1OEayChhGKio oU8D1zcqdxpg16iPhnVunUcK5Lca5udBgqL5x+bQSzJiAt/5u3dMEBMBYGGvz0suOhwZTIeEvLw FOtKssCe+AVTT7Qw+t2IR8fRQJfLyMGGDoMEBi+xb9gMx7OUhB73212uwAIb+QPIO71UsZrEInV bY2yjHhi0O3erRug6JBMV4FHBk7sg3cEA0IOV6kE1QUs8OPMNxM/+rI8FOsuIPqbodmN3B7rGlz J4Kuni/kTOs2Pww== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790714582747172830 X-GMAIL-MSGID: 1790714582747172830 From: Sibi Sankar Add support for PIL loading on ADSP and CDSP on X1E80100 SoCs. Signed-off-by: Sibi Sankar Reviewed-by: Dmitry Baryshkov Signed-off-by: Abel Vesa --- drivers/remoteproc/qcom_q6v5_pas.c | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index d0b1f0f38347..117fdfdfbc26 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1014,6 +1014,45 @@ static const struct adsp_data sc8280xp_nsp1_resource = { .ssctl_id = 0x20, }; +static const struct adsp_data x1e80100_adsp_resource = { + .crash_reason_smem = 423, + .firmware_name = "adsp.mdt", + .dtb_firmware_name = "adsp_dtb.mdt", + .pas_id = 1, + .dtb_pas_id = 0x24, + .minidump_id = 5, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "lcx", + "lmx", + NULL + }, + .load_state = "adsp", + .ssr_name = "lpass", + .sysmon_name = "adsp", + .ssctl_id = 0x14, +}; + +static const struct adsp_data x1e80100_cdsp_resource = { + .crash_reason_smem = 601, + .firmware_name = "cdsp.mdt", + .dtb_firmware_name = "cdsp_dtb.mdt", + .pas_id = 18, + .dtb_pas_id = 0x25, + .minidump_id = 7, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "cx", + "mxc", + "nsp", + NULL + }, + .load_state = "cdsp", + .ssr_name = "cdsp", + .sysmon_name = "cdsp", + .ssctl_id = 0x17, +}; + static const struct adsp_data sm8350_cdsp_resource = { .crash_reason_smem = 601, .firmware_name = "cdsp.mdt", @@ -1318,6 +1357,8 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,sm8650-adsp-pas", .data = &sm8550_adsp_resource}, { .compatible = "qcom,sm8650-cdsp-pas", .data = &sm8650_cdsp_resource}, { .compatible = "qcom,sm8650-mpss-pas", .data = &sm8650_mpss_resource}, + { .compatible = "qcom,x1e80100-adsp-pas", .data = &x1e80100_adsp_resource}, + { .compatible = "qcom,x1e80100-cdsp-pas", .data = &x1e80100_cdsp_resource}, { }, }; MODULE_DEVICE_TABLE(of, adsp_of_match); From patchwork Mon Feb 12 17:02:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 199933 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp46899dyb; Mon, 12 Feb 2024 09:04:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVXIoqLNyYCdL4KPU4cR4K7TO4Jd1Kq1NX6LDkFqKWjGKJN2mBDrIHnXitZZSh+D2D6q4LHnwleWKzGE38SKItsbSyy8Q== X-Google-Smtp-Source: AGHT+IEIP9XoJFX7lmMpzWfuGmrLCJ5DDIFzIOR+QXNZAFz6EQAcXQFtRggHbhCcEm2mpXIBxvJD X-Received: by 2002:a17:90b:234b:b0:296:2afe:25e with SMTP id ms11-20020a17090b234b00b002962afe025emr5262293pjb.32.1707757464382; Mon, 12 Feb 2024 09:04:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707757464; cv=pass; d=google.com; s=arc-20160816; b=fmIOx1jwkWa1EfT7ldBUbqDauxsTHrL5CxrO0UdGPJzzjrYzcUc/ieOJwNvwkNEyUI vWQn+yDdbCwid8riDfXFZsPeYu/WLS702JoVTRdhamgSCrFDQDIidqn0zdls0c2ZkgHq tnXiU6IX59zBeTzx9sOMGhAHRTJg1jD6DAECkpcv0OP6siWq/jTCF/sncA3lGj5WzB8O /1pgX6SQMK4fn6rZRxtUZWp+mYkUDcAwFglR3ysbMPdaVcbumuE6bn5TEOS16JJznNC+ +PiqLCkYFDz980v3fOi6n2dBEmcmkeEezepwm22re+y91wgxPMJ0uoxww0GqkobeyQAd LcHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=qzBgpfFit+87YhLNiV85KS1arSw6rjj+6NBv4OlIr7s=; fh=9N5gO38GmfZ4Q5LNUTJFHspRd++ZYM7ncw/oj6G7W3s=; b=grUIkQjGvJAV0cA5fRyHqI/+cGNlGZhoFizvABO+dpTXm5ZvpYs38PzU0EWVdkEP9n NKVBbi7QDv1WvUSVPrkSe4p2ZAlYU7SCpvxevMnlNtzItpvKhRAnlf9TlkeDNz+9a30k dQDlRVgmrORvJgd2xRoDdm9KW3KiOQW+h06Sel4GYQh+hkWgLZ5rmPTMg+V6/dGF0eVe vob3Lc7FlepeAC2/viA+zOB7sL+GewFJr9aea0A7Jq91GiXLBm36tXcyQcN4jamWOHle CgJfBCJrp2h0o2CHt/ZbpNl9iKwjEnfTNthU3a6oGdohX1AaHkNBwuhynfsFWQrmDgUY XU8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Xp/8UMxS"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-62034-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62034-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCWGnlEHcG2dRUBIQXnsG8UH+pDm/SoeDF4Ihq4qs5mhWQJ//yR9dXe0/8je59Kf5ewSklvMbw6C0nPFqYx8Vlt/aleM/w== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lw1-20020a17090b180100b00297208169a9si562391pjb.30.2024.02.12.09.04.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:04:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62034-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Xp/8UMxS"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-62034-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62034-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 29562288B3A for ; Mon, 12 Feb 2024 17:04:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D81593FB29; Mon, 12 Feb 2024 17:03:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Xp/8UMxS" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF5853D579 for ; Mon, 12 Feb 2024 17:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707757380; cv=none; b=j+oV+FimRpYGzRJotSH68wNfm8wKqCq9EEDyFCpIdcApJ4qeh3oh/LazeDSbp88ak7J4OCMOmfNrLc4babCQoBtHn9l/iJQPCP9trRp2gkbWRGU24v4PxaoR7dfiwrU4ElZx2agyPIWQ53XU3GvZacNSJsU4a6u09MWgxzUn9PE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707757380; c=relaxed/simple; bh=KYbfcSCObq9Y7TWbsBt1X4vUh7ieGGCaQrtS25nOIKs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r0jrdKEJfVo9evhMk0QjPsNzNkkfAbd91+v0E1SNmFo/aiQ2AhV9IFP3pzRcb7oDKJVxky8cQLPCB8XWdmbgqxS1MPW3Z0fwlnaAoubUA4S2mbZ6qCqPveTUuiUBan0/pqzCjXcvJWUzX6vxA8+v+C9jq8ZB1rDtPIqV4iwbihM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Xp/8UMxS; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-55a035669d5so5066856a12.2 for ; Mon, 12 Feb 2024 09:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707757377; x=1708362177; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qzBgpfFit+87YhLNiV85KS1arSw6rjj+6NBv4OlIr7s=; b=Xp/8UMxSi0pdIGPESVP8v7BhHfAN6pwrmrkLWAmDPbjDYol1UA029ZZA/RcuXIzlAP whdaWPDMbE59vApZRX7cwGldGWFlLo8U1+uoV10X0xHjoKo14XaxxXFOUcJhj955wOpa qWhbtgA3gQIdzuNa8HJ8xWxJqu5Ss/hSqBjPyxZn/3zq7aIlI81mzVg2pu52M34GXGzA +KF0idprO6v9Bz+1jVg7lXDSELMPYnlbtVurknjejshW7T4jJTWOhm76pCucjbUJM+3X vOH2oEJ6egN4P7Pp4ozbWKsZOvQgsB+pkt3RPKxw0Gktx/bCEfqjIsrBl045t1lzyPS6 rU1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707757377; x=1708362177; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qzBgpfFit+87YhLNiV85KS1arSw6rjj+6NBv4OlIr7s=; b=nye8eYWFbxRBZ/4E56XNT/c30YuuHjJ8kfEpOkpdGOmwJ7XaByLTqi3Xn8OPOSl0Ax m44gQDHZ0FKvIBKDCQ6KETWeKljNa53Aj8XYPMR1OKT6ru2r4Xdt3+3XAYkngERduPpZ RHjSauD2l5EdAr7Qq1Dit2PTAtV6/a4gvKuo5bu4Ir5SHptC66zmTJS/ZH/CErw1tkV4 qzXcLQajjp00jT2R9xvAql2VyI78qjWmPFBGcODGhpUgWzLFb8IUFyUu/D+Wi9wAZbE4 aCt0MdxPSqrRetQuIAtLuxZbsZAzeMD3gOZwzT7FBRDWTpNf49Cm2vJa50a9AGzb6z8F pCnA== X-Forwarded-Encrypted: i=1; AJvYcCX7q4D5GkG8WfLeAIp/6u1n5ZX1pc+L3NGGvEY3eVyuuoubJEtQeAG47MUvSl/Rv1ZECg4nuQjSlw8cwd/laBUq+zbq6qdptzdvR/+K X-Gm-Message-State: AOJu0Yx0jOgByjjWsfjLGAe1imZYu/ZCaZRnSY13ZXyUrNmhcAlsszXn DVmdX8ZSbqwHwFx94c2lhiVv6Gkx5+A0bNdRwJS7dIhJ7bmG1fRGEJEwkC0iGec= X-Received: by 2002:a17:906:5002:b0:a38:45fc:1f01 with SMTP id s2-20020a170906500200b00a3845fc1f01mr4799708ejj.45.1707757377152; Mon, 12 Feb 2024 09:02:57 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWCe0+hF+inQus/Rc8nTATr1d5w+Tc3H+Q65e8rOpHKOW7rz55IlR/lDuhOXBi4bzlJuaVwgif6eLZWBIQA2z0Y6K6CeI9r940uDKCEsFHDZmIcgX0wNR15bBxav1VJvbAuOgxFXrWAytYkL6wajO6e1RE00+V1twS8jcMYG+Hg+sbrpjWuIdz11hXxjlGsc+wHHI92kx+SaCtPnCrvnUwHpTPWx8jtsmdBM3mzsGy38cRoZsJw+j7tytVHRwCLPzUfzmDzGfLmxPpFrAywoVESAJJrej0jYMxT0aQRR0PipvWHfHTOSMaCAHEvUTSZPtijeF1fhwVfLoTJrxHfzlu64rkNMbzC1Oj9x4jKZepU8cp8XvoZwe1MMf4iBGhe6McVnJoBSVc5ljMDobyfTqJgZOoJTwvcByckL9fGwzhnYo78fHug379ghw1ECmovX6W4PZrsxQIaVOvWLrwrxHLFgnPY39tWnANUTWhAEw== Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id h23-20020a170906261700b00a3c9951edf1sm379600ejc.115.2024.02.12.09.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:02:56 -0800 (PST) From: Abel Vesa Date: Mon, 12 Feb 2024 19:02:44 +0200 Subject: [PATCH v2 3/3] remoteproc: qcom_q6v5_pas: Unload lite firmware on ADSP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240212-x1e80100-remoteproc-v2-3-604614367f38@linaro.org> References: <20240212-x1e80100-remoteproc-v2-0-604614367f38@linaro.org> In-Reply-To: <20240212-x1e80100-remoteproc-v2-0-604614367f38@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa , Sibi Sankar X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2097; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=pK64jih4vFPFZcmgDeFClY35f13oGGe3b+xiPwzQtC0=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBlyk86letr6BgkGNok75q8FkQqp+5XwcEzKCPlo e5Fn/1UnDCJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZcpPOgAKCRAbX0TJAJUV VhmLD/9D2yaRbOyfC+DrEoSDGVOiC9PAQg/srH+JDUAuuDxUgEHUC0/wQQEvB4ict4/mds0bv+w gwuiwSBssen0pdFkeqTWpFx36dpN1+J7h8ZUtMhCrQ8aJMxy1PK9Ph3T9RZm6Nlp0tVY6drg2oO rQsWfJgN3CoaLxmmCkmfw9oIVDBWPrcwGCnfi3eZTssXt0VFENEOTwnNCrhBq4XW2h+Szg5AuKf WQJUrronakABCgX5kXCXO8Ej9AvVcqPNizovIKnzd+IkY23WH6521veTxeZOY075TW1odA8a3zT GxZaDJDyQiQ5s7vlne2XAlgdnRWR5CrWHTPTtmyyTRqjcF+NNor8QeTSpt2qoW88O9eLu0b0hDq DhdgB+b17hMx7vWbblCPCwLwSyRzoI5GJGRAW32aadNtFnCMsMvs4MkH3IB9XIoUNPw9YXSSine 1FzjCFuNWIXC6AMRtQJ6pycgKiCOij5IiGHlyFo+JGrTozr45a8IA16H5SGoAVE9xRQeizufpWi 6wKgKV5xdikwzBxXnyL+ybhL1WP70LYrskuRc8DuM+BH0TMbz4EF3qvupe11ru7HX1EyeiR5Ck2 naVt1Be5de9fuRSUimpOOyMvtfRhUbk7F71fz4Mx1enizlU7/p49JCjxah/hbwfIU4B3ycAZB1t WCJM92K3yw1d2PQ== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790713490745977716 X-GMAIL-MSGID: 1790713490745977716 From: Sibi Sankar The UEFI loads a lite variant of the ADSP firmware to support charging use cases. The kernel needs to unload and reload it with the firmware that has full feature support for audio. This patch arbitarily shutsdown the lite firmware before loading the full firmware. Signed-off-by: Sibi Sankar Signed-off-by: Abel Vesa --- drivers/remoteproc/qcom_q6v5_pas.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 117fdfdfbc26..581ae5e570e8 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -41,6 +41,7 @@ struct adsp_data { const char *dtb_firmware_name; int pas_id; int dtb_pas_id; + int lite_pas_id; unsigned int minidump_id; bool auto_boot; bool decrypt_shutdown; @@ -77,6 +78,7 @@ struct qcom_adsp { const char *dtb_firmware_name; int pas_id; int dtb_pas_id; + int lite_pas_id; unsigned int minidump_id; int crash_reason_smem; bool decrypt_shutdown; @@ -218,6 +220,9 @@ static int adsp_load(struct rproc *rproc, const struct firmware *fw) /* Store firmware handle to be used in adsp_start() */ adsp->firmware = fw; + if (adsp->lite_pas_id) + ret = qcom_scm_pas_shutdown(adsp->lite_pas_id); + if (adsp->dtb_pas_id) { ret = request_firmware(&adsp->dtb_firmware, adsp->dtb_firmware_name, adsp->dev); if (ret) { @@ -720,6 +725,7 @@ static int adsp_probe(struct platform_device *pdev) adsp->rproc = rproc; adsp->minidump_id = desc->minidump_id; adsp->pas_id = desc->pas_id; + adsp->lite_pas_id = desc->lite_pas_id; adsp->info_name = desc->sysmon_name; adsp->decrypt_shutdown = desc->decrypt_shutdown; adsp->region_assign_idx = desc->region_assign_idx; @@ -1020,6 +1026,7 @@ static const struct adsp_data x1e80100_adsp_resource = { .dtb_firmware_name = "adsp_dtb.mdt", .pas_id = 1, .dtb_pas_id = 0x24, + .lite_pas_id = 0x1f, .minidump_id = 5, .auto_boot = true, .proxy_pd_names = (char*[]){