From patchwork Tue Nov 7 05:20:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 118103 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3561411qgn; Mon, 6 Nov 2017 21:20:52 -0800 (PST) X-Google-Smtp-Source: ABhQp+T4/pYSs2Cyb/Ra0EprZ8kzJ/HW2K90afuSapx5AV7a4Mt94g6O7Rjk/oiO4Y9/W4dnK9Ay X-Received: by 10.99.43.71 with SMTP id r68mr17881150pgr.348.1510032052392; Mon, 06 Nov 2017 21:20:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510032052; cv=none; d=google.com; s=arc-20160816; b=uuGW3SMJcbxUqzm1FHuLEDA/WMjU5ytakX21wxqy64DUooki+x2UR8KwZhofrw9pMn FD6/4oG1XEYF9Kz5HtTZtccogSjgJ6JXi0uuOuWekipurjSHVI8LvYVG12JeERYmicIp 2QjDbUZM3dXWHct9I0LceBBpQThJSczVYcEik2Em4lxd0t4LcM6ng6B2EBpElstuFZb6 kElBQ7SdoU8JFBeQe1vpRFtqd4Zxi8NrMAvV3hk71SEdPdzLyhzlz7XC2kl1P4iszi/E WyHzs5Ei4B3sqHPJGI27PKwGvOi47hEMtxoPXPKmzN2VaPnysiTCvkmri8us26BjAKzo GTng== 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=4ARkVNZ3MOBn487b+HdxXM5+fxwn9NyFmqHFGJ9rvpg=; b=QCsjI2XN42pZBmcnSWDjDBDGQvvSCyYXXnHZgxgQCNC6QGiKND3II9d27GOptvwTey cU/KgNd7oMAAxG5sk0B97lAmI7LMFtORMZBmsQbKyJUfeOIcgpqDuUjQ1rTNOmUcR37R XOG/+M2L4YJxNzqsGMtBAOF0Hy2IHFXGxBxXRTk9bnGrFEzlDAAx4A02ZDNKmV14pQS+ 0HYWCMsGsX2l1G49IeTsfSGdNO9Yl5NLM/hcjyhuITtd42+s6UdeUjLgY9mwIPrfHmx9 LAb4nWxSYkV6UsSJeLMPOq1VEczSxs/+9byr019EjfKj0uZJ8LBXjYAvX3SSt8n1CJWz ehgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=K1NIuvJr; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (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 l12si403813pfi.91.2017.11.06.21.20.51; Mon, 06 Nov 2017 21:20:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=K1NIuvJr; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752699AbdKGFUt (ORCPT + 10 others); Tue, 7 Nov 2017 00:20:49 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:54685 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752580AbdKGFUs (ORCPT ); Tue, 7 Nov 2017 00:20:48 -0500 Received: by mail-pg0-f65.google.com with SMTP id l24so10126657pgu.11 for ; Mon, 06 Nov 2017 21:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=VmdOKzCC7OTb6/cBKoEtC/rlmuY70PdxAxxOm3j7fWc=; b=K1NIuvJrdQlMeEeSw8DD2079tBX7e7MMkkazOw+Y2iXJG+ltxfcBAACBgDtG3Pc1mZ seMFK9sH3TH9A7ZQ0Cg4p0wy3wnUchJZ0KX3q96Exygxv6pSct1PaZZ6tcFzc5mvdAQO KhlzMkmd2E8kVtAPIMJjzwShGXmNi5StMcacY= 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=VmdOKzCC7OTb6/cBKoEtC/rlmuY70PdxAxxOm3j7fWc=; b=aJietM9Mp6xGsN/SNuRDEeCc+M505VDoiZmujS7zc684I3vgO3ctwlLUHFuIYHxp0q CXDB4W43+N9l4cOhBkR/VP3+JUCRHCvoSGhd984TbvH7+MGgqFkwuL47/rh+sxKDI8l6 6ni//f13H4WVvRJWtBxeoNpB5oKoyPvoXajoCxNbsiuplKQP4+dQYHmvujK+0mteRV8u QTGRRQFNeMIKX8bhIUsunFkiiwPvHe19O4YY47uqHIjMDmzNf5AoMyQQXcmICyULz/Lo A+a6z/844HPOoF0Q7vap6uMSnPwZnu4TrAIdiGeA6AqNBe0t3RW0LJJXEIe20AT9/r9T pv0w== X-Gm-Message-State: AMCzsaXq2W1MndBa2xmyOeIiG/3MzRNRTYxfQr+dK2mtcDSHsDGKxPoJ YqOqR18DfkLeUGopAx1Y3fcMxA== X-Received: by 10.101.74.81 with SMTP id a17mr17158571pgu.392.1510032047751; Mon, 06 Nov 2017 21:20:47 -0800 (PST) Received: from localhost.localdomain (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id g7sm847644pfj.13.2017.11.06.21.20.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 21:20:47 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Ohad Ben-Cohen , Bjorn Andersson Cc: Arun Kumar Neelakantam , Chris Lew , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH v2 0/5] In-kernel QMI helpers and sysmon Date: Mon, 6 Nov 2017 21:20:37 -0800 Message-Id: <20171107052042.22569-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This series introduces a helper library for drivers that needs to implement clients or services in the kernel for communicating with QMI encoded messages. This is used by a set of drivers in order to implement control signaling that needs to happen between a driver and a service on a remote processor, such as the synchronization of states during a remoteproc shutdown/restart; as seen in the sysmon implementation. Finally a sample driver provides an implementation of the "test" protocol, which is a service typically implemented by Qualcomm remoteproc firmware. Changes since v1: - Lot of modifications to QMI interface, from feedback and implementation and testing of sysmon. - Added sysmon driver. - Added patch for remoteproc to pass gracefulness on subdev remove. - QRTR patches part of v1 was merged separately Bjorn Andersson (5): soc: qcom: Introduce QMI encoder/decoder soc: qcom: Introduce QMI helpers remoteproc: Pass type of shutdown to subdev remove remoteproc: qcom: Introduce sysmon samples: Introduce Qualcomm QMI sample client drivers/remoteproc/Kconfig | 17 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/qcom_adsp_pil.c | 12 + drivers/remoteproc/qcom_common.c | 6 +- drivers/remoteproc/qcom_common.h | 21 + drivers/remoteproc/qcom_q6v5_pil.c | 3 + drivers/remoteproc/qcom_sysmon.c | 585 ++++++++++++++++++++++++ drivers/remoteproc/qcom_wcnss.c | 4 + drivers/remoteproc/remoteproc_core.c | 18 +- drivers/soc/qcom/Kconfig | 9 + drivers/soc/qcom/Makefile | 3 + drivers/soc/qcom/qmi_encdec.c | 812 +++++++++++++++++++++++++++++++++ drivers/soc/qcom/qmi_interface.c | 849 +++++++++++++++++++++++++++++++++++ include/linux/remoteproc.h | 4 +- include/linux/soc/qcom/qmi.h | 273 +++++++++++ samples/Kconfig | 9 + samples/Makefile | 2 +- samples/qmi/Makefile | 1 + samples/qmi/qmi_sample_client.c | 631 ++++++++++++++++++++++++++ 19 files changed, 3245 insertions(+), 15 deletions(-) create mode 100644 drivers/remoteproc/qcom_sysmon.c create mode 100644 drivers/soc/qcom/qmi_encdec.c create mode 100644 drivers/soc/qcom/qmi_interface.c create mode 100644 include/linux/soc/qcom/qmi.h create mode 100644 samples/qmi/Makefile create mode 100644 samples/qmi/qmi_sample_client.c -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html