From patchwork Wed May 23 05:20:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 136614 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp449703lji; Tue, 22 May 2018 22:21:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpzuiy1Z7Ihpoyxora2orrVVZVrnRzAlWzYzOs6YT8buBW73TQ7F5Yy6BKh9h94fRJWjPLw X-Received: by 2002:a63:8048:: with SMTP id j69-v6mr1138471pgd.429.1527052866283; Tue, 22 May 2018 22:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527052866; cv=none; d=google.com; s=arc-20160816; b=j6tO1IpzcVwOkps8TepPY3ZFXYlyopeu1PlG64Sow5ATov+lTVfQb7VII1/n2T93W2 x7tqIt85EF1oNrauWSnMNfqO4f7+2UQuLTr6GO3MuRI0+NDXa/9RJQwae8J/dbF3bHQ+ b5LHO7QtamtyMoux/xNsUTySr+fzfgY9hkqSUrtM0cGk25lvFq7780uzaZNzr9r2C2XB HfFMoWMbvZa9JYWaYXCg2luwbKAPx2w3NMjfSrDxhUCYdUxvp8TJ8ELoq7sIbZ3kKpCW wl8m2v5hBk0HTPvkoigTmzkomiAA2Ys9GWsIkupEeKgoBcJWRSc6R1YIiKPBrnVTCPJ4 MWYA== 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=6qWSUKH9XJwfSASdRg+vWyWnGa8a4q+gNOg5klCeNIA=; b=Gy8n8CAoWvhZco7XRjnxSiI5nmwY+mjd39f9r51FXZRy1oQl2OPesfXKUtffhySWYH Z8auarz4M8MZn6SjgmWjuF1xXUH5VKD1zFgLPeXBQ99e16vOTYxof6moknIrSmfhMjxz plLsZ37bgyxsYFhhTNizlLCbwOKBgnuFkRO7aYbvRf71lsY+31LDt/3DryEgGIZPekN/ vvixyUOLaL7Di3qvJsq6ClGmZ/FmnBbEEw2ETmPlgJTeMsYWQiB4p3P2MlxBTLTLp77/ ur5mIHZI8c/LUF9+RI/gI/b2kB4DxVBD9qwWP8plHBxg47LeVYHBaeAkQcR+B0eBExPo q0Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bf1LMv65; 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 w4-v6si11888810plz.506.2018.05.22.22.21.06; Tue, 22 May 2018 22:21:06 -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=bf1LMv65; 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 S1754094AbeEWFVE (ORCPT + 30 others); Wed, 23 May 2018 01:21:04 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34186 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754068AbeEWFU6 (ORCPT ); Wed, 23 May 2018 01:20:58 -0400 Received: by mail-pf0-f193.google.com with SMTP id a14-v6so9887942pfi.1 for ; Tue, 22 May 2018 22:20:58 -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=6qWSUKH9XJwfSASdRg+vWyWnGa8a4q+gNOg5klCeNIA=; b=bf1LMv65DqL2bTQ4gIHJQpJJNHqZ4G7Awbuex3Cv6t8tEOLghWOK8zEq/Uc740BDyH wVng9e7FM6C1WXw8Cfo3GcBtE6ao8O+gYHDXN79iOsBJ9wHgGrxQfo/gdGruKGxWSIPY nLxnKySmXepyoJnnGYygMGi1FPlRzxWlU3e3s= 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=6qWSUKH9XJwfSASdRg+vWyWnGa8a4q+gNOg5klCeNIA=; b=PR0vSKDzHzWpDDS1IkA+ouJHoB011VocGwsEcg0D7pN99DEq/YxUcRLqs/RbrLs65i YocloSVjh7nI/3QwwgjfQgE1dKbLjxgHaQWOkc182430P853J+p0IJ3f125eVqYPh7du vY3yNokX/wN5B3mZEmKKtNhwJMKSnI82D4adOhVuj3aDBbPvH7/b7KgSs5ehBRwugKwm JExuG6vNM0RG5KZ0SQ+zoe1WEbpGTn2pmMVrDjNkEFLsitAC9t1lBHjVgOv8tlpxMx1S pZlqa5/wJr5jfoghmpVMo09EUuuUQXoi/OqyZBeTiskTA7iMI4QQgzNC13CsC/s/jdx7 G1lg== X-Gm-Message-State: ALKqPwe/Iao/O6O1gXPR2bg/lTmuusCYbB4w9SECPHREe8mmNou1+RSr xG3doMg5PxesV//E8QbstTMa5w== X-Received: by 2002:a62:32c6:: with SMTP id y189-v6mr1386095pfy.241.1527052858128; Tue, 22 May 2018 22:20:58 -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 r76-v6sm34401146pfl.1.2018.05.22.22.20.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 22:20:57 -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: [RFC PATCH 0/5] Hexagon remoteproc spring cleaning Date: Tue, 22 May 2018 22:20:49 -0700 Message-Id: <20180523052054.19025-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 (2): remoteproc: qcom: mdt_loader: Make the firmware authentication optional remoteproc: qcom: Introduce Hexagon V5 based WCSS driver drivers/remoteproc/Kconfig | 23 ++ drivers/remoteproc/Makefile | 2 + 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/remoteproc/qcom_q6v5_wcss.c | 580 ++++++++++++++++++++++++++++ drivers/soc/qcom/mdt_loader.c | 87 +++-- include/linux/soc/qcom/mdt_loader.h | 4 + 9 files changed, 1002 insertions(+), 296 deletions(-) create mode 100644 drivers/remoteproc/qcom_q6v5.c create mode 100644 drivers/remoteproc/qcom_q6v5.h create mode 100644 drivers/remoteproc/qcom_q6v5_wcss.c -- 2.17.0