Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1200461ybb; Wed, 1 Apr 2020 18:09:14 -0700 (PDT) X-Google-Smtp-Source: APiQypIyI3+o5sex9+tv2p9Nzqx7XrASMAKaMj5I1Dgmwd5bQo8itKj1MKt4yXGGbDUx0uqbrrko X-Received: by 2002:aca:3dd7:: with SMTP id k206mr516827oia.87.1585789754469; Wed, 01 Apr 2020 18:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585789754; cv=none; d=google.com; s=arc-20160816; b=dXtWrmupoHML60XkSxBN1SWzYxcDvsRbVyOhEmCJ+kIFCbtfF4PYzjM1N2UQH/lZWO oS4Ab7YtKzTxLCP54xBbpx1ZVriNjWBTBMlEpzAluZGG+q/tLDzAm/bk0bCdLCDRau+n j2fUA/DO3ITmZs1mTaKm5IyWpmgyIsIQDvM74CgqxIsDBbYrMMuh3YaSPfgCVk7mFMP1 WsXIk8aj4r/3A4FazM5jfXHnIY0shHTDRNMrSnbt90bf+87AjrmjwFE9eZsKmGEe3VJt B/h981aoKlL7rqU//CbsClAa6YNFO8e0hoM2Aa8Ucc/qkl/WjjfYArfoq7YPnjEgwJYx ZC9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=7MGR5ZEfhBlqah4NdKasb7kD4pFa4eCkZu9rkVDCHXg=; b=v3yMCmTbaeq1vIi/zF8G5kMkEVa1aebo1bh6JbBLA++JcTAT4gew5gugUPqSGh3rRI kKdYDlWpKgOkfV3W2jGsHlYInAqMQ5hWelfq01aVhecuevxnV/K5sp3nbxhejYz9cRJq Sl0OPkPlpmqgQ4FgTJAQ3X/jOux/zfaHxg3RYtHfY69qfAYPdbMNNyKh92GLt9gXfhjO fFAfxRMj3h7KxeguMJk3/sfkQXK7/lJnYkuTp/U9JwQMM9pfuxF5zLSFzfJkw+xM1MbU J2Da0Tf8AR6VxkJqo1BChk+81BtWqIyxc7su7Y+jzzy4QbzVPnKK3t3m8zbDPZ5jQSpB VJ0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SfompHMK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si1597722otm.212.2020.04.01.18.09.00; Wed, 01 Apr 2020 18:09:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SfompHMK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733073AbgDBBIU (ORCPT + 99 others); Wed, 1 Apr 2020 21:08:20 -0400 Received: from mail-pj1-f65.google.com ([209.85.216.65]:37437 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732462AbgDBBIT (ORCPT ); Wed, 1 Apr 2020 21:08:19 -0400 Received: by mail-pj1-f65.google.com with SMTP id k3so848138pjj.2 for ; Wed, 01 Apr 2020 18:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=7MGR5ZEfhBlqah4NdKasb7kD4pFa4eCkZu9rkVDCHXg=; b=SfompHMKKdqVxCvUSOymcpD62rEixB88HXr2WudV0/oFTLNbCKjpFi5rIsBEL4VxTO hkN/GI5ND7GALhny5M3XQSBNKAXvGEtdmh35Lo5BWT1MByBq3xq6p0Xx2iJFQrqMGSPh 6WZJkeeAMGghxGN2ti1gTSLXXmDIG+tvjXhYPnuODkiZISn3jommCwoXgxgg9cBXY0jz p+EJQSIa5M5CtwG63rWsXJ8k+1O+z48HhpW+F6TVmcJtMrUwLL0BMK9wnh9gZFQV8muZ yTAxkPiqHbVirKB1Iqcqt+W4CdVfsBVpLfWaIXdT36+3VhBql1QyB1S3vdCtc40ng2II ar0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=7MGR5ZEfhBlqah4NdKasb7kD4pFa4eCkZu9rkVDCHXg=; b=k+o9t55xfoP08bXZ+tri8ZIOsdqWxQoNwBlB6QQXRO0d0pXDFLQ4zFzMAubLzDtgHg T5oNWgDdKh2k/CGACHq9NSSOgc+/bviPOqsFjuRIjxj/D0JLp+BZ30QwvntENulrgpti wScMkcP+l3Bx3NN0eCMLx8kWiYLZtMrfPVu6VhFrTooLBZlqj1QBp4t9iNRU+WZJ4rPR CgJLa+7RDP3d2wHyuk03u1kYvZZ8DQ5y8+Xldo+h9eG/vL3AxhxI0OqWKfE6MdNCj0u9 Zv1CWsVVERIRhWW9fxb5Ubf1M9QylZwB+RHwTkbB2tiPIWs4ccinaaOqKy7V1e/lJJKJ 64Rw== X-Gm-Message-State: AGi0PuZVqFIi86WPmCtT31SFUNWIIe5PIDOR7LIJhBrykH/EO3ifPPxU tkF8w7uk9xFPcNazT4Vehj8VyA== X-Received: by 2002:a17:902:8606:: with SMTP id f6mr631145plo.130.1585789696033; Wed, 01 Apr 2020 18:08:16 -0700 (PDT) Received: from yoga (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id o3sm2246532pgk.21.2020.04.01.18.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 18:08:15 -0700 (PDT) Date: Wed, 1 Apr 2020 18:08:12 -0700 From: Bjorn Andersson To: Linus Torvalds Cc: Ohad Ben-Cohen , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Suman Anna , Clement Leger , Bjorn Andersson , Alex Elder , Ahmad Fatoum , Arnaud Pouliquen , Nathan Chancellor , Nikita Shubin , Sibi Sankar , Tero Kristo Subject: [GIT PULL] remoteproc updates for v5.7 Message-ID: <20200402010812.GA751391@yoga> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following changes since commit bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9: Linux 5.6-rc1 (2020-02-09 16:08:48 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc.git tags/rproc-v5.7 for you to fetch changes up to a7084c3d47c4aaedcca217ce87b7b5b5fe3cfa35: remoteproc/omap: Switch to SPDX license identifiers (2020-03-25 22:29:51 -0700) ---------------------------------------------------------------- remoteproc updates for v5.7 This introduces a range of improvements to the OMAP remoeteproc driver; among other things adding devicetree, suspend/resume and watchdog support, and adds support the remoteprocs in the DRA7xx SoC. It introduces support for 64-bit firmware, extends the ELF loader to support this and fixes for a number of race conditions in the recovery handling. It introduces a generic mechanism to allow remoteproc drivers to sync state with remote processors during a panic, and uses this to prepare Qualcomm remote processors for post mortem analysis. Finally it introduces fixes to cleanly recover from crashes in the modem firmware on production Qualcomm devices. ---------------------------------------------------------------- Ahmad Fatoum (1): remoteproc: stm32: demote warning about optional property absence Alex Elder (3): remoteproc: re-check state in rproc_trigger_recovery() remoteproc: remoteproc debugfs file fixes remoteproc: return error for bad "recovery" debugfs input Arnaud Pouliquen (1): remoteproc: fix kernel-doc warnings Bjorn Andersson (6): remoteproc: qcom_q6v5_mss: Don't reassign mpss region on shutdown remoteproc: qcom_q6v5_mss: Validate each segment during loading remoteproc: Traverse rproc_list under RCU read lock remoteproc: Introduce "panic" callback in ops remoteproc: qcom: q6v5: Add common panic handler remoteproc: qcom: Introduce panic handler for PAS and ADSP Clement Leger (8): remoteproc: Use size_t type for len in da_to_va remoteproc: Use size_t instead of int for rproc_mem_entry len remoteproc: Use u64 type for boot_addr remoteproc: Add elf helpers to access elf64 and elf32 fields remoteproc: Rename rproc_elf_sanity_check for elf32 remoteproc: Add elf64 support in elf loader remoteproc: Allow overriding only sanity_check remoteproc: Adapt coredump to generate correct elf type Nathan Chancellor (1): remoteproc/mediatek: Use size_t type for len in scp_da_to_va Nikita Shubin (1): remoteproc: Fix NULL pointer dereference in rproc_virtio_notify Sibi Sankar (1): remoteproc: qcom_q6v5_mss: Reload the mba region on coredump Suman Anna (14): dt-bindings: remoteproc: Add OMAP remoteproc bindings remoteproc/omap: Add device tree support remoteproc/omap: Add a sanity check for DSP boot address alignment remoteproc/omap: Add support to parse internal memories from DT remoteproc/omap: Add the rproc ops .da_to_va() implementation remoteproc/omap: Initialize and assign reserved memory node remoteproc/omap: Add support for DRA7xx remote processors remoteproc/omap: Check for undefined mailbox messages remoteproc/omap: Request a timer(s) for remoteproc usage remoteproc/omap: Add support for system suspend/resume remoteproc/omap: Add support for runtime auto-suspend/resume remoteproc/omap: Report device exceptions and trigger recovery remoteproc/omap: Add watchdog functionality for remote processors remoteproc/omap: Switch to SPDX license identifiers Tero Kristo (1): remoteproc/omap: Remove the platform_data header .../bindings/remoteproc/ti,omap-remoteproc.yaml | 324 ++++++ Documentation/remoteproc.txt | 2 +- drivers/remoteproc/Kconfig | 14 +- drivers/remoteproc/imx_rproc.c | 11 +- drivers/remoteproc/keystone_remoteproc.c | 4 +- drivers/remoteproc/mtk_scp.c | 2 +- drivers/remoteproc/omap_remoteproc.c | 1200 +++++++++++++++++++- drivers/remoteproc/omap_remoteproc.h | 50 +- drivers/remoteproc/qcom_q6v5.c | 20 + drivers/remoteproc/qcom_q6v5.h | 1 + drivers/remoteproc/qcom_q6v5_adsp.c | 10 +- drivers/remoteproc/qcom_q6v5_mss.c | 133 ++- drivers/remoteproc/qcom_q6v5_pas.c | 10 +- drivers/remoteproc/qcom_q6v5_wcss.c | 2 +- drivers/remoteproc/qcom_wcnss.c | 2 +- drivers/remoteproc/remoteproc_core.c | 161 ++- drivers/remoteproc/remoteproc_debugfs.c | 16 +- drivers/remoteproc/remoteproc_elf_helpers.h | 96 ++ drivers/remoteproc/remoteproc_elf_loader.c | 189 ++- drivers/remoteproc/remoteproc_internal.h | 16 +- drivers/remoteproc/remoteproc_virtio.c | 8 + drivers/remoteproc/st_remoteproc.c | 4 +- drivers/remoteproc/st_slim_rproc.c | 6 +- drivers/remoteproc/stm32_rproc.c | 4 +- drivers/remoteproc/wkup_m3_rproc.c | 4 +- include/linux/platform_data/remoteproc-omap.h | 51 - include/linux/remoteproc.h | 16 +- 27 files changed, 2080 insertions(+), 276 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,omap-remoteproc.yaml create mode 100644 drivers/remoteproc/remoteproc_elf_helpers.h delete mode 100644 include/linux/platform_data/remoteproc-omap.h