From patchwork Tue Jan 23 08:51:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13526993 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 896C858116 for ; Tue, 23 Jan 2024 08:51:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705999876; cv=none; b=tvn7zEVjm3O2JS3Pgx6hkw+bI0rN+lU0FhqTcoskysrDKee0smi5fTOXv3CvbUCqM7R34SLD49dd96cVzVnWGoaArOiiiPxIDR03gBxMEHsq2nWLx1EWTbsUEkEqgNHJ20pH+t31LKYGa32+nENEfszP9ICJ+pQ6CZ/5mbObQJE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705999876; c=relaxed/simple; bh=rRR5cMdowQD37b1QLQeJzIMOWHeOKxWqLrlZA9RBV6U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ty3BMZlWHtxUakpCMzknSb7BGs9vFNNfyfWIlBbeS8pjgr0iOc+xpdHRXhReyf6yB5l3UdrnaeKo0B+PeHAoWHm418Cd5oHq8/e9GfRN6RnptT3ivBjfo8TaQmL90VW76frlJCqXxp7I9iZPaR0tdUenQYoGUzsO7e7v9boq6UM= 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=Ajwf3Ln+; arc=none smtp.client-ip=209.85.128.45 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ajwf3Ln+" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-40e8fec0968so52209375e9.1 for ; Tue, 23 Jan 2024 00:51:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705999873; x=1706604673; 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=2jYyhb3ce+oVfJ46+Ys6X9gpvFU4mxPDFw4WHRGQ0rI=; b=Ajwf3Ln+RfuXFiLLRQd8svqoyj82JYE1hq8P3MHka5s91lfbePqn1vZIMkBoLCyHsi EtDmjnKbsKDdny8Sqummj0apvD1krUPtdJ74gCnULBFVKp9kSCKMY60qk2JRQMFTj4EH FMUUs6h+vzQ38BO6C2Ow65/Hs5uou8elLJjWL9FeaIRm/hIMMz2D/thBWOBYN0eWaJC2 +3c77O0ZXQZv97t4vS+l/D0WnzpBE5db+ZHQeeEif0DJ+mT41SRXWHIQNLnVoO+MdyX9 6x4hN7GYex+Q5mZWmseNhAIpdl2smavEmcE7kWD87mojZA7V1ManwAJG73AEs2yGfr/Y DzBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705999873; x=1706604673; 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=2jYyhb3ce+oVfJ46+Ys6X9gpvFU4mxPDFw4WHRGQ0rI=; b=P2oyUGPbjgx+dXeQJNRX5exjXmSlY3PmOEz3IzK5vt6eGVs0uvdz/4Rq6tFlDygXFQ 8l16ppPt7g7EGU2Z5pJ6xTujZU31bHjoUjA258IKWC3KSMXT/Modprr0Yiz/R5yZIXIh X+WRnDSkfTMLHWhEOGiGHscsmRKRYIJJq1tr96zymIaWyESU4m05D177CclGukVTIqHg BbTyVx0iuDod8wOU+8BeYtvIE9KCDB9ba7kcGOSfu+PnOQi0CUdNeWwurq5y9jkmv6/L bUoR241Vf3jSa6rAPRLQVQtb6lPMBWzANFJPk0YOKVHUDjfYsC6j5lzUl20SBY3Wc6C8 Hsqg== X-Gm-Message-State: AOJu0YxqBWcMMyYSC2Qqn0oOdhV1zn2HBYI5E6/ddT2sBYV89LKBmRYq sBwlj+ylITKd2XMyId6fMQC0rjq3AKORcHagfASSZgIrRVkGNgjcoemx6ahj1kA= X-Google-Smtp-Source: AGHT+IHN1PI/Kpe+y5W9HlwYZLEJus+4FRD6OsieLK3Ku/1nXXiffuqeBY8spFBO+FnYoXJ2leZJOw== X-Received: by 2002:a05:600c:538f:b0:40e:76d9:e5ce with SMTP id hg15-20020a05600c538f00b0040e76d9e5cemr335701wmb.219.1705999872785; Tue, 23 Jan 2024 00:51:12 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id m35-20020a05600c3b2300b0040e541ddcb1sm41847342wms.33.2024.01.23.00.51.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 00:51:12 -0800 (PST) From: Neil Armstrong Date: Tue, 23 Jan 2024 09:51:04 +0100 Subject: [PATCH v7 3/4] remoteproc: qcom: pas: Add SM8650 remoteproc support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240123-topic-sm8650-upstream-remoteproc-v7-3-61283f50162f@linaro.org> References: <20240123-topic-sm8650-upstream-remoteproc-v7-0-61283f50162f@linaro.org> In-Reply-To: <20240123-topic-sm8650-upstream-remoteproc-v7-0-61283f50162f@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2548; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=rRR5cMdowQD37b1QLQeJzIMOWHeOKxWqLrlZA9RBV6U=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlr3370qqzLAkmBP7Y/mGUgU6OjZrM1y2dPZFN23l6 R0WlODSJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZa99+wAKCRB33NvayMhJ0eabD/ 9tFFhliM5kTVOJ+0DWOd4Te/fjkGVS+mjAsHQs7H3ZgNauQlULtXTiPXwH1uUBzuXYbFebUrSbe5j4 9/1ui5ZiOIQosMyjvVOgyF5lcI3b4slqWJUn2VcSsT+L4ZPBRcv9RDGV5jKIM1RMcVpjSbloJMBMZC RnbiEIed29ZOWFu8GdQGkr7aM36OSyc8WU/HTnEjRtQMpfWwZR7NuWN5MyM2wydRjo394709koRyXc IQVTgQURS/WnUhV2i4I/JMr5wpZ0LrvxYCojJzlFi6vaapo80ONlRt6yeqm3nrzySCUW6Ojg/cJLm2 gEykbGz1iNC9jJjgvyy5wc6Fliz5mRxdlYfQqZ8xVuaNpQAkgxL7i2HBZ7eY7WH0JjVijqHC7YjBF0 cdpBHiuthAKZYHixE8RpyGPRHtcLLOzKun8UDtDyYbqPOF0OPHEcnQROddllnPRcxSPvG6m5ZwtYxo B/vwRxTbAG9o7gzVv25Cx40IcJ6nhwXTa0freg1uFI2AC1NidR9QVauwqNSsk51q2vRqh5nf8EWXUy TL6TWdtchnz+dU0XLeMLs1geeATYy6Pby5vnULz2BM1styDwzrd+Y9n7ua23drdh+HjVm0H0N5w3zi pj0aVEFXZYUlwgJdFt1DoKzZw6YipxGoJpHLBRHmpUmMbKLWOY9YQYWCfsZw== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Add DSP Peripheral Authentication Service support for the SM8650 platform. Reviewed-by: Dmitry Baryshkov Signed-off-by: Neil Armstrong Acked-by: Mukesh Ojha --- drivers/remoteproc/qcom_q6v5_pas.c | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 09e8ad9f08c4..d0b1f0f38347 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1213,6 +1213,53 @@ static const struct adsp_data sc7280_wpss_resource = { .ssctl_id = 0x19, }; +static const struct adsp_data sm8650_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, + .region_assign_idx = 2, + .region_assign_count = 1, + .region_assign_shared = true, + .region_assign_vmid = QCOM_SCM_VMID_CDSP, +}; + +static const struct adsp_data sm8650_mpss_resource = { + .crash_reason_smem = 421, + .firmware_name = "modem.mdt", + .dtb_firmware_name = "modem_dtb.mdt", + .pas_id = 4, + .dtb_pas_id = 0x26, + .minidump_id = 3, + .auto_boot = false, + .decrypt_shutdown = true, + .proxy_pd_names = (char*[]){ + "cx", + "mss", + NULL + }, + .load_state = "modem", + .ssr_name = "mpss", + .sysmon_name = "modem", + .ssctl_id = 0x12, + .region_assign_idx = 2, + .region_assign_count = 3, + .region_assign_vmid = QCOM_SCM_VMID_MSS_MSA, +}; + static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,msm8226-adsp-pil", .data = &adsp_resource_init}, { .compatible = "qcom,msm8953-adsp-pil", .data = &msm8996_adsp_resource}, @@ -1268,6 +1315,9 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,sm8550-adsp-pas", .data = &sm8550_adsp_resource}, { .compatible = "qcom,sm8550-cdsp-pas", .data = &sm8550_cdsp_resource}, { .compatible = "qcom,sm8550-mpss-pas", .data = &sm8550_mpss_resource}, + { .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}, { }, }; MODULE_DEVICE_TABLE(of, adsp_of_match);