From patchwork Wed Nov 15 20:10:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 118999 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4743879qgn; Wed, 15 Nov 2017 12:10:20 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ0PKFT/82PT2ZufW3UgcK0uBi3WVi8mbySGUoXBx7JdDqp724qW4a2Zq/fhjdxMFI/Cwck X-Received: by 10.84.225.134 with SMTP id u6mr11531744plj.69.1510776620558; Wed, 15 Nov 2017 12:10:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510776620; cv=none; d=google.com; s=arc-20160816; b=cqUrnE3PaLFYzyQGtN8nMZ7A3dLAHZL9jSxk0VPtZUFyE8eUi3hJw6YMPnbH8hfAH/ rJqAXPS1yvo2snZoUe5F3ezOIxulEdnQQ4WpP0qPX9TgvnCpEPrqD1L9txbvZBjpGewB 9g3164PnPIE9xgrnaZHDyNUNkZyYtmWHi8DKtYvAgPxjHA7cpJWFhJbz2GO9/KuFLroY U+ggq3LQIW1U3lehWjs79fSHRiRsxyHuFGTb4cJWJdJu8v5jhB0aJWv4631gGHbIWNUo s0xXyCstGJ3HK/gAjQfyc2/+l0i1AYJiPMB2N002dRnVDeWHBQePlN4HOv59C7GTx30r P7XA== 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=BuDYu+ZI39Y/Hg/YbcPIWYfwZkhq41bJOMTmZwNO0oE=; b=FAGQnHxsG9TKpFDwOHtpzm2m18ckjZV2iR6WXKTdU+Pk6twiI0FotXgqqhgTbn/C6d UfhoHAXy5E0XoZEkrBGLonHxu3QwkeKZKcFhAD7acNJ/LI5tCRmypbttTsOXAU3AXDLQ ur7rlvv447J1SPNp8zFzeeZJhlAbJnoai0pnKuZxZEcoL+X868BU7tNNnzygsS0n7p/b eAdrJINafanUXmgrhUaNAHGA1WSg4RLsa6B5jqMuGaDZL2F/L23Er2R06F7/10TmH4d0 PpzM/HPRDX/MicNBErVhhwfwQ8LjpPXjuq4lBU+o0UkYLWp4b/Qhu8qd69jcs4SOO+26 sv4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YnjimMNP; 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 p14si17562704pgu.569.2017.11.15.12.10.19; Wed, 15 Nov 2017 12:10:20 -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=YnjimMNP; 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 S1756140AbdKOUKS (ORCPT + 10 others); Wed, 15 Nov 2017 15:10:18 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:56833 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758268AbdKOUKR (ORCPT ); Wed, 15 Nov 2017 15:10:17 -0500 Received: by mail-pf0-f195.google.com with SMTP id q4so9664116pfg.13 for ; Wed, 15 Nov 2017 12:10:17 -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=1AXYRsuz5XD49d6PK4FezqK2897lL08marmLz/YympA=; b=YnjimMNPdx8dhbygg/drO/NT7PflcfqMqI0TMrD0kRmhoY1eOo/zzHPJsaZGoSr8Xf HtzwrH6m7Ex5ACD9t73P3IS/30NAxqucmiEvrAsAJH4qYnMbGlIdQ3k8XP9CVfEgdxG8 /Ici2aw+AYk37KldXYXM1+MXR9l7xd/Dyf6X4= 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=1AXYRsuz5XD49d6PK4FezqK2897lL08marmLz/YympA=; b=gl31i5GZQrYUj+pSNbZ+w3sVH58hem7INlEAqctsz5xNQvgURtiT3r1Yi1uMs8flUe w743LSsWyFjoNnuS/IwNoTx7zI2aJRPI+zX5VwomyROvLh0SD/nDF8aYMLr/v3Ns2Mse H2omYe6s1x8qdi1eiT35aswS/BZUT4s6hxjutRzTqtH3ZZAq5mePELqDuHTUqjD2Zq8f H8Vagw/CYpjQnLGH/lNBh5NGUvyLmmNibiY3FuQrd3vKdiE8+ap+Fb8bY54z0FeRxFA7 NkSv+w9GFFRjOaLv6oZKGZV0C+PCvAA+eTADnClQwbJMB61eRYVxVl4YSwYrgE1XD1V3 iXUw== X-Gm-Message-State: AJaThX4W3lQzGt4K6ZVATlx61DdFPhGVsexjNm1iS1ubutCFuFs20PbN OEcqg3sLs63n6F/uDKrNJFWTgw== X-Received: by 10.98.61.80 with SMTP id k77mr18560751pfa.226.1510776616436; Wed, 15 Nov 2017 12:10:16 -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 w20sm45959193pfi.89.2017.11.15.12.10.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Nov 2017 12:10:15 -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 v3 0/5] In-kernel QMI helpers and sysmon Date: Wed, 15 Nov 2017 12:10:07 -0800 Message-Id: <20171115201012.25892-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 v2: - Fix reported typos - Checkpatch fixes - Use non-gpl EXPORT_SYMBOL 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 | 821 +++++++++++++++++++++++++++++++++ drivers/soc/qcom/qmi_interface.c | 849 +++++++++++++++++++++++++++++++++++ include/linux/remoteproc.h | 4 +- include/linux/soc/qcom/qmi.h | 272 +++++++++++ samples/Kconfig | 9 + samples/Makefile | 2 +- samples/qmi/Makefile | 1 + samples/qmi/qmi_sample_client.c | 631 ++++++++++++++++++++++++++ 19 files changed, 3253 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