Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp88837imm; Mon, 4 Jun 2018 13:34:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLjT7DgqjDZxCvH0KnKkroN6QYNdVgB0p0NvFUdPEVVvH4CtzrnPp1rYmhua9X4Gv/opq+Y X-Received: by 2002:a17:902:c81:: with SMTP id 1-v6mr23128555plt.126.1528144451704; Mon, 04 Jun 2018 13:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528144451; cv=none; d=google.com; s=arc-20160816; b=PcgNKkUp/Z9R0IolbnQ+q9KUb24Dfcs53WWqY25G9grdykCNAE8vSD47U6qi2xI26M NeVleaOIGXuTQ6p4l/hx9SoYDSFDLhWnO+eHejII7WJq5zL0QAp0v2eodUm6rnjFtepu dsswgmSBSf7U7vs/BOUyNnxIz8JEN0+yr7j3FMCklKEb6+leQPYh5+amJKreYwBiq9zJ CunDKYGm4xZAPafp4pFxYqsHwbRnDJ/hnyf+c8bV6k307Y9qqlmy93PDx9cNDEmitCug Q3HKTFfJiN5Y6cfT/XvOSb2NBC3xxw0s4ziYBBXlGkrhw4ZVvv3lVpr91ZRXitfBNcmj 9vLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=tG2i/pDRLbgHLitZgsTuOYhmoPfQYS6Ydz7OXoEtIuA=; b=x6FiZll8+k6NUtkGt41c556loxsHtOoeZduYPHLEiCsm9rdMLgW3EAlQzDxLWbo9m2 doovkSK1su6gx7QrXhSxs2UHKWXnP8fdujQSw0XfLSVmGB/hN2H/D2e6NpljQB3fIF2g TjdJvGneLk9HLr+dpW9KIjBCjgC13f7sWTbJnhqYALe9/eNwzCbubopomo1d3IexY3+m gbAgDWowz73kILgSvHdUgOIooVDplQWylkpE1Qk/osPgAo6NhTpXjtfwi0McTTe3ux/6 XmD9KUOr/80raSqHov57aJygAzT9UW8+A/0rY0brwMcEuYoyIiPcN1XibWQ7fj+tx3R4 K+Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KmbE9gdm; 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 30-v6si19300328plf.596.2018.06.04.13.33.57; Mon, 04 Jun 2018 13:34:11 -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=KmbE9gdm; 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 S1751291AbeFDUap (ORCPT + 99 others); Mon, 4 Jun 2018 16:30:45 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:45476 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750879AbeFDUan (ORCPT ); Mon, 4 Jun 2018 16:30:43 -0400 Received: by mail-pf0-f195.google.com with SMTP id a22-v6so3396250pfo.12 for ; Mon, 04 Jun 2018 13:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=tG2i/pDRLbgHLitZgsTuOYhmoPfQYS6Ydz7OXoEtIuA=; b=KmbE9gdm2E6n53HQ8EZYeRoeC1eWA61/O616YXRjf2bQYR7lZq/kFexcuUhyCNr8QY rQKAy2YxA0sdYsB1jXItOgxcpcp8qx1lxugogXLkXD2qHGsQasPwU7EBtV5Gqp8b90Ns pSg1k/qekTgQhj9P9WxAIEEz0XZWk8AHYSsgg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tG2i/pDRLbgHLitZgsTuOYhmoPfQYS6Ydz7OXoEtIuA=; b=J8GFS/YY7+yc94E+0ndqeobQ4zSahR1YmLlVrlswaxmODvRnytRgoEF18EE0wHZnzf EilI/k7KmVM8LhA7KrKPHiX18cO5zE1MAEARk32W578TwL34PSNhKquOxlaNxHc/CbTD 1sMncfGo9wOjq0lQ4YVSYFhAbE2lyQZOCylcEh0KKepiP3hpbUay/FodYQYXigdahO/P /luzb0exiqzOSt59YZq0CZCN0T2qc9XwpDP2nkJRr7vrhrAw0HqK3pj3XxrVY0xgwaZ9 LOUPhyuVaUQNCNtYeTuS49x3nDgeVjDnNA38HD9r3QxLGusGQ834wQorCUBLIVLl9m4I Pnbg== X-Gm-Message-State: ALKqPwf6zGUINp7QWX89zcznuU0T5Ao7d25fgQClUlaPn9OhsPH+Mo2I tAp7mV4gphJxdNTrmkCMlXIOj3JSvdA= X-Received: by 2002:a62:d8c5:: with SMTP id e188-v6mr14967230pfg.151.1528144242802; Mon, 04 Jun 2018 13:30:42 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id u68-v6sm83058641pfu.32.2018.06.04.13.30.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jun 2018 13:30:41 -0700 (PDT) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson , Sricharan R , Sibi Sankar , Rohit kumar Cc: Andy Gross , linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 0/4] Hexagon remoteproc spring cleaning Date: Mon, 4 Jun 2018 13:30:34 -0700 Message-Id: <20180604203038.14080-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the introduction of support for the non-MSA Hexagon WCSS driver from Sricharan and the non-PAS ADSP driver from Rohit it makes sense to overhaul the structure of the Qualcomm "Q6V5 drivers". The first patch is from Sricharan's series and included here for completeness. The second patch introduces a set of helper functions, based on the current state of the qcom_q6v5_pil driver. The third and forth patch migrates the PAS and the MSA drivers over to using these helpers. Finally a (completely) reworked version of Sricharan's WCSS remoteproc driver is introduced. With this in place I suggest that we rename qcom_adsp_pil.c to qcom_q6v5_pas.c, qcom_q6v5_pil.c to qcom_q6v5_msa.c and depending on the details of the non-PAS ADSP we could potentially combine that into a qcom_q6v5_pil.c - or we carry them as separate files. Looking at the remaining non-essential parts of these drivers we have memory-region handling and halt_axi handling. The prior is actively being worked on and the latter should (if no better abstraction is presented) be possible to just put in the new qcom_q6v5.c. Bjorn Andersson (3): remoteproc: q6v5: Extract common resource handling remoteproc: qcom: adsp: Use common q6v5 helpers remoteproc: qcom: q6v5-pil: Use common q6v5 helpers Sricharan R (1): remoteproc: qcom: mdt_loader: Make the firmware authentication optional drivers/remoteproc/Kconfig | 7 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/qcom_adsp_pil.c | 156 ++++-------------- drivers/remoteproc/qcom_q6v5.c | 243 ++++++++++++++++++++++++++++ drivers/remoteproc/qcom_q6v5.h | 46 ++++++ drivers/remoteproc/qcom_q6v5_pil.c | 157 ++---------------- drivers/soc/qcom/mdt_loader.c | 87 +++++++--- include/linux/soc/qcom/mdt_loader.h | 4 + 8 files changed, 405 insertions(+), 296 deletions(-) create mode 100644 drivers/remoteproc/qcom_q6v5.c create mode 100644 drivers/remoteproc/qcom_q6v5.h -- 2.17.0