From patchwork Mon Oct 29 23:32:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 10660381 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 652E414DE for ; Mon, 29 Oct 2018 23:29:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4323529C15 for ; Mon, 29 Oct 2018 23:29:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3716729C98; Mon, 29 Oct 2018 23:29:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EB2F29C15 for ; Mon, 29 Oct 2018 23:29:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725935AbeJ3IUU (ORCPT ); Tue, 30 Oct 2018 04:20:20 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38085 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725819AbeJ3IUT (ORCPT ); Tue, 30 Oct 2018 04:20:19 -0400 Received: by mail-pg1-f195.google.com with SMTP id f8-v6so4655138pgq.5 for ; Mon, 29 Oct 2018 16:29:20 -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 :user-agent; bh=QQln21pT/FJiXd3CvWGnCgvbBviEehqc5USvtIkiPZw=; b=Ab5nKApgTi5mmM1Lro2GizrsxKnYUgyW0JaekE/3zmw/u2xu1ep3NxIu1p7uVOnkt7 eLyPr/kxAZqsJu22wWRmOjey2mQFphx6R9TgKTY0tDkxkOafhDiGD1LlKQ+hIQrevbq8 YkJsgQ+hasS31gnbj+WgnyN24GoIUkk/MCZ9o= 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:user-agent; bh=QQln21pT/FJiXd3CvWGnCgvbBviEehqc5USvtIkiPZw=; b=HA0W4rKgU+pcoy1+kXDH/gVePQ4iA6aBy80qYHAUnl0oyg8eoiwljPCn0jrqFV8TKZ rMmIeQ+Ng8y6/2SMfffcqyRwbivIB0BWOIZAt0wvu/0KeFKe+iTUIveA8iJjY1lK22CT 5u3KKT1rMo3gT8qwior2eRRhI1k3h3EBQdK3dc0dLwgo+6xXF0uyhUXigYqqXYmfoLxH nWH+wsRqZ5JfLbuuxYBCcQLg2JiB/ZK0RlhnO+DDN8Oz3oNS8/ID1gSDQcb0AJDYUYxa 2tFc2yfX4OKU3TU5wdYfk3i1IIPQVSrFCJfBpZ2w1FAJ04v9wOkibKQkv1EF2Ve+Q8QV mVKQ== X-Gm-Message-State: AGRZ1gJB98lgkenqOLStzdLAQPh7YnW/l+TtKZ5XaLOFit6NBUU6rfGr qGxRdd8LmSYW2qVxEz1BH7G0bA== X-Google-Smtp-Source: AJdET5fM59UmE4C46oJyzJT+ZHTZK8mq14Y+3SzJVFEd53a50wj2HhA2SAfuzax0ebrEkgp2gjGCVw== X-Received: by 2002:a63:ef53:: with SMTP id c19-v6mr15732207pgk.386.1540855759917; Mon, 29 Oct 2018 16:29:19 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id s30-v6sm15192812pga.57.2018.10.29.16.29.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Oct 2018 16:29:19 -0700 (PDT) Date: Mon, 29 Oct 2018 16:32:47 -0700 From: Bjorn Andersson To: Linus Torvalds Cc: Ohad Ben-Cohen , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Loic Pallardy , Sibi Sankar , Bjorn Andersson , Brian Norris , Rohit kumar , Suman Anna , Wei Yongjun Subject: [GIT PULL] remoteproc updates for v4.20 Message-ID: <20181029233247.GV12063@builder> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the Git repository at: git://github.com/andersson/remoteproc tags/rproc-v4.20 for you to fetch changes up to f18b7e914fd2ed5e8b5733644cefcf62f7582679: remoteproc: qcom: q6v5-mss: Register segments/dumpfn for coredump (2018-10-19 12:54:03 -0700) ---------------------------------------------------------------- remoteproc updates for v4.20 This contains a series of patches that reworks the memory carveout handling in remoteproc, in order to allow this to be reused for statically allocated memory regions to be used for e.g. firmware. It adds support for audio DSP (both TZ-assisted and non-TZ assisted) and compute DSP on Qualcomm SDM845, TZ-assisted audio DSP, compute DSP and WiFi processor on Qualcomm QCS404 and through some renaming of the drivers cleans up the naming situation. Finally support for custom coreudmp segment handlers is added and is used in the Qualcomm modem remoteproc driver to gather memory dumps of the firmware. ---------------------------------------------------------------- Bjorn Andersson (6): remoteproc/davinci: Use %zx for formating size_t remoteproc: qcom: adsp: Add SDM845 ADSP and CDSP support remoteproc: qcom: q6v5: Propagate EPROBE_DEFER remoteproc: qcom: Rename Hexagon v5 PAS driver remoteproc: qcom: Rename Hexagon v5 modem driver remoteproc: qcom: pas: Add QCS404 remoteprocs Brian Norris (2): remoteproc: qcom: q6v5-mss: add SCM probe dependency remoteproc: qcom: q6v5: shore up resource probe handling Loic Pallardy (12): remoteproc: configure IOMMU only if device address requested remoteproc: add rproc_va_to_pa function remoteproc: add release ops in rproc_mem_entry struct remoteproc: add name in rproc_mem_entry struct remoteproc: add helper function to allocate and init rproc_mem_entry struct remoteproc: introduce rproc_add_carveout function remoteproc: introduce rproc_find_carveout_by_name function remoteproc: add alloc ops in rproc_mem_entry struct remoteproc: add helper function to allocate rproc_mem_entry from reserved memory remoteproc: add helper function to check carveout device address remoteproc: modify rproc_handle_carveout to support pre-registered region remoteproc: modify vring allocation to rely on centralized carveout allocator Rohit kumar (2): dt-binding: remoteproc: Add QTI ADSP PIL bindings remoteproc: qcom: Introduce Non-PAS ADSP PIL driver Sibi Sankar (11): dt-bindings: remoteproc: qcom: Remove additional definition tag dt-bindings: remoteproc: Add PDC reset binding for Q6V5 PIL remoteproc: qcom: q6v5-pil: Explicitly get mss_restart line remoteproc: qcom: q6v5-pil: Add PDC reset for modem on SDM845 SoCs remoteproc: qcom: q6v5: Fix a race condition on fatal crash remoteproc: qcom: q6v5-pil: Assign the relocated address remoteproc: Introduce custom dump function for each remoteproc segment remoteproc: Add mechanism for custom dump function assignment remoteproc: qcom: q6v5-mss: Refactor mba load/unload sequence remoteproc: qcom: q6v5-mss: Add custom dump function for modem remoteproc: qcom: q6v5-mss: Register segments/dumpfn for coredump Suman Anna (2): remoteproc: Check for NULL firmwares in sysfs interface remoteproc: Add missing kernel-doc comment for auto-boot Wei Yongjun (1): remoteproc: qcom: qcom_q6v5_adsp: Fix some return value check .../bindings/remoteproc/qcom,adsp-pil.txt | 126 +++++ .../devicetree/bindings/remoteproc/qcom,adsp.txt | 5 + .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 8 +- drivers/remoteproc/Kconfig | 46 +- drivers/remoteproc/Makefile | 5 +- drivers/remoteproc/da8xx_remoteproc.c | 2 +- drivers/remoteproc/qcom_q6v5.c | 43 +- drivers/remoteproc/qcom_q6v5_adsp.c | 497 +++++++++++++++++ .../{qcom_q6v5_pil.c => qcom_q6v5_mss.c} | 420 ++++++++++----- .../{qcom_adsp_pil.c => qcom_q6v5_pas.c} | 28 +- drivers/remoteproc/remoteproc_core.c | 595 +++++++++++++++++---- drivers/remoteproc/remoteproc_debugfs.c | 1 + drivers/remoteproc/remoteproc_internal.h | 2 + drivers/remoteproc/remoteproc_sysfs.c | 5 + drivers/remoteproc/remoteproc_virtio.c | 14 +- include/linux/remoteproc.h | 47 +- 16 files changed, 1557 insertions(+), 287 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,adsp-pil.txt create mode 100644 drivers/remoteproc/qcom_q6v5_adsp.c rename drivers/remoteproc/{qcom_q6v5_pil.c => qcom_q6v5_mss.c} (90%) rename drivers/remoteproc/{qcom_adsp_pil.c => qcom_q6v5_pas.c} (90%)