From patchwork Fri Nov 22 08:56:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13882889 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.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 4457B1BD519 for ; Fri, 22 Nov 2024 08:56:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732265792; cv=none; b=JWuvlb2Q9tah2Fcrp0bQuOEI2bVgmDZYQoE+ZiNWC85hjXpQSedZZ6m1CT0dYuPs8sIf+Yuk5lmlHyFmt2v2FqODohY9j4nPFu5ga9Sn35mdUvKhPLe2wRKUhgDo8NzKG9ne/nGGf3jwgszeHd6Y/WCH04xqiuzNQBp7DBFSERw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732265792; c=relaxed/simple; bh=F2koBmdyZubej7GEO1XyX3Sem/GjeTvvmVNiCWXNQWM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p3L2ZZqOxqTTwYAbAkNFbwEpk9/NWeUSET81zbspkkx2fMq0xXbgPSOaYG5IYuEoR8mybZ6H1eF30S9nHvy74EHYmEGHzY2MpNHnP9n+TOLheuCDJ0zmR8wxxPqBe22LiXn/oZLw6IshjKbjGLDV9vOSWuu3LHx5VuRluVU763g= 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=X3cWRFAX; arc=none smtp.client-ip=209.85.128.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="X3cWRFAX" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4315855ec58so2763225e9.2 for ; Fri, 22 Nov 2024 00:56:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732265788; x=1732870588; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0q24aZj5UoB/3iOB1xFJKIgPYCub+iJrpgUz3sRy/lk=; b=X3cWRFAX4s2kf17Eb+7UlG9hryuG1h92NW9AOlFhHMdXc19Hrc4iJCxF5AOvgbfDh2 qo8fzR1pm/4YVgEkKCyjwzev9x5iEL0H1cSrFihtKfaBDMo2S9vq96ussZhwp9Qsq1i6 oxovcppug+BS0zt0M1Qg01X1qhMHRUqwSYWG89zeAwpntisdFG184ukV71Am6ZkWY4bR LT5MxHZQptv3br9y5INXYfFW2WI8RaHPtApU5IrEYKLVqHatCVLcuKAXa3MIUMD5D85j lRz7uGK7bIa8yWTHL4tdkgoA1Z9Urezkj8l13jzdkK7oqSUZ3tGKDwgsO2qsAJlUHa/a z6+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732265788; x=1732870588; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0q24aZj5UoB/3iOB1xFJKIgPYCub+iJrpgUz3sRy/lk=; b=THNWU5cAGacEd6+q73HqYuUC3yKH44RmWFKlFiMBnSqQ3GOD/7KS0ZQjKa/Ak7GuRj sGcr99RpIfR6sXgHeV7aZx6rYi7jRjgDeilbqyMJPcwuh2F9zHnlDxdbqSh/CrPQ6VdK YUoHaO0VQTa9iGxXEiWmZ1rY6QiedNhl3WmjZ2b93kEmEoawXNVWbUwW2TWKtUrBm49k m4jpAoHot0EMDix1EjxtVOuDMi45x4TQn76AyX6Bc0xtDQ1+cVyd5IFCgU9eUTeBtEo0 tueNOFJFrkpWVYt/WmsRyeNvYZupqA7KMpsHiOV3rKEi03GWsRgXi/svpMc2dFEGilmZ OMSQ== X-Forwarded-Encrypted: i=1; AJvYcCUzCJoCTCqsGD8MGG/bO/vJfCHnNpBYVu7mbwugnojpSZZbyNzBKEUObJ2hCP8hUAP4YT7PgvufURE3alBg@vger.kernel.org X-Gm-Message-State: AOJu0YwfJTdrH6SIANZDPDB07A38IvNVdSaOMprU6CR73LNXYJ9FFdY4 bIoaP6ocB6hTEpq5gB1kCy93zV3JhKV6r2q4MuulV0eeuI+x3UKiLQ3/u/9iA7s= X-Gm-Gg: ASbGncu9QgqPaxU9AsHmXGIZopmU4SNASOy/s5uFwlwKujhkVlMQ4WdboZzSHt491St PW8NqyBKmFhhuE+T26g578ROWg4HwVXs1E+24LxfMKSLOt3shppW2XL10Q24pvHd1RRSNA3wgbI Nd11zcmmVmdSjFB73rmBkxT72h9OjFtyR7D+wo28QDHBRJRflT6fcI9JIBpq4TNEnaf2FTFBTMq KdpgUNoKiYN5rCQmJ33BCsvPaieLAL5x2jgilwEdOOTxWNJJ6t7OMahSK4bW5u7 X-Google-Smtp-Source: AGHT+IHm+ygSxetYz9qzxk45T5z++2uQxDgWuaTPnpb+Sqx9dh7f/s+TWZ+u8q1SsFdpQxAP7j9xVA== X-Received: by 2002:a05:600c:4f84:b0:431:5632:4480 with SMTP id 5b1f17b1804b1-433ce4e76dfmr6350545e9.6.1732265788560; Fri, 22 Nov 2024 00:56:28 -0800 (PST) Received: from krzk-bin.. ([178.197.211.167]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-433cde97c68sm20320695e9.36.2024.11.22.00.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2024 00:56:27 -0800 (PST) From: Krzysztof Kozlowski To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] dt-bindings: remoteproc: Add SM8750 MPSS and CDSP Date: Fri, 22 Nov 2024 09:56:22 +0100 Message-ID: <20241122085623.19988-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add remote processor PAS loaders for SM8750 MPSS (modem) and CDSP processors. Both are compatible with earlier SM8650 with minor differences: 1. SM8750 CDSP has one more sixth shutdown interrupt. 2. SM8750 MPSS lacks fifth memory region for Qlink Logging, according to downstream sources. There might be other differences, because the modem currently crashes after starting. Signed-off-by: Krzysztof Kozlowski --- DTS for both of these will follow up after merge window. Work in progress is available at: https://github.com/krzk/linux/tree/b4/sm8750-audio-part-2 --- .../bindings/remoteproc/qcom,sm8550-pas.yaml | 46 +++++++++++++++++-- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml index a24cbb61bda7..2dd479cf4821 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml @@ -24,11 +24,15 @@ properties: - qcom,sm8650-adsp-pas - qcom,sm8650-cdsp-pas - qcom,sm8650-mpss-pas + - qcom,sm8750-mpss-pas - qcom,x1e80100-adsp-pas - qcom,x1e80100-cdsp-pas - items: - const: qcom,sm8750-adsp-pas - const: qcom,sm8550-adsp-pas + - items: + - const: qcom,sm8750-cdsp-pas + - const: qcom,sm8650-cdsp-pas reg: maxItems: 1 @@ -114,6 +118,23 @@ allOf: memory-region: minItems: 3 maxItems: 3 + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8750-cdsp-pas + then: + properties: + interrupts: + maxItems: 6 + interrupt-names: + maxItems: 6 + memory-region: + minItems: 3 + maxItems: 3 + - if: properties: compatible: @@ -144,6 +165,21 @@ allOf: minItems: 5 maxItems: 5 + - if: + properties: + compatible: + enum: + - qcom,sm8750-mpss-pas + then: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + memory-region: + minItems: 4 + maxItems: 4 + - if: properties: compatible: @@ -171,6 +207,7 @@ allOf: - qcom,sdx75-mpss-pas - qcom,sm8550-mpss-pas - qcom,sm8650-mpss-pas + - qcom,sm8750-mpss-pas then: properties: power-domains: @@ -184,10 +221,11 @@ allOf: - if: properties: compatible: - enum: - - qcom,sm8550-cdsp-pas - - qcom,sm8650-cdsp-pas - - qcom,x1e80100-cdsp-pas + contains: + enum: + - qcom,sm8550-cdsp-pas + - qcom,sm8650-cdsp-pas + - qcom,x1e80100-cdsp-pas then: properties: power-domains: From patchwork Fri Nov 22 08:56:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13882890 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 98F661C8776 for ; Fri, 22 Nov 2024 08:56:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732265795; cv=none; b=KBn0r5goEc9Uld4Nl42oNX5mrdpmHfpIQn9v3QQ4SBfw9+KL47ndXedGVaYuJRaaxxJf825OIdVndK8HvvQ2NZyaZpzinP01wVnoYzmM07wcYJ33vkk2NAtkJ1KoZlu3graxzVnFeevZd+yAs7HbF3G3kb4UsdBvX6ctoZ9DAQA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732265795; c=relaxed/simple; bh=iDnkUJ6+qKrz4yi0lcczfYKLL8cZ5N7uOIHYPvi8lfk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VqZMLCNJt0Uwi9pq8A7C9gWCT2s1ZC/dgBmZbUMvYuHms8veqF1TzqqyBP9vDIgVKJEGZqAuCuouei2I/6cylb7v3C+6X9tBFrMBJp0T4BW3b82APUZInbkEC+l8jeubHfp3hqLyLqGmfvGEbu+eTuBtpSZMxeNz8y3vs4vQg7Y= 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=STjR9WOA; arc=none smtp.client-ip=209.85.128.48 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="STjR9WOA" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4315b0bd4ddso2759835e9.3 for ; Fri, 22 Nov 2024 00:56:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732265791; x=1732870591; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xMexPyi4X/XFWoEQeqC/jUtxuZa+FuBdiAX8hec2Nrk=; b=STjR9WOAU1BhogK0WnpXaPCmSz1cgKONAl7SKKqFCfjsjl32iab+Ee1O1E3aEguSUd U2JJIwWSnM5VrmSt7uMm5JCsXMa1md5h5MEXM700gy4AuFS2xLGqpe+yWyBuDwFeJ4Wu b+W23qE0eJYz/AtXgrMlETP+7WF2dfMd7rw3mYE2WknZktk8Dy5BkVhKhPsGj3bK2Srh J68olxtQw/Ogs5bOpYFE6Nh9NoEZ9RjN8obApoRsO63CeCGbSyGLOuse0oRiVg8hxhJc d4E4RICM+M6A8Jre9OhqYnCDutZtYZ3KV4gj0lHeUWKW4YunDYt/dBhigh+qz2D2g19W yVdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732265791; x=1732870591; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xMexPyi4X/XFWoEQeqC/jUtxuZa+FuBdiAX8hec2Nrk=; b=dMd0u0y1rDcOwCVhg06XEDYIT6JfAFLQaL0xS8RKjFPkkI4HXwxmu+nYk9GygTeNtX Tg+3uB5il0tFoegayXMs88K6bhl9AI4CiDYHCTEIHMTg0S/StvEY7Ek6ZUY+jxwgJYvi JSkqONDhU5H7QQhD/XTjIHFigDJAzZssn356aKXy8QUmBCHCSJWEu26fnTrRfDJtzthN wsm9YoO/eiTAKqLLKvmfJHxXXUz58YQBJSquMJL5ZezD/lnES1YUvvbVbg3u7jlcRSjo NiL+QuV9TOGpEQZKzwCh2k3FMMaE8p1K9wc+n42hgecitUKpYJMZz7xxaYgLtRoaA9Fv JXXA== X-Forwarded-Encrypted: i=1; AJvYcCUpul6eHs4/IMLfMCawJVsF1lzpBKcLIkRFhF5t/XF5YeroYJkiljSLQf9GybZMUYKfq9D57FAk6DnajAnf@vger.kernel.org X-Gm-Message-State: AOJu0YxGLudu64d13IjbEipHpPKd6OLK6Eiba16Pqx6Cmuih9wTYjqCd lazQ88UUmdAGSaixnoFCASbd0EJKWOXwnOl7ovDbDIiCds5tEze4kAQIcUXbZaU= X-Gm-Gg: ASbGncvhEFWsVTO/vIADMo1r771kKyksQhd4OjynibsvNuSiBwGhX3OTnnUQ+o8mC6l ykAGfcOECyNX/xdfe37nc3DyA7/MbH8pANtaG/zT1KZh93xvoDGOskJz/RWC7GWm3vbE4oJM8Qj L+SPegy5GWiBsDceJzkQs5F9qbr8TkRtU6pB/FJGuVytuO0ikDTJvjDbl1MhbwiPRa+tQA5xazi 7eydA9LteOeFrqYdE13IG/OaXSrmrrUQf1tcTecOPZvWg0MKAOagxFildLC3E2K X-Google-Smtp-Source: AGHT+IGkV8XGhRtLXA/2oeLLvXbpa9yNqrwoZ1wN+JqNTZm6ToUQ8b+at7MqfHbeoQ8SEFNb6oTHFA== X-Received: by 2002:a05:6000:4028:b0:382:4e71:1a12 with SMTP id ffacd0b85a97d-38260b465d0mr560916f8f.1.1732265790809; Fri, 22 Nov 2024 00:56:30 -0800 (PST) Received: from krzk-bin.. ([178.197.211.167]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-433cde97c68sm20320695e9.36.2024.11.22.00.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2024 00:56:29 -0800 (PST) From: Krzysztof Kozlowski To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] remoteproc: qcom: pas: Add SM8750 MPSS Date: Fri, 22 Nov 2024 09:56:23 +0100 Message-ID: <20241122085623.19988-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241122085623.19988-1-krzysztof.kozlowski@linaro.org> References: <20241122085623.19988-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add remote processor PAS loaders for SM8750 MPSS (modem), which differs from SM8650 by lack of fifth memory region for Qlink Logging. Signed-off-by: Krzysztof Kozlowski --- drivers/remoteproc/qcom_q6v5_pas.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 97c4bdd9222a..c34b7780f786 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1409,6 +1409,30 @@ static const struct adsp_data sm8650_mpss_resource = { .region_assign_vmid = QCOM_SCM_VMID_MSS_MSA, }; +static const struct adsp_data sm8750_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, + .smem_host_id = 1, + .region_assign_idx = 2, + .region_assign_count = 2, + .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}, @@ -1474,6 +1498,7 @@ 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,sm8750-mpss-pas", .data = &sm8750_mpss_resource}, { .compatible = "qcom,x1e80100-adsp-pas", .data = &x1e80100_adsp_resource}, { .compatible = "qcom,x1e80100-cdsp-pas", .data = &x1e80100_cdsp_resource}, { },