Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2396076rdb; Fri, 8 Dec 2023 07:04:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJBZjVueKzbD0IxdmfXAzSKL2xPIKyTMKEzDRvqGAcqT28l0yTbYPWtKLZoX4tSJXuHXSF X-Received: by 2002:a05:6a20:9782:b0:190:490b:39e0 with SMTP id hx2-20020a056a20978200b00190490b39e0mr129544pzc.9.1702047895935; Fri, 08 Dec 2023 07:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702047895; cv=none; d=google.com; s=arc-20160816; b=hGq08ViHzEX9e1R2RL0A5esJm2rv7Htqt7ZIXOc0RDX/8u/HDbf6OzZcw5Ru2LX0Eq dOTQGp35fizXQ0INSCY/V2A85EkH26PUzNz4cBijK//1DN00nUeT0bGHto7PATi4Ql2R 29NHl5IU+6RJA9FDEG6X8BR2XkxuJXPeXLkcmanVpyqrgwqv0PS7w9SjeVUkilsobm42 7IUgYyFlFCBHcZ41Wvq59FLWiGoKscz0wWmZabrFtSsmukrQlMpKijLMEV1bS++j3syZ gie0dge8Q2b/7LOWkQwdhHKlioEFtUMjfzcQK7Lbj7UA0Pu6R2E3xjAzwVcvDIksnYn4 krng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=+r9LdgVrGwLNz9vZnl8ONcTpL/BtoeRyH/gmcpnXldk=; fh=mU4y0sYzih+Dq32eB3hX4qkSV0+qV7rIh/Wd2zFm5i0=; b=fLA8742C5FkcjBFP+ElFwB/alZA4OX8Sofb3ag6qSS8SFHmZSk+bIFMqlv9GTxSuuP XzUFh0Y+xafKyGDaTEzoMdqggjzPBHg+QnoulN2OnUCWAtWsrLq036VMFsQ82iqtv79B NFE+4ypkO/cuVy0SmppQUNjAekdMwmPldYigzkfkYQOQ6PsPj0c88lLb5FiOq/xujpC4 d6ogqFy1vP9Xqbr00UjJkxhuU3Hz5QNZnjimAIf6yYWmfaPlphI+hOAhdj0Dn+R3JaI4 z+sLmEGaFqKgO7qo0+hbpRbNRAVDS6bncf9g8pnz8zrki3Yrr2hWfYiw1HU97VGcI3ZP tDEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nRN2lXk3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id m5-20020a632605000000b005acb92781fbsi1751107pgm.415.2023.12.08.07.04.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 07:04:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nRN2lXk3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3336A81A2075; Fri, 8 Dec 2023 07:04:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574071AbjLHPEg (ORCPT + 99 others); Fri, 8 Dec 2023 10:04:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574051AbjLHPEf (ORCPT ); Fri, 8 Dec 2023 10:04:35 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B9C4122 for ; Fri, 8 Dec 2023 07:04:41 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40c2d50bfbfso8474975e9.0 for ; Fri, 08 Dec 2023 07:04:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702047880; x=1702652680; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=+r9LdgVrGwLNz9vZnl8ONcTpL/BtoeRyH/gmcpnXldk=; b=nRN2lXk3IQoIINvej1Vvswoc1uaon4cbbkNkLYfS4KixdpGVkwmiQaqLocPjER2ElY 2jO0pJzsEvhaz2bKoN+ttVPNvBwaOXTz4sEBRYcuoQWCtl9E7FLoLQIjTaViboZhcuMr goH3lH3L464mQDoJlZqIt8dJNzT9mgOpiQuc/uGQeL83M/UB411sENlJ3vNz8Q9P+S6G 1rVhd51HIZ4kuSPm/6+42HhQaANgw0f1M5SNvYRWJqjRcVwb6airP9aY3gKe5udjnwFb XFCQLmDJN4PAq8jSH7bysmSHKtXa0qucqjfdXNRK6R48GDjXH9ZCuM9GuLJPqubMw5oA g6Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702047880; x=1702652680; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+r9LdgVrGwLNz9vZnl8ONcTpL/BtoeRyH/gmcpnXldk=; b=MqozpfUrNLjCtBzYPdnGxblMnwbt8TZw+VdwIz0glRFu3fmvug0rN2kL9OiYVj4g4C TU0afN08YFSIsuXWqm3ZcXJBtG9OKdXyMxth2JahJqQOwJ0c+MS57TmmZ8DzlJy1a0pb 1u/EzOwQbF+nkLuiVKHEDeDvClFASHOHfxGGGHrvvAa+HC5cApCvcs2JUR0BSWxUul4R beLmM+adIU4Ov2p7FCZVfT83grvDY8tj6WNWxYT11o32VioQrbqbr4DC/qpAOX5PTuA0 Ic2h/fNibshtz+OqP8aIuVIfbA2I2uu2pyd71yw2UmxVLyvnRdn/1VYwcyIMngnldiWf 6XDg== X-Gm-Message-State: AOJu0YxpnUPiCm4SfVbwkiPRnyc1x7BxHAn1wbI/S9MusxrCuoakZeU3 ESIChg9MzAVzj55lQkpNZBeIvw== X-Received: by 2002:a05:600c:4749:b0:40b:5e4a:233f with SMTP id w9-20020a05600c474900b0040b5e4a233fmr148446wmo.65.1702047879626; Fri, 08 Dec 2023 07:04:39 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id v12-20020a05600c470c00b0040b37f107c4sm2000403wmo.16.2023.12.08.07.04.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 07:04:37 -0800 (PST) From: Neil Armstrong Subject: [PATCH v4 0/3] remoteproc: qcom: Introduce DSP support for SM8650 Date: Fri, 08 Dec 2023 16:04:32 +0100 Message-Id: <20231208-topic-sm8650-upstream-remoteproc-v4-0-a96c3e5f0913@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIAwc2UC/43QwYrCMBSF4VeRrI3cpG1aZzXvIS7S9KgB25SbG hTpuxtF0GEWuvzv4jtwryKCPaL4WVwFI/now5CjXC6EO9hhD+m73EKTLhQpI6cweidj35iK5Gm ME8P2ktGHCSMHJ42xTQ20ZgeIzIyMnT8/Jjbb3Acfp8CXx2JS9+sT19VnPClJ0jadJpQOqnG/R z9YDqvAe3HXk34TC/pC1Fk0tAaqWoOs/icWL1HRFw9IRRa7tiudbS3asv4jzvN8Ax2arfB1AQA A 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 , Krzysztof Kozlowski , Mukesh Ojha , Dmitry Baryshkov X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2371; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=o1G/sD2ghNyWM7z/dROChbIoPttfag+11xpiG9nnwZM=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlczCD5iSNZbSepEcn1qFeKyAmucvRyu+sq3vpZ82V zBRzJOCJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZXMwgwAKCRB33NvayMhJ0TAxD/ 9cjvagWEP8/qgxN+CMBbMzCKGirMyw1/cQd0L/UNuUwd0MaT8aQZS10hEO/XFO6W1J7XkrdyuGhmAc bhg6KbTZ6ycNadsANezc2Y/t8hohmx4FP29NtRL/iF2wGw4Wzh8xK1XfgAzHsCceznFgDn1YFFgImf PPmqu+u+qTniDR8ci5kO5c12TmEJwPNGwx37dO95CafK42sLY4CKa/T/CsNEEo1tb3htKDkIigG1qF dRCRwQgAYAC/xOxqt70D8+OSbUuYxI80+UmvU5Uvd3wpizOQh1z5rK+EnqGXifppti3K22t2XgziI5 4oRDN+a8SEE3/XziASa1Nt3mcZyJJAfCt3ePIcksu7JBr73o1klm2rTfhOQAIg7xJPyG7kpH94OTzg LRKXOQuihm20ZdoPWv2pI4RZBkpHoSaXoQCiuaAnKdZRI+zx12+HGuL/K0qB7JK1NWd/hV7fn7jb+Y 2ziEtcEWmoYgL24/VyhI8QQ1Tl+6VQZvgtGBsjGSpXm40c5qHmbGH1U5h3NzGZEAV1BQLHAQoSTkzT kEcId9plA6pI+/xHzTNLX9B3sFD+1c8VGePFFRK5OvPvjXySGi7/RONyHDGjnRcKH0DW3fLD1+2fWR eMY4DgSWQxaELUp5b1GPaZEw/kFKHckXbqd08dP0INbAF6tbru12KURcPPQw== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 08 Dec 2023 07:04:53 -0800 (PST) Add the bindings and driver changes for DSP support on the SM8650 platform in order to enable the aDSP, cDSP and MPSS subsystems to boot. Compared to SM8550, where SM8650 uses the same dual firmware files, (dtb file and main firmware) the memory zones requirement has changed: - cDSP: now requires 2 memory zones to be configured as shared between the cDSP and the HLOS subsystem - MPSS: In addition to the memory zone required for the SM8550 MPSS, another one is required to be configured for MPSS usage only. In order to handle this and avoid code duplication, the region_assign_* code patch has been made more generic and is able handle multiple DSP-only memory zones (for MPSS) or DSP-HLOS shared memory zones (cDSP) in the same region_assign functions. Dependencies: None For convenience, a regularly refreshed linux-next based git tree containing all the SM8650 related work is available at: https://git.codelinaro.org/neil.armstrong/linux/-/tree/topic/sm8650/upstream/integ Signed-off-by: Neil Armstrong --- Changes in v4: - Collected review from Mukesh Ojha - Fixed adsp_unassign_memory_region() as suggested by Mukesh Ojha - Link to v3: https://lore.kernel.org/r/20231106-topic-sm8650-upstream-remoteproc-v3-0-dbd4cabaeb47@linaro.org Changes in v3: - Collected bindings review tags - Small fixes suggested by Mukesh Ojha - Link to v2: https://lore.kernel.org/r/20231030-topic-sm8650-upstream-remoteproc-v2-0-609ee572e0a2@linaro.org Changes in v2: - Fixed sm8650 entries in allOf:if:then to match Krzysztof's comments - Collected reviewed-by on patch 3 - Link to v1: https://lore.kernel.org/r/20231025-topic-sm8650-upstream-remoteproc-v1-0-a8d20e4ce18c@linaro.org --- Neil Armstrong (3): dt-bindings: remoteproc: qcom,sm8550-pas: document the SM8650 PAS remoteproc: qcom: pas: make region assign more generic remoteproc: qcom: pas: Add SM8650 remoteproc support .../bindings/remoteproc/qcom,sm8550-pas.yaml | 44 +++++- drivers/remoteproc/qcom_q6v5_pas.c | 150 ++++++++++++++++----- 2 files changed, 159 insertions(+), 35 deletions(-) --- base-commit: 0f5f12ac05f36f117e793656c3f560625e927f1b change-id: 20231016-topic-sm8650-upstream-remoteproc-66a87eeb6fee Best regards, -- Neil Armstrong