From patchwork Fri Feb 21 16:02:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13985829 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 B037F1FF7C9 for ; Fri, 21 Feb 2025 16:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740153791; cv=none; b=b6ZbpAPAag4zT4I1ZpDlR70VgKDR7KZE4IrvPQkCZYhVSHMev0o2qMbHuAGGtepfTRa/vtm5A6i9pPZcY8QgNIXFXBgc0wwvdfsJ1Efxa8FEy6Y6qGkMSLtX4R/6/TLAA+u/nRZcEpg60i8pyCBg1lkuQ23l01IrWu1Cb6E6mgc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740153791; c=relaxed/simple; bh=RYYrqjZBBPZWi7VA/WRn8140pmz5H68xLv5MzgliR78=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eL7Vdwv6SNResNv84crWAb+8yoWZCsqsqiJxoTt0/72V7k8mCt1eyLZxBVCCvMrjEkhGCNajXISWyk7BSzpuQHUyozPWk+IhXnbs4+DpY8ciC4hTd9nH0B8YIBZEJc9vh/CZlzrL+tN1Ygm+X16jDz+JwZkVtxLoQHcWKFu2NBI= 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=fLRJQsPv; arc=none smtp.client-ip=209.85.208.41 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="fLRJQsPv" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5ded7cb613eso394454a12.2 for ; Fri, 21 Feb 2025 08:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740153787; x=1740758587; 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=Iecpj9KIMrY3zBOzgwFtaRTFMVnp7wDD9F9a7Nu1whg=; b=fLRJQsPvpsPxK9IVBT0WhA9wHoBXOW/bAFqOatLe49WYbn3T0q3mXQ1mbjBlzjLPB3 1q7Ku3syMUVBONjEc9eMXf+jmv3CmZGIs/129+UcXjqmBksyno0kWJ8UhevZ+BpuqpcB rvGtwh6nRezkwFMoejBD4aT4iVkoGQUISQ+6eVavVS1EkpXLhSYq6UTb4M1hQc3N8W3I 5U873zWJ20Fz6Y0ANLaj0XsPVr3q7m+A1wX84HEypPIOZd6o8XtbRmq6C4ll8GCoG7ZJ CIYtDzum4LJ2/9vt0Yf4qCqQSnKg9PO+e++YKWuGDuNFbFUoyPTM9jPw9b/Y/XJdimjZ f8pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740153787; x=1740758587; 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=Iecpj9KIMrY3zBOzgwFtaRTFMVnp7wDD9F9a7Nu1whg=; b=uE0CTJdD8ty1FiqvuzfYFxfoBBDomFSW+db39VCJfUi+e8ge9Tg1Wo8E/+bugI92FE pFciisK0pyaoqutYwsZQ3/ntybPlJHAIbdUbr5quaJYIi0DOocsRnxEYHN8t/O15ffB/ YlnOu0bNvMZ6N/FTYeRUiByfM2ByTKLChMs5kiyqPtBg43w4wBYoQ72XGJGKXbQvhYm5 A7bj42rOI1mFGCHwdPFhsxe+TzUt2Y5AON4emHaf7rtvV3rTlTFkKam1eO6PVuoUmOBT TPrt1NG0BzBW/Ud3R7E2dz5DskaFaW0zuR6r78JrLX1Qwhcb+yvFou+hHkRRDFqeXNej m6XQ== X-Forwarded-Encrypted: i=1; AJvYcCXn3bXzeDH0WVoj+RX8feDWeOcStdndOtug9CScKbhRrSzKcnqU103QsV47k9mzjqCZdzXH/986AhqU+TmcZ7yx@vger.kernel.org X-Gm-Message-State: AOJu0YxiZkMrBpVBZ2Dm0C6j7Cf4VV/7lPoLFbG9weTY925dk2n0Ne0m lHLFqRpItidpffLJDUHuYb6HLAnLUZv7Ejsg7gPSvrdKGjKh3BKvbRUb3LOKS7M= X-Gm-Gg: ASbGncui+KiTOkwiFLzWw2Bt5TT7uRzo2lxpWeG9DmWUMRtW24KYoKbbAQ5XRmF7jbI NW2Z0ekEeaD1P4eMD6BgvO1A6nzqvXT97hu0jr1lpm5zzuE5ls/Sq9ZP1wTxUz0vRx/+MgGM916 oiIxrlHLwa5EHSrG7OHQnAikLmPhBzZIHwjz6kvJfVv+l1rpR1ZDkeg0iPPzjWWF2fHv39F3NtR oUtJ0u+uq6OIieMfu/vZAefFLZ/fG5hM3fcidlKaK+DiWsiNmRtRarIS9h2BBjD1xmh77/3HPyv DFpnmPCOsLM9W2WbXTW0DJyoD3+17guo2uTQ7HND9+YfC4Ap5wBs4h8krKDMxesdEgSX5IoO2ZI = X-Google-Smtp-Source: AGHT+IFD94Z2C6E/AhuO+19C1vGdBFuuX7tNp0Xx3W8Vs2QPQWhGEEzUJ2reXTaWktyO+VoDRaxiJA== X-Received: by 2002:a17:907:9722:b0:ab6:d3b6:d825 with SMTP id a640c23a62f3a-abc09a578efmr125277166b.6.1740153785316; Fri, 21 Feb 2025 08:03:05 -0800 (PST) Received: from krzk-bin.. (78-11-220-99.static.ip.netia.com.pl. [78.11.220.99]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abb98640619sm1040782766b.54.2025.02.21.08.03.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 08:03:04 -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 , Conor Dooley Subject: [PATCH RFC v2 1/2] dt-bindings: remoteproc: Add SM8750 MPSS Date: Fri, 21 Feb 2025 17:02:59 +0100 Message-ID: <20250221160300.160404-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-remoteproc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add remote processor PAS loader for SM8750 MPSS (modem). Device looks fully compatible with SM8650, however it lacks fifth memory region for Qlink Logging, according to downstream sources. This is a bit tricky, because updated downstream sources for newer downstream release dropped that fifth memory region as well. There might be other differences against SM8650, because the modem currently crashes after starting. Acked-by: Conor Dooley Signed-off-by: Krzysztof Kozlowski --- Changes in v2: Split from previous MPSS+CDSP: https://lore.kernel.org/all/20250220154132.199358-1-krzysztof.kozlowski@linaro.org/ Retain the Ack - no changes to the binding itself. --- .../bindings/remoteproc/qcom,sm8550-pas.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml index 8bfded3c66ef..2dd479cf4821 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml @@ -24,6 +24,7 @@ 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: @@ -164,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: @@ -191,6 +207,7 @@ allOf: - qcom,sdx75-mpss-pas - qcom,sm8550-mpss-pas - qcom,sm8650-mpss-pas + - qcom,sm8750-mpss-pas then: properties: power-domains: From patchwork Fri Feb 21 16:03:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13985828 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 A81661FF603 for ; Fri, 21 Feb 2025 16:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740153790; cv=none; b=h3I2CVQhbazHoeVue8Yz1AXQNl13fjfTitMJ5j4jvd5jOEBojiwHmzv8oYcUGkJ/iHZjVs3knfI0Ki72tQS7E6aTW0eSDMeI77PI1QwjE/2Wd0yBBWBlgD9FT09o2ySvPfUqbVrxQ20Bxt4GqWIee9nSrvaqGbvazqgvzp/k6HA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740153790; c=relaxed/simple; bh=jNpVKLpJOZImpyW3PpLBE59YQPImFyESp7Aep3FgeYc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rOW61f8mRGNyAe4RAdD+4Xp3Nja3dGvskQqKn7SidgHWA6l7YlKE76bln+a/O6ETYikxv1lyBG4IQmRJc4v01/dw93cEIOBaYuymjBDgCNyMqjUrBmVDk/n8uW1uuvig3XpQpKM81Q3K7zoQ5l0sKb7v/GRPCg176EhdlMv7lMM= 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=DtksPI8d; arc=none smtp.client-ip=209.85.208.52 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="DtksPI8d" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5dc191ca8baso461311a12.1 for ; Fri, 21 Feb 2025 08:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740153787; x=1740758587; 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=4OXcF/TG2PCFERI1SWimzKBOweiSs1ZB9MJg92lP4jc=; b=DtksPI8dHyXYI3s8/lSvEydMFfe1Ml0RKpZXT9qDgs/XJbs+PrPqJzY5eEQljcQ1yq jkIpdnxGsPPsDxaLEK8t3ylKrCX2nJuuhcuPj8YYyFaTYR/+vU5ylpUaVN76ck+KBx+A fAzUfz7YESVaN7xCiDUNZ2pCB8Epg7QelzWians6hJUKJN0ezGNcA2eE/cOKctmmd7te 0o0Cz/vNUoBdmG/LXzcjtJuYZcCzh7MAcWajWtjkD6rbTBT9M6HqUlsb53eAdkI8jFoN WojTZ7JCLrLBDTkoih+dOtJmhOZ2U4G7JlNpm48UCtY3nTlbDZtXGg/hLwLQGWDgVHIk z3ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740153787; x=1740758587; 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=4OXcF/TG2PCFERI1SWimzKBOweiSs1ZB9MJg92lP4jc=; b=IPVUWxl2eyScGxDRMJ13l84OKjatWxU1fm6bHcN2C8Y+Gzppaogtw8QW3Ss+FXhD9X vxO2mjbIfpenLFRRllpsHHOCx4SiiJkNV5aeJOF4W673UrgGzJYJbKsai9JNuq8Nh0Ft 2NckNOjB8BSrM7Ymf6ToO6zznl/nhCh5M0BdCPU/qtpBVR0nRlbpXgfryZfjTUArde6J bkyT0Fnpq2EQCnuPARNrYeX+82XrGRcp/XlwMAeF8BrB4ElgEKnKb8kVgD6B80wzBA75 7gTN/1Tgw5Xd8A9fB38POGJTlsgPTAB+sZWWUIDOyUEE6JsyTnqCWQySVFnRW9sMRFhd RMBQ== X-Forwarded-Encrypted: i=1; AJvYcCULs3Rk85t8Vh31/+8DIaCuNJ83a1IzZqCWdYNACOXyn6ZwikIU3Jwj1unmlNME215CHjZ58L5RULeAb5i+d1cE@vger.kernel.org X-Gm-Message-State: AOJu0YyTvRhlXHhpzZB7p66AOlzmbjv4MOuWLTrbEdthtFIVsi6+K/4j HcWgCn0GbsKd5HzC5vVvD4Bkv3bE0Xlq4MF1dIMkyOW6b8HH8LnJA4yjAoW3gD8= X-Gm-Gg: ASbGncu/9ftAArK1HwdEyp60La4lZJoaRX9dW7fI0qZ4nMrwIU9VW3HD/L8iFQK9iBA p1piu9YQgy5LHN0u3tbm1cd5JYFaaITA+8VA+4/sGnFQRjpppBrhtWoZmezFREM7IdhoeHBfNQ6 b7rdCEZa2Q9mwh6PsP55cn7IXfMnac3ggIYuBCC0vFGc8UEZgkYsq+lGYde7f8dGxxyQu9EQsGu em4zDr1TiNSXxdmWB07q/dhLoR55PgG4C/lyPfLFSjCZctwXlFCRdzSWwAfSMgzx3AJXKLYyuOp J+8SYy6vWjBL+i2Y5g3Yz3xPoGEYeiRgxdx6eRxiZld2M0m0IHo5xeWdSaVu74egER7XVnSzfWs = X-Google-Smtp-Source: AGHT+IEkEFcjqxp6Jb7RRhAg97Jh8Ki4FzCRDMhO8xX32MsiOvuIBNnukhiVmbZ0l7ZZyA6t7WA3Rw== X-Received: by 2002:a05:6402:4406:b0:5e0:803c:2440 with SMTP id 4fb4d7f45d1cf-5e0b72311b3mr1279503a12.8.1740153786941; Fri, 21 Feb 2025 08:03:06 -0800 (PST) Received: from krzk-bin.. (78-11-220-99.static.ip.netia.com.pl. [78.11.220.99]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abb98640619sm1040782766b.54.2025.02.21.08.03.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 08:03:06 -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 RFC v2 2/2] remoteproc: qcom: pas: Add SM8750 MPSS Date: Fri, 21 Feb 2025 17:03:00 +0100 Message-ID: <20250221160300.160404-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250221160300.160404-1-krzysztof.kozlowski@linaro.org> References: <20250221160300.160404-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-remoteproc@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 --- Changes in v2: None --- 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}, { },