Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2574834rdb; Mon, 12 Feb 2024 09:03:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUC/viH5yq9ZoNAT1QLlXrE/1MXi6t+nCUMuM04vn+KsBUH1ZvOs9e19nTYLfMbe4wMUfKfAME5lrF9myIggrtx6yj2Z0Fyj//cs5CF5g== X-Google-Smtp-Source: AGHT+IHBaoLqswtH0YYq6WvqEvp3QmeyeX7qazeTzEXzst37g5kmo7byFFo+s9cRmL6X9NZ4Pl48 X-Received: by 2002:a05:620a:51d3:b0:785:c2f1:aeac with SMTP id cx19-20020a05620a51d300b00785c2f1aeacmr6981423qkb.30.1707757429007; Mon, 12 Feb 2024 09:03:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707757428; cv=pass; d=google.com; s=arc-20160816; b=UuTP0anjBiVTWjAH92Cbnc9Howlji3rsXIeNKAcuEqcWtUoHxp4YFL6gDMprOr/5Qm fsH2wKD7XxYV1qJ/Q349Q/QTjal9aptxvmVUuexF2i6G3PeOU97vDMBlAmKk8Muujz11 XVgc6HraHaNzKpGie/D6VaLgT20wo8XDrQ1nL/SEJFAADCF+T91xfm+VaUdBX/HNM1LE T4eZne/TykOTJ7SvdQYyBXgyUQz0rjCgvpV6r0oY6xn3Y0GzFDV4UFYYxd8ZCOpQl5Ef 82lf8lUsKGkv2A8CSj9RsvvgAN6STsubmyOtd/w/oQt0DdRY9LGSCTSh3a4FAamVC/Tx YKPg== 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=M7sOr56Z6U/7vKgm6CCtqyjSNqC6Uvog4WswCon6C/Q=; b=YWb+xARYYyL5+Mt8NgpXFxyblbbSWJYFQl3FX43spztfi2YGch1zJsaxs2+zrsRqjk dPjGS+FXT+ibEm+n7qqMem5jWmdvD0ULuQgTjPIPd3Frb5m0bHBCAcl2pR605hdg3+uD 98joBZZUMTXwDtGwSAEeCtd0tKZmI5GHkKPIpSylQb/kyjtvNzIitN1nPSCYlpoIKZK9 Y+oPDUaI/SAzsPS0zIBYxKqWJH29CdBZeRV+irntvq+91JLAmZUc7A9BOcxHy2rPz7GU 1J+Y590OauX0f7V2W+u9qeYixJboWzM/+UxUbiJlWYotXmiXUw9m3/pq3mU9kL51n0TB TBqw==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62033-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCUa4a/KtCPwEjD3DgcAbGWqcM4mLiHGQggI8vNxu/CGxJ6dISnwYC9Y7o7E47811mjAMETWThgUAzdMOorzTCPYoUcIg6GTK1WmE52sww== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id os25-20020a05620a811900b007859c72c927si6196900qkn.777.2024.02.12.09.03.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:03:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62033-linux.lists.archive=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=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62033-linux.lists.archive=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 A9BA01C21B2E for ; Mon, 12 Feb 2024 17:03:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AC2D3F9C2; Mon, 12 Feb 2024 17:03:00 +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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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); -- 2.34.1